-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
129 lines (106 loc) · 3.61 KB
/
Copy pathmain.tex
File metadata and controls
129 lines (106 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
%-------------------------------------------
% Resume in LuaLatex
% Author: Sheikh Usman Ali
% (Works with Overleaf)
%-------------------------------------------
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames]{color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage{fancyhdr}
\usepackage[T1]{fontenc}
\usepackage{Alegreya} %% Option 'black' gives heavier bold face
\renewcommand*\oldstylenums[1]{{\AlegreyaOsF #1}}
\RequirePackage{luatex85}
\usepackage{pdfcomment}
\usepackage{luacode}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Adjust margins
%-------------------------------------------
\addtolength{\oddsidemargin}{-0.475in}
\addtolength{\evensidemargin}{-0.375in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.5in}
\addtolength{\textheight}{1.0in}
\urlstyle{same}
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
%-------------------------------------------
\titleformat{\section}{
\vspace{-4pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-5pt}]
% Custom commands
%-------------------------------------------
\definecolor{light-gray}{gray}{0.3}
\newcommand{\resumeItem}[3]{
\item{
\textbf{#1} \ifthenelse{\equal{#3}{}}{}{\textcolor{light-gray}{\scriptsize\texttt{#3}}} {: \small #2 \vspace{-2pt}}
}
}
\newcommand{\resumeEduEntry}[4]{
\vspace{-1pt}\item
\begin{tabular*}{0.97\textwidth}{l@{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small\textcolor{light-gray}{#3}} & \textit{\small\textcolor{light-gray}{#4}} \\
\end{tabular*}\vspace{-5pt}
}
\newcommand{\resumeExpEntry}[5]{
\vspace{-1pt}\item
\begin{tabular*}{0.97\textwidth}{l@{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{\small\textcolor{light-gray}{#3 $\cdot$ #4}} & \textit{\small\textcolor{light-gray}{#5}} \\
\end{tabular*}\vspace{-5pt}
}
\newcommand{\resumeSubItem}[3]{\resumeItem{#1}{#2}{#3}\vspace{-4pt}}
\renewcommand{\labelitemii}{$\circ$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=*,label={}]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\setlist{rightmargin=10pt}\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}
\begin{document}
% Load lua script
%-------------------------------------------
\begin{luacode}
require("_lua/parser.lua")
\end{luacode}
% Print Heading
%-------------------------------------------
\directlua{printHeading("_data/personal.json")}
% Print Education
%-------------------------------------------
\section{Education}
\resumeSubHeadingListStart
\directlua{printEduItems("_data/edu.json")}
\resumeSubHeadingListEnd
% Print Experience
%-------------------------------------------
\section{Experience}
\resumeSubHeadingListStart
\directlua{printExpItems("_data/exp.json")}
\resumeSubHeadingListEnd
% Print Projects
%-------------------------------------------
\section{\href{https://github.com/usmandroid}{Projects}}
\resumeSubHeadingListStart
\directlua{printProjItems("_data/proj.json")}
\resumeSubHeadingListEnd
% Print Skills
%-------------------------------------------
\section{Technical Skills}
\resumeSubHeadingListStart
\item{
\textbf{Languages}{: \directlua{printList("_data/personal.json", "languages", "language")}}
\hfill
\textbf{Technologies}{: \directlua{printList("_data/personal.json", "technologies", "technology")}}
}
\resumeSubHeadingListEnd
\end{document}