auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] wrapping text in verbatim environments


From: Ralf Angeli
Subject: Re: [AUCTeX] wrapping text in verbatim environments
Date: Wed, 17 May 2006 20:35:06 +0200

* thomas (2006-05-17) writes:

> On 5/17/06, Ralf Angeli <address@hidden> wrote:
>> * thomas (2006-05-16) writes:
>>
>> > I would like to wrap the text in verbatim environments (to - say - 70
>> > characters), just like in mail-mode. I don't want the whole document
>> > to be wrapped, but just the portion of verbatim text I am editing. If
>> > it is not possible to have an automatic wrapping (auto-fill-mode (?)),
>> > at least, a manual wrapping with M-q.
>>
>> You could remove verbatim environments from
>> `LaTeX-indent-environment-list', but this will enable indentation as
>> well.
>
> But will it do the trick?

Why don't you try it?

> I think I was not very clear. What I want is
> a possibility to make sure that a line is never longer as 70
> characters (or 60, or 80). When you type an email in emacs, the
> mail-fill mode

Never heard of that.

> automatically insterts a newline character after 72
> letters. You can also do that manually with M-q.

That's what the above customization achieves as well.

> With verbatim environments, the line continues in the right margin
> when it is too long.

Yes, that's a feature.

> When I paste the ouptut of a shell command in a
> latex file, I don't want to format the whole output myself, that is to
> cut the lines which are too long. I thought auctex could maybe do that
> automatically.

Breaking the output of a shell command across lines might not be a
good idea (depending on what the output is).  At least it might be
better to do this in output (i.e. DVI, PostScript or PDF) only and not
in the LaTeX source.  The listings package is able to do that.

-- 
Ralf




reply via email to

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