GNU bug report logs - #65648
13.2; indentation of nested environments

Previous Next

Package: auctex;

Reported by: Paul Nelson <ultrono <at> gmail.com>

Date: Thu, 31 Aug 2023 04:57:01 UTC

Severity: normal

Found in version 13.2

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


Message #47 received at 65648 <at> debbugs.gnu.org (full text, mbox):

From: Uwe Brauer <oub <at> mat.ucm.es>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: 65648 <at> debbugs.gnu.org, Uwe Brauer <oub <at> mat.ucm.es>,
 Paul Nelson <ultrono <at> gmail.com>
Subject: Re: bug#65648: 13.2; indentation of nested environments
Date: Sat, 09 Sep 2023 21:09:28 +0300
[Message part 1 (text/plain, inline)]
> Hi Paul and Uwe,

Hi Keita

> I've been gradually inclined to the attached approach. Namely, align "&"
> as well as \end{foo} relative to beg-col, not beg-pos. In this way, the
> above examples turn into
> ----------------------------------------------------------------------
> \begin{equation*}
>   g = \begin{pmatrix}
>     a & b \\
>     c & d \\
>   \end{pmatrix},
>   \quad
>   h = \begin{pmatrix}
>     x & y \\
>     z & w \\
>   \end{pmatrix}.
> \end{equation*}

Thanks, but:
I applied the patch, recompiled, restarted emacs, and then

\begin{equation*}
  g = \begin{pmatrix}
    a & b \\
    c & d \\
  \end{pmatrix},
  \quad
  h = \begin{pmatrix}
    x & y \\
    z & w \\
  \end{pmatrix}.
\end{equation*}

Either with 

    1. LaTeX-indent-always-align-end-with-begin nil

    2. LaTeX-indent-always-align-end-with-begin t
       
Is filled as

\begin{equation*}
  g = \begin{pmatrix}
    a & b \\
    c & d \\
  \end{pmatrix}, \quad h = \begin{pmatrix}
    x & y \\
    z & w \\
  \end{pmatrix}.
\end{equation*}


That does not look correct to me, sorry the \begin{matrix} should be on
a newline.

Is this a bug?

Regards

Uwe 
[smime.p7s (application/pkcs7-signature, attachment)]

This bug report was last modified 1 year and 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.