diff options
author | Karl Berry <karl@freefriends.org> | 2021-03-02 21:57:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-03-02 21:57:29 +0000 |
commit | 3f4ea5ff3e73749ae40d210b91a135ea9fadafbe (patch) | |
tree | b50eed2bad2312ef963bc7271568289e9369e5b7 | |
parent | f84eef3bdf2725c88c29c6d07c5c5f59b7d0ce18 (diff) |
lni (2mar21) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2020.0@58068 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/bibtex/bst/lni/lni.bst | 2 | ||||
-rw-r--r-- | Master/texmf-dist/bibtex/bst/lni/lnig.bst | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/lni/CHANGELOG.md | 13 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/lni/README.md | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/lni/lni-author-template.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/lni/lni-paper-example-de.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/lni/lni.pdf | bin | 360183 -> 360866 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/lni/lni.dtx | 143 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/lni/lni.ins | 9 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/lni/lni.cls | 111 |
10 files changed, 178 insertions, 110 deletions
diff --git a/Master/texmf-dist/bibtex/bst/lni/lni.bst b/Master/texmf-dist/bibtex/bst/lni/lni.bst index b2f521ee3c2..691c6bdce13 100644 --- a/Master/texmf-dist/bibtex/bst/lni/lni.bst +++ b/Master/texmf-dist/bibtex/bst/lni/lni.bst @@ -1285,7 +1285,7 @@ FUNCTION {end.bib} 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 diff --git a/Master/texmf-dist/bibtex/bst/lni/lnig.bst b/Master/texmf-dist/bibtex/bst/lni/lnig.bst index 45300adaf32..d37ff15b948 100644 --- a/Master/texmf-dist/bibtex/bst/lni/lnig.bst +++ b/Master/texmf-dist/bibtex/bst/lni/lnig.bst @@ -1285,7 +1285,7 @@ FUNCTION {end.bib} 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 diff --git a/Master/texmf-dist/doc/latex/lni/CHANGELOG.md b/Master/texmf-dist/doc/latex/lni/CHANGELOG.md index ffe1091622e..0620ff73a0c 100644 --- a/Master/texmf-dist/doc/latex/lni/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/lni/CHANGELOG.md @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [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 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [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 diff --git a/Master/texmf-dist/doc/latex/lni/README.md b/Master/texmf-dist/doc/latex/lni/README.md index 14ba1363773..f986ef46f50 100644 --- a/Master/texmf-dist/doc/latex/lni/README.md +++ b/Master/texmf-dist/doc/latex/lni/README.md @@ -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@schoenerpublizieren.de License: Released under the LaTeX Project Public License v1.3c or later diff --git a/Master/texmf-dist/doc/latex/lni/lni-author-template.tex b/Master/texmf-dist/doc/latex/lni/lni-author-template.tex index 6dffc4195c1..abdbd74ce60 100644 --- a/Master/texmf-dist/doc/latex/lni/lni-author-template.tex +++ b/Master/texmf-dist/doc/latex/lni/lni-author-template.tex @@ -24,7 +24,7 @@ Firstname2 Lastname2\footnote{University, Department, Address, Country \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 diff --git a/Master/texmf-dist/doc/latex/lni/lni-paper-example-de.tex b/Master/texmf-dist/doc/latex/lni/lni-paper-example-de.tex index 236664d160b..40f52c0b1fc 100644 --- a/Master/texmf-dist/doc/latex/lni/lni-paper-example-de.tex +++ b/Master/texmf-dist/doc/latex/lni/lni-paper-example-de.tex @@ -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 diff --git a/Master/texmf-dist/doc/latex/lni/lni.pdf b/Master/texmf-dist/doc/latex/lni/lni.pdf Binary files differindex f0a4fff3c45..e4aa3474b2a 100644 --- a/Master/texmf-dist/doc/latex/lni/lni.pdf +++ b/Master/texmf-dist/doc/latex/lni/lni.pdf diff --git a/Master/texmf-dist/source/latex/lni/lni.dtx b/Master/texmf-dist/source/latex/lni/lni.dtx index 8301090e404..4ad46abd8df 100644 --- a/Master/texmf-dist/source/latex/lni/lni.dtx +++ b/Master/texmf-dist/source/latex/lni/lni.dtx @@ -60,7 +60,7 @@ License:| Released under the LaTeX Project Public License v1.3c or later \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 @@ This work consists of the file lni.dtx %</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 @@ This work consists of the file lni.dtx %<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 @@ This work consists of the file lni.dtx \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 @@ This work consists of the file lni.dtx % 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 @@ This work consists of the file lni.dtx % % !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 @@ This work consists of the file lni.dtx % \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 @@ This work consists of the file lni.dtx % \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 @@ This work consists of the file lni.dtx \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 @@ This work consists of the file lni.dtx \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 @@ This work consists of the file lni.dtx {\RequirePackage{newtxmath}}% {}% \RequirePackage[no-math]{fontspec} - \IfFontExistsTF{texgyretrmes-regular.otf} + \IfFontExistsTF{texgyretermes-regular.otf} {% \setmainfont{texgyretermes}[ Extension = .otf, @@ -956,7 +957,7 @@ This work consists of the file lni.dtx \normalsize \expandafter\csname\CROP@font\endcsname{% ``\jobname''\x - \the\@rigyear/\the\month/\the\day\x + \the\year/\the\month/\the\day\x \CROP@time\x page\kern.5em\thepage\x \#\the\CROP@index @@ -1089,8 +1090,16 @@ This work consists of the file lni.dtx % \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 @@ This work consists of the file lni.dtx % Title: Kopie aus article.cls mit anderem \thispagestyle % \begin{macrocode} \renewcommand\maketitle{\par% -\begingroup + \begingroup \renewcommand\thefootnote{\@arabic\c@footnote}% \def\@makefnmark% keine Einrückung der Fußnoten eingestellt {\@textsuperscript{\normalfont\@thefnmark}}% @@ -1132,7 +1141,7 @@ This work consists of the file lni.dtx \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 @@ This work consists of the file lni.dtx \fi% \@thanks \endgroup + \ifusehyperref + \HyXeTeX@CheckUnicode + \HyPsd@PrerenderUnicode{\@shortauthor}% + \pdfstringdef\@pdfauthor{\@shortauthor}% + \HyXeTeX@CheckUnicode + \HyPsd@PrerenderUnicode{\@title}% + \pdfstringdef\@pdftitle{\@title}% + \fi% \global\let\thanks\relax \global\let\maketitle\relax \global\let\@maketitle\relax @@ -1215,8 +1232,13 @@ This work consists of the file lni.dtx \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 @@ This work consists of the file lni.dtx \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 @@ This work consists of the file lni.dtx % \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 @@ This work consists of the file lni.dtx % \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 @@ This work consists of the file lni.dtx 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 @@ This work consists of the file lni.dtx % \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 @@ Firstname2 Lastname2\footnote{University, Department, Address, Country %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 @@ Schlagwort1 \and Schlagwort2 %Keyword1 \and Keyword2 \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 diff --git a/Master/texmf-dist/source/latex/lni/lni.ins b/Master/texmf-dist/source/latex/lni/lni.ins index fc495f759da..5536ab57b97 100644 --- a/Master/texmf-dist/source/latex/lni/lni.ins +++ b/Master/texmf-dist/source/latex/lni/lni.ins @@ -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 @@ License:| Released under the LaTeX Project Public License v1.3c or later \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 @@ This work consists of the file lni.dtx } \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 diff --git a/Master/texmf-dist/tex/latex/lni/lni.cls b/Master/texmf-dist/tex/latex/lni/lni.cls index f5cc1fa9a60..9611c58ba84 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} - [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@font\endcsname{% ``\jobname''\x - \the\@rigyear/\the\month/\the\day\x + \the\year/\the\month/\the\day\x \CROP@time\x page\kern.5em\thepage\x \#\the\CROP@index @@ -300,15 +293,23 @@ \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}}} \newcommand{\@lnidoi}{} \newcommand{\lnidoi}[1]{\gdef\@lnidoi{#1}} \renewcommand\maketitle{\par% -\begingroup + \begingroup \renewcommand\thefootnote{\@arabic\c@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@CheckUnicode + \HyPsd@PrerenderUnicode{\@shortauthor}% + \pdfstringdef\@pdfauthor{\@shortauthor}% + \HyXeTeX@CheckUnicode + \HyPsd@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 |