LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

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

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

Print Reply
Bruno Le Floch <[log in to unmask]>
Mon, 16 May 2011 19:17:25 -0400
text/plain (31 lines)
By the way, I wasn't really serious about dropping trailing optional arguments.

>  >     \bar{apa} cepa
>  >
>  > used to have a space, and \bar for some reason in a package needs to be
>  > extended
>
> On the other hand I don't think that a package author doing this would get
> very happy customers

It seems technically possible for xparse to store the info of whether
it has skipped spaces or not, and put them back in case there was no
optional argument.

I quite like Frank's key-val + positional idea. However, I'd change it
a little bit by getting rid of the trailing optional arguments part by
delimiting the argument with (for instance) a semicolon. Uses of \\
could then be

\\ ;
\\ [3cm] ;
\\ * [3cm] < color=normal, decoration=fancy-flowers > ;

This combines nicely with an earlier discussion on document
shorthands, noting that every document short-hand should really have a
trailing \Marker; to prevent \TeX; from losing spaces. These
short-hands could then easily be made to accept arguments by putting
them before the marker.

Bruno

ATOM RSS1 RSS2