auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Prevent filling (formating) for special commands


From: Thorsten Grothe
Subject: [AUCTeX] Prevent filling (formating) for special commands
Date: Tue, 03 Mar 2015 09:38:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hello Auctex Users,

I would like to keep some commands in their own line, like this:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mc{1}{l}{bla}

% this is from pgfpltstable

col sep=comma,
            header=true,

columns={Nr,MengeST,Preis,MengeP,MengeKum,WertGes,WertP,WertKum,ABC},
            skip rows between index={0}{1},
            font={\sffamily},
            empty cells with={--},
            every last row/.style={after row=\hline},
            every odd row/.style={before row={\rowcolor[gray]{.8}}},
            % Spalte 1
            display columns/0/.style={%
column name={\rowcolor[gray]{.8}\bfseries Nr.}, column type={c}, string
              type},

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I found the variable LaTeX-paragraph-commands and set:

(setq LaTeX-paragraph-commands
    (quote
    ("draw" "sqForms" "addplot")))

this works fine for simple commands like \section or \medskip. But how can I do this for the above code to prevent Auctex from disarranging my code?


Regards Th. Grothe





reply via email to

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