[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Prevent filling (formating) for special commands
From: |
Thorsten Grothe |
Subject: |
Re: [AUCTeX] Prevent filling (formating) for special commands |
Date: |
Tue, 03 Mar 2015 12:11:26 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
Hi Tassilo,
* address@hidden wrote on Di,03.03.2015:
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
yes thats true, I'm sorry for that!
--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?
exactly :-)
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.
I will try your code and report if it works for me!
Thank you for the long answer!!!
Regards Th. Grothe
* Deutsch - erkannt
* Englisch
* Englisch
<javascript:void(0);>