[texhax] getting to global scope from within a group (latex/ifthen) [SOLVED]

Donald Arseneau asnd at triumf.ca
Mon Nov 17 03:34:49 CET 2014


On Sat, November 15, 2014 2:56 pm, Boylan, Ross wrote:
> I did a minimalist version of David's suggestion, relying on the fact that
> the internals of the ifthen package go through \ifX for boolean X, and
> this can be globally reset with \global\let.
>
> Would it have been better to use counters?  I just needed something global
> I could toggle.
> A quick check shows that latex counters are also updated globally using,
> e.g. \stepcounter.

I think you may have been better using a counter. That way
you'd inherit the infrastructure that makes partial compilation
with \includeonly work, whereas now a partial compilation
would always start with a "first" version of the text.

If this is for acronyms or similar, there are packages for that.


Donald Arseneau, TRIUMF CMMS, asnd at triumf.ca



More information about the texhax mailing list