Closed Udi-Fogiel closed 5 months ago
The \isnextchar
macro was not originally expandable, but now it is. So, it makes sense now to create macros defined by \optdef
expandable. Thank you for noticing. I'll prepare a commit which modifies \optdef
using \immediateassigment
.
Great, thanks!
the following code produce, IMO, undesired result
It can be fixed by adding
\_immediateassigned
in the correct places in the definition of\optdef
:or by making the macro protected:
or maybe simply mention in the documentation the expected output. Personally I like the first option, but it is not my call :)