auctex-devel
[Top][All Lists]
Advanced

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

Re: [a new bug? concerning indenting] (was: bug#28405: Adding entries to


From: Ikumi Keita
Subject: Re: [a new bug? concerning indenting] (was: bug#28405: Adding entries to LaTeX-indent-environment-list)
Date: Wed, 09 Feb 2022 14:12:35 +0900

Hi Uwe,

>>>>> Uwe Brauer <oub@mat.ucm.es> writes:
> Even with your patch (I have not pulled, so but I presume that used
> the patch master from 24 of january is still ok?)

I think so.

> In any case look at this 

> \documentclass[12pt]{article}
> \usepackage{amssymb,amsfonts,amsmath,amsthm}
> \begin{document}
> \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}

> Gets filled to 

> \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}


> \end{document}

I got the same result.

> So something is not right?

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}

Regards,
Ikumi Keita



reply via email to

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