Just out of interest, would the patch still handle
\IfBooleanTF{#1}{true}{false}
(xparse package)
/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@imf / More information:
http://au.dk/en/daleif@imf
________________________________________
From: [email protected]
[[email protected]] on behalf of Oleh
[[email protected]]
Sent: 18 December 2014 13:29
To: Tassilo Horn
Cc: [email protected]
Subject: Re: [AUCTeX] Indentation of \if statements
Hi Tassilo,
> I'd welcome a patch that generalizes the idea a bit. For example, the
> ifplatform package provides macros like
>
> \ifwindows
> \this
> \else
> \that
> \fi
>
> and there are dozens of other \if-variants out there. So it would be
> good if an AUCTeX style file could specify that it provides a new
> if-then-else-fi macro, and then indentation should just work.
I've added the generalization to anything that starts with "\if".
Should be fine unless people use something like:
\newcommand\iffy{...}
See the attached patch.
regards,
Oleh
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex