| 1 |
%% moderncv_userguide.tex as shipped with 2026-01-31 v2.5.1 modern curriculum vitae and letter document class (moderncv) |
| 2 |
%% 2021 David Seus ([email protected]), 2021-2026 moderncv maintainers (github.com/moderncv). |
| 3 |
% |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License version 1.3c, |
| 6 |
% available at http://www.latex-project.org/lppl/. |
| 7 |
|
| 8 |
\documentclass[a4paper, 11pt]{article} |
| 9 |
|
| 10 |
\title{% |
| 11 |
\texttt{moderncv} User Guide\\ |
| 12 |
{\small Package v2.5.1}% |
| 13 |
} |
| 14 |
% Cristina Sambo, |
| 15 |
\author{% |
| 16 |
Package by Xavier Danaux\\ |
| 17 |
and\\ |
| 18 |
moderncv community\\ |
| 19 |
{\small Documentation by David Seus}% |
| 20 |
} |
| 21 |
\date{2026-01-31} |
| 22 |
|
| 23 |
% Language and encoding options |
| 24 |
\usepackage[english]{babel} |
| 25 |
\usepackage{ifxetex, ifluatex} |
| 26 |
\newif\ifxetexorluatex |
| 27 |
\ifxetex |
| 28 |
\xetexorluatextrue |
| 29 |
\else |
| 30 |
\ifluatex |
| 31 |
\xetexorluatextrue |
| 32 |
\else |
| 33 |
\xetexorluatexfalse |
| 34 |
\fi |
| 35 |
\fi |
| 36 |
|
| 37 |
% PDFLaTeX or LUALaTeX/XeLaTeX |
| 38 |
\ifxetexorluatex |
| 39 |
% \usepackage{luatextra} |
| 40 |
% \usepackage{lualatex-math} |
| 41 |
\usepackage{shellesc} % Fix a bug for lualatex shellescape |
| 42 |
% \usepackage{unicode-math} |
| 43 |
% \setmathfont{xits-math.otf} |
| 44 |
\else |
| 45 |
\usepackage[utf8]{inputenx} % Uncomment if using pdflatex, comment if using lualatex |
| 46 |
\fi |
| 47 |
\PassOptionsToPackage{T1}{fontenc} % T2A for Cyrillic |
| 48 |
\usepackage[T1]{fontenc} |
| 49 |
|
| 50 |
% Font options |
| 51 |
\usepackage{txfonts} |
| 52 |
\usepackage{marvosym} |
| 53 |
\usepackage{pifont} |
| 54 |
|
| 55 |
% Margins, spacing and page layout |
| 56 |
\usepackage[pdftex, colorlinks=true]{hyperref} % hyperref must be loaded before geometry |
| 57 |
\usepackage[pdftex, marginparwidth=50pt]{geometry} |
| 58 |
\geometry{top=2.5cm, bottom=3cm} |
| 59 |
\usepackage{parskip} % Replace paragraph indentation with vertical spacing |
| 60 |
\frenchspacing % Suppress additional space after a full stop |
| 61 |
\renewcommand{\arraystretch}{1.1} |
| 62 |
|
| 63 |
% Packages |
| 64 |
\usepackage{graphicx} |
| 65 |
\usepackage{xcolor} |
| 66 |
\usepackage[labelfont=sl, font=small, width=0.9\textwidth]{caption} |
| 67 |
\usepackage{marvosym} |
| 68 |
\usepackage{latexsym} |
| 69 |
\usepackage{url} |
| 70 |
\usepackage{scrhack} % Fix warnings when using KOMA with listings package |
| 71 |
\usepackage{xspace} % Fix spacing after macros |
| 72 |
\usepackage{mparhack} % Fix marginpar |
| 73 |
\usepackage{microtype} |
| 74 |
\usepackage{multicol} % Multicolumn text for long lists |
| 75 |
|
| 76 |
% Code listings |
| 77 |
\usepackage{listings} |
| 78 |
% \lstset{emph={trueIndex, root}, emphstyle=\color{BlueViolet}}% \underbar} % Special keywords |
| 79 |
\lstset{% |
| 80 |
language=[LaTeX]Tex, % C++, |
| 81 |
morekeywords={PassOptionsToPackage, selectlanguage}, |
| 82 |
keywordstyle=\color{cvblue}, % \bfseries, |
| 83 |
basicstyle=\small\ttfamily, |
| 84 |
% identifierstyle=\color{NavyBlue}, |
| 85 |
commentstyle=\color{gray}\ttfamily, |
| 86 |
stringstyle=\rmfamily, |
| 87 |
numbers=none, % left, |
| 88 |
numberstyle=\scriptsize, % \tiny |
| 89 |
stepnumber=5, |
| 90 |
numbersep=8pt, |
| 91 |
showstringspaces=false, |
| 92 |
breaklines=true, |
| 93 |
% frameround=ftff, |
| 94 |
% frame=single, |
| 95 |
belowcaptionskip=0.75\baselineskip, |
| 96 |
% frame=L, |
| 97 |
emph={ |
| 98 |
cvitem, cventry, cvdoubleentry, cvdoubleitem, cvtripleitem, cvlistitem, cvlistdoubleitem, cvcolumns, moderncvstyle, moderncvcolor, |
| 99 |
cvskill, cvskilllegend, cvskillplainlegend, cvskillhead, cvskillentry, nopagenumbers, |
| 100 |
name, born, address, email, link, social, phone, homepage, extrainfo, photo, quote, section, subsection, setlength, NewDocumentCommand, definecolor, colorlet, cvitemwithcomment, |
| 101 |
recipient, subject, opening, closing, signature, enclosure |
| 102 |
}, |
| 103 |
emphstyle={\color{cvblue}}, |
| 104 |
emph={[2] |
| 105 |
familydefault, sfdefault, rmdefault, inputenc, moderncv, document, bibliographyitemlabel, |
| 106 |
addresssymbol, mobilephonesymbol, fixedphonesymbol, faxphonesymbol, emailsymbol, homepagesymbol, linkedinsocialsymbol, |
| 107 |
xingsocialsymbol, twittersocialsymbol, githubsocialsymbol, gitlabsocialsymbol, |
| 108 |
stackoverflowsocialsymbol, bitbucketsocialsymbol, skypesocialsymbol, orcidsocialsymbol, researchgatesocialsymbol, arxivsocialsymbol, inspiresocialsymbol, |
| 109 |
researcheridsocialsymbol, telegramsocialsymbol, whatsappsocialsymbol, signalsocialsymbol, matrixsocialsymbol, googlescholarsocialsymbol, cvstretchability, bornsymbol |
| 110 |
}, |
| 111 |
emphstyle={[2]\color{cvblue!60!cvgrey}\bfseries}, |
| 112 |
literate={{é}{{\'e}}1}, |
| 113 |
} |
| 114 |
|
| 115 |
% Hyperlinks |
| 116 |
\usepackage{hyperref} |
| 117 |
\hypersetup{ |
| 118 |
unicode=true, |
| 119 |
% draft, % Draft mode for printing (see below) |
| 120 |
colorlinks=true, linktocpage=true, pdfstartpage=3, pdfstartview=FitV, |
| 121 |
% colorlinks=false, linktocpage=false, pdfstartpage=3, pdfstartview=FitV, pdfborder={0 0 0}, % Black links (e.g., for printing) |
| 122 |
breaklinks=true, pageanchor=true, |
| 123 |
pdfpagemode=UseNone, |
| 124 |
% pdfpagemode=UseOutlines, |
| 125 |
plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1, |
| 126 |
hypertexnames=true, pdfhighlight=/O, % nesting=true, frenchlinks, |
| 127 |
urlcolor=cvblue, linkcolor=cvblue, citecolor=cvblue, % pagecolor=RoyalBlue, |
| 128 |
% urlcolor=Black, linkcolor=Black, citecolor=Black, % pagecolor=Black, |
| 129 |
% pdfborder={0 0 1}, % Width of PDF link border 0 0 1, 0 0 0 = colorlinks |
| 130 |
% linkbordercolor=gray!15, |
| 131 |
% citebordercolor=green!15, |
| 132 |
} |
| 133 |
|
| 134 |
% Colors |
| 135 |
\definecolor{cvblue}{rgb}{0.22, 0.45, 0.70} |
| 136 |
\definecolor{cvgreen}{rgb}{0.35, 0.70, 0.30} |
| 137 |
\definecolor{cvred}{rgb}{0.95, 0.20, 0.20} |
| 138 |
\definecolor{cvorange}{rgb}{0.95, 0.55, 0.15} |
| 139 |
\definecolor{cvgrey}{rgb}{0.75, 0.75, 0.75} |
| 140 |
\definecolor{cvburgundy}{rgb}{0.596078, 0, 0} % burgundy: 139/255 (0.545098) or 152/255 (0.596078) |
| 141 |
\definecolor{cvgrey}{rgb}{0.55, 0.55, 0.55} |
| 142 |
\definecolor{cvpurple}{rgb}{0.50, 0.33, 0.80} |
| 143 |
|
| 144 |
% Macros |
| 145 |
\newcommand{\todo}[1]{\marginpar{\raggedright \textcolor{red}{[\textbf{TODO:} #1]}}} |
| 146 |
\newcommand{\todox}[1]{\textcolor{red}{[\textbf{TODO:} #1]}} |
| 147 |
\newcommand{\note}{\paragraph{Note.}} |
| 148 |
\newcommand{\code}[1]{\lstinline!#1!} |
| 149 |
\newcommand{\moderncv}{\code{moderncv}} |
| 150 |
\newcommand{\Moderncv}{\moderncv~} |
| 151 |
\newcommand{\github}{GitHub} |
| 152 |
\newcommand{\Github}{\github~} |
| 153 |
\newcommand{\ctan}{CTAN} |
| 154 |
\newcommand{\Ctan}{\ctan~} |
| 155 |
\newcommand{\cvtemplate}{\code{template.tex}} |
| 156 |
\newcommand{\Cvtemplate}{\cvtemplate~} |
| 157 |
\newcommand{\Latex}{\LaTeX~} |
| 158 |
\newcommand{\biblatex}{BibLaTeX} |
| 159 |
\newcommand{\Biblatex}{\biblatex~} |
| 160 |
\newcommand{\cvdoccolorbox}[1]{{\color{#1}\rule{4ex}{2ex}}} |
| 161 |
\newcommand{\moderncvGithub}{\url{https://github.com/moderncv/moderncv}} |
| 162 |
\newcommand{\moderncvCtan}{\url{https://ctan.org/pkg/moderncv}} |
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
% ================== |
| 169 |
% DOCUMENT BEGINNING |
| 170 |
% ================== |
| 171 |
\begin{document} |
| 172 |
\maketitle |
| 173 |
\begin{abstract} |
| 174 |
\noindent |
| 175 |
The \Moderncv package provides a document class for typesetting modern curriculum vit\ae{} and cover letters in various styles. |
| 176 |
Five predefined styles are available, each of which can be adjusted through various options for headings, footers and colors. |
| 177 |
It is fairly customizable, allowing the user to adjust the look and feel of each style to their liking. |
| 178 |
Several macros allow the user to add content to the CV and format it in a consistent way. |
| 179 |
A letter of motivation consistent with the style is part of the template as well. |
| 180 |
\end{abstract} |
| 181 |
\tableofcontents |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
\section{Getting started} |
| 186 |
\subsection{How to read this manual} |
| 187 |
This manual is organized as follows. |
| 188 |
The current section explains on how to get started with the \Moderncv package, i.e. how to install required packages. |
| 189 |
% \emph{Note that it is assumed that you know how to install \Latex packages in case some are missing.} |
| 190 |
Section \ref{section:moderncvTemplate} explains how to work with the \Moderncv template file step by step. |
| 191 |
Section \ref{section:customization} details the customizations that the user can make: the different styles, their options, colors and tips and tricks. |
| 192 |
Section \ref{section:implementationDetails} details the packages that \Moderncv uses, known problems and possible solutions to those problems. |
| 193 |
|
| 194 |
\subsection{Installation instructions} |
| 195 |
If the \Moderncv package does not ship with your \Latex distribution or if the installed version is too old, grab the \Moderncv code from \Ctan or \github: |
| 196 |
|
| 197 |
\begin{tabular}{l} |
| 198 |
\moderncvCtan \\% [.5ex] |
| 199 |
\moderncvGithub |
| 200 |
\end{tabular} |
| 201 |
|
| 202 |
\note Depending on your \Latex distribution, you may have to install some additional packages. |
| 203 |
Section \ref{section:implementationDetails:requiredPackages} lists all the packages that \Moderncv requires to be installed on your system. |
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
\section{The \texttt{moderncv} template step by step} |
| 208 |
This section is a quick reference to the \Moderncv package and should contain enough information to typeset a first working CV. |
| 209 |
\label{section:moderncvTemplate} |
| 210 |
The easiest way to get started with \Moderncv is to use the template that comes with the package. |
| 211 |
If \Moderncv is part of your \Latex distribution, search for the folder \Moderncv on your system, which should contain all the files for the package. |
| 212 |
In this folder, there should be a file called \cvtemplate. |
| 213 |
If you downloaded the package from \Github or \ctan, look for \Cvtemplate in the folder of the newly downloaded (and possibly extracted) package. |
| 214 |
|
| 215 |
\note If you downloaded \Moderncv from \Github or \Ctan and moved \Cvtemplate to another folder, make sure to adjust the \code{TEXINPUTS} variable to find the newly downloaded package. |
| 216 |
Otherwise, either the package version provided by your \Latex distribution gets used or \Latex throws an error if there is no other version installed. |
| 217 |
|
| 218 |
Test your setup by compiling \Cvtemplate and looking at the result. |
| 219 |
|
| 220 |
\note The \Moderncv package should compile with \code{pdflatex}, \code{lualatex} and \code{xelatex}. |
| 221 |
However, not all icons are available when using \code{pdflatex}, so using either \code{lualatex} or \code{xelatex} \emph{is highly recommended.} |
| 222 |
|
| 223 |
\subsection{Basic setup} |
| 224 |
A document using the \Moderncv document class is set up like any other document class. |
| 225 |
We will go through the template step by step. |
| 226 |
|
| 227 |
\subsubsection*{Configuring document class options} |
| 228 |
The \Moderncv document class is loaded as per usual, by |
| 229 |
\begin{lstlisting} |
| 230 |
\documentclass[<options>]{moderncv} |
| 231 |
\end{lstlisting} |
| 232 |
where at most one value for each option can be passed to the document class: |
| 233 |
|
| 234 |
\begin{tabular}{r@{\hspace{2ex}}p{0.55\textwidth}} |
| 235 |
\textbf{\code{paper}:} & \code{a4paper} (default), \code{a5paper}, \code{b5paper}, \code{letterpaper}, |
| 236 |
\code{legalpaper}, \code{executivepaper}, \code{landscape} \\ |
| 237 |
\textbf{\code{font family}:} & \code{sans}, \code{roman} \\ |
| 238 |
\textbf{\code{font size}:} & \code{10pt}, \code{11pt} (default), \code{12pt} \\ |
| 239 |
\textbf{\code{draft/final}:} & \code{draft}, \code{final} (default) |
| 240 |
\end{tabular} |
| 241 |
|
| 242 |
\subsubsection*{Choosing a \texttt{moderncv} style and color} |
| 243 |
Choose a \Moderncv style and color by adjusting the commands |
| 244 |
\begin{lstlisting} |
| 245 |
\moderncvstyle{<style>} |
| 246 |
\moderncvcolor{<color>} |
| 247 |
\end{lstlisting} |
| 248 |
As explained in \cvtemplate, the possible values are |
| 249 |
|
| 250 |
\begin{tabular}{r@{\hspace{2ex}}p{0.65\textwidth}} |
| 251 |
\textbf{\code{style}:} & \code{casual} (default), \code{classic}, \code{banking}, \code{oldstyle}, |
| 252 |
\code{fancy} \\ |
| 253 |
\textbf{\code{color}:} & \code{black} \cvdoccolorbox{black}, \code{blue} \cvdoccolorbox{cvblue} (default), \code{burgundy} \cvdoccolorbox{cvburgundy}, \code{green} \cvdoccolorbox{cvgreen}, \code{grey} \cvdoccolorbox{cvgrey}, \code{orange} \cvdoccolorbox{cvorange}, \code{purple} \cvdoccolorbox{cvpurple}, \code{red} \cvdoccolorbox{cvred} |
| 254 |
\end{tabular} |
| 255 |
|
| 256 |
\note Some of the styles take additional options to fine-tune their appearance. |
| 257 |
To keep this overview short, these options will be described in section \ref{section:customization:stylesAndOptions}. |
| 258 |
|
| 259 |
\subsubsection*{Font family and page numbering} |
| 260 |
The default font family is set by the line \code{\\renewcommand\{\\familydefault\}\{\\sfdefault\}} in \cvtemplate. |
| 261 |
Use \code{\\sfdefault} for the default sans-serif font, \code{\\rmdefault} for the default roman font, and likewise for any \TeX{} font name. |
| 262 |
The general syntax is |
| 263 |
\begin{lstlisting} |
| 264 |
\renewcommand{\familydefault}{<fontfamily>} |
| 265 |
% \nopagenumbers{} |
| 266 |
\end{lstlisting} |
| 267 |
Uncommenting \code{\%\\nopagenumbers\{\}} suppresses automatic page numbering for CVs longer than one page. |
| 268 |
|
| 269 |
\subsubsection*{Adjusting input encoding} |
| 270 |
If you are not using \code{xelatex} or \code{lualatex}, which both use \code{utf8} encoding by default, uncomment the \code{\\usepackage[utf8]\{inputenc\}} import and change the encoding as needed. |
| 271 |
|
| 272 |
\subsubsection{Language-specific setup} |
| 273 |
The \code{babel} package can be loaded in the preamble of your CV. |
| 274 |
|
| 275 |
\note \Moderncv doesn't work with \code{babel} in Spanish (see this \href{https://github.com/moderncv/moderncv/issues/103}{GitHub issue}). |
| 276 |
|
| 277 |
For CJK users, uncomment the \code{\\usepackage\{CJKutf8\}} import. |
| 278 |
|
| 279 |
\subsection{Personal data} |
| 280 |
Edit the personal data section to reflect your personal information. |
| 281 |
This data will appear in the header of the first page of the CV and/or in the footer of every page, as well as on the cover letter. |
| 282 |
Most of the commands are optional, so try out what you like and see what you need. |
| 283 |
|
| 284 |
\paragraph{\code{\\name}} |
| 285 |
A command for your name. Takes the given name and surname as arguments. |
| 286 |
\begin{lstlisting} |
| 287 |
\name{<given name>}{<surname>} |
| 288 |
\end{lstlisting} |
| 289 |
|
| 290 |
\paragraph{\code{\\title}} |
| 291 |
A command for a document title. Could be used for a generic CV title, job title, etc. |
| 292 |
\begin{lstlisting} |
| 293 |
\title{<title>} |
| 294 |
\end{lstlisting} |
| 295 |
|
| 296 |
\paragraph{\code{\\born}} |
| 297 |
A command for a birth date. |
| 298 |
\begin{lstlisting} |
| 299 |
\born{<birth date>} |
| 300 |
\end{lstlisting} |
| 301 |
|
| 302 |
\paragraph{\code{\\address}} |
| 303 |
A command for a three-lined street address. |
| 304 |
\begin{lstlisting} |
| 305 |
\address{<street address>}{<city and postcode>}{<country>} |
| 306 |
\end{lstlisting} |
| 307 |
|
| 308 |
\paragraph{\code{\\phone}} |
| 309 |
A command for a phone number. Takes the phone type as an optional argument. |
| 310 |
\begin{lstlisting} |
| 311 |
\phone[<type>]{<phone number>} |
| 312 |
\end{lstlisting} |
| 313 |
The allowed values for \code{<type>} are \code{fax}, \code{fixed} and \code{mobile}. |
| 314 |
|
| 315 |
\paragraph{\code{\\email}} |
| 316 |
A command for an email address. |
| 317 |
\begin{lstlisting} |
| 318 |
\email{<email address>} |
| 319 |
\end{lstlisting} |
| 320 |
|
| 321 |
\paragraph{\code{\\homepage}} |
| 322 |
A command for a personal website. |
| 323 |
\begin{lstlisting} |
| 324 |
\homepage{<web address>} |
| 325 |
\end{lstlisting} |
| 326 |
|
| 327 |
\paragraph{\code{\\social}} |
| 328 |
A command for a social media account. |
| 329 |
Takes the platform as an optional argument. |
| 330 |
\begin{lstlisting} |
| 331 |
\social[<platform>]{<username or handle>} |
| 332 |
\end{lstlisting} |
| 333 |
The following values are supported for \code{<platform>}: |
| 334 |
\begin{itemize} |
| 335 |
\begin{multicols}{4} |
| 336 |
\item \code{arxiv} |
| 337 |
\item \code{battlenet} |
| 338 |
\item \code{bitbucket} |
| 339 |
\item \code{codeberg} |
| 340 |
\item \code{discord} |
| 341 |
\item \code{github} |
| 342 |
\item \code{gitlab} |
| 343 |
\item \code{googlescholar} |
| 344 |
\item \code{inspire} |
| 345 |
\item \code{instagram} |
| 346 |
\item \code{linkedin} |
| 347 |
\item \code{mastodon} |
| 348 |
\item \code{matrix} |
| 349 |
\item \code{orcid} |
| 350 |
\item \code{playstation} |
| 351 |
\item \code{researcherid} |
| 352 |
\item \code{researchgate} |
| 353 |
\item \code{signal} |
| 354 |
\item \code{simplex} |
| 355 |
\item \code{skype} |
| 356 |
\item \code{soundcloud} |
| 357 |
\item \code{stackoverflow} |
| 358 |
\item \code{steam} |
| 359 |
\item \code{telegram} |
| 360 |
\item \code{threema} |
| 361 |
\item \code{tiktok} |
| 362 |
\item \code{twitch} |
| 363 |
\item \code{twitter} |
| 364 |
\item \code{whatsapp} |
| 365 |
\item \code{xbox} |
| 366 |
\item \code{xing} |
| 367 |
\item \code{youtube} |
| 368 |
\end{multicols} |
| 369 |
\end{itemize} |
| 370 |
|
| 371 |
\paragraph{\code{\\extrainfo}} |
| 372 |
A command for any extra information. |
| 373 |
\begin{lstlisting} |
| 374 |
\extrainfo{<extra information>} |
| 375 |
\end{lstlisting} |
| 376 |
|
| 377 |
\paragraph{\code{\\photo}} |
| 378 |
A command for a photo. |
| 379 |
Takes the image file name as a required argument. |
| 380 |
Takes the height of the photo and the thickness of the photo frame as optional arguments. |
| 381 |
\begin{lstlisting} |
| 382 |
\photo[<photo height>][<frame thickness>]{<photo file name>} |
| 383 |
\end{lstlisting} |
| 384 |
|
| 385 |
\paragraph{\code{\\quote}} |
| 386 |
A command for a quote. |
| 387 |
\begin{lstlisting} |
| 388 |
\quote{<quote>} |
| 389 |
\end{lstlisting} |
| 390 |
|
| 391 |
\note{Long names and URLs can break some CVs and cover letters depending on the used style. Manually inserting line breaks for names with \code{\\\\} can help for \texttt{oldstyle} or \texttt{fancy}. Adjusting lengths as described in section \ref{subsection:adjusting:lengths} could help to mitigate issues with long URLs.} |
| 392 |
|
| 393 |
\paragraph{Pictures.} |
| 394 |
For some occasions you may need to include pictures besides the portrait photo. For this task it is helpful to know basic lengths used in \moderncv. For a more detailed description of lengths see section \ref{subsection:adjusting:lengths}. |
| 395 |
For instance, pictures can be included with \code{\\includegraphics}: |
| 396 |
\begin{lstlisting} |
| 397 |
\hspace{\hintscolumnwidth + \separatorcolumnwidth}\includegraphics[<scale>]{<file name picture>} |
| 398 |
\end{lstlisting} |
| 399 |
Adding \code{\\hspace} in units of basic \code{moderncv} lengths will fit them more naturally into the CV or resume. |
| 400 |
|
| 401 |
\paragraph{Bibliography.} |
| 402 |
In case BibTeX is used, the bibliography settings are adjusted in the lines |
| 403 |
\begin{lstlisting} |
| 404 |
% to show numerical labels in the bibliography (default is to show no labels) |
| 405 |
% \renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]} |
| 406 |
% \renewcommand{\refname}{Articles} |
| 407 |
|
| 408 |
% bibliography with multiple entries |
| 409 |
% \usepackage{multibib} |
| 410 |
% \newcites{book, misc}{{Books}, {Others}} |
| 411 |
\end{lstlisting} |
| 412 |
By default, no labels are shown for bibliography entries. |
| 413 |
Uncommenting the line \code{\%\\renewcommand*\{\\bibliographyitemlabel\}\{[\\arabic\{enumiv\}]\}} |
| 414 |
allows one to fine-tune the labels. |
| 415 |
Uncommenting the line \code{\%\\renewcommand\{\\refname\}\{Articles\}} allows one to redefine the bibliography heading string ``Publications'' that is shown by default. |
| 416 |
Finally, adjustments using the \code{multibib} package can be done in the last two lines shown here. |
| 417 |
|
| 418 |
\note \Biblatex is currently not supported. |
| 419 |
|
| 420 |
\subsection{Modifying CV content} |
| 421 |
\subsubsection{Structuring the CV} |
| 422 |
As with any other document style, the CV can be structured into sections and subsections using \code{\\section} and \code{\\subsection}. |
| 423 |
|
| 424 |
The \Moderncv package provides some macros to add content to your CV. |
| 425 |
The easiest way to understand their intended use is to look at how they're used in the template. |
| 426 |
Nonetheless, we list the macros here along with a short description of their intended use. |
| 427 |
|
| 428 |
\subsubsection{General macros} |
| 429 |
|
| 430 |
\paragraph{\code{\\cvitem}} |
| 431 |
A flexible command for a single CV entry. |
| 432 |
Takes the descriptor and body text as required arguments. |
| 433 |
Can be used to list job experiences and similar. |
| 434 |
\begin{lstlisting} |
| 435 |
\cvitem{<descriptor>}{<body>} |
| 436 |
\end{lstlisting} |
| 437 |
|
| 438 |
\paragraph{\code{\\cvdoubleitem}} |
| 439 |
A two-column variation of \code{\\cvitem}. |
| 440 |
Takes four required arguments: the descriptor and body text of the first column and the descriptor and body text of the second column. |
| 441 |
Can be used to enter skills, such as computer skills or language skills, in a two-column fashion. |
| 442 |
\begin{lstlisting} |
| 443 |
\cvdoubleitem{<descriptor 1>}{<body 1>}{<descriptor 2>}{<body 2>} |
| 444 |
\end{lstlisting} |
| 445 |
|
| 446 |
\paragraph{\code{\\cvtripleitem}} |
| 447 |
A three-column variation of \code{\\cvitem}. |
| 448 |
Takes six required arguments: the descriptor and body text of the first column, second and third column. |
| 449 |
Can be used to enter skills, such as computer skills or language skills, in a three-column fashion. |
| 450 |
\begin{lstlisting} |
| 451 |
\cvtripleitem{<descriptor 1>}{<body 1>}{<descriptor 2>}{<body 2>}{<descriptor 3>}{<body 3>} |
| 452 |
\end{lstlisting} |
| 453 |
|
| 454 |
\paragraph{\code{\\cvitemwithcomment}} |
| 455 |
A variation of \code{\\cvitem} with an additional argument for a comment. |
| 456 |
Can be used to enter skills such as computer skills or language skills. |
| 457 |
\begin{lstlisting} |
| 458 |
\cvitemwithcomment{<descriptor>}{<skill level>}{<comment>} |
| 459 |
\end{lstlisting} |
| 460 |
|
| 461 |
\paragraph{\code{\\cventry}} |
| 462 |
A command for entering an education or job experience. |
| 463 |
Takes six required arguments: date(s), degree/job title, educational institution/employer, city, academic grade and description. |
| 464 |
While arguments 3 to 6 aren't optional, they can be left empty. |
| 465 |
If line breaks in argument 6 aren't done properly, a minipage can be used. |
| 466 |
Alternatively, \code{\\newline\{\}} can be used to break lines in argument 6. |
| 467 |
\begin{lstlisting} |
| 468 |
\cventry{<year--year>}{<degree/job title>}{<institution/employer>} |
| 469 |
{<city>}{<grade>}{<description>} |
| 470 |
\end{lstlisting} |
| 471 |
|
| 472 |
\paragraph{\code{\\cvlistitem}} |
| 473 |
A command for a single bullet-list item. |
| 474 |
Very long lines get broken. |
| 475 |
\begin{lstlisting} |
| 476 |
\cvlistitem{<item>} |
| 477 |
\end{lstlisting} |
| 478 |
|
| 479 |
\paragraph{\code{\\cvlistdoubleitem}} |
| 480 |
A two-column variation of \code{\\cvlistitem}. |
| 481 |
\begin{lstlisting} |
| 482 |
\cvlistdoubleitem{<item 1>}{item 2>} |
| 483 |
\end{lstlisting} |
| 484 |
|
| 485 |
\paragraph{\code{\\cvcolumns}} |
| 486 |
An environment typesetting multicolumn \code{\\cvitem}s. |
| 487 |
This can be combined with the \code{itemize} environment. |
| 488 |
\begin{lstlisting} |
| 489 |
\begin{cvcolumns} |
| 490 |
\cvcolumn{<category 1>}{<content>} |
| 491 |
\cvcolumn{<category 2>}{<content>} |
| 492 |
\cvcolumn[<width>]{<content>} |
| 493 |
\end{cvcolumns} |
| 494 |
\end{lstlisting} |
| 495 |
\code{<width>} is a number between 0 and 1 controlling the width of the column. |
| 496 |
|
| 497 |
\subsubsection{Skill matrix macros} |
| 498 |
The skill matrix is a table for displaying skills such as computer skills or project management skills graphically. |
| 499 |
The skill matrix table consists of several elements: |
| 500 |
\begin{itemize} |
| 501 |
\item the graphical representation of the skill on a scale from 0 to 5, |
| 502 |
\item the legend to explain the meaning of the scale, |
| 503 |
\item a header line to explain the meaning of the table columns and |
| 504 |
\item the actual skill entries. |
| 505 |
\end{itemize} |
| 506 |
|
| 507 |
\paragraph{\code{\\cvskill}} |
| 508 |
A command for the graphical representation of a single skill. |
| 509 |
The required argument must be a number from 0 to 5. |
| 510 |
\begin{lstlisting} |
| 511 |
\cvskill{<0-5>} |
| 512 |
\end{lstlisting} |
| 513 |
This command can be used outside of the skill matrix, too. |
| 514 |
|
| 515 |
\paragraph{\code{\\cvskilllegend}} |
| 516 |
A command for a legend for the skill matrix. |
| 517 |
Takes six optional arguments: post-padding width and the descriptions for the five skill levels. |
| 518 |
\begin{lstlisting} |
| 519 |
\cvskilllegend |
| 520 |
\cvskilllegend*[<post-padding>][<level 1>][<level 2>][<level 3>] |
| 521 |
[<level 4>][<level 5>]{<descriptor>} |
| 522 |
\end{lstlisting} |
| 523 |
The command with no arguments inserts the legend in its standard form: without a descriptor or any lines. |
| 524 |
An optional asterisk toggles the inclusion of a dashed line. |
| 525 |
\code{<post-padding>} must be a valid length like \code{1em} or \code{1ex}. |
| 526 |
|
| 527 |
The most general form of this command can be used to translate the legend descriptions into other languages or to add a name descriptor: |
| 528 |
\begin{lstlisting} |
| 529 |
% Example: German translation |
| 530 |
\cvskilllegend[0.2em][Grundkenntnisse] |
| 531 |
[Grundkenntnisse und eigene Erfahrung in Projekten] |
| 532 |
[Umfangreiche Erfahrung in Projekten] |
| 533 |
[Vertiefte Expertenkenntnisse][Experte/Guru]{Legende} |
| 534 |
\end{lstlisting} |
| 535 |
|
| 536 |
\paragraph{\code{\\cvskillplainlegend}} |
| 537 |
A variation of \code{\\cvskilllegend} with the first three skill levels in the first column. |
| 538 |
\begin{lstlisting} |
| 539 |
\cvskillplainlegend |
| 540 |
\cvskillplainlegend*[<post-padding>][<level 1>][<level 2>] |
| 541 |
[<level 3>][<level 4>][<level 5>]{<descriptor>} |
| 542 |
\end{lstlisting} |
| 543 |
|
| 544 |
\paragraph{\code{\\cvskillhead}} |
| 545 |
A command for a header line for the skill matrix. |
| 546 |
Takes five optional arguments: post-padding width, level, skill label, years of experience and a comment. |
| 547 |
\begin{lstlisting} |
| 548 |
\cvskillhead[<post-padding>][<level>][<skill>][<years of experience>][<comment>] |
| 549 |
\end{lstlisting} |
| 550 |
\code{<post-padding>} must be a valid length like \code{1em} or \code{1ex}. |
| 551 |
|
| 552 |
\paragraph{\code{\\cvskillentry}} |
| 553 |
A command for an entry in the skill matrix. |
| 554 |
Takes five required arguments: skill category, skill level (0 to 5), skill name, years of experience and a comment. |
| 555 |
Takes a single optional argument for the post-padding width. |
| 556 |
\begin{lstlisting} |
| 557 |
\cvskillentry*[<post-padding>]{<skill category>}{<0-5>} |
| 558 |
{<skill name>}{<years of experience>}{<comment>} |
| 559 |
\end{lstlisting} |
| 560 |
An optional asterisk toggles the inclusion of a dashed line. |
| 561 |
\code{<post-padding>} must be a valid length like \code{1em} or \code{1ex}. |
| 562 |
|
| 563 |
How to make length adjustments to the skill matrix will be explained in section \ref{section:length:skillmatrix}. |
| 564 |
|
| 565 |
\subsection{Letter of motivation} |
| 566 |
|
| 567 |
In order to provide additional information for a job application, {\moderncv} provides a motivation letter. Define the following recipient data fields to customize your letter: |
| 568 |
\paragraph{\code{\\recipient}} |
| 569 |
A command for the letter's recipient. This allows line breaks to properly format the recipient's address. |
| 570 |
\begin{lstlisting} |
| 571 |
\recipient{<Team or contact person>}{<company>\\<street>\\<city>} |
| 572 |
\end{lstlisting} |
| 573 |
|
| 574 |
\paragraph{\code{\\date}} |
| 575 |
A command to set the letter's date. |
| 576 |
\begin{lstlisting} |
| 577 |
\date{<your custom date>} |
| 578 |
\end{lstlisting} |
| 579 |
|
| 580 |
\paragraph{\code{\\subject}} |
| 581 |
A command to define the job application subject. |
| 582 |
\begin{lstlisting} |
| 583 |
\subject{<subject>} |
| 584 |
\end{lstlisting} |
| 585 |
|
| 586 |
\paragraph{\code{\\opening}} |
| 587 |
A command to set your opening (e.g. ``Dear X,'' or ``To whom it may concern,''). |
| 588 |
\begin{lstlisting} |
| 589 |
\opening{<greeting>} |
| 590 |
\end{lstlisting} |
| 591 |
|
| 592 |
\paragraph{\code{\\closing}} |
| 593 |
A command to set your closing (e.g. ``Sincerely,'' or ``Yours truly,''). |
| 594 |
\begin{lstlisting} |
| 595 |
\closing{<closing>} |
| 596 |
\end{lstlisting} |
| 597 |
|
| 598 |
\paragraph{\code{\\signature}} |
| 599 |
An optional command to include your signature after the closing. This feature is defined using the \code{\\includegraphics}. The first argument is the scale and the second argument is the filename of your scanned signature. |
| 600 |
\begin{lstlisting} |
| 601 |
\signature{<scale>}{<signature filename>} |
| 602 |
\end{lstlisting} |
| 603 |
|
| 604 |
\paragraph{\code{\\enclosure}} |
| 605 |
A command to list the attached documents. The first optional parameter allows a redefinition of the default ``Enclosure'' label. |
| 606 |
\begin{lstlisting} |
| 607 |
\enclosure[<optional alternative label>]{<list of documents>} |
| 608 |
\end{lstlisting} |
| 609 |
|
| 610 |
\note If typesetting the resume in Chinese using CJK an additional \code{\\clearpage} is required after the \code{\\makeletterclosing} command. This helps \code{fancyhdr} to work correctly with CJK. Otherwise it will remove the page numbering by making \code{lastpage} undefined. |
| 611 |
|
| 612 |
\section{Customization} |
| 613 |
\label{section:customization} |
| 614 |
\subsection{Styles and their options} |
| 615 |
\label{section:customization:stylesAndOptions} |
| 616 |
Each style allows fine-tuning via options passed into the \code{\\moderncvstyle} command: |
| 617 |
\begin{lstlisting} |
| 618 |
\moderncvstyle[<option 1>, <option 2>, ...]{<style>} |
| 619 |
\end{lstlisting} |
| 620 |
Each style defines its own options, and not all options are available for each style. |
| 621 |
Below is a list of all the options available for each style: |
| 622 |
|
| 623 |
\paragraph{\code{casual}} |
| 624 |
This style allows the following options which \emph{only} affect header and footer styles: |
| 625 |
|
| 626 |
\begin{tabular}{r@{\hspace{2ex}}p{0.72\textwidth}} |
| 627 |
\textbf{\code{head alignment}} & values: \code{left}, \code{right} (default). |
| 628 |
Aligns the title and the picture if one is included. \\ |
| 629 |
\textbf{\code{name}} & values: \code{alternate}. |
| 630 |
Displays the name in all lowercase. |
| 631 |
Differentiation of the name is done by color (disabled by default). |
| 632 |
This feature is discouraged for longer names. \\ |
| 633 |
\textbf{\code{data in head}} & values: \code{details}, \code{nodetails} (default). |
| 634 |
Toggles between the header and footer as the location of personal data on the page. \\ |
| 635 |
\textbf{\code{symbols}} & values: \code{symbols} (default), \code{nosymbols}. |
| 636 |
Toggles between inclusion of icons or text-based abbreviations for personal data. |
| 637 |
\end{tabular} |
| 638 |
|
| 639 |
\paragraph{\code{classic}} |
| 640 |
This style allows the following options which \emph{only} affect header and footer styles: |
| 641 |
|
| 642 |
\begin{tabular}{r@{\hspace{2ex}}p{0.75\textwidth}} |
| 643 |
\textbf{\code{alignment}} & values: \code{left} (default), \code{right}. |
| 644 |
Aligns the address block and the picture. \\ |
| 645 |
\textbf{\code{data in head}} & values: \code{details}, \code{nodetails} (default). |
| 646 |
Toggles between the header and footer as the location of personal data on the page. \\ |
| 647 |
\textbf{\code{symbols}} & values: \code{symbols} (default), \code{nosymbols}. |
| 648 |
Toggles between inclusion of icons or text-based abbreviations for personal data. |
| 649 |
\end{tabular} |
| 650 |
|
| 651 |
\paragraph{\code{banking}} |
| 652 |
This style allows the following options: |
| 653 |
|
| 654 |
\begin{tabular}{r@{\hspace{2ex}}p{0.68\textwidth}} |
| 655 |
\textbf{\code{alignment (body)}} & values: \code{left} (default), \code{center}, \code{right}. |
| 656 |
Aligns the entries in the style. \\ |
| 657 |
\textbf{\code{rule style}} & values: \code{fullrules}, \code{shortrules}, \code{mixedrules} (default), \code{norules}. |
| 658 |
Adjusts the rules used in the style. \\ |
| 659 |
\textbf{\code{data in head}} & values: \code{details}, \code{nodetails} (default). |
| 660 |
Toggles between the header and footer as the location of personal data on the page. \\ |
| 661 |
\textbf{\code{symbols}} & values: \code{symbols} (default), \code{nosymbols}. |
| 662 |
Toggles between inclusion of icons or text-based abbreviations for personal data. |
| 663 |
\end{tabular} |
| 664 |
|
| 665 |
\paragraph{\code{oldstyle}} |
| 666 |
This style allows the following options: |
| 667 |
|
| 668 |
\begin{tabular}{r@{\hspace{2ex}}p{0.73\textwidth}} |
| 669 |
\textbf{\code{data in head}} & values: \code{details}, \code{nodetails} (default). |
| 670 |
Toggles between the header and footer as the location of personal data on the page. \\ |
| 671 |
\textbf{\code{symbols}} & values: \code{symbols} (default), \code{nosymbols}. |
| 672 |
Toggles between inclusion of icons or text-based abbreviations for personal data. |
| 673 |
\end{tabular} |
| 674 |
|
| 675 |
\paragraph{\code{fancy}} |
| 676 |
This style allows the following options: |
| 677 |
|
| 678 |
\begin{tabular}{r@{\hspace{2ex}}p{0.73\textwidth}} |
| 679 |
\textbf{\code{data in head}} & values: \code{details}, \code{nodetails} (default). |
| 680 |
Toggles between the header and footer as the location of personal data on the page. \\ |
| 681 |
\textbf{\code{symbols}} & values: \code{symbols} (default), \code{nosymbols}. |
| 682 |
Toggles between inclusion of icons or text-based abbreviations for personal data. |
| 683 |
\end{tabular} |
| 684 |
|
| 685 |
\note Only one option from each option category can be passed in at a time, e.g. |
| 686 |
\begin{lstlisting} |
| 687 |
\moderncvstyle[left, nosymbols]{casual} |
| 688 |
\end{lstlisting} |
| 689 |
|
| 690 |
\paragraph{\code{contemporary}} |
| 691 |
This style allows the following options which \emph{only} affect header and footer styles: |
| 692 |
|
| 693 |
\begin{tabular}{r@{\hspace{2ex}}p{0.75\textwidth}} |
| 694 |
\textbf{\code{alignment}} & values: \code{left} (default), \code{right}. |
| 695 |
Aligns the address block and the picture. \\ |
| 696 |
\textbf{\code{data in head}} & values: \code{details} (default), \code{nodetails}. |
| 697 |
Toggles between the header and footer as the location of personal data on the page. \\ |
| 698 |
\textbf{\code{qr}} & values: \code{qr} (default), \code{noqr}. |
| 699 |
Enables or disables the inclusion of a QR code of your personal website. |
| 700 |
\end{tabular} |
| 701 |
\note For the \code{contemporary} style it is recommended to use the \code{\\moderncvcolor\{cerulean\}} color scheme. The \code{contemporary} style is even more appealing with reduced margins. Use this in your preamble: |
| 702 |
\begin{lstlisting} |
| 703 |
\usepackage[hmargin=0.5in,vmargin=10pt]{geometry} |
| 704 |
\end{lstlisting} |
| 705 |
|
| 706 |
\subsection{Adjusting colors} |
| 707 |
The colors of each style can be adjusted. |
| 708 |
|
| 709 |
\note The color theme must be loaded \emph{before} \code{\\moderncvstyle}, i.e. |
| 710 |
\begin{lstlisting} |
| 711 |
\moderncvcolor{blue} |
| 712 |
\moderncvstyle{casual} |
| 713 |
\end{lstlisting} |
| 714 |
|
| 715 |
\paragraph{Base colors.} |
| 716 |
Each style defines three main colors: \code{color0}, \code{color1} and \code{color2}. |
| 717 |
\code{color0} is black and the main text color. |
| 718 |
\code{color1} is the main theme color, like blue, green, etc. |
| 719 |
\code{color2} is a some form of grey used for the user data, etc. |
| 720 |
These colors can be redefined by using either \code{\\definecolor} or \code{\\colorlet}: |
| 721 |
\begin{lstlisting} |
| 722 |
\definecolor{color1}{rgb}{0.55, 0.55, 0.55} % dark grey |
| 723 |
\colorlet{color1}{black} |
| 724 |
\end{lstlisting} |
| 725 |
Any mechanism for naming and defining colors used by the \code{xcolor} package can be used to redefine the colors of a \Moderncv style. |
| 726 |
|
| 727 |
\paragraph{Fine tuning.} |
| 728 |
If an even finer control over the color scheme of the style is desired, the following color settings are used internally for the \code{casual} style and can be redefined: |
| 729 |
\begin{lstlisting} |
| 730 |
% Head and footer |
| 731 |
\colorlet{lastnamecolor}{color1} |
| 732 |
\colorlet{namecolor}{lastnamecolor} |
| 733 |
\colorlet{headrulecolor}{color1} |
| 734 |
\colorlet{firstnamecolor}{lastnamecolor!50} |
| 735 |
\colorlet{titlecolor}{color2} |
| 736 |
\colorlet{addresscolor}{color2} |
| 737 |
\colorlet{quotecolor}{color1} |
| 738 |
\colorlet{pictureframecolor}{color1} |
| 739 |
% Body |
| 740 |
\colorlet{bodyrulecolor}{color1} |
| 741 |
\colorlet{sectioncolor}{color1} |
| 742 |
\colorlet{subsectioncolor}{color1} |
| 743 |
\colorlet{hintstylecolor}{color0} |
| 744 |
% Letter |
| 745 |
\colorlet{letterclosingcolor}{color2} |
| 746 |
% Skill matrix |
| 747 |
\colorlet{skillmatrixfullcolor}{color1} |
| 748 |
\colorlet{skillmatrixemptycolor}{color2!30} |
| 749 |
\end{lstlisting} |
| 750 |
|
| 751 |
|
| 752 |
\subsection{Modifying symbols and icons} |
| 753 |
\subsubsection{Icons} |
| 754 |
As stated in section \ref{section:customization:stylesAndOptions}, the use of icons is toggled by the \code{symbols} option that can be passed to \code{\\moderncvstyle}. |
| 755 |
|
| 756 |
The icons used in the display of the personal data (phone numbers, email, fax, social media accounts, etc.) can be customized by redefining the internal commands for the symbols: |
| 757 |
\begin{lstlisting} |
| 758 |
\renewcommand*{<\symbolcommand>}{{\small<\symbol>}~} |
| 759 |
\end{lstlisting} |
| 760 |
Using \code{\\small} is optional, but the default behavior is to render all icons using \code{\\small}. |
| 761 |
Use \code{\\small} if one merely wishes to replace an icon/symbol while keeping the size consistent with the default icons/symbols. |
| 762 |
The tilde ensures proper spacing after the symbols and is recommended as well. |
| 763 |
|
| 764 |
Currently \Moderncv supports the following commands as \code{<\\symbolcommand>}: |
| 765 |
\begin{itemize} |
| 766 |
\begin{multicols}{2} |
| 767 |
\item \code{\\addresssymbol} |
| 768 |
\item \code{\\mobilephonesymbol} |
| 769 |
\item \code{\\fixedphonesymbol} |
| 770 |
\item \code{\\faxphonesymbol} |
| 771 |
\item \code{\\emailsymbol} |
| 772 |
\item \code{\\homepagesymbol} |
| 773 |
\item \code{\\linkedinsocialsymbol} |
| 774 |
\item \code{\\xingsocialsymbol} |
| 775 |
\item \code{\\twittersocialsymbol} |
| 776 |
\item \code{\\githubsocialsymbol} |
| 777 |
\item \code{\\gitlabsocialsymbol} |
| 778 |
\item \code{\\stackoverflowsocialsymbol} |
| 779 |
\item \code{\\googlescholarsocialsymbol} |
| 780 |
\item \code{\\telegramsocialsymbol} |
| 781 |
\item \code{\\whatsappsocialsymbol} |
| 782 |
\item \code{\\signalsocialsymbol} |
| 783 |
\item \code{\\matrixsocialsymbol} |
| 784 |
\item \code{\\orcidsocialsymbol} |
| 785 |
\item \code{\\researchgatesocialsymbol} |
| 786 |
\item \code{\\researcheridsocialsymbol} |
| 787 |
\item \code{\\bitbucketsocialsymbol} |
| 788 |
\item \code{\\skypesocialsymbol} |
| 789 |
\item \code{\\bornsymbol} |
| 790 |
\item \code{\\arxivsocialsymbol} |
| 791 |
\item \code{\\inspiresocialsymbol} |
| 792 |
\end{multicols} |
| 793 |
\end{itemize} |
| 794 |
The possible options for \code{<\\symbol>} depend on the package that is used. |
| 795 |
By default, the \code{marvosym} package is loaded if \code{pdflatex} is used, and the \code{academicons} and \code{fontawesome5} packages are loaded if either \code{lualatex} or \code{xelatex} is used. |
| 796 |
Full lists of all available symbols and icons can be found in the documentation of each respective package: |
| 797 |
|
| 798 |
\begin{tabular}{l} |
| 799 |
\url{https://ctan.org/pkg/marvosym} \\[1ex] |
| 800 |
\url{https://ctan.org/pkg/fontawesome5} \\[1ex] |
| 801 |
\url{https://ctan.org/pkg/academicons} |
| 802 |
\end{tabular} |
| 803 |
|
| 804 |
\paragraph{Example.} |
| 805 |
If one wanted to use the dingbat fonts to replace the default phone symbol, one should load the \code{pifont} package in the preamble and then substitute the default symbol with the dingbat symbol \ding{38}\ with |
| 806 |
\begin{lstlisting} |
| 807 |
\renewcommand*{\fixedphonesymbol}{\ding{38}~} |
| 808 |
\end{lstlisting} |
| 809 |
|
| 810 |
\paragraph{Alternative to icons} |
| 811 |
In case you do not want \texttt{symbols} (default) for the icons, there is also the option to replace icons with \texttt{letters} instead. This is set by the macro \code{\\moderncvicons}, which must be called after setting the style in the preamble. |
| 812 |
\begin{lstlisting} |
| 813 |
\moderncvicons{<symbols|letters>} |
| 814 |
\end{lstlisting} |
| 815 |
This mechanism is also used to determine the icon set. In principle the \code{\\moderncvicons} can be used to determine the icon set with the possible values \texttt{marvosym}, \texttt{awesome} or \texttt{academic}, but it is recommended to let {\moderncv} decide the correct icon set due to differing \Latex compiler support. |
| 816 |
|
| 817 |
\subsubsection{Listing labels} |
| 818 |
The labels used in \code{itemize} environments, \code{cvlistitem} and \code{cvlistdoubleitem} can be changed in two different ways: |
| 819 |
|
| 820 |
\begin{itemize} |
| 821 |
\item Redefining \code{\\labelitemi}, \code{\\labelitemii}, \code{\\labelitemiii} and \code{\\labelitemiv} changes the labels for \code{itemize} environments as well as for \code{cvlistitem} and \code{cvlistdoubleitem}, e.g. |
| 822 |
\begin{lstlisting} |
| 823 |
\renewcommand{\labelitemi}{-} |
| 824 |
\end{lstlisting} |
| 825 |
\item Redefining \code{\\listitemsymbol} changes the labels for \code{cvlistitem} and \code{cvlistdoubleitem} but \emph{not} for \code{itemize} environments, e.g. |
| 826 |
\begin{lstlisting} |
| 827 |
\renewcommand{\listitemsymbol}{-} |
| 828 |
\end{lstlisting} |
| 829 |
\end{itemize} |
| 830 |
|
| 831 |
\subsection{Adjusting lengths}\label{subsection:adjusting:lengths} |
| 832 |
Some lengths in \Moderncv can be adjusted. |
| 833 |
|
| 834 |
The hints column can be adjusted by setting \code{\\hintscolumnwidth}: |
| 835 |
\begin{lstlisting} |
| 836 |
\setlength{\hintscolumnwidth}{3cm} |
| 837 |
\end{lstlisting} |
| 838 |
|
| 839 |
For the \code{classic} style, the amount of horizontal space for the name can be adjusted by setting \code{\\makecvheadnamewidth} to avoid breaks: |
| 840 |
\begin{lstlisting} |
| 841 |
\setlength{\makecvheadnamewidth}{10cm} |
| 842 |
\end{lstlisting} |
| 843 |
One should be careful though, as the length is normally calculated to avoid any overlap with the personal information. |
| 844 |
This should be used at one's own typographical risk. |
| 845 |
|
| 846 |
The spacing between the hints column and the CV entries can be adjusted by setting\\ |
| 847 |
\code{\\separatorcolumnwidth}. The default value is \code{0.025\\textwidth}. |
| 848 |
\begin{lstlisting} |
| 849 |
\setlength{\separatorcolumnwidth}{0.05\textwidth} |
| 850 |
\end{lstlisting} |
| 851 |
|
| 852 |
The spacing between the list symbol and the text item of \code{\\cvlistitem} and \code{\\cvlistdoubleitem} can be adjusted by setting \code{\\listitemsymbolspace} in the preamble. The default value is set to \code{0pt}. |
| 853 |
\begin{lstlisting} |
| 854 |
\setlength{\listitemsymbolspace}{5pt} |
| 855 |
\end{lstlisting} |
| 856 |
|
| 857 |
The width of the footer can be adjusted by setting \code{\\footwidth}. Due to internal calculations \code{\\renewcommand} is needed. The default value is \code{0.8\\textwidth}. |
| 858 |
\begin{lstlisting} |
| 859 |
\renewcommand*{\recomputefootlengths}{% |
| 860 |
\setlength{\footwidth}{0.9\textwidth}} |
| 861 |
\end{lstlisting} |
| 862 |
|
| 863 |
The width of the quote can be adjusted by setting \code{\\quotewidth}. Due to internal calculations \code{\\renewcommand} is needed. The default value is \code{0.65\\textwidth}. |
| 864 |
\begin{lstlisting} |
| 865 |
\renewcommand*{\recomputecvheadlengths}{% |
| 866 |
\setlength{\quotewidth}{0.5\textwidth}} |
| 867 |
\end{lstlisting} |
| 868 |
|
| 869 |
|
| 870 |
% The different lengths used by moderncv are customizable by |
| 871 |
% \begin{lstlisting} |
| 872 |
% \setlength{<length>}{<new_dimensions>} |
| 873 |
% \end{lstlisting} |
| 874 |
% where \code{<length>} are \code{maincolumnwidth}, \code{doubleitemmaincolumnwidth}, \code{listitemsymbolwidth}, \code{listdoubleitemmaincolumnwidth}, |
| 875 |
|
| 876 |
|
| 877 |
\subsubsection{Lengths in the skill matrix} |
| 878 |
\label{section:length:skillmatrix} |
| 879 |
Both the width of the skill matrix legend and the width of the skill matrix columns can be adjusted. |
| 880 |
|
| 881 |
The width of the skill matrix legend can be adjusted as follows: |
| 882 |
\begin{lstlisting} |
| 883 |
\setcvskilllegendcolumns[<width>][<factor>] |
| 884 |
% Examples: |
| 885 |
\setcvskilllegendcolumns[][0.45] |
| 886 |
\setcvskilllegendcolumns[\widthof{``Legend''}][0.45] |
| 887 |
\setcvskilllegendcolumns[0ex][0.46] % useful for the banking style |
| 888 |
\end{lstlisting} |
| 889 |
\code{<width>} should be a length smaller than \code{\\textwidth}, and \code{<factor>} must be between 0 and 1. |
| 890 |
|
| 891 |
The width of the skill matrix columns can be adjusted as follows: |
| 892 |
\begin{lstlisting} |
| 893 |
\setcvskillcolumns[<width>][<factor>][<exp_width>] |
| 894 |
% Examples: |
| 895 |
\setcvskillcolumns[5em][][] % adjust first column, same as \setcvskillcolumns[5em] |
| 896 |
\setcvskillcolumns[][0.45][] % adjust third (skill) column, same as \setcvskillcolumns[][0.45] |
| 897 |
\setcvskillcolumns[][][\widthof{``Year''}] % adjust fourth (years of experience) column |
| 898 |
\setcvskillcolumns[][0.45][\widthof{``Year''}] |
| 899 |
\setcvskillcolumns[\widthof{``Language''}][0.48][] |
| 900 |
\setcvskillcolumns[\widthof{``Language''}] |
| 901 |
\end{lstlisting} |
| 902 |
\code{<width>} and \code{<exp_width>} should be lengths smaller than \code{\\textwidth}, and \code{<factor>} must be between 0 and 1. |
| 903 |
|
| 904 |
\subsection{Additional link commands}%% adapted from Cristina Sambo's documentation |
| 905 |
To create links to a website or a email address, use the following commands: |
| 906 |
|
| 907 |
A general weblink with optional text. |
| 908 |
\begin{lstlisting} |
| 909 |
\link[<text>]{<link>} |
| 910 |
%% example |
| 911 |
\link[name of the link]{ftp://ftp.somesite.org} |
| 912 |
\end{lstlisting} |
| 913 |
|
| 914 |
An HTTP link. The HTTP prefix is generated automatically and is not needed in the link argument. |
| 915 |
\begin{lstlisting} |
| 916 |
\link[<text>]{<link>} |
| 917 |
%% example |
| 918 |
\link[goto HTTP site]{www.somehttpsite.org} |
| 919 |
\end{lstlisting} |
| 920 |
|
| 921 |
A HTTPS link. The HTTPS prefix is generated automatically and is not needed in the link argument. |
| 922 |
\begin{lstlisting} |
| 923 |
\link[<text>]{<link>} |
| 924 |
%% example |
| 925 |
\httpslink[goto HTTPS site]{www.somesecuresite.org} |
| 926 |
\end{lstlisting} |
| 927 |
|
| 928 |
An email link. The mailto prefix is generated automatically and is not needed in the link argument. |
| 929 |
\begin{lstlisting} |
| 930 |
\link[<text>]{<link>} |
| 931 |
%% example |
| 932 |
\emaillink[my email]{[email protected]} |
| 933 |
\end{lstlisting} |
| 934 |
|
| 935 |
\subsection{Page breaks and orphaned section headers} |
| 936 |
If \Latex breaks pages just after \code{\\section} or \code{\\subsection} commands, try adjusting the stretchability of the page with \code{\\cvsectionstretchability} or \code{\\cvsubsectionstretchability}: |
| 937 |
\begin{lstlisting} |
| 938 |
\setlength{\cvsectionstretchability}{\baselineskip} |
| 939 |
\setlength{\cvsubsectionstretchability}{100pt} |
| 940 |
\end{lstlisting} |
| 941 |
These two lengths tell \Latex how much extra length it needs after \code{\\section} and \code{\\subsection} commands. |
| 942 |
By default, \Moderncv sets both lengths to \code{0.9\\baselineskip}. |
| 943 |
|
| 944 |
This should solve orphaned \code{\\section} and \code{\\subsection} commands that are used alone for most users. |
| 945 |
However, \Latex does not check for content. |
| 946 |
For example, writing |
| 947 |
\begin{lstlisting} |
| 948 |
\section{blub} |
| 949 |
\subsection{blubblub} |
| 950 |
\end{lstlisting} |
| 951 |
one after the other may cause \Latex to place the section and subsection headers on separate pages. |
| 952 |
Since \Latex considers the subsection header to not be orphaned, it may place the section header at the bottom of a page if there is enough space to do so while placing the subsection header on the next page. |
| 953 |
One solution is to increase \code{\\cvsectionstretchability} to force the break of the section header. |
| 954 |
However, this changes the behaviour for all \code{\\section} commands in your CV and might cause unnecessary page breaks. |
| 955 |
It is therefore recommended to force the page break manually with a \code{\\newpage} in this case. |
| 956 |
|
| 957 |
\paragraph{Experts only:} |
| 958 |
Internally, \Moderncv uses a custom \code{\\needspace} command: |
| 959 |
\begin{lstlisting} |
| 960 |
\NewDocumentCommand\@cvneedspace{m}{% |
| 961 |
\begingroup |
| 962 |
\setlength{\dimen@}{#1}% |
| 963 |
\vskip\z@\@plus\dimen@ |
| 964 |
\penalty \withinstretchpenalty\vskip\z@\@plus -\dimen@ |
| 965 |
\vskip\dimen@ |
| 966 |
\penalty \poststretchpenalty% |
| 967 |
\vskip -\dimen@ |
| 968 |
\vskip\z@skip % hide the previous |\vskip| from |\addvspace| |
| 969 |
\endgroup |
| 970 |
} |
| 971 |
\end{lstlisting} |
| 972 |
Thus, instead of setting \code{\\cvsectionstretchability} and/or \code{\\cvsubsectionstretchability}, page break behavior can be adjusted by redefining the following internal penalties: |
| 973 |
\begin{lstlisting} |
| 974 |
\renewcommand{\withinstretchpenalty}{<-100...9999>} |
| 975 |
\renewcommand{\poststretchpenalty}{<-100...9999>}. |
| 976 |
\end{lstlisting} |
| 977 |
By default, \Moderncv sets \code{\\withinstretchpenalty} to 0 and \code{\\poststretchpenalty} to 9999. |
| 978 |
The higher the penalties are, the less likely a page break will occur. |
| 979 |
A good explanation of \code{\\needspace} can be found at \url{https://tex.stackexchange.com/questions/348994/understanding-needspace}. |
| 980 |
|
| 981 |
|
| 982 |
\subsection{Tips and Tricks} |
| 983 |
\subsubsection{Legal disclaimer at the end of the CV} |
| 984 |
Some countries (e.g. Italy) require you to add a legal disclaimer authorizing the use of the personal data in your CV. |
| 985 |
To add such a disclaimer, add the following to the bottom of your CV:% |
| 986 |
\footnote{Example provided by Cristina Sambo}% |
| 987 |
\begin{lstlisting} |
| 988 |
\vfill |
| 989 |
\begin{center} |
| 990 |
\textit{\small Ai sensi del D. Lgs. 196/2003 ...} |
| 991 |
\end{center} |
| 992 |
\end{lstlisting} |
| 993 |
|
| 994 |
|
| 995 |
|
| 996 |
\section{Implementation details} |
| 997 |
\label{section:implementationDetails} |
| 998 |
|
| 999 |
\subsection{Creating your own styles} |
| 1000 |
Currently {\moderncv} ships with six different styles: \texttt{casual} (default), \texttt{classic}, \texttt{banking}, \texttt{oldstyle}, \texttt{fancy} and \texttt{contemporary}. Internally, these styles are numbered 1, 2, 3, 4, 5 and 6, respectively. All styles except \texttt{oldstyle} and \texttt{fancy} possess additional option parameters which were described in section \ref{section:customization:stylesAndOptions}. |
| 1001 |
|
| 1002 |
Different styles' head, body and foot can be combined to create custom styles. This is done by setting \code{\\moderncvhead}, \code{\\moderncvbody} and \code{\\moderncvfoot} in the preamble. Here is an example of a custom style with a \texttt{banking} head, an \texttt{oldstyle} body and a \texttt{casual} foot: |
| 1003 |
\begin{lstlisting} |
| 1004 |
\moderncvhead{3} |
| 1005 |
\moderncvbody{4} |
| 1006 |
\moderncvfoot{1} |
| 1007 |
\end{lstlisting} |
| 1008 |
Furthermore, options for each part of {\moderncv} parts can be set as well in such combinations. To get a CV with a \texttt{classic} head and a \texttt{banking} body with full rules, define the following in the preamble: |
| 1009 |
\begin{lstlisting} |
| 1010 |
\moderncvhead{2} |
| 1011 |
\moderncvbody[fullrules]{3} |
| 1012 |
\moderncvfoot{1} |
| 1013 |
\end{lstlisting} |
| 1014 |
|
| 1015 |
|
| 1016 |
\subsection{Required packages} |
| 1017 |
\label{section:implementationDetails:requiredPackages} |
| 1018 |
In addition to the packages that \Moderncv provides, the following packages are loaded internally: |
| 1019 |
\begin{itemize} |
| 1020 |
\begin{multicols}{3} |
| 1021 |
\item \code{etoolbox} |
| 1022 |
\item \code{ifthen} |
| 1023 |
\item \code{xcolor} |
| 1024 |
\item \code{ifxetex} or \code{ifluatex} |
| 1025 |
\item \code{fontenc} |
| 1026 |
\item \code{url} |
| 1027 |
\item \code{hyperref} |
| 1028 |
\item \code{graphicx} |
| 1029 |
\item \code{fancyhdr} |
| 1030 |
\item \code{tweaklist}% |
| 1031 |
\footnote{The \code{tweaklist} package has been altered for the development of \Moderncv and ships with \moderncv.} |
| 1032 |
\item \code{calc} |
| 1033 |
\item \code{xparse} |
| 1034 |
\item \code{microtype} |
| 1035 |
\item \code{expl3} |
| 1036 |
\item \code{tikz} |
| 1037 |
\item \code{changepage} |
| 1038 |
\item \code{fontawesome5} |
| 1039 |
\item \code{academicons} |
| 1040 |
\item \code{tgpagella} |
| 1041 |
\item \code{ebgaramond} |
| 1042 |
\item \code{kurier} |
| 1043 |
\item \code{multirow} |
| 1044 |
\item \code{arydshln} |
| 1045 |
\end{multicols} |
| 1046 |
\end{itemize} |
| 1047 |
|
| 1048 |
Most of these packages should be included in your \Latex distribution of choice. |
| 1049 |
|
| 1050 |
\subsection{Known conflicts with other packages} |
| 1051 |
\begin{enumerate} |
| 1052 |
\item \Moderncv is incompatible with \code{biber}. |
| 1053 |
\item \Moderncv is incompatible with \biblatex. |
| 1054 |
\item \Moderncv is incompatible with \code{babel} in Spanish |
| 1055 |
\end{enumerate} |
| 1056 |
|
| 1057 |
\subsection{Known bugs} |
| 1058 |
\begin{enumerate} |
| 1059 |
\item Skill matrices don't break automatically in \texttt{fancy} style. |
| 1060 |
\item Long names break the \texttt{oldstyle} style and possibly other styles (needs testing). |
| 1061 |
\item Long URLs in \texttt{classic} style can make the name break line. |
| 1062 |
Fixed width for the address part must be implemented. |
| 1063 |
\item When using the \texttt{fancy} style, undesired space is added between the bibliography head and the first entry, as well as after the last entry. |
| 1064 |
\item Footnotes generate errors, but the output seems correct when running with \code{-interaction=nonstopmode}. |
| 1065 |
\item When using CJK, the last \code{\\clearpage} required for the \code{fancyhdr} package to work properly kills the ``lastpage'' counter, and therefore also the page numbering. |
| 1066 |
\item \Moderncv produces the error ``\code{lonely \\item--perhaps a missing list environment}'' when used with the \code{bibentry} package, though the output is actually correct. |
| 1067 |
Among other things, this causes compilation by LyX to stop. |
| 1068 |
\item The space after a \code{\\cventry} gets eaten up when the last argument contains a nested \code{itemize} environment. |
| 1069 |
An ugly hack and incomplete solution was implemented by including a \code{\\strut} in every item label, but this doesn't solve the problem for multi-line items. |
| 1070 |
Ideally, the \code{\\strut} should end the item, but there seems to be no way to do this. |
| 1071 |
\end{enumerate} |
| 1072 |
|
| 1073 |
\end{document} |