LATEX-L Archives

Mailing list for the LaTeX3 project


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, 1 Apr 2019 09:41:59 +0200
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]> (Benjamin Berg's message of "Mon, 1 Apr 2019 09:29:53 +0200")
Content-Type: text/plain
From: David Kastrup <[log in to unmask]>
Parts/Attachments: text/plain (20 lines)
Benjamin Berg <[log in to unmask]> writes:

> Hi,
> On Sun, 2019-03-31 at 18:57 -0300, Phelype Oleinik wrote:
>> If you can't switch the catcode of & before looking for the
>> optional argument, as David suggests
> David has a good point, I could handle the optional argument parsing
> myself and ensure that the case works correctly. It may not be trivial,
> but it should be reasonably easy.

It should be trivial.  You just use the provided mechanism exactly as
you did before (though naming it differently) and call it last thing in
your argumentless wrapper environment after setting up catcodes.  That
way the argument scanning only commences once catcodes are settled.

David Kastrup