[NTG-context] \doifelse not working, \doiftextelse breaking

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Fri Oct 9 17:10:00 CEST 2020

Pablo Rodriguez schrieb am 09.10.2020 um 16:31:
>> To improve your command and allow a space between both arguments you can use
>> \unexpanded\def\startswith
>>     {\dodoubleargument\dostartswith}
>> \def\dostartswith[#1][#2]%
>>     {...}
> Now I see with \dosingleargument, \dodoubleargument and
> \dotripleargument are there.
> Which are the improvements to the command added by \do*argument?

You can add a space between both arguments. You version expects this

     \startswith [...][...]

while the extended code allows this

     \startswith [...] [...]


More information about the ntg-context mailing list