Added checking for lmodern and automatic loading only if present.
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
version 0.15 (xx December 2011)
|
version 0.15 (xx December 2011)
|
||||||
- corrects list spacing.
|
- corrects list spacing.
|
||||||
- corrects inconsistent use of sans serif fonts in roman layout option.
|
- corrects inconsistent use of sans serif fonts in roman layout option.
|
||||||
|
- the lmodern fonts are now automatically loaded only if installed on the system.
|
||||||
|
The "nolmodern" option is now therefore obsolete.
|
||||||
|
|
||||||
version 0.14 (04 December 2011)
|
version 0.14 (04 December 2011)
|
||||||
- adds support for CJK, thanks to the help of P. D'Apice.
|
- adds support for CJK, thanks to the help of P. D'Apice.
|
||||||
|
|||||||
14
moderncv.cls
14
moderncv.cls
@ -60,10 +60,6 @@
|
|||||||
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
|
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
|
||||||
\DeclareOption{final}{\setlength\overfullrule{0pt}}
|
\DeclareOption{final}{\setlength\overfullrule{0pt}}
|
||||||
|
|
||||||
% nolmodern option
|
|
||||||
\newif\if@lmodern\@lmoderntrue
|
|
||||||
\DeclareOption{nolmodern}{\@lmodernfalse}
|
|
||||||
|
|
||||||
% execute default options
|
% execute default options
|
||||||
\ExecuteOptions{a4paper,11pt,color,final}
|
\ExecuteOptions{a4paper,11pt,color,final}
|
||||||
|
|
||||||
@ -88,12 +84,10 @@
|
|||||||
% color
|
% color
|
||||||
\RequirePackage{color}
|
\RequirePackage{color}
|
||||||
|
|
||||||
% font encoding
|
% automatic loading of latin modern fonts if present on the system
|
||||||
\RequirePackage[T1]{fontenc}
|
\IfFileExists{lmodern.sty}
|
||||||
|
{\RequirePackage[T1]{fontenc}\RequirePackage{lmodern}}
|
||||||
% latin modern fonts
|
{}
|
||||||
\if@lmodern
|
|
||||||
\RequirePackage{lmodern}\fi
|
|
||||||
|
|
||||||
% symbols like \Telefon, \Mobilefone, \Letter and \Email
|
% symbols like \Telefon, \Mobilefone, \Letter and \Email
|
||||||
\RequirePackage{marvosym}
|
\RequirePackage{marvosym}
|
||||||
|
|||||||
Reference in New Issue
Block a user