auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Prevent filling (formating) for special commands


From: Tassilo Horn
Subject: Re: [AUCTeX] Prevent filling (formating) for special commands
Date: Tue, 03 Mar 2015 11:22:09 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Thorsten Grothe <address@hidden> writes:

Hi Thorsten,

> 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},
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

That's no complete example, i.e., the code above is placed either in
some environment or given as argument to some macro.  I dug up the
pgfplotstable package documentation, as AFAICS, you'd do something like

--8<---------------cut here---------------start------------->8---
\pgfplotstabletypeset[skip first n=4]{%
  XYZ Format,
  Version 1.234
  Date 2010-09-01
  @author Mustermann
  A B C
  1 2 3
  4 5 6
}
--8<---------------cut here---------------end--------------->8---

and now you want to prevent AUCTeX from filling the contents of the
argument of \pgfplotstabletypeset, right?

Ok, since a few minutes you can customize the new variable:

,----[ C-h v LaTeX-fill-excluded-macros RET ]
| LaTeX-fill-excluded-macros is a variable defined in `latex.el'.
| Its value is nil
| 
| Documentation:
| List of macro names (without leading \) whose arguments must
| not be subject to filling.
| 
| You can customize this variable.
`----

And in case that don't-fill-me code was the contents of an environment,
you can customize

,----[ C-h v LaTeX-indent-environment-list RET ]
| LaTeX-indent-environment-list is a variable defined in `latex.el'.
| Its value is shown below.
| 
| Documentation:
| Alist of environments with special indentation.
| The second element in each entry is the function to calculate the
| indentation level in columns.
| 
| You can customize this variable.
| 
| Value: (("verbatim" current-indentation)
|  ("verbatim*" current-indentation)
|  ("tabular" LaTeX-indent-tabular)
|  ("tabular*" LaTeX-indent-tabular)
|  ("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*"))
`----

Those are also not subject to filling but only to indentation.

Bye,
Tassilo




reply via email to

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