Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix strlen call to work also when the title contains macros. #248

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading