bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 2014-02-10; \intertext-macro not properly indented insi


From: Mosè Giordano
Subject: Re: [Bug-AUCTeX] 2014-02-10; \intertext-macro not properly indented inside align-environments
Date: Thu, 14 Aug 2014 13:16:00 +0200

Hi Simon,

2014-08-14 7:39 GMT+02:00 Simon Campese <address@hidden>:
> Hello,
>
> I just recognized that when typing mathematics inside align or align*
> environments (which are provided by the amsmath package), \intertext
> macros are not recognized as being typeset on a new line by auctex. For 
> example,
> autoindenting the code
>
> \begin{align*}
> F_1 &= 1 \\
> F_2 &= 2
> \intertext{and}
> F_{n+1} &= (n+1) F_n
> \end{align*}
>
> yields
>
> \begin{align*}
>   F_1 &= 1 \\
>   F_2 &= 2
>         \intertext{and}
>         F_{n+1} &= (n+1) F_n
> \end{align*}
>
> instead of
>
> \begin{align*}
>   F_1 &= 1 \\
>   F_2 &= 2
>   \intertext{and}
>   F_{n+1} &= (n+1) F_n
> \end{align*}
>
> Unfortunately I don't know enough Elisp to fix this myself but I guess
> that the parser just checks for '\\' to recognize a new line and a
> simple cases statement including '\intertext' has to be added.
> And while you're at it, I guess the same is true for '\shortintertext'
> from the mathtools package.

>From the amsmath user's guide:

    \intertext may only appear right after a \\ or \\* command.

If you insert a \\ before the \intertext command AUCTeX is able to
correctly align the & separators and the problem goes away.

Bye,
Mosè



reply via email to

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