📚 The CoCalc Library - books, templates and other resources
License: OTHER
\documentclass[11pt,a4paper, final]{moderncv}12\usepackage{color}3\usepackage{fontspec}4\moderncvtheme{classic}56% the (custom) color which will be used in the cv7\definecolor{color1}{RGB}{1, 52, 64}89% scale the page layout10\usepackage[scale=0.75]{geometry}1112% change width of the column with the dates13\setlength{\hintscolumnwidth}{2.5cm}1415% required when changing page layout lengths16\AtBeginDocument{\recomputelengths}17\usepackage{xunicode}18\usepackage{xltxtra}19\usepackage[utf8]{inputenc}2021% german word break/hyphenation rules22\usepackage[ngerman]{babel}2324% insert dummy text (used in the letter)25\usepackage{lipsum}2627% used for \begin{comment}...\end{comment}28\usepackage{verbatim}2930% use guilllemets in bibliography31\usepackage[babel,german=guillemets]{csquotes}3233\usepackage[34sorting=none,35minbibnames=8,36maxbibnames=9,37block=space38]{biblatex}3940\bibliography{publications}414243% get rid of the number-labels ([1], [2], etc.) in front of publications44\defbibenvironment{midbib}45{\list46{}47{48\setlength{\leftmargin}{0mm}49\setlength{\itemindent}{-\leftmargin}50\setlength{\itemsep}{\bibitemsep}51\setlength{\parsep}{\bibparsep}}52}53{\endlist}54{\item}555657% add [DOI] and [PDF] fields at the end of each publication entry58\DeclareSourcemap{59\maps[datatype=bibtex]{60% the bibtex entry 'mydoi' gets mapped to 'usera'61\map{62\step[fieldsource=mydoi]63\step[fieldset=usera, origfieldval]64}65% the bibtex entry 'mypdf' gets mapped to 'usera'66\map{67\step[fieldsource=mypdf]68\step[fieldset=userb, origfieldval]69}70}71}7273% [DOI] entries in publication74\DeclareFieldFormat{usera}{\color{color1}[\href{#1}{\textsc{doi}}]}75\AtEveryBibitem{76% put [DOI] stuff at the end of a publication entry77\csappto{blx@bbx@\thefield{entrytype}}{%78\iffieldundef{usera}{79% this gets invoked, once nothing is supplied80% via the mypdf or mydoi value.81% you could e.g. display a default thing here.82}{\space\printfield{usera}}}83}8485% [PDF] entries in publication86\DeclareFieldFormat{userb}{\color{color1}[\href{#1}{\textsc{pdf}}]}8788\AtEveryBibitem{89% put [DOI] stuff at the end of a publication entry90\csappto{blx@bbx@\thefield{entrytype}}{\iffieldundef{userb}{}{\printfield{userb}}}91}9293\renewcommand*{\mkbibnamegiven}[1]{%94\ifitemannotation{highlight}95{\textbf{#1}}96{#1}}9798\renewcommand*{\mkbibnamefamily}[1]{%99\ifitemannotation{highlight}100{\textbf{#1}}101{#1}102}103104105% Minion Pro is used as the main font, if you don't106% have it installed uncomment this line or choose another pretty font107\setmainfont[Numbers=OldStyle]{Minion Pro}108109% the moderncv package will populate a lot of the pdf meta-information.110% this can be used to change some of these infos.111\AfterPreamble{\hypersetup{112pdfcreator={XeLaTeX},113pdftitle={Fictional CV of Isaac Asimov}114}}115116% for the icons (telephone, globe). i found the icons provided by the117% fontawesome package prettier than the standard moderncv icons.118\usepackage{fontawesome}119120% personal data121\firstname{Isaac}122\familyname{Asimov}123\address{Random St. 21}{9873 New York}124125% i use the extrainfo command for additional information, since i126% want to use custom icons and have finer control over spacing.127\extrainfo{128\faPhone\hspace{0.3em}+49 137 3717321\\129{\small\faEnvelope}\hspace{0.3em}isaac@asimov.com\\130\faGlobe\hspace{0.3em}http://isaac.asimov.com131}132133% picture, resized to a height of 84pt134\photo[84pt]{picture/photo}135136% spacing before (sub)sections137\newcommand{\spacesection}{\vspace{0.4cm}}138\newcommand{\spacesubsection}{\vspace{0.2cm}}139140141%===========================142\begin{document}143144\maketitle145146\section{Personal Data}147\cvline{Name}{Isaac Asimov}148\cvline{Geburtsdatum}{20.12.1919}149\cvline{Geburtsort}{Petrovichi, Russia}150151\spacesection152\section{Education}153\cventry{\textsc{1948}}{Ph.D. Chemistry}{University Extension}{New York}{\emph{United States}}{}154\cventry{\textsc{1939--1941}}{M.Sc. Chemistry}{University Extension}{New York}{\emph{United States}}{}155\cventry{\textsc{1935--1939}}{B.Sc. Chemistry}{University Extension}{New York}{\emph{United States}}{}156\cventry{\textsc{1930--1935}}{High School}{Boys High School}{Brooklyn}{\emph{United States}}{}157158\spacesection159\section{Experience}160\subsection{Academic Services}161\cventry{\textsc{1958--present}}{Advisor}{Boston University School of Medicine}{}{}{162Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus163elit, vestibulum ut, placerat ac, adipiscing vitae, felis.164}165\cventry{\textsc{1951--1958}}{Advisor}{Boston University School of Medicine}{}{}{166Pellentesque cursus luctus mauris. Nulla malesuada porttitor diam.167Donec felis erat, congue non, volutpat at, tincidunt tristique, libero.168}169170\spacesubsection171\subsection{Industry Work Experience}172\cventry{\textsc{1958--present}}{Advisor}{Boston University School of Medicine}{}{}{173Vivamus viverra fermentum felis. Donec nonummy pellentesque ante.174Phasellus adipiscing semper elit. Proin fermentum massa ac quam.175}176177\newpage178\spacesection179\section{Expertise}180\subsection{Chemistry}181\cvcomputer{Vitae}{Adipiscing, Vitae, Felis}182{Placerat}{Vitae, Adipiscing, Felis}183\cvcomputer{Consectetuer}{Felis, Adipiscing, Vitae}184{Donec}{Felis, Erat, Congue non}185186\spacesubsection187\subsection{Computer Science}188\cvcomputer{Lugla}{Adipiscing, Vitae, Felis}189{Tincident}{Tristique, Libero}190\cvcomputer{Eleifend}{Morbi blandit, Ligula}191{Accumsan}{Nam ipsum, suscipit}192193\spacesection194\section{Interests}195\cvline{Adipiscing}{196Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus197elit, vestibulum ut, placerat ac, adipiscing vitae, felis.198}199\cvline{Vestibulum}{200Maecenas lacinia. Nam ipsum ligula, eleifend at, accumsan nec, suscipit a,201ipsum. Morbi blandit ligula.202}203204205\spacesection206\section{Miscellaneous}207\cventry{\textsc{1958--1963}}{Adipiscing Elit}{New York}{}{}{208Vivamus viverra fermentum felis. Donec nonummy pellentesque ante. Phasellus209adipiscing semper elit. Pellentesque cursus luctus mauris.210}211212213\spacesection214\section{Publications}215{\color{color1}\textsc{Acamdemic Writings}}216217\nocite{*}218\printbibliography[heading=none, env=midbib, keyword=academic]219220\ \\221222{\color{color1}\textsc{Fictional Writings}}223\printbibliography[heading=none, env=midbib, keyword=fiction]224225226227%=============================228% this part is a simple cover letter229\clearpage230231\recipient{Human Resources}{Some Company Ltd.\\Some Street 123\\12345 Some City}232\date{\today}233\opening{Dear Sir or Madam,}234\closing{Sincerely yours,}235\enclosure[Attached]{curriculum vit\ae{}}236237\makelettertitle238239\lipsum[1-3]240241\makeletterclosing242243244\end{document}245246247