[metapost] [NTG-context] Standalone MetaPost Graphics from ConTeXt
adityam at umich.edu
Thu Aug 30 23:38:46 CEST 2012
On Thu, 30 Aug 2012, Troy Henderson wrote:
> Is there a way to output several MetaPost PDF graphics from a single
> ConTeXt source file. For example,
> draw fullcircle scaled 72;
> draw unitsquare scaled 72;
> and have a separate output PDF generated for each MPpage? It seems that
> this ConTeXt code generates a single PDF which contains only the first
> graphic. I would like to have either
If you add \starttext ... \stoptext, then ConTeXt generates a single PDF
with all pages.
> 1) two separate PDF's with each containing their own graphic
You can use external tools like pdftk to split a pdf file into multiple
> 2) a single two page PDF where each page corresponds to the appropriate
> Of course, the "holy grail" would be to be able to "compile" a MetaPost
> source file with ConTeXt.
With a recent beta, you can use:
to compile a ConTeXt file.
More information about the metapost