-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformat.cls
62 lines (55 loc) · 1.72 KB
/
format.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
% [a4paper]
\usepackage[centering,paperwidth=210mm,paperheight=297mm,body={180mm,247mm}]{geometry}
\usepackage{
array,
booktabs,
hyperref,
color,
latexsym,
verbatim,
url,
ulem,
xeCJK, % replace with CJK for sharelatex.com
multirow,
enumitem,
fancyhdr,
tikz,
calc % fix hbox too wide for heading, enable caculate
}
% \usepackage{latexsym,verbatim,url,CJKutf8}
\pagestyle{empty}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\urlstyle{same}
\hypersetup{
colorlinks,%
citecolor=black,%
filecolor=black,%
linkcolor=black,%
urlcolor=black % can put red here to better visualize the links
}
\definecolor{mygrey}{gray}{.9}
\definecolor{mygreylink}{gray}{.30}
\definecolor{labelgrey}{gray}{.50}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
%\linespread{1.25}
%-----------------------------------------------------------
%Custom commands
\newcommand{\resitem}[1]{\item #1 \vspace{-2pt}}
\newcommand{\resheading}[1]{{\large \colorbox{mygrey}{\begin{minipage}{\textwidth-2\fboxsep}{\textbf{#1 \vphantom{p\^{E}}}}\end{minipage}}}}
\newcommand{\reslheading}[1]{{\large \colorbox{mygrey}{\begin{minipage}{0.8\textwidth-2\fboxsep}{\textbf{#1 \vphantom{p\^{E}}}}\end{minipage}}}}
\newcommand{\ressubheading}[4]{
\begin{tabular*}{\textwidth-5mm}{l@{\extracolsep{\fill}}r}
\textbf{#1} \textit{#3} & #4 \quad #2 \\
\end{tabular*}\vspace{-6pt}}
% \newcommand{\ressubsingleheading}[3]{
% \begin{tabular*}{\textwidth-5mm}{@{\extracolsep{\fill}}lr}
% \multirow{2}{*}{\textbf{#1}} & #2 \\
% & #3 \\
% \end{tabular*}\vspace{-6pt}}
\newcommand{\ressubsingleline}[3]{
\begin{tabular*}{\textwidth-5mm}{ll@{\extracolsep{\fill}}r}
\textbf{#1} & \quad\textit{#2} & #3 \\
\end{tabular*}}