[metapost] mpost option -s internal="string"

Taco Hoekwater taco at elvenkind.com
Wed Jan 27 14:31:23 CET 2010


Nicola wrote:
> Hi,
> when I use (1.209):
> 
> mpost -s outputtemplate="foo.eps" -s outputformat="svg" foo.mp
> 
> I get
> 
> Warning: outputformat=0: value has the wrong type, assignment ignored.
> Warning: outputtemplate=0: value has the wrong type, assignment ignored.
> 
> What's wrong?

The shell commandline parsing is stripping your quotes, you have to
protect them like so:

mpost -s 'outputtemplate="foo.eps"' -s 'outputformat="svg"' foo.mp

Best wishes,
Taco


More information about the metapost mailing list