Hi ConTeXt users,

I'm trying to build a user-defined command called *mycommand* and followed the hints on (https://wiki.contextgarden.net/ConTeXt_and_Lua_programming/Tutorials/System_Macros/Handling_Arguments)

\def\dodefinemycommand[#1][#2]% {\getparameters[\??xx#1][#2]}

\def\mycommand% {\dodoubleargumentwithset\dodefinemycommand\strut\blank[2*big] See what happens: \@@xxonex}

and call it with:

*\mycommand[one,two][x=1,y=2]*

**

This yields a fatal error; while I'd expect something like:

*See what happens: 1*

What am I doing wrong here?
**

**

Gerard

P.S. Currently using version: 2023.02.14 17:44!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to