texlive[58068] branches/branch2020.0/Master/texmf-dist: lni (2mar21)

commits+karl at tug.org commits+karl at tug.org
Tue Mar 2 22:57:29 CET 2021


Revision: 58068
          http://tug.org/svn/texlive?view=revision&revision=58068
Author:   karl
Date:     2021-03-02 22:57:29 +0100 (Tue, 02 Mar 2021)
Log Message:
-----------
lni (2mar21) (branch)

Modified Paths:
--------------
    branches/branch2020.0/Master/texmf-dist/bibtex/bst/lni/lni.bst
    branches/branch2020.0/Master/texmf-dist/bibtex/bst/lni/lnig.bst
    branches/branch2020.0/Master/texmf-dist/doc/latex/lni/CHANGELOG.md
    branches/branch2020.0/Master/texmf-dist/doc/latex/lni/README.md
    branches/branch2020.0/Master/texmf-dist/doc/latex/lni/lni-author-template.tex
    branches/branch2020.0/Master/texmf-dist/doc/latex/lni/lni-paper-example-de.tex
    branches/branch2020.0/Master/texmf-dist/doc/latex/lni/lni.pdf
    branches/branch2020.0/Master/texmf-dist/source/latex/lni/lni.dtx
    branches/branch2020.0/Master/texmf-dist/source/latex/lni/lni.ins
    branches/branch2020.0/Master/texmf-dist/tex/latex/lni/lni.cls

Modified: branches/branch2020.0/Master/texmf-dist/bibtex/bst/lni/lni.bst
===================================================================
--- branches/branch2020.0/Master/texmf-dist/bibtex/bst/lni/lni.bst	2021-03-02 21:57:17 UTC (rev 58067)
+++ branches/branch2020.0/Master/texmf-dist/bibtex/bst/lni/lni.bst	2021-03-02 21:57:29 UTC (rev 58068)
@@ -1285,7 +1285,7 @@
 
 EXECUTE {end.bib}
 %% 
-%% Copyright (C) 2016-2019 by Gesellschaft für Informatik e.V. (GI)
+%% Copyright (C) 2016-2021 by Gesellschaft für Informatik e.V. (GI)
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License (LPPL), either

Modified: branches/branch2020.0/Master/texmf-dist/bibtex/bst/lni/lnig.bst
===================================================================
--- branches/branch2020.0/Master/texmf-dist/bibtex/bst/lni/lnig.bst	2021-03-02 21:57:17 UTC (rev 58067)
+++ branches/branch2020.0/Master/texmf-dist/bibtex/bst/lni/lnig.bst	2021-03-02 21:57:29 UTC (rev 58068)
@@ -1285,7 +1285,7 @@
 
 EXECUTE {end.bib}
 %% 
-%% Copyright (C) 2016-2019 by Gesellschaft für Informatik e.V. (GI)
+%% Copyright (C) 2016-2021 by Gesellschaft für Informatik e.V. (GI)
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License (LPPL), either

Modified: branches/branch2020.0/Master/texmf-dist/doc/latex/lni/CHANGELOG.md
===================================================================
--- branches/branch2020.0/Master/texmf-dist/doc/latex/lni/CHANGELOG.md	2021-03-02 21:57:17 UTC (rev 58067)
+++ branches/branch2020.0/Master/texmf-dist/doc/latex/lni/CHANGELOG.md	2021-03-02 21:57:29 UTC (rev 58068)
@@ -6,6 +6,16 @@
 
 ## [Unreleased]
 
