Skip to content

Commit

Permalink
Merge pull request #248 from IACR/titlewmacro_norunning
Browse files Browse the repository at this point in the history
Fix strlen call to work also when the title contains macros.
  • Loading branch information
jwbos authored Apr 9, 2024
2 parents f0cb393 + cb30719 commit 86d5bd0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions iacrcc/iacrcc.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\def\fileversion{0.64}
\def\filedate{2024/03/29}
\def\fileversion{0.65}
\def\filedate{2024/04/09}

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\typeout{^^J *** LaTeX class for IACR Communications in Cryptology v\fileversion\space ***^^J}
Expand Down Expand Up @@ -799,7 +799,7 @@
\gdef\@title{#2}%
\if\relax\expandafter\detokenize\expandafter{\@IACR@title@running}\relax
\gdef\@IACR@title@running{\@plaintitle}%
\StrLen{#2}[\IACR@tmp]%
\noexpandarg\StrLen{#2}[\IACR@tmp]%
\ifnumgreater{\IACR@tmp}{70}{%
\ClassWarning{iacrcc}{The title appears to be very long. Please define a running title by passing running=<runningtitle> to the \string\title\string macro}{}%
}{}
Expand Down
Binary file modified iacrcc/iacrdoc.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion iacrcc/iacrdoc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
\def\BibLaTeX{Bib\LaTeX}

\title[running = {The iacrcc class},
subtitle = {iacrcc LaTeX Class Documentation (v0.64)}
subtitle = {iacrcc LaTeX Class Documentation (v0.65)}
]{How to Use the IACR Communications in Cryptology Class}

\genericfootnote{This is a generic footnote produced with \cmd[...]{genericfootnote}.}
Expand Down
Binary file modified iacrcc/template.pdf
Binary file not shown.
9 changes: 5 additions & 4 deletions iacrcc/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
subtitle = {A Template}
]{How to Use the IACR Communications in Cryptology Class}
% Where the options in square brackets “[ ]” are optional and control the following:
% running: the running title displayed in the headers
% subtitle: provide a subtitle
% running: the running title displayed in the headers
% subtitle: provide a subtitle
% plaintext: a text version of the title (mandatory if macros are used in the title)

% Define authors and affiliations
% Authors are listed individually using the \addauthor tag followed by a list of affiliations.
Expand All @@ -52,6 +53,7 @@
% orcid: create a small clickable orcid logo next to the authors name
% linking to the authors ORCID iD see: orcid.org.
% footnote: create an author-specific footnote.
% surname: indicate the surname of the author for indexing purposes.
% onclick: define what to do when clicking on the external link logo
% next to the author name: e.g., can point to the academic webpage.
% email: define the e-mail address of this author.
Expand Down Expand Up @@ -94,8 +96,7 @@
% city: city name
% state: state or province name
% postcode: zip or postal code
% country: country name

% country: country name. Required for [version=final]
\addaffiliation[ror = 031v4g827,
street = {Interleuvenlaan 80},
city = {Leuven},
Expand Down

0 comments on commit 86d5bd0

Please sign in to comment.