Closed GeeLaw closed 7 months ago
Thanks for reporting! This sounds indeed like a bug. I will investigate this week.
The problem is with \StrLen
which tries to expand the title when counting the length (of the title).
A simple fix is to use \noexpandarg\StrLen
. I will push a fix after some further testing tomorrow.
Thanks for catching this!
In slightly more details. When the running title is not specified the plain title is used as the running title. However, the style file checks if the plain title is too long (over 70 characters) since then we ask the author to provide a running title explicitly. The problem here is that this checking is done with StrLen
from the xstring package. Section 3.1.2 from the xstring manual indeed specifies that macros are not allowed since they are by default expanded. The solution is to use \noexpandarg
, the downside is that the characters of the macro itself are counted in the string length but this is (imo) not a big deal.
Fixed in cb307197bd98048ad16d8b6ce1657d8a4b6d5734.
Modify the
template.tex
downloaded from IACR:Compilation with MiKTeX pdfLaTeX on Windows fails:
The documentation does not state that
running
is necessary if there are macros in the full title, onlyplaintext
. The workaround is to setrunning
even if it is the same as the full title.