[NTG-context] metapost to pdf on the fly

Meer, H. van der H.vanderMeer at uva.nl
Thu Sep 29 20:37:32 CEST 2011


I would like to generate metapost figures in separate pdf-files (in some convenient directory, they are reused elsewhere). This as part of a project structure. I know that on a separate run such a pdf can be generated with:
context figurefile running on input
  \input some-metapost-inclusions
  \starttext
  \startMPpage
  ..
  \stopMPpage
  \stoptext

But the idea is to do it on the fly while typesetting a project (using mode=*first to prevent further iterations):
..
\component figurefile
..
And in the figurefile
  \startcomponent figurefile
  \environment some-metapost-inclusions
  \starttext
  .. BUT THEN WHAT?

As such it is not sufficient for the goal proposed. Can this be done at all?

Hans van der Meer



More information about the ntg-context mailing list