LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Mon, 3 Jan 2011 11:04:20 +0100
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
MIME-Version: 1.0
Message-ID: <[log in to unmask]>
In-Reply-To: <[log in to unmask]>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig13AFDC5608CD8F25C81D838E"
From: Arno Trautmann <[log in to unmask]>
Parts/Attachments: text/plain (1566 bytes) , signature.asc (261 bytes)
Karl Berry wrote:
>     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. 
>     Any comments?
> Based on my experience with Texinfo, my comment is that robust parsing
> of arguments delimited by end-of-line is essentially impossible.  I
> fully agree with Joseph: I wouldn't go there. 

What about an non-robust solution? ;)
No, seriously: Would it be aceptable (generally spoken) to offer
non-robust solutions istead of no solution at all?

>     (Also I'm not sure about different line endings in *nix and Windows.)
> That isn't the problem.  The engines have always unified the various
> platform-specific line endings to \endlinechar (otherwise TeX
> portability would be a nonstarter).  The problem is distinguishing eol
> from space (gets converted very early in processing), handling the
> contexts of active eol vs. normal eol, doing all this inside other
> macros, etc. ... it's a steep and slippery slope.
> If you want to convert from TeX to OOo, my suggestion is to use an
> external program.  An eol-delimited macro will hardly be a panacea for
> that job, as you yourself pointed out.

Yes, but I wanted it just for this very special thing. I hoped that it
would be possible with some TeX-trickery or so …
Maybe luaTeX could help here?
With external programs I did not succeed in converting a single
document, but that is all my fault.

Thanks for your answers,