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:
Will Robertson <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Thu, 6 Aug 2009 17:38:10 +0930
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (920 bytes) , smime.p7s (2446 bytes)
Hi Joseph,

Regarding space-skipping:

On 06/08/2009, at 3:23 PM, Joseph Wright wrote:

>> Re-reading your approach in xparse-alt, I believe what is currently
>> implemented there is the best approach. It applies sensible  
>> defaults and
>> allows overrides; to whit:
>>
>> {m o}    does not skip spaces
>> {m o m}  does skip spaces
>> {m !o}   does skip spaces
>> {m ^o m} does not skip spaces
>>
>> Since (a) can't always skip spaces, and (b) never skipping spaces  
>> leads
>> to inconsistencies, and (c) only need to ignore spaces when the  
>> optional
>> argument is last -- I strongly think xparse-alt has it right.
>
> My main concern is "should we provide the option to change things"?
> Would it be clearer if the same rules always apply (is there a need to
> skip spaces to find trailing optional arguments, for example).

I would support dropping ^ and ! in xparse-alt providing that final  
optional arguments don't skip spaces.

Will



ATOM RSS1 RSS2