auctex
[Top][All Lists]

Re: [AUCTeX] Disable folding in specific environments

 From: Joost Kremers Subject: Re: [AUCTeX] Disable folding in specific environments Date: Tue, 21 Aug 2012 10:14:07 +0200 User-agent: Mutt/1.5.21 (2010-09-15)

```hi ralf,

On Mon, Aug 20, 2012 at 09:02:21PM +0200, Ralf Angeli wrote:
> Hm, there is `TeX-fold-preserve-comments' but this only works with line
> comments.  One would have to change the code to work with environmental
> comments as well.  That would probably require some work because

might be a nice thing to have.

the orgmode manual suggested another solution: add the comment environment
(or in my case the orgtbl environment) to LaTeX-verbatim-environments. but
i noticed that text inside verbatim environments is folded as well. is that
deliberate? since verbatim text appears unchanged in the document, i'd
expect it isn't folded either. or is there an option somewhere that changes
this behaviour? (i couldn't find any.)

> > Alternatively, is it possible to tell TeX-fold to simply not fold if it
> > can't find any content? Instead of displaying the above error message, I
> > mean? (That would be useful in other contexts as well, e.g. within
> > \newcommand definitions.)
>
> AFAICS there is currently no option to change the behavior.

might also be nice to have, though not high priority, of course. :-)

thanks, btw, for all the work you and the entire team are putting into
auctex. i couldn't imagine editing latex files without it...

best,

joost

--
Joost Kremers, PhD
University of Göttingen
Institute for German Philology
Käte-Hamburger-Weg 3
37073 Göttingen, Germany

```