diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lni')
-rw-r--r-- | Master/texmf-dist/tex/latex/lni/lni.cls | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/lni/lni.cls b/Master/texmf-dist/tex/latex/lni/lni.cls index 068e27f5848..82ff12ea9db 100644 --- a/Master/texmf-dist/tex/latex/lni/lni.cls +++ b/Master/texmf-dist/tex/latex/lni/lni.cls @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{lni} - [2017/05/05 v1.2 Official class for submissions to the ``Lecture Notes + [2017/05/15 v1.3 Official class for submissions to the ``Lecture Notes in Informatics''] \def\@clearglobaloption#1{% \def\@tempa{#1}% @@ -47,6 +47,9 @@ \newif\ifcrop \cropfalse \DeclareOption{crop}{\croptrue} +\newif\ifnofonts +\nofontsfalse +\DeclareOption{nofonts}{\nofontstrue} \ExecuteOptions{utf8} \DeclareOption*{\ClassWarning{Option `\CurrentOption` is not supported!}} \ProcessOptions\relax @@ -73,18 +76,36 @@ \fi% \useshorthands*{"} \addto\extrasenglish{\languageshorthands{ngerman}} -\ifPDFTeX - \RequirePackage{newtxtext} - \RequirePackage{newtxmath} - \RequirePackage[zerostyle=b,scaled=.9]{newtxtt} - \@ifpackagelater{newtxtt}{2014/11/18}% - {\txtt@upqtrue}% - {\ClassWarning{lni}{You are using an old version of `newtxtt'.\MessageBreak - Option `straightquotes' will not be used!}}% +\ifnofonts + \ClassWarning{lni}{Option `nofonts' set! I will use standard fonts + \MessageBreak + instead of the New TX fonts. Your document will NOT look like the + \MessageBreak + final result for publication. This should only be used if you have + \MessageBreak + no possibility to install fonts or upgrade your TeX installation!}% \else - \usepackage{newtxmath} - \usepackage[no-math]{fontspec} - \setmainfont[Ligatures=TeX]{TeXGyreTermesX} + \ifPDFTeX + \RequirePackage{newtxtext} + \RequirePackage{newtxmath} + \RequirePackage[zerostyle=b,scaled=.9]{newtxtt} + \@ifpackagelater{newtxtt}{2014/11/18}% + {\txtt@upqtrue}% + {\ClassWarning{lni}{You are using an old version of + `newtxtt'.\MessageBreak + Option `straightquotes' will not be used!}}% + \else + \usepackage{newtxmath} + \usepackage[no-math]{fontspec} + \setmainfont{texgyretermes}[ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Ligatures=TeX + ] + \fi% \fi% \ifPDFTeX \RequirePackage[% |