LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

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

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

Print Reply
Subject:
From:
Bruno Le Floch <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Sun, 15 May 2011 17:35:38 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
> \foo [arg]   has the standard 'argument meaning'
>
> \foo
> [Paranthetical text starts here. ...

The problem is that the two are treated identically by TeX, except if
catcodes have not yet been assigned, and one changes the catcode of
eol or space.

\showtokens {\foo [arg]}
\showtokens {\foo
[Parenthetical ...}

both show "\foo [". As Frank said, one option would be to disable
TeX's parser and do it ourselves. For instance we could read the
document once, "escaping" what has to be escaped (verbatim,
spaces/newlines which shouldn't be skipped...), and save the result to
a file, then typeset that file. That seems like a rather daunting
task, albeit feasible.

Proposal: to ban trailing optional arguments entirely.

Regards,
Bruno

ATOM RSS1 RSS2