summaryrefslogtreecommitdiff
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
parent8dc5a04688ab717789078f4d387cb0938bacbbaf (diff)
lni (15may17)
git-svn-id: svn://tug.org/texlive/trunk@44368 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/lni/CHANGELOG.md8
-rw-r--r--Master/texmf-dist/doc/latex/lni/README.md2
-rw-r--r--Master/texmf-dist/doc/latex/lni/lni.pdfbin353066 -> 353242 bytes
-rw-r--r--Master/texmf-dist/source/latex/lni/lni.dtx75
-rw-r--r--Master/texmf-dist/tex/latex/lni/lni.cls45
5 files changed, 95 insertions, 35 deletions
diff --git a/Master/texmf-dist/doc/latex/lni/CHANGELOG.md b/Master/texmf-dist/doc/latex/lni/CHANGELOG.md
index 970362f5742..70452549f95 100644
--- a/Master/texmf-dist/doc/latex/lni/CHANGELOG.md
+++ b/Master/texmf-dist/doc/latex/lni/CHANGELOG.md
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
+## [1.3.0] - 2017-05-15
+### Added
+- New option `nofont` to use the class file on older systems ([#53](https://github.com/gi-ev/LNI/issues/52))
+
+### Changed
+- Use more stable syntax for font loading with `fontspec` ([#54](https://github.com/gi-ev/LNI/issues/54))
+
## [1.2.0] - 2017-05-05
### Added
- Quick start section for README.md ([#48](https://github.com/gi-ev/LNI/issues/48))
@@ -31,6 +38,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.0.0] - 2017-04-07
First release of the revised files
+[1.3.0]: https://github.com/gi-ev/LNI/releases/tag/v1.3
[1.2.0]: https://github.com/gi-ev/LNI/releases/tag/v1.2
[1.1.0]: https://github.com/gi-ev/LNI/releases/tag/v1.1
[1.0.0]: https://github.com/gi-ev/LNI/releases/tag/v1.0
diff --git a/Master/texmf-dist/doc/latex/lni/README.md b/Master/texmf-dist/doc/latex/lni/README.md
index 6d62335be51..24d49354995 100644
--- a/Master/texmf-dist/doc/latex/lni/README.md
+++ b/Master/texmf-dist/doc/latex/lni/README.md
@@ -4,7 +4,7 @@
----------------------------------------------------------------------------
lni -- A class for submissions to the ``Lecture Notes in Informatics''
(c) 2016-2017 Gesellschaft für Informatik (GI)
-Version: 1.2
+Version: 1.3
Maintainer: Martin Sievers
Email: martin.sievers@schoenerpublizieren.de
License: Released under the LaTeX Project Public License v1.3c or later
diff --git a/Master/texmf-dist/doc/latex/lni/lni.pdf b/Master/texmf-dist/doc/latex/lni/lni.pdf
index 265f754eaa3..9ca6c9f458d 100644
--- a/Master/texmf-dist/doc/latex/lni/lni.pdf
+++ b/Master/texmf-dist/doc/latex/lni/lni.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/lni/lni.dtx b/Master/texmf-dist/source/latex/lni/lni.dtx
index 359137aa0cb..b47219ed198 100644
--- a/Master/texmf-dist/source/latex/lni/lni.dtx
+++ b/Master/texmf-dist/source/latex/lni/lni.dtx
@@ -163,7 +163,7 @@ This work consists of the file lni.dtx
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<class>\ProvidesClass{lni}
%<*class>
- [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'']
%</class>
%<*driver>
@@ -300,6 +300,9 @@ This work consists of the file lni.dtx
% manually to gain compatibility with version prior to v1.05}
% \changes{v1.2}{2017/04/27}{Added \pkg{iftex} to check for pdflatex}
% \changes{v1.2}{2017/05/04}{Added (partial) support for XeTeX and LuaTeX}
+% \changes{v1.3}{2017/05/04}{Added option \opt{nofonts} to suppress font
+% loading completely}
+% \changes{v1.3}{2017/05/08}{Changed syntax for \pkg{fontspec}}
%
% \GetFileInfo{\jobname.dtx}
% \DoNotIndex{\newcommand,\newenvironment}
@@ -396,23 +399,29 @@ This work consists of the file lni.dtx
% \pkg{biblatex} and the tool \texttt{biber}.
%
% There is even a specialized package \pkg{biblatex-lni} which is automatically
-% used when setting the class option \opt{biblatex}. Please see as well
+% used when setting the class option \opt{biblatex}. For more information see as well
% \cref{sec:bibliography}.
%
+% \DescribeOption{crop\space(new in v1.1)}%
+% Option \opt{crop} gives you some crop marks (using the package \pkg{crop}) to
+% better illustrate the final
+% result of your article.
+%
% \DescribeOption{nocleveref}When referencing figures, one has to type
% \texttt{Figure\textasciitilde}\cs{ref\marg{label}}. The package \pkg{cleveref}
% reduces the effort by offering the command \cs{cref\marg{label}}. This can be
% used with all floating objects. The package is loaded as default. In case it
% causes issues, one can disable it using with the \opt{nocleveref} option.
%
-% \DescribeOption{nohyperref}\pkg{hyperref} is used for colored hyperlink within
-% the articles. If you consider problems or just do not want that feature, you
-% can disable it by using the option \opt{nohyperref}.
+% \DescribeOption{nohyperref}\pkg{hyperref} is used for colored hyperlink
+% within the articles. If you consider problems or just do not want that
+% feature, you can disable it by using the option \opt{nohyperref}.
%
-% \DescribeOption{crop\space(new in v1.1)}%
-% Option \opt{crop} gives you some crop marks (using the package \pkg{crop}) to better illustrate the final
-% result of your article.
-%
+% \DescribeOption{nofonts\space(new in v1.3)}On older systems you might not
+% have installed the New TX fonts. Therefore option \opt{nofonts} allows to
+% suppress font loading completely using the engines standard fonts instead.
+% Please note, that your output will differ from the publishers'.
+% \newpage
% \section{Setting up a document}
% You can use the file \file{lni-author-template.tex} as a starting point
% for setting up a document for submission. The \lni{} class uses the standard
@@ -424,7 +433,7 @@ This work consists of the file lni.dtx
% Some \TeX{} editors like \texttt{TeXstudio}, \texttt{TeXmaker} and
% \texttt{TeXshop} support a special set of meta data to tell the editor, how
% to deal with a concrete document.
-% \newpage
+%
% A typical example looks like:
% \begin{examplecode}
% % !TeX program = pdflatex
@@ -708,6 +717,9 @@ This work consists of the file lni.dtx
\newif\ifcrop
\cropfalse
\DeclareOption{crop}{\croptrue}
+\newif\ifnofonts
+\nofontsfalse
+\DeclareOption{nofonts}{\nofontstrue}
\ExecuteOptions{utf8}
\DeclareOption*{\ClassWarning{Option `\CurrentOption` is not supported!}}
\ProcessOptions\relax
@@ -740,24 +752,43 @@ This work consists of the file lni.dtx
% \end{macrocode}
% Define a modern variant of Times as the main font
% \begin{macrocode}
-\ifPDFTeX
- \RequirePackage{newtxtext}
- \RequirePackage{newtxmath}
- \RequirePackage[zerostyle=b,scaled=.9]{newtxtt}
+\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
+ \ifPDFTeX
+ \RequirePackage{newtxtext}
+ \RequirePackage{newtxmath}
+ \RequirePackage[zerostyle=b,scaled=.9]{newtxtt}
% \end{macrocode}
% For compatibility with version of \pkg{newtxtt} prior to v1.05 we set the
% option \opt{straightquotes} manually for recent versions
% \begin{macrocode}
- \@ifpackagelater{newtxtt}{2014/11/18}%
- {\txtt@upqtrue}%
- {\ClassWarning{lni}{You are using an old version of `newtxtt'.\MessageBreak
- Option `straightquotes' will not be used!}}%
+ \@ifpackagelater{newtxtt}{2014/11/18}%
+ {\txtt@upqtrue}%
+ {\ClassWarning{lni}{You are using an old version of
+ `newtxtt'.\MessageBreak
+ Option `straightquotes' will not be used!}}%
% \end{macrocode}
+% for \hologo{XeTeX} or \hologo{LuaTeX} we use \pkg{fontspec}
% \begin{macrocode}
-\else
- \usepackage{newtxmath}
- \usepackage[no-math]{fontspec}
- \setmainfont[Ligatures=TeX]{TeXGyreTermesX}
+ \else
+ \usepackage{newtxmath}
+ \usepackage[no-math]{fontspec}
+ \setmainfont{texgyretermes}[
+ Extension = .otf,
+ UprightFont = *-regular,
+ BoldFont = *-bold,
+ ItalicFont = *-italic,
+ BoldItalicFont = *-bolditalic,
+ Ligatures=TeX
+ ]
+ \fi%
\fi%
% \begin{macrocode}
\ifPDFTeX
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[%