[metapost] how to use mpstoeps on a Windows machine
Taco Hoekwater
taco at elvenkind.com
Wed Dec 2 23:28:22 CET 2009
Pétiard François wrote:
> Le 02/12/2009 22:11, Yogeshwarsing Calleecharan a écrit :
>> Hi again, I tried to install the new metapost on TL2008 on my Windows
>> machine. I pick the mpost.exe from the windows file (mingw.zip) at
>> http://foundry.supelec.fr/gf/project/metapost/frs/ and replaced the
>> old mpost.exe (v1.005) in my TL2008 with this new mpost.exe (v1.208).
>> Then I ran the command:
>>
>> fmtutil --byfmt mpost
>>
>> which I found in an earlier thread. I got: Ok. mpost.exe exists and
>> mypost.mem is created.
>>
>> I then try to run the new mpost.exe on my mp file. First with the
>> single quotes as you originally gave me and then without the single
>> quotes as you also suggested. I have a Win XP machine. Here are the
>> outputs:
>>
>>
>> E:\testing\gn\test35\labe>mpost --sprologues=3
>> -soutputtemplate='"%j-%c.eps"' my figu.mp This is MetaPost, version
>> 1.208 (kpathsea version 3.5.7dev) (./myfigu.mp Warning:
>> outputtemplate=0: value has the wrong type, assignment ignored.
>> [0{pdftex.map}<cmr10.pfb><cmsy10.pfb><cmmi10.pfb><cmmi7.pfb><cmmi5.pfb>]
>> ) 1 output file written: myfigu.0 Transcript written on myfigu.log.
>>
>> E:\testing\gn\test35\labe>mpost --sprologues=3
>> -soutputtemplate="%j-%c.eps" myfi gu.mp This is MetaPost, version
>> 1.208 (kpathsea version 3.5.7dev) (./myfigu.mp Warning:
>> outputtemplate=0: value has the wrong type, assignment ignored.
>> [0{pdftex.map}<cmr10.pfb><cmsy10.pfb><cmmi10.pfb><cmmi7.pfb><cmmi5.pfb>]
>> ) 1 output file written: myfigu.0 Transcript written on myfigu.log.
>>
>> E:\testing\gn\test35\labe>
>>
>>
>> It seems the command outputtemplate is causing problem. Any help
>> would be most appreciated.
>>
>>
>
> I don't have MetaPost v.1.208 on my computer but isn't it
>
> prologues:=3 (not prologues=3)
>
> and
>
> outputtemplate:="%j-%c.eps" (not outputtemplate="%j-%c.eps") ?
On the commandline you don't need the assignment syntax.
The problem here is windows shell quoting. My shell on linux needs
'"%j"' to preserve the inner double quotes, but I have no idea wat
the right way is for windows cmd.exe so I cannot help you.
Best wishes,
Taco
More information about the metapost
mailing list