Le 21/05/2016 15:12, Mosè Giordano a écrit : > Hi François, > > 2016-05-20 11:43 GMT+02:00 François Patte > <[email protected]>: >> Bonjour, >> >> I would like to stop automatic indentation in tabular-like environment >> (tabular, longtable...) >> >> I followed this: >> http://tex.stackexchange.com/questions/241779/indentation-of-tabular-like-environments-in-auctex-11-88 >> >> But this does not work at all.... >> >> What isthe "magic"? > > Once you set and apply `LaTeX-indent-environment-list' there is no > "magic" you don't need to do anything else. Maybe you didn't apply > the change or it wasn't saved for all future sessions? What's the > value of `LaTeX-indent-environment-list' in your LaTeX buffer?
I have this in my .emacs-custom.el:
'(LaTeX-indent-environment-list
(quote
(("longtable")
("verbatim" current-indentation)
("verbatim*" current-indentation)
("align" LaTeX-indent-tabular)
("align*" LaTeX-indent-tabular)
("array" LaTeX-indent-tabular)
("eqnarray" LaTeX-indent-tabular)
("eqnarray*" LaTeX-indent-tabular)
("displaymath")
("equation")
("equation*")
("picture")
("tabbing")
("table")
("table*"))))
And AucTex continues to indent longtable environment as it did
previously.... ie: an unreadable source file as soon as you have a table
with very long rows
--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 8394 5849
http://www.math-info.univ-paris5.fr/~patte
signature.asc
Description: OpenPGP digital signature
_______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
