ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* metapost getting broken
@ 1999-11-11 22:27 Ed L. Cashin
  1999-11-12  0:51 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Ed L. Cashin @ 1999-11-11 22:27 UTC (permalink / raw)


Hi.  With the help of several documents, including "TeX as a
Presentation Tool" (art-pres.pdf) I have configured my teTeX
installation so that it's ready for inline MetaPost in ConTeXt.  

I made a little yellow circle.  (Whoo!!!)  But when I tried to add a
label I noticed that the mp source was getting broken:

    \setupcolors[state=start]
    \def\myMPFig%
    	    {\startreusableMPgraphic{}
    	    input mp-tool;
    	    fill fullcircle scaled (1in) withcolor (1, 1, 0);
    	    label.rt(btex first inline etex, (.5in, .25in));
    	    \stopreusableMPgraphic
    	    \reuseMPgraphic{}}

    \starttext
    hi
    \myMPFig
    bye
    \stoptext

... resulting in mpgraph.mp:

    mpgraph:=1;
    beginfig(1);
    input mp-tool;
    fill fullcircle scaled (1in) withcolor (1, 1, 0);
    label.rt(btex first inline etex;
    , (.5in, .25in));
    endfig;
    end.

... which doesn't work, of course.  Why is the semicolon getting added
before the comma?  Are there constraints on how to write mp code
inside of context? 

-- 
--Ed Cashin                     PGP public key:
  ecashin@coe.uga.edu           http://www.coe.uga.edu/~ecashin/pgp/


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

end of thread, other threads:[~1999-11-12  0:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-11 22:27 metapost getting broken Ed L. Cashin
1999-11-12  0:51 ` 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).