GNU bug report logs -
#65648
13.2; indentation of nested environments
Previous Next
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
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi Ikumi,
Thanks for sharing your tentative patch.
The "always-align nil" behavior looks good to me.
As for the "always-align t" case, there are still some natural "broken"
examples, as you know:
#+begin_src latex
\begin{equation*}
g = \begin{pmatrix}
a & b \\
c & d \\
\end{pmatrix},
\quad
h = \begin{pmatrix}
x & y \\
z & w \\
\end{pmatrix}.
\end{equation*}
#+end_src
#+begin_src latex
The matrix $\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}$ has determinant
\begin{equation*}
a d - b c.
\end{equation*}
The matrix $\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}$ has determinant
\begin{equation*}
a d - b c.
\end{equation*}
The matrix $\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}$ has determinant
\begin{equation*}
a d - b c.
\end{equation*}
#+end_src
With a bit more massaging, it should be possible to avoid these. I had in
mind modifying LaTeX-indent-level-count (or the block surrounding where it
is called) in \end{TABULAR} cases, adjusting by the difference between the
matching \begin and its beginning of line.
Paul
[Message part 2 (text/html, inline)]
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.