-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpreamble.tex
145 lines (119 loc) · 5.59 KB
/
preamble.tex
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
143
144
145
%!TEX root = todd-cv.tex
%
% This is the preamble to all versions of the CV.
%
%-----------------------------------------------------------------------------
% Conditional formatting by resume type -- all false by default.
%-----------------------------------------------------------------------------
\usepackage{etoolbox}
\newtoggle{default} \togglefalse{default}
\newtoggle{grant} \togglefalse{grant}
%-----------------------------------------------------------------------------
% moderncv Setup
%-----------------------------------------------------------------------------
\moderncvstyle{classic} % options: 'casual', 'classic', 'oldstyle', 'banking'
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
% to set the default font; use '\sfdefault' for the default sans serif
% font, '\rmdefault' for the default roman one, or any tex font name
\renewcommand{\familydefault}{\sfdefault}
% uncomment to suppress automatic page numbering for CVs longer than
% one page
%\nopagenumbers{}
%-----------------------------------------------------------------------------
% Geometry and margins.
%-----------------------------------------------------------------------------
\usepackage[scale=0.8,top=1in,bottom=.75in]{geometry}
% if you want to change the width of the column with the dates
\setlength{\hintscolumnwidth}{2.8cm}
% only for the classic theme, - to change width of name placeholder
% (to leave more space for your address details)
%\AtBeginDocument{\setlength{\maketitlenamewidth}{6cm}}
% required when changes are made to page layout lengths
\AtBeginDocument{\recomputelengths}
%-----------------------------------------------------------------------------
% Set up hyperref custom link colors.
%-----------------------------------------------------------------------------
\usepackage{hyperref}
\usepackage{xcolor} % Use xcolor so I can steal colors from moderncv
\colorlet{mylinkcolor}{color1!80!black} % Links are slightly darker than color1
\hypersetup{
colorlinks=true,%
citecolor=black,%
filecolor=black,%
linkcolor=mylinkcolor,%
urlcolor=mylinkcolor,%
pdfborder=0 0 0%
}
\urlstyle{sf} % Make URLs match rest of text.
%-----------------------------------------------------------------------------
% Personal data.
%-----------------------------------------------------------------------------
\firstname{Todd}
\familyname{Gamblin}
\title{\normalsize
Computer Scientist,
% Computer Science Group,
Advanced Technology Office, Livermore Computing\newline
% Computation Directorate\newline
Lawrence Livermore National Laboratory (LLNL)
} % optional
\address{P.O. Box 808, L-557}{Livermore, CA, 94551} % optional
%\phone{919.360.8283} % optional
\phone{925-422-9319} % optional
%\fax{fax (optional)} % optional
\email{tgamblin@llnl.gov} % optional
\extrainfo{\href{https://people.llnl.gov/gamblin2}{\url{https://people.llnl.gov/gamblin2}}}
%\extrainfo{\href{https://tgamblin.github.io}{\url{https://tgamblin.github.io}}}
%\quote{Some quote (optional)} % optional
% optional, '64pt' is the height the picture must be resized to and
% 'picture' is the name of the picture file
%\photo[64pt]{picture}
%-----------------------------------------------------------------------------
% Custom commands.
%-----------------------------------------------------------------------------
% command and color used in this document, independently from moderncv
\definecolor{see}{rgb}{0.5,0.5,0.5}% for web links
\newcommand{\see}[1]{\hfill{\itshape\color{see}\footnotesize{}see #1}}
% Line break if allowed by environment, otherwise comma
\newcommand{\br}{\ifinner, \else\\\fi}
% Link to github projects
\newcommand{\github}[1]{\href{https://github.com/LLNL/#1}{#1}}
%-----------------------------------------------------------------------------
% Bibliography Customizations.
%-----------------------------------------------------------------------------
% Put labels next to best posters, based on bibliography order.
% NOTE: this is a little nasty; numbers need to be updated every time the pubs change.
\makeatletter
% Redefine \bibitem so that it makes the key available to \bibliographyitemlabel as \mykey
\def\@bibitem#1{%
\def\mykey{#1}%
\item\if@filesw\immediate\write\@auxout {\string\bibcite{#1}%
{\the\value{\@listctr}}}\fi\ignorespaces}
% include notes on citations, such as best paper/poster awards
\input{cite-notes}
\makeatother
% Bibliography section formatting
\newlength{\bibliographysectionspacing} % Spacing before all sections but the first
\setlength{\bibliographysectionspacing}{.15in}
\newcommand{\bibsectiontitleformat}[1]{#1} % Additional formatting for each section title
% Multiple Bibliographies and their titles.
\usepackage{multibib}
% Custom cventry formatting
\let\oldcventry\cventry
\renewcommand{\cventry}[6]%
{\oldcventry{#1}{#2}{\color{mylinkcolor}{#3}}{#4}{#5}{#6}}
\newcommand{\paperSecTitle}
{\bibsectiontitleformat{Peer Reviewed Conference \& Journal Papers}}
\newcommand{\workshopSecTitle}
{\bibsectiontitleformat{Workshop Papers \& Technical Reports}}
\newcommand{\bookSecTitle}
{\bibsectiontitleformat{Special Issues, Book Chapters, Other Articles}}
\newcommand{\phdSecTitle}
{\bibsectiontitleformat{Ph.D. Dissertation}}
\newcommand{\posterSecTitle}
{\bibsectiontitleformat{Posters \& Presentations}}
\newcommand{\tutorialSecTitle}
{\bibsectiontitleformat{Tutorials}}
\newcites{Paper,Workshop,Book,PhD,Poster,Tutorial}{
\paperSecTitle,\workshopSecTitle,\bookSecTitle,\phdSecTitle,\posterSecTitle,\tutorialSecTitle}