auctex-devel
[Top][All Lists]
Advanced

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

Re: [a new bug? concerning indenting]


From: Arash Esbati
Subject: Re: [a new bug? concerning indenting]
Date: Wed, 09 Feb 2022 14:18:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50

Uwe Brauer <oub@mat.ucm.es> writes:

>> Hmm...though I haven't yet looked into the actual code, current guess is
>> that the indent function `LaTeX-indent-line' doesn't like anything
>> immediately following \left\{. After I broke the line just after
>> \left\{, the result looked better:
>> \begin{equation}
>>   \label{eq:step-func:5}
>>   u(t-a) f(t-a)=\left\{
>>     \begin{array}{ll}
>>       0 & \text { if } t<a, \\
>>       f(t-a) & \text { if } t \geqq a .
>>     \end{array}\right.
>> \end{equation}
>
>
> I know, but my point being, I have a lot of these constructs, and
> breaking lines manually is quite cumbersome, so the question is can
> auctex's filling function be improved to cover that case?

Why not writing a function which searchs through your document for
\begin/\end's not being in their own lines and add a line-break, if
necessary?

Might be easier than to fiddle with AUCTeX's indenting/filling code
which is not straight-forward.

Best, Arash



reply via email to

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