On Thu, 2 Aug 2012, Mari Voipio wrote:
Hi All,
I'm being a bit clueless about the MPgraphics again...
I've got a pile of instructional graphics that will be used and reused
in a project. My first try is/was an unwieldy buffer construction, but
I'm sure there's a better way than
\placefigure[here]
[fig: 5 loop departed setup]
{The start position for a 5-loop braid with departed loops}
{\framed{\getbuffer[setup 5-loop basic]}}
Come to think of it, is there another way of framing the incoming
graphic? I don't want to include the frames in the MPcode as I may not
always want them, but that \framed{\getbuffer} construction is
downright ugly.
(Untested code, but this should work)
\startbuffer[figure 1]
draw fullcircle scaled 1cm;
\stopbuffer
\startbuffer[frame]
draw (bbox currentpicture) withcolor blue;
\stopbuffer
\processMPbuffer[figure 1, frame]
Basically, you can concatinate various buffers in \processMPbuffer.
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________