From dca2dbaa33ee6ae9294e2bed9058773acabf1e8a Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 28 Apr 2025 15:15:22 +0200 Subject: [PATCH 1/2] When anonymizing a paper, keep the number of authors This change is introduced so that the space used for the names and footnotes better represents the final version without anonymization. Signed-off-by: Sven Strickroth --- CHANGELOG.md | 4 ++++ lni.cls | 20 ++++++-------------- lni.dtx | 20 ++++++-------------- 3 files changed, 16 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 726c939..11b5b8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ## [2.0] - 2025-02-05 +### Changed + +- When anonymizing a paper, keep the number of authors [#186](https://github.com/gi-ev/LNI/pull/186) + ### Removed - We removed BibTeX support (`lni.bst` and `lnig.bst`) - biblatex is the only supported tooling for the bibliography. [#144](https://github.com/gi-ev/LNI/issues/144) 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}% From eb4cb482aa015d5102d23b5dec86dbff06c44203 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 19 Oct 2025 22:25:35 +0200 Subject: [PATCH 2/2] Use "Unreleaed" section in CHANGELOG.md --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11b5b8f..6aab164 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/). -## [2.0] - 2025-02-05 +## [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 - We removed BibTeX support (`lni.bst` and `lnig.bst`) - biblatex is the only supported tooling for the bibliography. [#144](https://github.com/gi-ev/LNI/issues/144) @@ -198,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