Giuseppe Bilotta wrote:


It is true, we need a "programming in ConTeXt" manual. It is still possible to 'know' how to do things by looking at the way things are done in ConTeXt itself. For example, in your case you want something like this:

\def\myCommand[#1]#2{%
\rawgetparameters[myCommand][param1=defaultvalue1,param2=defaultvalue2,#1]%
do something with \csname myCommandparam1\endcsname and #2}


There is

 \setvariables [yournamespace] [yourvar=yourval]

which operates independent of the language interface

\getvariable{yournamespace}{yourvar}

can be used to pick up a var

The most important issue here is that you need to use some unique prefix, preferable something MyPrefix (capital and verbose).

Hans

-----------------------------------------------------------------
                                         Hans Hagen | PRAGMA ADE
             Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                            | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to