[metapost] mptopdf corrupts source file - Engines.tar.bz2 (1/1)

Nicola nvitacolonna at gmail.com
Sun Jan 17 20:26:34 CET 2010


In article <71A4055B-3954-4401-9101-5416E97CE85C at mpq.mpg.de>,
 Oliver Buerschaper <oliver.buerschaper at mpq.mpg.de> wrote:

> consider this:
> 
> --
> verbatimtex
>     \setupbodyfont[10pt]
> etex
> 
> 
> beginfig(1);
>     draw btex Hello world! etex;
> endfig;
> 
> 
> end
> --
> 
> This is a typical example for my workflow where I need the labels to be 
> typeset by ConTeXt. Apparently this is *not* what happens in your MetaFun 
> script

This seems to work for me:

verbatimtex
   %&cont-en
   \setupbodyfont[10pt]
etex

beginfig(1);
   draw btex Hello world! etex;
endfig;

end

Anyway, that raises some questions in my head. For example,
I was thinking that 'mpost --mem=metafun --tex=texexec source.mp' would 
also work, but that is not the case. Can anybody explain me why? Is 
there any way mpost can be instructed from the command line to use 
ConTeXt to typeset labels? Besides, is my assumption that

'mpost -mem=metafun source.mp' + 'mptopdf source.1'

is essentially equivalent to 'mptopdf source.mp' incorrect? (Well, it 
is, because the same file compiles in one way and not the other, but 
maybe that can be fixed by using --tex?)

Nicola



More information about the metapost mailing list