> On 7 Jan 2023, at 18:00, [email protected] wrote:
> 
> Message: 1
> Date: Sat, 07 Jan 2023 17:26:38 +0100
> From: Arash Esbati <[email protected] <mailto:[email protected]>>
> To: Artemio González López <[email protected] <mailto:[email protected]>>
> Cc: auctex-devel <[email protected] <mailto:[email protected]>>
> Subject: Re: strange formatting
> Message-ID: <[email protected] <mailto:[email protected]>>
> Content-Type: text/plain; charset=iso-8859-1
> 
> Artemio González López <[email protected] <mailto:[email protected]>> writes:
> 
>> Thank you very much for your tip!
> 
> Sure, you're welcome.  Please keep [email protected] 
> <mailto:[email protected]> in CC and use
> Reply-To-All in your MUA, otherwise your messages won't be visible on
> the 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 shortcoming
> which was fixed last April with commit fa547aa71e[1].  Can you please
> update your AUCTeX installation and try it again?  Your example indents
> fine for me if I paste it into a .tex file, mark it and hit
> 'M-x indent-region RET'.
> 
> Best, Arash
> 
> Footnotes:
> [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
[email protected]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to