ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Emil Hedevang Lohse <emil@imf.au.dk>
Subject: #'s in MPinclusions
Date: 22 Jan 2003 11:21:40 +0100	[thread overview]
Message-ID: <vg0wukxqybv.fsf@localhost.localdomain> (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.

             reply	other threads:[~2003-01-22 10:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-22 10:21 Emil Hedevang Lohse [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vg0wukxqybv.fsf@localhost.localdomain \
    --to=emil@imf.au.dk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).