From: Mark Wooding Date: Tue, 3 Oct 2017 02:28:18 +0000 (+0100) Subject: wrestlers.tex: Hack the fancy preamble configuration so that it works. X-Git-Url: https://git.distorted.org.uk/~mdw/doc/wrestlers/commitdiff_plain/b12a993f2d35076dfc7dd515b8d8f2f5ef1a42dc wrestlers.tex: Hack the fancy preamble configuration so that it works. Mostly this is about making sure that conditional macros are either defined or not consistently in each branch of a conditional. --- diff --git a/wrestlers.tex b/wrestlers.tex index 2807644..63e428e 100644 --- a/wrestlers.tex +++ b/wrestlers.tex @@ -5,8 +5,14 @@ %%% (c) 2006 Mark Wooding %%% -\ifx\iffancystyle\xxundefined\newif\iffancystyle\fancystyletrue\fi -\ifx\ifshort\xxundefined\newif\ifshort\shortfalse\fi +\makeatletter +\def\@doit#1{#1} +\ifx\iffancystyle\xxundefined\expandafter\@doit\else\expandafter\@gobble\fi +{\newif\iffancystyle\fancystyletrue} +\ifx\ifshort\xxundefined\expandafter\@doit\else\expandafter\@gobble\fi +{\newif\ifshort\shortfalse} +\iffancystyle\expandafter\@gobble\else\expandafter\@doit\fi{\newif\ifpdfing} +\makeatother \typeout{Options:} \typeout{ Fancy style: \iffancystyle ON\else OFF\fi}