LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

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

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

Print Reply
Bruno Le Floch <[log in to unmask]>
Wed, 11 May 2011 15:01:19 -0400
text/plain (28 lines)
>   \foo[bar]
>   \foo [bar]
>   \foo  text
> TeX will always skip spaces and so things are not consistent. In the
> same way, mandatory arguments are always grabbed

Not quite true. For instance, amsmath redefined \\ not to skip spaces
when looking for an optional argument, I believe. And that works
because \\ is a control symbol, not a control word. I think this
choice of behaviour really needs to be supported, since it leads to
surprises for the end-user otherwise.

> really correct! (At the same time, the implementation would be slightly
> easier to follow if this change was made.)

On the other hand, emulating LaTeX2e arguments with space skipping
seems needed as well. Is it possible to get the best of the two worlds
with a "o_no_skip" argument specifier? Or more generally a modifier,
say K, which makes the next argument keep spaces (except perhaps for m
arguments where it should produce an error)?

\DeclareDocumentCommand {\\} { Ks Ko } {...}

Just my take on it.