[metapost] How to instruct mpost to use ConTeXt?

Aditya Mahajan adityam at umich.edu
Mon Jan 18 10:31:00 CET 2010


On Mon, 18 Jan 2010, Nicola wrote:

> Hi,
> as far as I understand, this:
>
> verbatimtex %&latex
>
> and this:
>
> mpost -tex=latex ...
>
> are equivalent ways (and none of them mandatory) to tell mpost to use
> latex to typeset the labels. For ConTeXt, I've found that 'verbatimtex
> %&cont-en' works. What is the equivalent from the command line? I've
> tried
>
> mpost -tex=texexec ...
>
> and even
>
> mpost -tex=context ...
>
> but both fail with 'DVI generation failed'.

This can be due to the fact that, by default, both texexec and context 
produce pdf rather than dvi. Try

mpost --tex="texexec --dvi" ...
mpost --tex="context --dvi" ...

Aditya


More information about the metapost mailing list