[texhax] \newif, \csname and \endcsname
Vafa Khalighi
vafakhlgh at gmail.com
Tue Feb 1 14:22:31 CET 2011
On Wed, Feb 2, 2011 at 12:10 AM, Lars Madsen <daleif at imf.au.dk> wrote:
> what exactly are you trying to do?
>
I have started extending bidi for luatex and I am basically building an
interface for mixing two, three and four conditionals.
>
> instead of \newifs have you considered using toggles (see the etoolbox
> package), they can also be used without
>
> it is rather simple
>
> \def\tgl{00} % true
> \def\tgl{01} % false
>
> \if\tgl true \else false \fi
>
> then one might get past some of these problems
>
> (I rather like the interface provided by etoolbox)
>
I really like to write my own macros rather than relying on another package.
Thanks for telling me about etoolbox package. I should have a look at it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20110202/bed8e824/attachment.html>
More information about the texhax
mailing list