LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Proportional 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: Wed, 11 May 2011 15:01:19 -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 (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.