mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Put font loading in template (#85)
Closes https://github.com/moderncv/moderncv/issues/73 Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
This commit is contained in:
parent
8cf759f104
commit
d3511495b8
2 changed files with 19 additions and 17 deletions
19
template.tex
19
template.tex
|
|
@ -20,10 +20,27 @@
|
|||
|
||||
% adjust the page margins
|
||||
\usepackage[scale=0.75]{geometry}
|
||||
\setlength{\footskip}{122.40004pt} % depending on the amount of information in the footer, you need to change this value. comment this line out and set it to the size given in the warning
|
||||
\setlength{\footskip}{136.00005pt} % depending on the amount of information in the footer, you need to change this value. comment this line out and set it to the size given in the warning
|
||||
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates
|
||||
%\setlength{\makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...
|
||||
|
||||
% font loading
|
||||
% for luatex and xetex, do not use inputenc and fontenc
|
||||
% see https://tex.stackexchange.com/a/496643
|
||||
\ifxetexorluatex
|
||||
\usepackage{fontspec}
|
||||
\usepackage{unicode-math}
|
||||
\defaultfontfeatures{Ligatures=TeX}
|
||||
\setmainfont{Latin Modern Roman}
|
||||
\setsansfont{Latin Modern Sans}
|
||||
\setmonofont{Latin Modern Mono}
|
||||
\setmathfont{Latin Modern Math}
|
||||
\else
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{lmodern}
|
||||
\fi
|
||||
|
||||
% personal data
|
||||
\name{John}{Doe}
|
||||
\title{Résumé title} % optional, remove / comment the line if not wanted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue