ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Using MPgraphics as externalfigures?
@ 2012-08-02  3:56 Mari Voipio
  2012-08-02  8:34 ` Marco Patzer
  2012-08-03 21:28 ` Aditya Mahajan
  0 siblings, 2 replies; 4+ messages in thread
From: Mari Voipio @ 2012-08-02  3:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.


I think the solution to my problem can be found somewhere in the
\startreuseagleMPgraphic and \reuseMPgraphic, but I don't seem to be
able to figure out the last bits...


On the moment my MPgraphics have

\startbuffer[g1]
\startMPcode
...
\stopMPcode
\stopbuffer

but that's probably an overkill... And I'd really prefer to have the
graphic as just a pic so I can easily use them as external figures.


Of course one option would be to pdf the MPgraphics and then to insert
the pdf, but I'd prefer to skip that step.


Any ideas of how to do this in a smart way? Preferably without having
to go into the bowels of ConTeXt to get it done...


Thank you,

Mari
___________________________________________________________________________________
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
___________________________________________________________________________________


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

end of thread, other threads:[~2012-08-03 21:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-02  3:56 Using MPgraphics as externalfigures? Mari Voipio
2012-08-02  8:34 ` Marco Patzer
2012-08-03 19:45   ` Mari Voipio
2012-08-03 21:28 ` Aditya Mahajan

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