summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lni
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-05-15 21:14:13 +0000
committerKarl Berry <karl@freefriends.org>2017-05-15 21:14:13 +0000
commitdd2663ca8384b982816cfb456c4d53e7a3f17536 (patch)
tree9012e16f6776d79d74cd8bc16c6b2317b3492464 /Master/texmf-dist/tex/latex/lni
parent8dc5a04688ab717789078f4d387cb0938bacbbaf (diff)
lni (15may17)
git-svn-id: svn://tug.org/texlive/trunk@44368 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lni')
-rw-r--r--Master/texmf-dist/tex/latex/lni/lni.cls45
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[%