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 problem with the changes package. #258

Merged
merged 1 commit into from
Jul 8, 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
20 changes: 13 additions & 7 deletions iacrcc/iacrcc.cls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\def\fileversion{0.70}
\def\filedate{2024/06/27}
\def\fileversion{0.71}
\def\filedate{2024/07/08}

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\typeout{^^J *** LaTeX class for IACR Communications in Cryptology v\fileversion\space ***^^J}
Expand Down Expand Up @@ -601,21 +601,23 @@
\checkstring{#2}{author names should not contain macros or math}%
% Some additional checks on the if addauthor is used correctly
% Check if the name contains an ","
\noexpandarg\IfSubStr{\detokenize{#2}}{,}{%
\saveexpandmode\noexpandarg % set \noexpandarg locally
\IfSubStr{\detokenize{#2}}{,}{%
\ClassError{iacrcc}{Do not put several authors in the same \string\addauthor\space macro}{}%
}{}%
% Affiliations should be defined *after* addauthor
\ifnum\theIACR@inst@cnt>0\relax
\ClassError{iacrcc}{Affiliations must follow authors}%
\fi
% Do not use " and " in your author name: this might indicate incorrect usage
\noexpandarg\IfSubStr{#2}{ and }{%
\IfSubStr{#2}{ and }{%
\ClassError{iacrcc}{Do not put several authors in the same \string\addauthor\space macro}{}%
}{}%
% No newline is allowed in addauthor
\noexpandarg\IfSubStr{#2}{\\}{%
\IfSubStr{#2}{\\}{%
\ClassError{iacrcc}{Do not put a newline in the \string\addauthor\space macro}{}%
}{}%
\restoreexpandmode % restore the previous mode
%
\stepcounter{IACR@author@cnt}%
%
Expand Down Expand Up @@ -860,7 +862,9 @@
\gdef\@title{#2}%
\if\relax\expandafter\detokenize\expandafter{\@IACR@title@running}\relax
\gdef\@IACR@title@running{\@plaintitle}%
\noexpandarg\StrLen{#2}[\IACR@tmp]%
\saveexpandmode\noexpandarg % set \noexpandarg locally
\StrLen{#2}[\IACR@tmp]%
\restoreexpandmode % restore the previous mode
\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 Expand Up @@ -1113,9 +1117,11 @@
% \IACR@text@keywords is the plain text version used for PDF and metadata.

\newcommand{\keywords}[2][\@empty]{%
\noexpandarg\IfSubStr{#2}{ \and }{%
\saveexpandmode\noexpandarg % set \noexpandarg locally
\IfSubStr{#2}{ \and }{%
\ClassError{iacrcc}{Do not use the \string\and\space macro in \string\keywords: use "," instead}{}%
}%
\restoreexpandmode % restore the previous mode
\gdef\IACR@keywords{#2}%
\ifx#1\@empty
\checkstring{#2}{Keywords should be free of macros. Use optional argument to \string\keywords}
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.70)}
subtitle = {iacrcc LaTeX Class Documentation (v0.71)}
]{How to Use the IACR Communications in Cryptology Class}

\genericfootnote{This is a generic footnote produced with \cmd[...]{genericfootnote}.}
Expand Down
Loading