-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresumetex.cls
142 lines (122 loc) · 2.9 KB
/
resumetex.cls
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
130
131
132
133
134
135
136
137
138
139
140
141
142
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ResumeTeX Document Class
% Version 1.0 (2025-02-15)
% By Iskander Gaba
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
% Base Document Class
\LoadClass[a4paper]{article}
% Reduce Document Top Margin
\AtBeginDocument{\vspace*{-50pt}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{tikz}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{enumitem}
\RequirePackage{fullpage}
\RequirePackage{textcomp}
\RequirePackage{makecell}
\RequirePackage{hyperref}
\RequirePackage{adjustbox}
\RequirePackage[T1]{fontenc}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Default Settings
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PDF file settings
\hypersetup{
colorlinks=true,
linkcolor=green,
filecolor=magenta,
urlcolor=blue,
%pdfpagemode=FullScreen,
}
% No page numbering and more text space
\textheight=10in
\pagestyle{empty}
% RTL-LTR compatibility configuration
\raggedright
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ResumeTeX Commands
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \lineunder command
\newcommand{\lineunder} {
\vspace*{-4pt} \\
\hspace*{-18pt} \hrulefill \\
\vspace*{4pt}
}
% \name command
% #1: Name
\newcommand{\name}[1] {
{\Huge #1}
}
% \namesc command (same as \name but with small caps)
% #1: Name
\newcommand{\namesc}[1] {
\name{\scshape{#1}}
}
% \photo command
% #1: Photo file path
\newcommand{\photo}[1] {
\begin{adjustbox}{width=3.5cm, valign=m, keepaspectratio}
\begin{tikzpicture}
\clip (1.75cm, 1.75cm) circle(1.75cm);
\includegraphics[width=3.5cm]{#1};
\end{tikzpicture}
\end{adjustbox}
}
% \header command
% #1: Header title
\newcommand{\header}[1] {
\hspace{-18pt} #1 \lineunder
}
% \headersc command (same as \header but with small caps)
% #1: Header title
\newcommand{\headersc}[1] {
\header{\textsc{#1}}
}
% \school command
% #1: School name
% #2: School location
% #3: School degree
% #4: School years
\newcommand{\school} [4] {
\textbf{#1} \hfill #2\\
#3 \hfill #4\\
\vspace{4pt}
}
% \experience command
% #1: Entity name
% #2: Entity location
% #3: Experience Role
% #4: Work years
\newcommand{\experience} [4] {
\textbf{#1} \hfill #2\\
\textit{#3} \hfill #4\\
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ResumeTeX Environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% keyvaltable environment
\newenvironment{keyvaltable}
{
% \keyvalpair command
% #1: Key
% #2: Value
\newcommand{\keyvalpair}[2] {
\textbf{##1:} & ##2 \\
}
\begin{tabular}{l p{0.8\linewidth}}
}
{
\end{tabular}
}
% achievements environment
\newenvironment{achievements}
{
\begin{itemize}[topsep=4pt, itemsep=1pt]
}
{
\end{itemize}
}