-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcv.cls
125 lines (101 loc) · 3.04 KB
/
cv.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
\ProvidesClass{cv}
\LoadClass[11pt]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PACKAGES AND PREAMBLE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set margins to 1 inch (standard for word docs)
\usepackage[margin=1in]{geometry}
\usepackage{datetime} % Set revised date to specific format
\usepackage{fancyhdr} % Special page numbering
\usepackage{hanging} % Allow for hanging paragraphs
\usepackage{titlesec} % Section font sizing
\usepackage{etaremune} % Allow for reverse numbering of publications
\usepackage{hyperref} % Allow links
\usepackage{breakurl} % Line break possible for links
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\usepackage[symbol]{footmisc} % Use symbols in the footnotes instead of numbers
%----------------------------------------------------------------------------------------
% Page numbers and headers
%----------------------------------------------------------------------------------------
% Allow alternative numbering on pages
\pagestyle{fancy}
% Remove default page numbers
\fancyhf{}
% Remove header decorative line
\renewcommand{\headrulewidth}{0pt}
% Use this format for revised date
\mdyyyydate
% Header with page number and date revised
\rhead{
McKee page \thepage\\
\textit{Revised \today}\\
\vspace{-3mm}
}
% First section name and head
\newcommand{\name}[1]{%
\textbf{
\centerline{CURRICULUM VITAE}
\centerline{#1}
}
}
% Second section name and head
\newcommand{\parttwo}[1]{%
\textbf{
\centerline{PART II}
}
}
% Third section name and head
\newcommand{\partthree}[1]{%
\textbf{
\centerline{PART III}
}
}
%----------------------------------------------------------------------------------------
% Paragraph formatting
%----------------------------------------------------------------------------------------
% No indent of additional "paragraphs"
\setlength\parindent{0pt}
% Set line spacing
\setlength{\parskip}{0.5em}
% Size for sections
\titleformat{\section}
{\normalfont\fontsize{12pt}{12pt}\bfseries}{\thesection}{1em}{}
% Size for subsections
\titleformat{\subsection}
{\normalfont\fontsize{12pt}{12pt}\itshape\bfseries}{\thesubsection}{1em}{}
% Size for subsubsections
\titleformat{\subsubsection}
{\normalfont\fontsize{12pt}{12pt}\itshape}{\thesubsubsection}{1em}{}
% Formatting of links
\hypersetup{
colorlinks=true,
urlcolor=blue,
breaklinks=true
}
\urlstyle{same}
% No indentation of numbered publication list
\newenvironment{pubenum}
{\renewcommand\labelenumi{[\theenumi]}%
\etaremune[
topsep=0pt,
itemsep=1em,
parsep=0pt,
partopsep=0pt,
labelwidth=0pt,
labelsep=5.475pt,
itemindent=5.475pt,
leftmargin=0pt,
]\renewcommand{\makelabel}[1]{##1\hss}%
}
{\endetaremune}
%----------------------------------------------------------------------------------------
% Helpful functions
%----------------------------------------------------------------------------------------
% Add email with link
\newcommand{\emailcontact}[1]{%
\href{mailto:#1}{#1}
}
% Add DOI with link
\newcommand{\doi}[1]{%
DOI: \href{https://doi.org/#1}{#1}
}