[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] (no subject)
From: |
Arash Esbati |
Subject: |
Re: [AUCTeX-devel] (no subject) |
Date: |
Sun, 05 Mar 2017 18:21:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 |
Uwe Brauer <address@hidden> writes:
> This drives me crazy, I set
> LaTeX-verbatim-environments is a variable defined in ‘latex.el’.
> Its value is ("verbatim" "verbatim*" "comment")
> Original value was
> ("verbatim" "verbatim*")
>
> However
> \begin{comment}
>
> #+ORGTBL: SEND ej8b orgtbl-to-latex-matrix :splice nil :skip 0
> | r | a | b | \alpha | \beta |
>
> | 0.9709 | 10.6286 | 7.7619 | 0.0887 | -0.5448 |
> \end{comment}
>
> Is filled to
> \begin{comment}
>
> #+ORGTBL: SEND ej8b orgtbl-to-latex-matrix :splice nil :skip 0 | r | a
> | b | \alpha | \beta | | 0.9709 | 10.6286 | 7.7619 | 0.0887 | -0.5448 |
>
> \end{comment}
>
> Why?
You also have to touch `LaTeX-indent-environment-list':
,----[ 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.
|
| Environments present in this list are not filled by filling
| functions, see ‘LaTeX-fill-region-as-paragraph’.
|
| 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"))
`----
Adding ("comment" current-indentation) should do what you're looking
for.
Best, Arash