Added checking for lmodern and automatic loading only if present.

This commit is contained in:
Xavier Danaux
2011-12-10 22:17:51 +01:00
parent 9c4eceb696
commit f72f94a77c
2 changed files with 6 additions and 10 deletions

View File

@ -1,6 +1,8 @@
version 0.15 (xx December 2011)
- corrects list spacing.
- 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)
- adds support for CJK, thanks to the help of P. D'Apice.

View File

@ -60,10 +60,6 @@
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}
% nolmodern option
\newif\if@lmodern\@lmoderntrue
\DeclareOption{nolmodern}{\@lmodernfalse}
% execute default options
\ExecuteOptions{a4paper,11pt,color,final}
@ -88,12 +84,10 @@
% color
\RequirePackage{color}
% font encoding
\RequirePackage[T1]{fontenc}
% latin modern fonts
\if@lmodern
\RequirePackage{lmodern}\fi
% automatic loading of latin modern fonts if present on the system
\IfFileExists{lmodern.sty}
{\RequirePackage[T1]{fontenc}\RequirePackage{lmodern}}
{}
% symbols like \Telefon, \Mobilefone, \Letter and \Email
\RequirePackage{marvosym}