The following code results in an error.

  \startMPinclusions
  vardef a@#(text t) = @#(t) enddef;
  \stopMPinclusions

  \starttext
  Hello.
  \stoptext

! Illegal parameter number in definition of \theMPinclusions.
<to be read again> 
                   (
<argument> vardef a@##(
                       text t) = @##(t) enddef; 
\startMPinclusions ...tions ;}}\writeMPgraphic {#1
                                                  }}
l.3 \stopMPinclusions
                     

I know that # is a special character in TeX, but is there a way to get
abound this? What I actually trying to do, is to make a diagram
drawing package that I wrote for Metapost, work in ConTeXt. So I would
like to include the Metapost macros once and then use them later in
drawings, that is,

  <include the Metapost macros in one way or another>

  \starttext

  ... we now have the following commutative diagram.  
  \startuseMPgraphic
    <my code for the diagram>
  \stopuseMPgraphic
  \useMPgraphic

  \stoptext



-- 
Emil Hedevang Lohse <http://home.imf.au.dk/emil/> 

Alle sp�rgsm�l er lige dumme. 
Og sp�rgsm�let "Kan �nder flyve?" er ikke dumt.
_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to