On 7 Jan 2023, at 18:00, auctex-devel-request@gnu.org wrote:
Message: 1Date: Sat, 07 Jan 2023 17:26:38 +0100From: Arash Esbati <arash@gnu.org>To: Artemio González López <artemiog@mac.com>Cc: auctex-devel <auctex-devel@gnu.org>Subject: Re: strange formattingMessage-ID: <861qo65n0h.fsf@gnu.org" style="font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"> 861qo65n0h.fsf@gnu.org>Content-Type: text/plain; charset=iso-8859-1Artemio González López <artemiog@mac.com> writes:Thank you very much for your tip!
Sure, you're welcome. Please keep auctex-devel@gnu.org in CC and useReply-To-All in your MUA, otherwise your messages won't be visible onthe list. Thanks.But what about this example:
\documentclass[a4paper,11pt]{article}
\usepackage{babel} \usepackage{amsmath}
\begin{document}
\[ \begin{vmatrix} \hfill\frac1{3}-\lambda& -\frac14\\[2pt] -\frac14& \hfill\frac1{3}-\lambda \end{vmatrix} =\bigg(\frac13-\lambda\bigg)^2-\frac1{16}=0\iff \frac13-\lambda=\pm\frac14\iff\lambda= \begin{cases} \frac13-\frac14=\frac1{12}\\[3pt] \frac13+\frac14=\frac7{12}\,. \end{cases} \]
\end{document}
Which version of AUCTeX are you using? That reminds me of a shortcomingwhich was fixed last April with commit fa547aa71e[1]. Can you pleaseupdate your AUCTeX installation and try it again? Your example indentsfine for me if I paste it into a .tex file, mark it and hit'M-x indent-region RET'.Best, ArashFootnotes:[1] http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=fa547aa71e9376b19630a5e0db017dc619451b75
I had auctex 13.1.2, and after updated to 13.1.6 this snippet was correctly formatted.
Thanks a lot for your help,
Artemio
Artemio Gonzalez Lopez artemiog@mac.com
|