ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* #'s in MPinclusions
@ 2003-01-22 10:21 Emil Hedevang Lohse
  2003-01-22 11:54 ` Patrick Gundlach
  0 siblings, 1 reply; 5+ messages in thread
From: Emil Hedevang Lohse @ 2003-01-22 10:21 UTC (permalink / raw)



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.

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

end of thread, other threads:[~2003-01-24 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-22 10:21 #'s in MPinclusions Emil Hedevang Lohse
2003-01-22 11:54 ` Patrick Gundlach
2003-01-22 13:18   ` Hans Hagen
2003-01-24 13:38     ` Emil Hedevang Lohse
2003-01-24 14:18       ` Hans Hagen

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).