From 2f5964291a88608747b1d1e56f55901b603e2418 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 2 Mar 2021 21:55:31 +0000 Subject: lni (2mar21) git-svn-id: svn://tug.org/texlive/trunk@58061 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/lni/lni.cls | 111 ++++++++++++++++++++------------ 1 file changed, 69 insertions(+), 42 deletions(-) (limited to 'Master/texmf-dist/tex/latex') 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 -- cgit v1.2.3