LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

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, 16 May 2011 19:17:25 -0400
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: text/plain; charset=ISO-8859-1
From: Bruno Le Floch <[log in to unmask]>
Parts/Attachments: 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