Skip to content

Commit

Permalink
Change \year to \yearofpublication (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
sieversMartin committed Mar 2, 2021
1 parent 38e1174 commit 87ed845
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 35 deletions.
2 changes: 1 addition & 1 deletion lni-author-template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lni-paper-example-de.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
26 changes: 11 additions & 15 deletions lni.cls
Original file line number Diff line number Diff line change
Expand Up @@ -198,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
Expand Down Expand Up @@ -357,7 +357,6 @@
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
\global\let\year\@rigyear
}
\def\@maketitle{%
\newpage
Expand Down Expand Up @@ -513,13 +512,8 @@
\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]{%
Expand All @@ -528,7 +522,8 @@
{}%
{\@bookshorttitle,\hspace{1sp}}%
\null\linebreak%
Lecture Notes in Informatics (LNI), Gesellschaft für Informatik, Bonn~\@year%
Lecture Notes in Informatics (LNI), Gesellschaft für Informatik,
Bonn~\@yearofpublication%
\hspace{5pt}\thepage\hspace{0.05cm}%
}%
\fancyhead[LE]{%
Expand All @@ -537,19 +532,20 @@
{}%
{\@bookshorttitle,\hspace{1sp}}%
\linebreak\hspace{0.05cm}\thepage\hspace{5pt} Lecture Notes
in Informatics (LNI), Gesellschaft für Informatik, Bonn~\@year%
in Informatics (LNI), Gesellschaft für Informatik,
Bonn~\@yearofpublication%
}%
\fancyfoot{} % Löscht alle Fußzeileneinstellungen
\renewcommand{\headrulewidth}{0.4pt} %Linie unter Kopfzeile
\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}
Expand Down
32 changes: 14 additions & 18 deletions lni.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,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}
Expand Down Expand Up @@ -955,7 +955,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
Expand Down Expand Up @@ -1168,7 +1168,6 @@ This work consists of the file lni.dtx
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
\global\let\year\@rigyear
}
% \end{macrocode}
% \begin{macrocode}
Expand Down Expand Up @@ -1388,13 +1387,8 @@ 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}
Expand All @@ -1406,7 +1400,8 @@ This work consists of the file lni.dtx
{}%
{\@bookshorttitle,\hspace{1sp}}%
\null\linebreak%
Lecture Notes in Informatics (LNI), Gesellschaft für Informatik, Bonn~\@year%
Lecture Notes in Informatics (LNI), Gesellschaft für Informatik,
Bonn~\@yearofpublication%
\hspace{5pt}\thepage\hspace{0.05cm}%
}%
\fancyhead[LE]{%
Expand All @@ -1415,19 +1410,20 @@ This work consists of the file lni.dtx
{}%
{\@bookshorttitle,\hspace{1sp}}%
\linebreak\hspace{0.05cm}\thepage\hspace{5pt} Lecture Notes
in Informatics (LNI), Gesellschaft für Informatik, Bonn~\@year%
in Informatics (LNI), Gesellschaft für Informatik,
Bonn~\@yearofpublication%
}%
\fancyfoot{} % Löscht alle Fußzeileneinstellungen
\renewcommand{\headrulewidth}{0.4pt} %Linie unter Kopfzeile
\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}
Expand Down Expand Up @@ -2985,7 +2981,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
Expand Down Expand Up @@ -3145,7 +3141,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
Expand Down
Binary file modified lni.pdf
Binary file not shown.

0 comments on commit 87ed845

Please sign in to comment.