auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] How to tell LaTeX-fill-buffer not to reindent the verbatim


From: Hoang Trong Minh Tuan
Subject: Re: [AUCTeX] How to tell LaTeX-fill-buffer not to reindent the verbatim regions.
Date: Fri, 6 Mar 2009 17:41:49 -0500

Many thanks, Ralf. I did it.

Tuan

On Fri, Mar 6, 2009 at 1:57 PM, Ralf Angeli <address@hidden> wrote:
* Hoang Trong Minh Tuan (2009-03-05) writes:

> How to tell LaTeX-fill-buffer not to reindent some predefined regions .
>   I have defined <code> as a verbatim environment so that anything between
> \begin{code}
>  line1
>  line2
>  line3
>  line4
> \end{code}
>      will be treated as verbatim text.   The problem is that whenever I use
> LaTeX-fill-buffer command, it automatically re-indent everything inside, and
> change the structure that I want to keep in the verbatim region, e.g.
> \begin{code}
>   line1 line2
>   line3 line4
> \end{code}
>   Can someone give me a solution to avoid this problem? Thanks.

Read up on `LaTeX-indent-environment-list' in the AUCTeX manual.

--
Ralf



--
Hoang Trong Minh Tuan
PhD Student - Bioinformatics&Computational Biology


reply via email to

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