On May 23, 2006, at 5:46 AM, Christoph Biela wrote:
That's it thanks!!!
This is a really nice and handy thing. However, somehow this all stopped working and then I only got it working after writing.
\renewcommand{\setflag}{\newif \ifwhole \wholefalse} \setflag % was somehow needed \input{foot.tex}
Hm, I somehow thought I had responded to that. Indeed you need to add the \setflag command, it's a LaTeX thing and a typo on my part. The point is that the footer just checks the variable \ifwhole, and does not do the work that the header does of trying to define \setflag and then calling it. A simpler thing would actually have been:
\wholefalse \input{foot.tex}
instead of the above three lines. All you need is to make sure \ifwhole returns false before entering foot.tex, so that the \else part of foot.tex kicks in. At this point, you don't really need to redefine \setflag.
Does anyone know why? Is this related to TextMate?
Thanks Christoph
Haris