auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Indentation of \if statements


From: Oleh
Subject: Re: [AUCTeX] Indentation of \if statements
Date: Thu, 18 Dec 2014 13:29:50 +0100

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

Attachment: 0001-Add-indentation-for-if.-else-fi-statements.patch
Description: Text Data


reply via email to

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