auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] how to disable indentation for tabular-like environment


From: François Patte
Subject: Re: [AUCTeX] how to disable indentation for tabular-like environment
Date: Sat, 21 May 2016 16:52:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

Le 21/05/2016 15:12, Mosè Giordano a écrit :
> Hi François,
> 
> 2016-05-20 11:43 GMT+02:00 François Patte <address@hidden>:
>> 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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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