From b12a993f2d35076dfc7dd515b8d8f2f5ef1a42dc Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 3 Oct 2017 03:28:18 +0100 Subject: [PATCH] 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. --- wrestlers.tex | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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} -- 2.11.0