-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi,
Writing the wrong combination of \providebool + \global\booltrue to the aux file may cause the error mentioned in the title.
The MWE below crashes on the second pass, but uncommenting the \def\blah{} lines makes the problem go away (I got this from a remark by Joseph Wright somewhere on tex.stackexchange.com).
Thanks!
\documentclass{article}
\usepackage{etoolbox}
\makeatletter
\AtEndDocument{ % or AtBeginDocument
\immediate\write\@mainaux{\providebool{myboolI}}
\immediate\write\@mainaux{\global\booltrue{myboolI}}
%\immediate\write\@mainaux{\string\def\string\blah{}}
\immediate\write\@mainaux{\providebool{myboolII}}
\immediate\write\@mainaux{\global\booltrue{myboolII}}
%\immediate\write\@mainaux{\string\def\string\blah{}}
}
\makeatother
\begin{document}\end{document}Metadata
Metadata
Assignees
Labels
No labels