Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download

📚 The CoCalc Library - books, templates and other resources

Views: 96165
License: OTHER
1
\documentclass[11pt,a4paper, final]{moderncv}
2
3
\usepackage{color}
4
\usepackage{fontspec}
5
\moderncvtheme{classic}
6
7
% the (custom) color which will be used in the cv
8
\definecolor{color1}{RGB}{1, 52, 64}
9
10
% scale the page layout
11
\usepackage[scale=0.75]{geometry}
12
13
% change width of the column with the dates
14
\setlength{\hintscolumnwidth}{2.5cm}
15
16
% required when changing page layout lengths
17
\AtBeginDocument{\recomputelengths}
18
\usepackage{xunicode}
19
\usepackage{xltxtra}
20
\usepackage[utf8]{inputenc}
21
22
% german word break/hyphenation rules
23
\usepackage[ngerman]{babel}
24
25
% insert dummy text (used in the letter)
26
\usepackage{lipsum}
27
28
% used for \begin{comment}...\end{comment}
29
\usepackage{verbatim}
30
31
% use guilllemets in bibliography
32
\usepackage[babel,german=guillemets]{csquotes}
33
34
\usepackage[
35
sorting=none,
36
minbibnames=8,
37
maxbibnames=9,
38
block=space
39
]{biblatex}
40
41
\bibliography{publications}
42
43
44
% get rid of the number-labels ([1], [2], etc.) in front of publications
45
\defbibenvironment{midbib}
46
{\list
47
{}
48
{
49
\setlength{\leftmargin}{0mm}
50
\setlength{\itemindent}{-\leftmargin}
51
\setlength{\itemsep}{\bibitemsep}
52
\setlength{\parsep}{\bibparsep}}
53
}
54
{\endlist}
55
{\item}
56
57
58
% add [DOI] and [PDF] fields at the end of each publication entry
59
\DeclareSourcemap{
60
\maps[datatype=bibtex]{
61
% the bibtex entry 'mydoi' gets mapped to 'usera'
62
\map{
63
\step[fieldsource=mydoi]
64
\step[fieldset=usera, origfieldval]
65
}
66
% the bibtex entry 'mypdf' gets mapped to 'usera'
67
\map{
68
\step[fieldsource=mypdf]
69
\step[fieldset=userb, origfieldval]
70
}
71
}
72
}
73
74
% [DOI] entries in publication
75
\DeclareFieldFormat{usera}{\color{color1}[\href{#1}{\textsc{doi}}]}
76
\AtEveryBibitem{
77
% put [DOI] stuff at the end of a publication entry
78
\csappto{blx@bbx@\thefield{entrytype}}{%
79
\iffieldundef{usera}{
80
% this gets invoked, once nothing is supplied
81
% via the mypdf or mydoi value.
82
% you could e.g. display a default thing here.
83
}{\space\printfield{usera}}}
84
}
85
86
% [PDF] entries in publication
87
\DeclareFieldFormat{userb}{\color{color1}[\href{#1}{\textsc{pdf}}]}
88
89
\AtEveryBibitem{
90
% put [DOI] stuff at the end of a publication entry
91
\csappto{blx@bbx@\thefield{entrytype}}{\iffieldundef{userb}{}{\printfield{userb}}}
92
}
93
94
\renewcommand*{\mkbibnamegiven}[1]{%
95
\ifitemannotation{highlight}
96
{\textbf{#1}}
97
{#1}}
98
99
\renewcommand*{\mkbibnamefamily}[1]{%
100
\ifitemannotation{highlight}
101
{\textbf{#1}}
102
{#1}
103
}
104
105
106
% Minion Pro is used as the main font, if you don't
107
% have it installed uncomment this line or choose another pretty font
108
\setmainfont[Numbers=OldStyle]{Minion Pro}
109
110
% the moderncv package will populate a lot of the pdf meta-information.
111
% this can be used to change some of these infos.
112
\AfterPreamble{\hypersetup{
113
pdfcreator={XeLaTeX},
114
pdftitle={Fictional CV of Isaac Asimov}
115
}}
116
117
% for the icons (telephone, globe). i found the icons provided by the
118
% fontawesome package prettier than the standard moderncv icons.
119
\usepackage{fontawesome}
120
121
% personal data
122
\firstname{Isaac}
123
\familyname{Asimov}
124
\address{Random St. 21}{9873 New York}
125
126
% i use the extrainfo command for additional information, since i
127
% want to use custom icons and have finer control over spacing.
128
\extrainfo{
129
\faPhone\hspace{0.3em}+49 137 3717321\\
130
{\small\faEnvelope}\hspace{0.3em}isaac@asimov.com\\
131
\faGlobe\hspace{0.3em}http://isaac.asimov.com
132
}
133
134
% picture, resized to a height of 84pt
135
\photo[84pt]{picture/photo}
136
137
% spacing before (sub)sections
138
\newcommand{\spacesection}{\vspace{0.4cm}}
139
\newcommand{\spacesubsection}{\vspace{0.2cm}}
140
141
142
%===========================
143
\begin{document}
144
145
\maketitle
146
147
\section{Personal Data}
148
\cvline{Name}{Isaac Asimov}
149
\cvline{Geburtsdatum}{20.12.1919}
150
\cvline{Geburtsort}{Petrovichi, Russia}
151
152
\spacesection
153
\section{Education}
154
\cventry{\textsc{1948}}{Ph.D. Chemistry}{University Extension}{New York}{\emph{United States}}{}
155
\cventry{\textsc{1939--1941}}{M.Sc. Chemistry}{University Extension}{New York}{\emph{United States}}{}
156
\cventry{\textsc{1935--1939}}{B.Sc. Chemistry}{University Extension}{New York}{\emph{United States}}{}
157
\cventry{\textsc{1930--1935}}{High School}{Boys High School}{Brooklyn}{\emph{United States}}{}
158
159
\spacesection
160
\section{Experience}
161
\subsection{Academic Services}
162
\cventry{\textsc{1958--present}}{Advisor}{Boston University School of Medicine}{}{}{
163
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus
164
elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
165
}
166
\cventry{\textsc{1951--1958}}{Advisor}{Boston University School of Medicine}{}{}{
167
Pellentesque cursus luctus mauris. Nulla malesuada porttitor diam.
168
Donec felis erat, congue non, volutpat at, tincidunt tristique, libero.
169
}
170
171
\spacesubsection
172
\subsection{Industry Work Experience}
173
\cventry{\textsc{1958--present}}{Advisor}{Boston University School of Medicine}{}{}{
174
Vivamus viverra fermentum felis. Donec nonummy pellentesque ante.
175
Phasellus adipiscing semper elit. Proin fermentum massa ac quam.
176
}
177
178
\newpage
179
\spacesection
180
\section{Expertise}
181
\subsection{Chemistry}
182
\cvcomputer{Vitae}{Adipiscing, Vitae, Felis}
183
{Placerat}{Vitae, Adipiscing, Felis}
184
\cvcomputer{Consectetuer}{Felis, Adipiscing, Vitae}
185
{Donec}{Felis, Erat, Congue non}
186
187
\spacesubsection
188
\subsection{Computer Science}
189
\cvcomputer{Lugla}{Adipiscing, Vitae, Felis}
190
{Tincident}{Tristique, Libero}
191
\cvcomputer{Eleifend}{Morbi blandit, Ligula}
192
{Accumsan}{Nam ipsum, suscipit}
193
194
\spacesection
195
\section{Interests}
196
\cvline{Adipiscing}{
197
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus
198
elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
199
}
200
\cvline{Vestibulum}{
201
Maecenas lacinia. Nam ipsum ligula, eleifend at, accumsan nec, suscipit a,
202
ipsum. Morbi blandit ligula.
203
}
204
205
206
\spacesection
207
\section{Miscellaneous}
208
\cventry{\textsc{1958--1963}}{Adipiscing Elit}{New York}{}{}{
209
Vivamus viverra fermentum felis. Donec nonummy pellentesque ante. Phasellus
210
adipiscing semper elit. Pellentesque cursus luctus mauris.
211
}
212
213
214
\spacesection
215
\section{Publications}
216
{\color{color1}\textsc{Acamdemic Writings}}
217
218
\nocite{*}
219
\printbibliography[heading=none, env=midbib, keyword=academic]
220
221
\ \\
222
223
{\color{color1}\textsc{Fictional Writings}}
224
\printbibliography[heading=none, env=midbib, keyword=fiction]
225
226
227
228
%=============================
229
% this part is a simple cover letter
230
\clearpage
231
232
\recipient{Human Resources}{Some Company Ltd.\\Some Street 123\\12345 Some City}
233
\date{\today}
234
\opening{Dear Sir or Madam,}
235
\closing{Sincerely yours,}
236
\enclosure[Attached]{curriculum vit\ae{}}
237
238
\makelettertitle
239
240
\lipsum[1-3]
241
242
\makeletterclosing
243
244
245
\end{document}
246
247