auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Indentation of \if statements


From: Lars Madsen
Subject: Re: [AUCTeX] Indentation of \if statements
Date: Thu, 18 Dec 2014 12:45:02 +0000

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/address@hidden / More information: 
http://au.dk/en/address@hidden


________________________________________
From: address@hidden address@hidden on behalf of Oleh address@hidden
Sent: 18 December 2014 13:29
To: Tassilo Horn
Cc: address@hidden
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]