+## [1.7.0] - 2021-03-02
+
+### Changed
+
+- Change loading of latest ngerman hyphenation patterns (#47)
+- Change `\year` to `\yearofpublication` to avoid problems (#85)
+
+### Fixed
+- Fix setting of pdf metadata (#87)
+  
 ## [1.6.0] - 2019-10-14
 
 ### Added
@@ -96,7 +106,8 @@
 ## [1.0.0] - 2017-04-07
 First release of the revised files
 
-[Unreleased]: https://github.com/gi-ev/LNI/compare/v1.6...HEAD
+[Unreleased]: https://github.com/gi-ev/LNI/compare/v1.7...HEAD
+[1.7.0]: https://github.com/gi-ev/LNI/releases/tag/v1.7
 [1.6.0]: https://github.com/gi-ev/LNI/releases/tag/v1.6
 [1.5.0]: https://github.com/gi-ev/LNI/releases/tag/v1.5
 [1.4.0]: https://github.com/gi-ev/LNI/releases/tag/v1.4

Modified: branches/branch2020.0/Master/texmf-dist/doc/latex/lni/README.md
===================================================================
--- branches/branch2020.0/Master/texmf-dist/doc/latex/lni/README.md	2021-03-02 21:57:17 UTC (rev 58067)
+++ branches/branch2020.0/Master/texmf-dist/doc/latex/lni/README.md	2021-03-02 21:57:29 UTC (rev 58068)
@@ -3,8 +3,8 @@
 ```
 ----------------------------------------------------------------------------
 lni      -- A class for submissions to the ``Lecture Notes in Informatics''
-(c) 2016-2019 Gesellschaft für Informatik (GI)
-Version:    1.6
+(c) 2016-2021 Gesellschaft für Informatik (GI)
+Version:    1.7
 Maintainer: Martin Sievers
 Email:      martin.sievers at schoenerpublizieren.de
 License:    Released under the LaTeX Project Public License v1.3c or later

Modified: branches/branch2020.0/Master/texmf-dist/doc/latex/lni/lni-author-template.tex
===================================================================
--- branches/branch2020.0/Master/texmf-dist/doc/latex/lni/lni-author-template.tex	2021-03-02 21:57:17 UTC (rev 58067)
+++ branches/branch2020.0/Master/texmf-dist/doc/latex/lni/lni-author-template.tex	2021-03-02 21:57:29 UTC (rev 58068)
@@ -24,7 +24,7 @@
 \startpage{11} % Beginn der Seitenzählung für diesen Beitrag / Start page
 \editor{Herausgeber et al.} % Names of Editors
 \booktitle{Name-der-Konferenz} % Name of book title
-\year{2017}
+\yearofpublication{2017}
 %%%\lnidoi{18.18420/provided-by-editor-02} % if known
 \maketitle
 

Modified: branches/branch2020.0/Master/texmf-dist/doc/latex/lni/lni-paper-example-de.tex
===================================================================
--- branches/branch2020.0/Master/texmf-dist/doc/latex/lni/lni-paper-example-de.tex	2021-03-02 21:57:17 UTC (rev 58067)
+++ branches/branch2020.0/Master/texmf-dist/doc/latex/lni/lni-paper-example-de.tex	2021-03-02 21:57:29 UTC (rev 58068)
@@ -49,7 +49,7 @@
 \startpage{11} % Beginn der Seitenzählung für diesen Beitrag
 \editor{Herausgeber et al.}    % Namen der Herausgeber
 \booktitle{Name-der-Konferenz} % Name des Tagungsband; optional Kurztitel
-\year{2017}
+\yearofpublication{2017}
 %%%\lnidoi{18.18420/provided-by-editor-02} % Falls bekannt
 \maketitle
 

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

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/lni/lni.dtx
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/lni/lni.dtx	2021-03-02 21:57:17 UTC (rev 58067)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/lni/lni.dtx	2021-03-02 21:57:29 UTC (rev 58068)
@@ -60,7 +60,7 @@
 
 \postamble
 
-Copyright (C) 2016-2019 by Gesellschaft für Informatik e.V. (GI)
+Copyright (C) 2016-2021 by Gesellschaft für Informatik e.V. (GI)
 
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License (LPPL), either
@@ -101,11 +101,11 @@
 %</install>
 %<install>\endbatchfile
 %<*internal>
-\usedir{source/latex/lni}
-\generate{
-  \usepreamble\classpre
-  \file{\jobname.ins}{\from{\jobname.dtx}{install}}
-}
+%%%\usedir{source/latex/lni}
+%%%\generate{
+%%%%  \usepreamble\classpre
+%%%  \file{\jobname.ins}{\from{\jobname.dtx}{install}}
+%%%}
 \nopreamble\nopostamble
 \usedir{doc/latex/lni}
 \generate{
@@ -134,7 +134,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<class>\ProvidesClass{lni}
 %<*class>
-    [2019/10/14 v1.6BETA Official class for submissions to the ``Lecture Notes
+    [2021/03/02 v1.7 Official class for submissions to the ``Lecture Notes
     in Informatics'']
 %</class>
 %<*driver>
@@ -160,8 +160,8 @@
 \usepackage[%
 	pdftitle={lni: Official LaTeX class for submissions to the ``Lecture Notes in
    	Informatics'', published by the ``Gesellschaft für Informatik e.\,V.'' (GI)},
-    pdfauthor={Martin Sievers},
-    urlcolor=blue,%
+   pdfauthor={Martin Sievers},
+   urlcolor=blue,%
 	linktoc=both,%
 	colorlinks=true]{hyperref}
 \usepackage[nameinlink,capitalise]{cleveref}
@@ -305,6 +305,13 @@
 % it more compatible with other packages like \pkg{authorarchive}}
 % \changes{v1.6}{2019/10/14}{Fix for BibTeX style}
 % \changes{v1.6}{2019/10/14}{Add support for \pkg{selnolig}}
+% \changes{v1.7}{2020/12/03}{Revert redefinition of \cs{year} after 
+% \cs{maketitle}}
+% \changes{v1.7}{2021/03/02}{Fix setting of pdf metadata (#87)}
+% \changes{v1.7}{2021/03/02}{Change loading of latest ngerman hyphenation
+% patterns (#47)}
+% \changes{v1.7}{2021/03/02}{Change \cs{year} to \cs{yearofpublication} to 
+% avoid problems (#85)}
 %
 % \GetFileInfo{\jobname.dtx}
 % \DoNotIndex{\newcommand,\newenvironment}
@@ -453,7 +460,7 @@
 % % !TeX program = pdflatex
 % % !BIB program = bibtex8
 % % !TeX encoding = UTF-8
-% % !TeX spellcheck = de_DE
+% % !TeX spellcheck = en_US
 % \documentclass[english]{lni}
 % \end{examplecode}
 %
@@ -461,7 +468,7 @@
 % \DescribeMacro{\startpage}\DescribeMacro{\editor}%
 % \DescribeMacro{\booktitle\space(changed in v1.6)}%
 % \DescribeMacro{\booksubtitle\space(new in v1.6)}%
-% \DescribeMacro{\year}In addition to the macros stated in
+% \DescribeMacro{\yearofpublication}In addition to the macros stated in
 % \cref{sec:titlepage} for authors, there are special editor macros to
 % influence the layout of the article:
 % \begin{itemize}
@@ -601,7 +608,8 @@
 % \end{table}
 % \end{examplecode}
 %
-% \subsubsection{Listings\,/\,Source code}
+% \subsubsection{\texorpdfstring{Listings\,/\,Source code}%
+%   {Listings/Source code}}
 % The \lni{} bundle loads the \pkg{verbatim} and \pkg{listings} package. While
 % the former is there for compatability, the later is the standard way of
 % integrating source code listings into a \LaTeX{} document.
@@ -785,15 +793,6 @@
 \ProcessOptions\relax
 %
 \RequirePackage{iftex}
-\ifPDFTeX
-   \RequirePackage{hyphsubst}
-   \HyphSubstIfExists{ngerman-x-latest}%
-      {\HyphSubstLet{ngerman}{ngerman-x-latest}%
-       \ClassInfo{lni}{Using latest German hyphenation patterns}}%
-      {\ClassWarning{lni}{Latest German hyphenation patterns could not be found!%
-         \MessageBreak If you write a German article you should check your%
-         installation}}%
-\fi%
 \LoadClass[10pt,twoside,a4paper,fleqn]{article}
 \ifPDFTeX
    \RequirePackage{cmap}
@@ -806,6 +805,8 @@
    \RequirePackage[ngerman,english]{babel}
 \else
    \RequirePackage[english,ngerman]{babel}
+   \babelprovide[hyphenrules=ngerman-x-latest]{ngerman}
+   \ClassInfo{lni}{Using latest German hyphenation patterns}%
 \fi%
 % Hint by http://tex.stackexchange.com/a/321067/9075 -> enable "= as dashes
 \useshorthands*{"}
@@ -848,7 +849,7 @@
          {\RequirePackage{newtxmath}}%
          {}%
       \RequirePackage[no-math]{fontspec}
-      \IfFontExistsTF{texgyretrmes-regular.otf}
+      \IfFontExistsTF{texgyretermes-regular.otf}
          {%
           \setmainfont{texgyretermes}[
              Extension = .otf,
@@ -956,7 +957,7 @@
             \normalsize
             \expandafter\csname\CROP at font\endcsname{%
                ``\jobname''\x
-               \the\@rigyear/\the\month/\the\day\x
+               \the\year/\the\month/\the\day\x
                \CROP at time\x
                page\kern.5em\thepage\x
                \#\the\CROP at index
@@ -1089,8 +1090,16 @@
 % \begin{macro}{\author}
 %    \begin{macrocode}
 \renewcommand{\author}{\@dblarg\@@author}
-\def\@@author[#1]#2{\gdef\@shortauthor{{\let\footnote\@gobble%
-   \def\and{\unskip,\ }#1}}\gdef\@author{#2}}
+\newcommand{\@@author}[2][]{%
+   \DeclareRobustCommand{\@shortauthor}{%
+         {%
+            %\let\footnote\@gobble%
+            \def\and{\texorpdfstring{\unskip,\ }{}}%
+            #1%
+         }%
+      }%
+      \DeclareRobustCommand{\@author}{#2}%
+   }
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\authorrunning}
@@ -1113,7 +1122,7 @@
 % Title: Kopie aus article.cls mit anderem \thispagestyle
 %    \begin{macrocode}
 \renewcommand\maketitle{\par%
-\begingroup
+   \begingroup
     \renewcommand\thefootnote{\@arabic\c at footnote}%
     \def\@makefnmark% keine Einrückung der Fußnoten eingestellt
 		 {\@textsuperscript{\normalfont\@thefnmark}}%
@@ -1132,7 +1141,7 @@
       \fi%
     \else
       \newpage
-      \global\@topnum\z@   % Prevents figures from going at top of page.
+      \global\@topnum\z@% Prevents figures from going at top of page.
       \@maketitle
     \fi%
     \ifnorunningheads
@@ -1142,6 +1151,14 @@
     \fi%
     \@thanks
   \endgroup
+  \ifusehyperref
+      \HyXeTeX at CheckUnicode
+      \HyPsd at PrerenderUnicode{\@shortauthor}%
+      \pdfstringdef\@pdfauthor{\@shortauthor}%
+      \HyXeTeX at CheckUnicode
+      \HyPsd at PrerenderUnicode{\@title}%
+      \pdfstringdef\@pdftitle{\@title}%
+  \fi%
   \global\let\thanks\relax
   \global\let\maketitle\relax
   \global\let\@maketitle\relax
@@ -1215,8 +1232,13 @@
     \noindent\ignorespaces{\bfseries Keywords:\ }}%
    {\global\keywordsfalse}
 \let\@RIGsection\section
-\pretocmd\@startsection{\ifkeywords\ClassError{lni}{keywords is an environment, not a macro}%
-   {Please change \string\keywords\space to an environment}\keywordsfalse\fi}{}{}
+\pretocmd\@startsection{%
+   \ifkeywords\ClassError{lni}%
+      {keywords is an environment, not a macro}%
+      {Please change \string\keywords\space to an environment}%
+      \keywordsfalse%
+   \fi%
+}{}{}
 %    \end{macrocode}
 % \end{environment}
 % Section headings
@@ -1290,7 +1312,7 @@
 \renewcommand{\labelitemi}{$\bullet$}
 \renewcommand*\itemize{%
   \ifnum \@itemdepth >\thr@@\@toodeep\else
-  	\setlength{\labelsep}{0.70cm}%Abstand zum Aufzählungspunkt
+  	\setlength{\labelsep}{0.70cm}%
     \advance\@itemdepth\@ne
     \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
     \expandafter
@@ -1352,6 +1374,7 @@
 % \end{macro}
 % \begin{macro}{\booktitle}
 %    \begin{macrocode}
+\def\@bookshorttitle{}
 \newcommand{\booktitle}{\@dblarg\@@booktitle}
 \def\@@booktitle[#1]#2{\gdef\@bookshorttitle{#1}\gdef\@booktitle{#2}}
 %    \end{macrocode}
@@ -1366,35 +1389,43 @@
 %    \end{macrocode}
 % \end{macro}
 %    \begin{macrocode}
-\AtBeginDocument{%
-   \let\@rigyear\year
-   \newcommand*{\@year}{\the\@rigyear}
-   \renewcommand*{\year}[1]{%
-      \renewcommand{\@year}{#1}%
-   }%
-}%
+\newcommand*{\@yearofpublication}{\the\year}
+\newcommand*{\yearofpublication}[1]{\renewcommand*{\@yearofpublication}{#1}}
 %    \end{macrocode}
 % set-up for header and footer
 %    \begin{macrocode}
 \fancypagestyle{plain}{%
    \fancyhead{} % Löscht alle Kopfzeileneinstellungen
-   \fancyhead[RO]{\small\@editor~(Hrsg.):\ \@bookshorttitle,\hspace{1sp}\null\linebreak%
-       Lecture Notes in Informatics (LNI), Gesellschaft für Informatik, Bonn~\@year%
-       \hspace{5pt}\thepage\hspace{0.05cm}}
-   \fancyhead[LE]{\small\@editor~(Hrsg.):\
-   \@bookshorttitle,\linebreak\hspace{0.05cm}\thepage\hspace{5pt} Lecture Notes
-   in Informatics (LNI), Gesellschaft für Informatik, Bonn~\@year}
-   \fancyfoot{} % Löscht alle Fußzeileneinstellungen
-   \renewcommand{\headrulewidth}{0.4pt} %Linie unter Kopfzeile
+   \fancyhead[RO]{%
+      \small\@editor~(Hrsg.):\ 
+      \ifdefempty{\@bookshorttitle}%
+         {}%
+         {\@bookshorttitle,\hspace{1sp}}%
+      \null\linebreak%
+      Lecture Notes in Informatics (LNI), Gesellschaft für Informatik, 
+      Bonn~\@yearofpublication%
+      \hspace{5pt}\thepage\hspace{0.05cm}%
+   }%
+   \fancyhead[LE]{%
+      \small\@editor~(Hrsg.):\
+      \ifdefempty{\@bookshorttitle}%
+      {}%
+      {\@bookshorttitle,\hspace{1sp}}%
+      \linebreak\hspace{0.05cm}\thepage\hspace{5pt} Lecture Notes
+      in Informatics (LNI), Gesellschaft für Informatik, 
+      Bonn~\@yearofpublication%
+   }%
+   \fancyfoot{}% Löscht alle Fußzeileneinstellungen
+   \renewcommand{\headrulewidth}{0.4pt}% Linie unter Kopfzeile
 }%
 \ifnorunningheads
    \pagestyle{empty}
 \else
    \pagestyle{fancy}
-   \fancyhead{} % Löscht alle Kopfzeileneinstellungen
+   \fancyhead{}% Löscht alle Kopfzeileneinstellungen
    \fancyhead[RO]{\small\@shorttitle\hspace{5pt}\thepage\hspace{0.05cm}}
    \fancyhead[LE]{\hspace{0.05cm}\small\thepage\hspace{5pt}\@shortauthor}
-   \fancyfoot{} % Löscht alle Fußzeileneinstellungen
+   \fancyfoot{}% Löscht alle Fußzeileneinstellungen
    \renewcommand{\headrulewidth}{0.4pt} %Linie unter Kopfzeile
 \fi%
 %    \end{macrocode}
@@ -1417,10 +1448,14 @@
          colorlinks=true,%
          allcolors=black,%
          pdfstartview=Fit,%
-         pdfauthor={\@author},%
-         pdftitle={\@title}%
       }%
+%%%      \pdfstringdefDisableCommands{%
+%%%         \def\unskip{}%
+%%%         \renewcommand{\footnote}[1]{}%
+%%%      }%
    }%
+\else
+   \providecommand{\texorpdfstring}[2]{#2}%
 \fi%
 %    \end{macrocode}
 %    \begin{macrocode}
@@ -1446,12 +1481,12 @@
 %    \begin{macrocode}
 \AtEndPreamble{%
    \@ifpackageloaded{hyperref}
-   {\RequirePackage[all]{hypcap}}%
-   {}%
+      {\RequirePackage[all]{hypcap}}%
+      {}%
 }%
 %    \end{macrocode}
 %    \begin{macrocode}
-\def\and{\unskip\hspace{-0.42em},\hspace{.6em}}
+\def\and{\texorpdfstring{\unskip\hspace{-0.42em},\hspace{.6em}}{, }}%
 %    \end{macrocode}
 %    \begin{macrocode}
 \ifusebiblatex
@@ -2948,7 +2983,7 @@
 %numbering at this number
 \editor{Herausgeber et al.} % Names of Editors
 \booktitle{Name-der-Konferenz} % Name of book title
-\year{2017}
+\yearofpublication{2017}
 %%%\lnidoi{18.18420/provided-by-editor-02} % if known
 \maketitle
 
@@ -3108,7 +3143,7 @@
 \startpage{11} % Beginn der Seitenzählung für diesen Beitrag
 \editor{Herausgeber et al.}    % Namen der Herausgeber
 \booktitle{Name-der-Konferenz} % Name des Tagungsband; optional Kurztitel
-\year{2017}
+\yearofpublication{2017}
 %%%\lnidoi{18.18420/provided-by-editor-02} % Falls bekannt
 \maketitle
 

Modified: branches/branch2020.0/Master/texmf-dist/source/latex/lni/lni.ins
===================================================================
--- branches/branch2020.0/Master/texmf-dist/source/latex/lni/lni.ins	2021-03-02 21:57:17 UTC (rev 58067)
+++ branches/branch2020.0/Master/texmf-dist/source/latex/lni/lni.ins	2021-03-02 21:57:29 UTC (rev 58068)
@@ -1,10 +1,5 @@
 %%
 %% This is file `lni.ins',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% lni.dtx  (with options: `install')
 %% --------| -----------------------------------------------------------------
 %%     lni:| A class for submissions to the ``Lecture Notes in Informatics''
 %%  Author:| Martin Sievers
@@ -62,7 +57,7 @@
 
 \postamble
 
-Copyright (C) 2016-2019 by Gesellschaft für Informatik e.V. (GI)
+Copyright (C) 2016-2021 by Gesellschaft für Informatik e.V. (GI)
 
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License (LPPL), either
@@ -102,7 +97,7 @@
 }
 \endbatchfile
 %% 
-%% Copyright (C) 2016-2019 by Gesellschaft für Informatik e.V. (GI)
+%% Copyright (C) 2016-2021 by Gesellschaft für Informatik e.V. (GI)
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License (LPPL), either

Modified: branches/branch2020.0/Master/texmf-dist/tex/latex/lni/lni.cls
===================================================================
--- branches/branch2020.0/Master/texmf-dist/tex/latex/lni/lni.cls	2021-03-02 21:57:17 UTC (rev 58067)
+++ branches/branch2020.0/Master/texmf-dist/tex/latex/lni/lni.cls	2021-03-02 21:57:29 UTC (rev 58068)
@@ -14,7 +14,7 @@
 %% --------| -----------------------------------------------------------------
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesClass{lni}
-    [2019/10/14 v1.6BETA Official class for submissions to the ``Lecture Notes
+    [2021/03/02 v1.7 Official class for submissions to the ``Lecture Notes
     in Informatics'']
 \def\@clearglobaloption#1{%
   \def\@tempa{#1}%
@@ -61,15 +61,6 @@
 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
 \ProcessOptions\relax
 \RequirePackage{iftex}
-\ifPDFTeX
-   \RequirePackage{hyphsubst}
-   \HyphSubstIfExists{ngerman-x-latest}%
-      {\HyphSubstLet{ngerman}{ngerman-x-latest}%
-       \ClassInfo{lni}{Using latest German hyphenation patterns}}%
-      {\ClassWarning{lni}{Latest German hyphenation patterns could not be found!%
-         \MessageBreak If you write a German article you should check your%
-         installation}}%
-\fi%
 \LoadClass[10pt,twoside,a4paper,fleqn]{article}
 \ifPDFTeX
    \RequirePackage{cmap}
@@ -81,6 +72,8 @@
    \RequirePackage[ngerman,english]{babel}
 \else
    \RequirePackage[english,ngerman]{babel}
+   \babelprovide[hyphenrules=ngerman-x-latest]{ngerman}
+   \ClassInfo{lni}{Using latest German hyphenation patterns}%
 \fi%
 \useshorthands*{"}
 \addto\extrasenglish{\languageshorthands{ngerman}}
@@ -110,7 +103,7 @@
          {\RequirePackage{newtxmath}}%
          {}%
       \RequirePackage[no-math]{fontspec}
-      \IfFontExistsTF{texgyretrmes-regular.otf}
+      \IfFontExistsTF{texgyretermes-regular.otf}
          {%
           \setmainfont{texgyretermes}[
              Extension = .otf,
@@ -205,7 +198,7 @@
             \normalsize
             \expandafter\csname\CROP at font\endcsname{%
                ``\jobname''\x
-               \the\@rigyear/\the\month/\the\day\x
+               \the\year/\the\month/\the\day\x
                \CROP at time\x
                page\kern.5em\thepage\x
                \#\the\CROP at index
@@ -300,8 +293,16 @@
 \def\@@title[#1]#2{\gdef\@shorttitle{#1}\gdef\@title{#2}}
 \newcommand{\subtitle}[1]{\gdef\@subtitle{#1}}
 \renewcommand{\author}{\@dblarg\@@author}
-\def\@@author[#1]#2{\gdef\@shortauthor{{\let\footnote\@gobble%
-   \def\and{\unskip,\ }#1}}\gdef\@author{#2}}
+\newcommand{\@@author}[2][]{%
+   \DeclareRobustCommand{\@shortauthor}{%
+         {%
+            %\let\footnote\@gobble%
+            \def\and{\texorpdfstring{\unskip,\ }{}}%
+            #1%
+         }%
+      }%
+      \DeclareRobustCommand{\@author}{#2}%
+   }
 \newcommand{\authorrunning}[1]{%
    \fancyhead[LE]{\hspace{0.05cm}\oldsmall\thepage\hspace{5pt}#1}}
 \newcommand*{\email}[1]{\href{mailto:#1}{\urlstyle{same}\protect\nolinkurl{#1}}}
@@ -308,7 +309,7 @@
 \newcommand{\@lnidoi}{}
 \newcommand{\lnidoi}[1]{\gdef\@lnidoi{#1}}
 \renewcommand\maketitle{\par%
-\begingroup
+   \begingroup
     \renewcommand\thefootnote{\@arabic\c at footnote}%
     \def\@makefnmark% keine Einrückung der Fußnoten eingestellt
  {\@textsuperscript{\normalfont\@thefnmark}}%
@@ -327,7 +328,7 @@
       \fi%
     \else
       \newpage
-      \global\@topnum\z@   % Prevents figures from going at top of page.
+      \global\@topnum\z@% Prevents figures from going at top of page.
       \@maketitle
     \fi%
     \ifnorunningheads
@@ -337,6 +338,14 @@
     \fi%
     \@thanks
   \endgroup
+  \ifusehyperref
+      \HyXeTeX at CheckUnicode
+      \HyPsd at PrerenderUnicode{\@shortauthor}%
+      \pdfstringdef\@pdfauthor{\@shortauthor}%
+      \HyXeTeX at CheckUnicode
+      \HyPsd at PrerenderUnicode{\@title}%
+      \pdfstringdef\@pdftitle{\@title}%
+  \fi%
   \global\let\thanks\relax
   \global\let\maketitle\relax
   \global\let\@maketitle\relax
@@ -400,8 +409,13 @@
     \noindent\ignorespaces{\bfseries Keywords:\ }}%
    {\global\keywordsfalse}
 \let\@RIGsection\section
-\pretocmd\@startsection{\ifkeywords\ClassError{lni}{keywords is an environment, not a macro}%
-   {Please change \string\keywords\space to an environment}\keywordsfalse\fi}{}{}
+\pretocmd\@startsection{%
+   \ifkeywords\ClassError{lni}%
+      {keywords is an environment, not a macro}%
+      {Please change \string\keywords\space to an environment}%
+      \keywordsfalse%
+   \fi%
+}{}{}
 \renewcommand{\section}{\@startsection{section}{1}{\z@}%
   {-16\p@ \@plus -4\p@ \@minus -4\p@}{5\p@ \@plus 4\p@ \@minus
   4\p@}{\large\bfseries}}
@@ -448,7 +462,7 @@
 \renewcommand{\labelitemi}{$\bullet$}
 \renewcommand*\itemize{%
   \ifnum \@itemdepth >\thr@@\@toodeep\else
-   \setlength{\labelsep}{0.70cm}%Abstand zum Aufzählungspunkt
+   \setlength{\labelsep}{0.70cm}%
     \advance\@itemdepth\@ne
     \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
     \expandafter
@@ -492,37 +506,46 @@
   \renewcommand{\refname}{Bibliography}%
 }%
 \newcommand*{\startpage}[1]{\setcounter{page}{#1}}
+\def\@bookshorttitle{}
 \newcommand{\booktitle}{\@dblarg\@@booktitle}
 \def\@@booktitle[#1]#2{\gdef\@bookshorttitle{#1}\gdef\@booktitle{#2}}
 \newcommand{\booksubtitle}[1]{\gdef\@booksubtitle{#1}}
 \newcommand*{\@editor}{}
 \newcommand*{\editor}[1]{\renewcommand{\@editor}{#1}}
-\AtBeginDocument{%
-   \let\@rigyear\year
-   \newcommand*{\@year}{\the\@rigyear}
-   \renewcommand*{\year}[1]{%
-      \renewcommand{\@year}{#1}%
-   }%
-}%
+\newcommand*{\@yearofpublication}{\the\year}
+\newcommand*{\yearofpublication}[1]{\renewcommand*{\@yearofpublication}{#1}}
 \fancypagestyle{plain}{%
    \fancyhead{} % Löscht alle Kopfzeileneinstellungen
-   \fancyhead[RO]{\small\@editor~(Hrsg.):\ \@bookshorttitle,\hspace{1sp}\null\linebreak%
-       Lecture Notes in Informatics (LNI), Gesellschaft für Informatik, Bonn~\@year%
-       \hspace{5pt}\thepage\hspace{0.05cm}}
-   \fancyhead[LE]{\small\@editor~(Hrsg.):\
-   \@bookshorttitle,\linebreak\hspace{0.05cm}\thepage\hspace{5pt} Lecture Notes
-   in Informatics (LNI), Gesellschaft für Informatik, Bonn~\@year}
-   \fancyfoot{} % Löscht alle Fußzeileneinstellungen
-   \renewcommand{\headrulewidth}{0.4pt} %Linie unter Kopfzeile
+   \fancyhead[RO]{%
+      \small\@editor~(Hrsg.):\
+      \ifdefempty{\@bookshorttitle}%
+         {}%
+         {\@bookshorttitle,\hspace{1sp}}%
+      \null\linebreak%
+      Lecture Notes in Informatics (LNI), Gesellschaft für Informatik,
+      Bonn~\@yearofpublication%
+      \hspace{5pt}\thepage\hspace{0.05cm}%
+   }%
+   \fancyhead[LE]{%
+      \small\@editor~(Hrsg.):\
+      \ifdefempty{\@bookshorttitle}%
+      {}%
+      {\@bookshorttitle,\hspace{1sp}}%
+      \linebreak\hspace{0.05cm}\thepage\hspace{5pt} Lecture Notes
+      in Informatics (LNI), Gesellschaft für Informatik,
+      Bonn~\@yearofpublication%
+   }%
+   \fancyfoot{}% Löscht alle Fußzeileneinstellungen
+   \renewcommand{\headrulewidth}{0.4pt}% Linie unter Kopfzeile
 }%
 \ifnorunningheads
    \pagestyle{empty}
 \else
    \pagestyle{fancy}
-   \fancyhead{} % Löscht alle Kopfzeileneinstellungen
+   \fancyhead{}% Löscht alle Kopfzeileneinstellungen
    \fancyhead[RO]{\small\@shorttitle\hspace{5pt}\thepage\hspace{0.05cm}}
    \fancyhead[LE]{\hspace{0.05cm}\small\thepage\hspace{5pt}\@shortauthor}
-   \fancyfoot{} % Löscht alle Fußzeileneinstellungen
+   \fancyfoot{}% Löscht alle Fußzeileneinstellungen
    \renewcommand{\headrulewidth}{0.4pt} %Linie unter Kopfzeile
 \fi%
 \RequirePackage{url}
@@ -536,10 +559,14 @@
          colorlinks=true,%
          allcolors=black,%
          pdfstartview=Fit,%
-         pdfauthor={\@author},%
-         pdftitle={\@title}%
       }%
+%%%      \pdfstringdefDisableCommands{%
+%%%         \def\unskip{}%
+%%%         \renewcommand{\footnote}[1]{}%
+%%%      }%
    }%
+\else
+   \providecommand{\texorpdfstring}[2]{#2}%
 \fi%
 \ifusecleveref%
    \AtEndPreamble{%
@@ -560,10 +587,10 @@
 \fi%
 \AtEndPreamble{%
    \@ifpackageloaded{hyperref}
-   {\RequirePackage[all]{hypcap}}%
-   {}%
+      {\RequirePackage[all]{hypcap}}%
+      {}%
 }%
-\def\and{\unskip\hspace{-0.42em},\hspace{.6em}}
+\def\and{\texorpdfstring{\unskip\hspace{-0.42em},\hspace{.6em}}{, }}%
 \ifusebiblatex
 \else
    \iflnienglish
@@ -618,7 +645,7 @@
 \vfuzz \hfuzz
 \raggedbottom
 %% 
-%% Copyright (C) 2016-2019 by Gesellschaft für Informatik e.V. (GI)
+%% Copyright (C) 2016-2021 by Gesellschaft für Informatik e.V. (GI)
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License (LPPL), either



More information about the tex-live-commits mailing list.