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 [...] [...]
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________