wrestlers.tex: Hack the fancy preamble configuration so that it works.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 3 Oct 2017 02:28:18 +0000 (03:28 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 3 Oct 2017 02:28:18 +0000 (03:28 +0100)
Mostly this is about making sure that conditional macros are either
defined or not consistently in each branch of a conditional.

wrestlers.tex

index 2807644..63e428e 100644 (file)
@@ -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}