Hi David, The use of the different possibilities of including metapost graphics in ConTeXt are described in the METAFUN-manual on pages 9, 81-82, 115 For your refernce I attach a small demo file using your code ... Kind regards Willi David Munger wrote:
Hello,
The following code results in no label output:
\starttext \startMPcode label.top(btex Some label etex, (1cm,1cm)) ; \stopMPcode \stoptext
I'm using ConTeXt 2003.12.12.
By the way, why don't \startMPgraphic and \stopMPgraphic do anything?
\setupoutput[pdftex] \starttext \section{Including the MPcode in the placefigure mechanism} \placefigure [here] [] {the label} {\startMPcode label.top(btex Some label 1 etex, (1cm,1cm)) ; \stopMPcode} \section{startMPgraphic -- placeMPgraphic} \startMPgraphic label.top(btex Some label 2 etex, (1cm,1cm)) ; \stopMPgraphic \loadcurrentMPgraphic{width=15cm} \placeMPgraphic \section{startuseMPgraphic -- useMPgraphic} \startuseMPgraphic{Label2} label.top(btex Some label 3 etex, (1cm,1cm)) ; \stopuseMPgraphic \useMPgraphic{Label2} \section{startreusableMPgrpahic -- reuseMPgraphic} \startreusableMPgraphic{Label3} label.top(btex Some label 4 etex, (1cm,1cm)) ; \stopreusableMPgraphic \reuseMPgraphic{Label3} \stoptext