texlive[44368] Master/texmf-dist: lni (15may17)

commits+karl at tug.org commits+karl at tug.org
Mon May 15 23:14:13 CEST 2017


Revision: 44368
          http://tug.org/svn/texlive?view=revision&revision=44368
Author:   karl
Date:     2017-05-15 23:14:13 +0200 (Mon, 15 May 2017)
Log Message:
-----------
lni (15may17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/lni/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/lni/README.md
    trunk/Master/texmf-dist/doc/latex/lni/lni.pdf
    trunk/Master/texmf-dist/source/latex/lni/lni.dtx
    trunk/Master/texmf-dist/tex/latex/lni/lni.cls

Modified: trunk/Master/texmf-dist/doc/latex/lni/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lni/CHANGELOG.md	2017-05-15 21:14:01 UTC (rev 44367)
+++ trunk/Master/texmf-dist/doc/latex/lni/CHANGELOG.md	2017-05-15 21:14:13 UTC (rev 44368)
@@ -4,6 +4,13 @@
 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 @@
 ## [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

Modified: trunk/Master/texmf-dist/doc/latex/lni/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lni/README.md	2017-05-15 21:14:01 UTC (rev 44367)
+++ trunk/Master/texmf-dist/doc/latex/lni/README.md	2017-05-15 21:14:13 UTC (rev 44368)
@@ -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 at schoenerpublizieren.de
 License:    Released under the LaTeX Project Public License v1.3c or later

Modified: trunk/Master/texmf-dist/doc/latex/lni/lni.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/lni/lni.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/lni/lni.dtx	2017-05-15 21:14:01 UTC (rev 44367)
+++ trunk/Master/texmf-dist/source/latex/lni/lni.dtx	2017-05-15 21:14:13 UTC (rev 44368)
@@ -163,7 +163,7 @@
 %<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 @@
 % 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,9 +399,14 @@
 % \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
@@ -405,14 +413,15 @@
 % 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 @@
 % 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 @@
 \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 @@
 %    \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 at upqtrue}%
-      {\ClassWarning{lni}{You are using an old version of `newtxtt'.\MessageBreak 
-       Option `straightquotes' will not be used!}}%
+      \@ifpackagelater{newtxtt}{2014/11/18}%
+         {\txtt at 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

Modified: trunk/Master/texmf-dist/tex/latex/lni/lni.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lni/lni.cls	2017-05-15 21:14:01 UTC (rev 44367)
+++ trunk/Master/texmf-dist/tex/latex/lni/lni.cls	2017-05-15 21:14:13 UTC (rev 44368)
@@ -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 at 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 at 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[%



More information about the tex-live-commits mailing list