ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Macro argument handling problem!
@ 2011-04-21 10:28 Verhaag, G.C.H.M.
  2011-04-21 11:32 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Verhaag, G.C.H.M. @ 2011-04-21 10:28 UTC (permalink / raw)
  To: ntg-context

Hi,

I try this example from the wiki page System Macros/Argument handling:

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

\def\definesomething%
   {\dodoubleargumentwithset\dodefinesomething}

\starttext
  \definesomething[alfa][variable=test]
\stoptext


Running this yields

! Undefined control sequence

I'm trying to write a few macros with optional delimited arguments with 
key-value sets and started reading the appropriate pages, but can't 
figure out why this example fails to run.

Anybody any idea?

Regards,
Gerard Verhaag
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-04-23  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-21 10:28 Macro argument handling problem! Verhaag, G.C.H.M.
2011-04-21 11:32 ` Wolfgang Schuster
2011-04-21 11:35   ` luigi scarso
2011-04-21 11:41     ` Wolfgang Schuster
2011-04-23  9:19   ` Verhaag, G.C.H.M.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).