diff --git a/CHANGELOG.md b/CHANGELOG.md index 726c939..6aab164 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/). +## [Unreleased] + +### Changed + +- When anonymizing a paper, keep the number of authors [#186](https://github.com/gi-ev/LNI/pull/186) + ## [2.0] - 2025-02-05 ### Removed @@ -194,6 +200,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). First release of the revised files +[Unreleased]: https://github.com/gi-ev/LNI/compare/v2.0...main [2.0]: https://github.com/gi-ev/LNI/compare/v1.10...v2.0 [1.10]: https://github.com/gi-ev/LNI/compare/v1.9...v1.10 [1.9]: https://github.com/gi-ev/LNI/compare/v1.8.1...v1.9 diff --git a/lni.cls b/lni.cls index ba29929..7284fd4 100644 --- a/lni.cls +++ b/lni.cls @@ -412,7 +412,7 @@ \let\\=\authorcr \xdef\AB@authlist{\the\@temptokena \protect\@nameuse{@sep\number\c@authors}% - \protect\Authfont#2\if\relax#4\relax\else\,\orcidlink{#4}\fi\AB@authnote{\AB@note}}% + \protect\Authfont \ifanonymous Anonymized Author\number\c@authors\else#2\fi\if\relax#4\relax\else\,\orcidlink{\ifanonymous 0000-0000-0000-0000\else#4\fi}\fi\AB@authnote{\AB@note}}% \xdef\@authlisthead{\the\@temptokenb \protect\@nameuse{@sep\number\c@authors}% \protect\Authfont#2}% @@ -422,14 +422,14 @@ \ifcsundef{@emailsandorcids\AB@note}{\csgdef{@emailsandorcids\AB@note}{}}{}% \sbox\z@{\@tempcnta=0#1\relax}% \expandafter\ifdim\wd\z@>\z@\relax - \multiaffil{#1}{#3}{#4} + \multiaffil{#1}{\ifanonymous anonymized@example.com\else#3\fi}{\ifanonymous 0000-0000-0000-0000\else#4\fi} \else \ifcsundef{@emailsandorcids\AB@note}{\csgdef{@emailsandorcids\AB@note}{}}{}% \ifcsempty{@emailsandorcids\AB@note}% {\csgappto{@emailsandorcids\AB@note}{% - \if\relax#3\relax\else\email{#3}\fi\if\relax#4\relax\else,\ \orcid{#4}\fi}}% + \if\relax#3\relax\else\email{\ifanonymous anonymized@example.com\else#3\fi}\fi\if\relax#4\relax\else,\ \orcid{\ifanonymous 0000-0000-0000-0000\else#4\fi}\fi}}% {\csgappto{@emailsandorcids\AB@note}{% - \if\relax#3\relax\else;\ \email{#3}\fi\if\relax#4\relax\else,\ \orcid{#4}\fi}}% + \if\relax#3\relax\else;\ \email{\ifanonymous anonymized@example.com\else#3\fi}\fi\if\relax#4\relax\else,\ \orcid{\ifanonymous 0000-0000-0000-0000\else#4\fi}\fi}}% \fi% \newaffilfalse } @@ -449,11 +449,11 @@ \let\protect\@unexpandable@protect \def\thanks{\protect\thanks}\def\footnotetext{\protect\footnotetext}% \@temptokena=\expandafter{\AB@authors}% - {\def\\{\protect\\\protect\Affilfont}\xdef\AB@temp{#2}}% + {\def\\{\protect\\\protect\Affilfont}\xdef\AB@temp{\ifanonymous Anonymized University #1\\Department\\Address\\Country\else#2\fi}}% \xdef\AB@authors{\the\@temptokena\AB@las\AB@au@str \protect\\[\affilsep]\protect\Affilfont\AB@temp}% \gdef\AB@las{}\gdef\AB@au@str{}% - {\def\\{, \ignorespaces}\xdef\AB@temp{#2}}% + {\def\\{, \ignorespaces}\xdef\AB@temp{\ifanonymous Anonymized University #1\\Department\\Address\\Country\else#2\fi}}% \@temptokena=\expandafter{\AB@affillist}% \xdef\AB@affillist{\the\@temptokena \footnotetext[\AB@note]{% @@ -529,15 +529,7 @@ \fi% {\normalsize% \lineskip .5em% - \ifanonymous - \iflnienglish - Anonymized for review\footnote{placeholder for contact information} - \else - Anonymisiert für Review\footnote{Platzhalter für Kontaktinformationen} - \fi% - \else \@author - \fi% \par}% \vskip 21pt% Abstand vor dem Abstract \end{center}% diff --git a/lni.dtx b/lni.dtx index 092f034..63264fd 100644 --- a/lni.dtx +++ b/lni.dtx @@ -1135,7 +1135,7 @@ This work consists of the file lni.dtx \let\\=\authorcr \xdef\AB@authlist{\the\@temptokena \protect\@nameuse{@sep\number\c@authors}% - \protect\Authfont#2\if\relax#4\relax\else\,\orcidlink{#4}\fi\AB@authnote{\AB@note}}% + \protect\Authfont \ifanonymous Anonymized Author\number\c@authors\else#2\fi\if\relax#4\relax\else\,\orcidlink{\ifanonymous 0000-0000-0000-0000\else#4\fi}\fi\AB@authnote{\AB@note}}% \xdef\@authlisthead{\the\@temptokenb \protect\@nameuse{@sep\number\c@authors}% \protect\Authfont#2}% @@ -1145,14 +1145,14 @@ This work consists of the file lni.dtx \ifcsundef{@emailsandorcids\AB@note}{\csgdef{@emailsandorcids\AB@note}{}}{}% \sbox\z@{\@tempcnta=0#1\relax}% \expandafter\ifdim\wd\z@>\z@\relax - \multiaffil{#1}{#3}{#4} + \multiaffil{#1}{\ifanonymous anonymized@example.com\else#3\fi}{\ifanonymous 0000-0000-0000-0000\else#4\fi} \else \ifcsundef{@emailsandorcids\AB@note}{\csgdef{@emailsandorcids\AB@note}{}}{}% \ifcsempty{@emailsandorcids\AB@note}% {\csgappto{@emailsandorcids\AB@note}{% - \if\relax#3\relax\else\email{#3}\fi\if\relax#4\relax\else,\ \orcid{#4}\fi}}% + \if\relax#3\relax\else\email{\ifanonymous anonymized@example.com\else#3\fi}\fi\if\relax#4\relax\else,\ \orcid{\ifanonymous 0000-0000-0000-0000\else#4\fi}\fi}}% {\csgappto{@emailsandorcids\AB@note}{% - \if\relax#3\relax\else;\ \email{#3}\fi\if\relax#4\relax\else,\ \orcid{#4}\fi}}% + \if\relax#3\relax\else;\ \email{\ifanonymous anonymized@example.com\else#3\fi}\fi\if\relax#4\relax\else,\ \orcid{\ifanonymous 0000-0000-0000-0000\else#4\fi}\fi}}% \fi% \newaffilfalse } @@ -1172,11 +1172,11 @@ This work consists of the file lni.dtx \let\protect\@unexpandable@protect \def\thanks{\protect\thanks}\def\footnotetext{\protect\footnotetext}% \@temptokena=\expandafter{\AB@authors}% - {\def\\{\protect\\\protect\Affilfont}\xdef\AB@temp{#2}}% + {\def\\{\protect\\\protect\Affilfont}\xdef\AB@temp{\ifanonymous Anonymized University #1\\Department\\Address\\Country\else#2\fi}}% \xdef\AB@authors{\the\@temptokena\AB@las\AB@au@str \protect\\[\affilsep]\protect\Affilfont\AB@temp}% \gdef\AB@las{}\gdef\AB@au@str{}% - {\def\\{, \ignorespaces}\xdef\AB@temp{#2}}% + {\def\\{, \ignorespaces}\xdef\AB@temp{\ifanonymous Anonymized University #1\\Department\\Address\\Country\else#2\fi}}% \@temptokena=\expandafter{\AB@affillist}% \xdef\AB@affillist{\the\@temptokena \footnotetext[\AB@note]{% @@ -1273,15 +1273,7 @@ This work consists of the file lni.dtx \fi% {\normalsize% \lineskip .5em% - \ifanonymous - \iflnienglish - Anonymized for review\footnote{placeholder for contact information} - \else - Anonymisiert für Review\footnote{Platzhalter für Kontaktinformationen} - \fi% - \else \@author - \fi% \par}% \vskip 21pt% Abstand vor dem Abstract \end{center}%