LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Arno Trautmann <[log in to unmask]>
Sun, 2 Jan 2011 17:58:36 +0100
text/plain (1151 bytes) , signature.asc (261 bytes)
Joseph Wright wrote:
> On 02/01/2011 10:10, Arno Trautmann wrote:
>> Hi all,
>> I just thought it might be good to have an argument type that reads an
>> argument until the end of line. That would be a special version of the u
>> type, I think, but the normal user will not be able to specify it that
>> way. (Also I'm not sure about different line endings in *nix and
>> Windows.)
>> Any comments?
> I have a feeling that this falls into the 'verbatim-like' category that
> can't really be handled by xparse. That I know of, you can't write a
> macro which is delimited by ^^M (end-of-line) without making catcode
> changes.

What about reading until the next paragraph, i.e. an empty line?

> By the way, I assume that you have an application in mind?

Well, a very trivial one: I have to write a text in word-compatible
format. So I wanted to write it in LaTeX and later copy-paste to OOo,
then delete all \section etc. and do a bit formatting. But if
\section{title} has the closing brace, I have to use regular expressions
to delete them.
No big thing, but I would be a little bit easier with \section scanning
until the end of line instead of braces.