GNU bug report logs - #28405
Inhibit auto-fill & LaTeX-indent-environment-list

Previous Next

Package: auctex;

Reported by: gojjoe <at> gmail.com

Date: Sun, 10 Sep 2017 11:11:02 UTC

Severity: normal

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

From: Arash Esbati <arash <at> gnu.org>
To: Uwe Brauer <oub <at> mat.ucm.es>
Cc: Ikumi Keita <ikumi <at> ikumi.que.jp>, 28405 <at> debbugs.gnu.org, auctex-devel <auctex-devel <at> gnu.org>
Subject: bug#28405: Adding entries to LaTeX-indent-environment-list
Date: Wed, 02 Feb 2022 12:45:04 +0100
Uwe Brauer <oub <at> mat.ucm.es> writes:

> Suppose you have (or have a received) a file of that form
>
> \documentclass[a4paper]{article}
> \begin{document}
> \begin{equation}
> a = \left.\int very very long expression in one line\begin{array}
>   a
>   a
>   a
> \end{equation}
> \end{document}
>
> So the equation is badly indented and consist of very long lines.

I'd go back to the sender telling him his code is utterly broken and I
will not fix it 😉

> So I basically want  LaTeX-fill-environment to indent the environment
> correctly, and that thanks to the patch is no better, but I also want
> long lines to be broken/wrapped
>
> So far I have seen that I have to jump the end of long lines, press
> space and the line is broken/wrapped, but this extra typing is not very
> comfortable.

Then you have to customize `LaTeX-indent-environment-list' and remove
the entries for 'align', 'equation' and other math environments.  They
will then act like regular environments (in theory).

Best, Arash




This bug report was last modified 3 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.