Re: [NTG-context] mptopdf in minimals
On Wed, Apr 17, 2013 at 10:51 PM, John Kitzmiller wrote: > > Is there something extra needed to use mptopdf with only context minimal? Does it help if you run the following command first? texexec --make mptopdf (it should or at least used to be used in past) Mojca -- Thank you Mojca, Your idea did help for minimal examples. I get conflicts with more elaborate files (even the dreaded 'cannot make .mpx file') sometimes using either suggestions so... retraining my fingers to put MP code in \startMPpage is the direction I will take because it gives the best looking forward result for me. John ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf in minimals
On Wed, Apr 17, 2013 at 10:51 PM, John Kitzmiller wrote: > > Is there something extra needed to use mptopdf with only context minimal? Does it help if you run the following command first? texexec --make mptopdf (it should or at least used to be used in past) Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf in minimals
On Apr 17, 2013, at 5:00 PM, Hans Hagen wrote: > On 4/17/2013 10:51 PM, John Kitzmiller wrote: >> Is there something extra needed to use mptopdf with only context minimal? >> >> Experimenting with having just context standalone on mac osx: >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > > > > > > >Compiling with just mpost or using a > context \startMPcode wrapper works, e.g.: >> >> beginfig(1); >> draw origin--(100,100); >> endfig; >> end > > if you have context installed you can try > > mtxrun --script metapost …. Thank you Hans. It works (no surprise) but now I will have to script it to save typing! John ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf in minimals
On 4/17/2013 10:51 PM, John Kitzmiller wrote: Is there something extra needed to use mptopdf with only context minimal? Experimenting with having just context standalone on mac osx: ! Compiling with just mpost or using a context \startMPcode wrapper works, e.g.: beginfig(1); draw origin--(100,100); endfig; end if you have context installed you can try mtxrun --script metapost - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf in minimals
Is there something extra needed to use mptopdf with only context minimal? Experimenting with having just context standalone on mac osx: Compiling with just mpost or using a context \startMPcode wrapper works, e.g.: beginfig(1); draw origin--(100,100); endfig; end works with command line mpost % This is MetaPost, version 1.801 (kpathsea version 6.1.1dev) (mpost.mp (/users/johnkitzmiller/context/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004) ) (./mwe.mp [1] ) 1 output file written: mwe.1 Transcript written on mwe.log. and... \starttext \startMPcode draw origin--(100,100); \stopMPcode \stoptext works with command context % But using mptopdf on the first snippet complains: MPtoPDF 1.4.1 : running 'mpost --mem=mpost mwe.mp' This is MetaPost, version 1.801 (kpathsea version 6.1.1dev) (mpost.mp (/users/johnkitzmiller/context/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004) ) (./mwe.mp [1] ) 1 output file written: mwe.1 Transcript written on mwe.log. This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) \write18 enabled. kpathsea: Running mktexfmt mptopdf.fmt /usr/texbin/mktexfmt: line 395: /users/johnkitzmiller/context/tex/texmf/texconfig/tcfmgr: is a directory fmtutil: config file `fmtutil.cnf' not found. I can't find the format file `mptopdf.fmt'! MPtoPDF 1.4.1 : error while processing tex file (Note: I do not have TeX Live 2013 installed. The message from line 7 gave me some hints and I created the directory and put mptopdf.fmt from a pdftex --ini mptopdf command … no luck) Turning $PATH off from ~/context/tex/texmf-osx-64/bin mptopdf % gives: MPtoPDF 1.4.1 : running 'mpost --mem=mpost mwe.mp' This is MetaPost, version 1.504 (kpathsea version 6.1.0) (mpost.mp (/usr/local/texlive/2012/texmf-dist/metapost/base/plain.mp Preloading the plain mem file, version 1.004)) (./mwe.mp [1] ) 1 output file written: mwe.1 Transcript written on mwe.log. This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012) restricted \write18 enabled. [MP to PDF] (./mwe.1) [1] Output written on mwe.pdf (1 page, 1305 bytes). Transcript written on mwe.log. MPtoPDF 1.4.1 : mwe is converted to mwe-1.pdf as I have been using. How to get mptopdf working from command line with just minimals? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf problem: he is broken and asking for fix
On 03/27/2013 09:17 AM, Taco Hoekwater wrote: On 03/26/2013 11:13 PM, Hans Hagen wrote: On 3/26/2013 10:07 PM, Martin Bruchanov wrote: Hi, ! This can't happen (degenerate spec). So I hope, there is someone who can fix :) Can this be a bug in mplib? Looks that way, yes. Investigating right now. Found, should be fixed in the next release. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf problem: he is broken and asking for fix
On 03/26/2013 11:13 PM, Hans Hagen wrote: On 3/26/2013 10:07 PM, Martin Bruchanov wrote: Hi, I'm using: MPtoPDF 1.4.1 : running 'mpost --mem=mpost linejoin.mp' This is MetaPost, version 1.800 (kpathsea version 6.1.1dev) Attached sources give following error: This is MetaPost, version 1.800 (kpathsea version 6.1.1dev) 26 MAR 2013 22:04 **linejoin.mp (mpost.mp (/mnt/data/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004) ) (./linejoin.mp (./line_makro.mp) [1 ! This can't happen (degenerate spec). endfig->scantokens.extra_endfig;shipit; endgroup l.24 endfig ; I'm broken. Please show this to someone who can fix can fix So I hope, there is someone who can fix :) Next time, try to make a small example (i lack the time to zoom in to the smallest problem). Taco, Can this be a bug in mplib? Looks that way, yes. Investigating right now. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf problem: he is broken and asking for fix
On 3/26/2013 10:07 PM, Martin Bruchanov wrote: Hi, I'm using: MPtoPDF 1.4.1 : running 'mpost --mem=mpost linejoin.mp' This is MetaPost, version 1.800 (kpathsea version 6.1.1dev) Attached sources give following error: This is MetaPost, version 1.800 (kpathsea version 6.1.1dev) 26 MAR 2013 22:04 **linejoin.mp (mpost.mp (/mnt/data/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004) ) (./linejoin.mp (./line_makro.mp) [1 ! This can't happen (degenerate spec). endfig->scantokens.extra_endfig;shipit; endgroup l.24 endfig ; I'm broken. Please show this to someone who can fix can fix So I hope, there is someone who can fix :) Next time, try to make a small example (i lack the time to zoom in to the smallest problem). Taco, Can this be a bug in mplib? \startMPpage def drawdot = addto currentpicture contour makepath currentpen enddef ; linejoin := mitered; drawdot withpen pensquare ; \stopMPpage It looks like mitered and pensquare pen building don't go along. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf problem: he is broken and asking for fix
Hi, I'm using: MPtoPDF 1.4.1 : running 'mpost --mem=mpost linejoin.mp' This is MetaPost, version 1.800 (kpathsea version 6.1.1dev) Attached sources give following error: This is MetaPost, version 1.800 (kpathsea version 6.1.1dev) 26 MAR 2013 22:04 **linejoin.mp (mpost.mp (/mnt/data/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004) ) (./linejoin.mp (./line_makro.mp) [1 ! This can't happen (degenerate spec). endfig->scantokens.extra_endfig;shipit; endgroup l.24 endfig ; I'm broken. Please show this to someone who can fix can fix So I hope, there is someone who can fix :) Best regards, BruXy -- Martin Bruchanov Skype : bruxytronics WWW : http://bruxy.regnet.cz/ GPG-Key : http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53) Linked-In : http://www.linkedin.com/in/bruxy Google+ : http://gplus.to/BruXy input line_makro.mp def drawjoin(text cap)(text move)(expr xsour)(text desc) = x0 := xsour; linejoin := cap; label.top(desc, z0+(0, 1u)); line(move)(tl, tlline); line(move)(.4bp, black); put_points(shifted (xsour, 0)); enddef; % Rohy navazujicich car beginfig(1); %% path p; z0 = (0,0); z1 = (1u,1u); z2 = (2u,0); p := z0--z1--z2; drawjoin(rounded)()(0)("rounded"); drawjoin(beveled)(shifted z0)(3u)("beveled"); drawjoin(mitered)(shifted z0)(6u)("mitered"); endfig; end; def line(text t)(expr size,col) = draw p t withpen pencircle scaled size withcolor col; enddef; def bod(text t) = draw p t withpen pencircle scaled .4bp; enddef; def put_points(text t) = for i = z0,z1,z2: if i = z0: drawdot i withpen bodik; else: drawdot i t withpen bodik; fi; endfor; enddef; defaultfont := "cmtt10"; u := cm; % uzka carka nl := .4bp; pen bodik; bodik := pensquare scaled 2nl; color tlline; tlline := 0.7white; tl := 3mm; %drawdot (0,0) shifted (-1cm, 0) withpen bodik; pgp0gSdrUwMMq.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf and btex ... etex (was: gnuplot: `! Undefined control sequence.` with format specifier %)
On Mon, Dec 12, 2011 at 01:02, Mojca Miklavec wrote: > > ... however I still have some problems. For some reason ConTeXt only > generates dvi files from metapost code which has never been the case > before. I need to figure out what is going on. Ouch. > mtxrun mptopdf gptest-gnuplot-2-mp.mp MPtoPDF 1.4.1 : running 'mpost --mem=mpost gptest-gnuplot-2-mp.mp' This is MetaPost, version 1.504 (kpathsea version 6.0.0) (mpost.mp (/context/tex/texmf/metapost/base/plain.mp Preloading the plain mem file, version 1.004)) (./gptest-gnuplot-2-mp.mpTeXExec | processing graphic './gptest-gnuplot-2-mp.mp' TeXExec | using internal mptotex converter TeXExec | processing document './gptest-gnuplot-2-mp-temp.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | writing option file gptest-gnuplot-2-mp-temp.top ... (./gptest-gnuplot-2-mp.mp [0 Warning: cannot open font map file psfonts.map ] metafun ii 2011-12-12 01:03 ) ) (end occurred when else on line 5 was incomplete) 1 output file written: gptest-gnuplot-2-mp.0 Transcript written on gptest-gnuplot-2-mp.log. TeXExec | runtime: 0.835873 [0] ) 1 output file written: gptest-gnuplot-2-mp.0 Transcript written on gptest-gnuplot-2-mp.log. This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) \write18 enabled. entering extended mode [MP to PDF] (./gptest-gnuplot-2-mp.0{/Users/mojca/context/tex/texmf/fonts/map/p dftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file rm-lmr12): Font rm-lmr12 at 600 not found ==> Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.1 : error while processing tex file It seems that half of the time content is processed with ConTeXt and half of the time it is processed with plain pdfTeX. I need to inspect. In TeX Live 2011 it works since pdftex.map is complete. I could in theory extend pdftex.map, but I need to figure out which step in mptopdf is failing anyway. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf TeX text problem
On 30-11-2011 21:32, Martin Bruchanov wrote: Hello, what is the proper way of using MetaPost with TeX text? I have two examples: beginfig(1); draw unitsquare scaled(1cm); draw textext("$\pi$") shifted((0.5,0.5)*cm); % label(btex $\pi$ etex, origin); endfig; end Easiest is: fig-1.tex: \startMPpage draw unitsquare scaled(1cm); draw textext("$\pi$") shifted((0.5,0.5)*cm); \stopMPpage and then run: context fig-1 this will give you an independent pdf - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf TeX text problem
Hello, what is the proper way of using MetaPost with TeX text? I have two examples: beginfig(1); draw unitsquare scaled(1cm); draw textext("$\pi$") shifted((0.5,0.5)*cm); % label(btex $\pi$ etex, origin); endfig; end mptopdf --metafun produces only "unknown" where the Pi symbol should be and when I uncomment label the following problem occurs: Output written on test-temp.dvi (2 pages, 256 bytes). Transcript written on test-temp.log. TeXExec | runtime: 0.16436 This is MetaPost, version 1.504 (kpathsea version 6.0.0) mpost: Not writing to .log (openout_any = p). ! I can't write on file `.log'. Please type another transcript file name: ... !pdfTeX error: pdftex (file lmmi12): Font lmmi12 at 600 not found ==> Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.1 : error while processing tex file --- But, when I put source in \startMPpage draw unitsquare scaled(1cm); draw textext("$\pi$") shifted((0.5,0.5)*cm); label(btex $\pi$ etex, origin); \stopMPpage and call context, the output PDF is okay. So what is proper way to use TeX inside mpost nowaday? Best regards -- Martin Bruchanov Skype : bruxytronics WWW : http://bruxy.regnet.cz/ GPG-Key : http://bruxy.regnet.cz/bruxy-gpg.key (0x8107ED53) AX.25 : OK2MNM @ OK0PBX.#MOR.CZE.EU IRCNet: #linux.cz, #cvut, #z80 Linked-In : http://www.linkedin.com/in/bruxy pgpKp9FAAb6ER.pgp Description: PGP signature ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf missing
On Tue, Nov 29, 2011 at 3:45 PM, Hans Hagen wrote: > On 29-11-2011 20:36, Ernesto Posse wrote: >> >> On Tue, Nov 29, 2011 at 12:51 PM, Hans Hagen wrote: >>> >>> On 29-11-2011 18:07, Ernesto Posse wrote: Thanks, On Tue, Nov 29, 2011 at 11:44 AM, Mojca Miklavec wrote: > > > On Mon, Nov 28, 2011 at 21:44, Ernesto Posse > wrote: >> >> >> Hi. I have a fresh installation of ConTeXt on Ubuntu 11.10, straight >> from Ubuntu's repository (version 2011.05.18.20110627-1) but the >> mptopdf script seems to be missing, and mtxrun doesn't show any >> available scripts. What could be the problem? > > > > I would suggest to ask the Ubuntu maintainer of TeX Live package. I > can tell you that mptopdf is a different package in TeX Live 2011, but > ConTeXt should have a dependency on that package. What exactly Ubuntu > did on their system ... I have no idea. The developer is free to ask > questions here, but in principle we cannot help you much unless some > Ubuntu freak speaks up. I thought that mptopdf was part of ConTeXt... to is it part of TeX Live instead? >>> >>> >>> >>> It is part of context but as context moves on (mkiv) no user will use >>> mptopdf as (1) mp processing is built into the core, and (2) fo rstand >>> alone >>> graphics the mkiv related context and metapost scripts can do the same as >>> mptopdf. >> >> >> I'm using it for stand-alone graphics, to be included in a latex file, >> to be compiled with pdflatex. In short, I have a diagram in mp, and I >> used to do the following: >> >> mpost diagram.mp >> mptopdf diagram.1 >> >> My understanding is that the .1 file generated by mpost is actually an >> ..eps file, but pdflatex doesn't accept it, and that's why I used >> >> mptopdf. I do not see any options in either mpost or context that >> would allow me to do that. How could I use any of these to get a pdf? > > > what happens if you rename the .1 to .mps? inclusion of mp in pdftex should > work ok in latex (as it uses the mp to pdf converter that is also used in > mptopdf) That seems to do the trick, thanks! > > > Hans > > > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > - -- Ernesto Posse Modelling and Analysis in Software Engineering School of Computing Queen's University - Kingston, Ontario, Canada ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf missing
On 29-11-2011 20:36, Ernesto Posse wrote: On Tue, Nov 29, 2011 at 12:51 PM, Hans Hagen wrote: On 29-11-2011 18:07, Ernesto Posse wrote: Thanks, On Tue, Nov 29, 2011 at 11:44 AM, Mojca Miklavec wrote: On Mon, Nov 28, 2011 at 21:44, Ernesto Possewrote: Hi. I have a fresh installation of ConTeXt on Ubuntu 11.10, straight from Ubuntu's repository (version 2011.05.18.20110627-1) but the mptopdf script seems to be missing, and mtxrun doesn't show any available scripts. What could be the problem? I would suggest to ask the Ubuntu maintainer of TeX Live package. I can tell you that mptopdf is a different package in TeX Live 2011, but ConTeXt should have a dependency on that package. What exactly Ubuntu did on their system ... I have no idea. The developer is free to ask questions here, but in principle we cannot help you much unless some Ubuntu freak speaks up. I thought that mptopdf was part of ConTeXt... to is it part of TeX Live instead? It is part of context but as context moves on (mkiv) no user will use mptopdf as (1) mp processing is built into the core, and (2) fo rstand alone graphics the mkiv related context and metapost scripts can do the same as mptopdf. I'm using it for stand-alone graphics, to be included in a latex file, to be compiled with pdflatex. In short, I have a diagram in mp, and I used to do the following: mpost diagram.mp mptopdf diagram.1 My understanding is that the .1 file generated by mpost is actually an ..eps file, but pdflatex doesn't accept it, and that's why I used mptopdf. I do not see any options in either mpost or context that would allow me to do that. How could I use any of these to get a pdf? what happens if you rename the .1 to .mps? inclusion of mp in pdftex should work ok in latex (as it uses the mp to pdf converter that is also used in mptopdf) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf missing
On Tue, Nov 29, 2011 at 12:51 PM, Hans Hagen wrote: > On 29-11-2011 18:07, Ernesto Posse wrote: >> >> Thanks, >> >> On Tue, Nov 29, 2011 at 11:44 AM, Mojca Miklavec >> wrote: >>> >>> On Mon, Nov 28, 2011 at 21:44, Ernesto Posse wrote: Hi. I have a fresh installation of ConTeXt on Ubuntu 11.10, straight from Ubuntu's repository (version 2011.05.18.20110627-1) but the mptopdf script seems to be missing, and mtxrun doesn't show any available scripts. What could be the problem? >>> >>> >>> I would suggest to ask the Ubuntu maintainer of TeX Live package. I >>> can tell you that mptopdf is a different package in TeX Live 2011, but >>> ConTeXt should have a dependency on that package. What exactly Ubuntu >>> did on their system ... I have no idea. The developer is free to ask >>> questions here, but in principle we cannot help you much unless some >>> Ubuntu freak speaks up. >> >> >> I thought that mptopdf was part of ConTeXt... to is it part of TeX Live >> instead? > > > It is part of context but as context moves on (mkiv) no user will use > mptopdf as (1) mp processing is built into the core, and (2) fo rstand alone > graphics the mkiv related context and metapost scripts can do the same as > mptopdf. I'm using it for stand-alone graphics, to be included in a latex file, to be compiled with pdflatex. In short, I have a diagram in mp, and I used to do the following: mpost diagram.mp mptopdf diagram.1 My understanding is that the .1 file generated by mpost is actually an .eps file, but pdflatex doesn't accept it, and that's why I used mptopdf. I do not see any options in either mpost or context that would allow me to do that. How could I use any of these to get a pdf? > Hans > > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > - -- Ernesto Posse Modelling and Analysis in Software Engineering School of Computing Queen's University - Kingston, Ontario, Canada ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf missing
On 29-11-2011 18:07, Ernesto Posse wrote: Thanks, On Tue, Nov 29, 2011 at 11:44 AM, Mojca Miklavec wrote: On Mon, Nov 28, 2011 at 21:44, Ernesto Posse wrote: Hi. I have a fresh installation of ConTeXt on Ubuntu 11.10, straight from Ubuntu's repository (version 2011.05.18.20110627-1) but the mptopdf script seems to be missing, and mtxrun doesn't show any available scripts. What could be the problem? I would suggest to ask the Ubuntu maintainer of TeX Live package. I can tell you that mptopdf is a different package in TeX Live 2011, but ConTeXt should have a dependency on that package. What exactly Ubuntu did on their system ... I have no idea. The developer is free to ask questions here, but in principle we cannot help you much unless some Ubuntu freak speaks up. I thought that mptopdf was part of ConTeXt... to is it part of TeX Live instead? It is part of context but as context moves on (mkiv) no user will use mptopdf as (1) mp processing is built into the core, and (2) fo rstand alone graphics the mkiv related context and metapost scripts can do the same as mptopdf. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf missing
On Tue, Nov 29, 2011 at 18:07, Ernesto Posse wrote: > Thanks, > > I thought that mptopdf was part of ConTeXt... to is it part of TeX Live > instead? It is, but in (original) TeX Live it is packaged separately, so that LaTeX users can run it without having to install ConTeXt. > Another question: when I run mtxrun --script I obtain nothing: > > [eposse@flamenco:~/Tests/latex] > mtxrun --script > > [eposse@flamenco:~/Tests/latex] > > > My question is: shouldn't this return a list of available scripts? It should according to documentation, but it doesn't work for me either. Most probably it was broken by accident and nobody noticed that since May or even longer. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf missing
Thanks, On Tue, Nov 29, 2011 at 11:44 AM, Mojca Miklavec wrote: > On Mon, Nov 28, 2011 at 21:44, Ernesto Posse wrote: >> Hi. I have a fresh installation of ConTeXt on Ubuntu 11.10, straight >> from Ubuntu's repository (version 2011.05.18.20110627-1) but the >> mptopdf script seems to be missing, and mtxrun doesn't show any >> available scripts. What could be the problem? > > I would suggest to ask the Ubuntu maintainer of TeX Live package. I > can tell you that mptopdf is a different package in TeX Live 2011, but > ConTeXt should have a dependency on that package. What exactly Ubuntu > did on their system ... I have no idea. The developer is free to ask > questions here, but in principle we cannot help you much unless some > Ubuntu freak speaks up. I thought that mptopdf was part of ConTeXt... to is it part of TeX Live instead? Another question: when I run mtxrun --script I obtain nothing: [eposse@flamenco:~/Tests/latex] > mtxrun --script [eposse@flamenco:~/Tests/latex] > My question is: shouldn't this return a list of available scripts? Thanks. > Mojca > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ -- Ernesto Posse Modelling and Analysis in Software Engineering School of Computing Queen's University - Kingston, Ontario, Canada ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf missing
On Mon, Nov 28, 2011 at 21:44, Ernesto Posse wrote: > Hi. I have a fresh installation of ConTeXt on Ubuntu 11.10, straight > from Ubuntu's repository (version 2011.05.18.20110627-1) but the > mptopdf script seems to be missing, and mtxrun doesn't show any > available scripts. What could be the problem? I would suggest to ask the Ubuntu maintainer of TeX Live package. I can tell you that mptopdf is a different package in TeX Live 2011, but ConTeXt should have a dependency on that package. What exactly Ubuntu did on their system ... I have no idea. The developer is free to ask questions here, but in principle we cannot help you much unless some Ubuntu freak speaks up. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf missing
Hi. I have a fresh installation of ConTeXt on Ubuntu 11.10, straight from Ubuntu's repository (version 2011.05.18.20110627-1) but the mptopdf script seems to be missing, and mtxrun doesn't show any available scripts. What could be the problem? [eposse@flamenco:~/Tests/latex] > mptopdf mptopdf: command not found [eposse@flamenco:~/Tests/latex] > mtxrun --script [eposse@flamenco:~/Tests/latex] > In synaptic's package manager I can see that the following files where installed, but not the actual script... /usr/share/texmf/tex/mptopdf /usr/share/texmf/tex/mptopdf/config /usr/share/texmf/tex/mptopdf/config/mptopdf.ini Thanks -- Ernesto Posse Modelling and Analysis in Software Engineering School of Computing Queen's University - Kingston, Ontario, Canada ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On Wed, Jan 12, 2011 at 6:12 PM, Mojca Miklavec wrote: > 2011/1/12 Michal Kvasnička : >> Hallo. >> >> I tried mtxrun --script mptopdf chart08.1 but I've got the following error. >> >> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) >> \write18 enabled. >> entering extended mode >> [MP to PDF] >> (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m >> ap/pdftex/plain/pdftex.map}) [1] >> !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found >> ==> Fatal error occurred, no output PDF file produced! > > I have tried to compile the following example: > > beginfig(1); > draw btex $x+1=2$ etex; > endfig; > end. It seems related to mpost. Saving this to mpost.map lmmi10 LMMathItalic10-Regular "enclmmathit ReEncodeFont" echo test | mpost --jobname=test test.mp The result eps has all the fonts subsetted. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
2011/1/12 Michal Kvasnička: > Hallo. > > Can you tell me how to solve it? I will really need mptopdf in two or three > weeks painfully. Many thanks. You can always use \starttext\startMPpage your metapost code \stopMPpage\stoptext but the problem needs to be resolved. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On Wed, Jan 12, 2011 at 18:12, Mojca Miklavec wrote: > 2011/1/12 Michal Kvasnička : >> Hallo. >> >> I tried mtxrun --script mptopdf chart08.1 but I've got the following error. >> >> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) >> \write18 enabled. >> entering extended mode >> [MP to PDF] >> (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m >> ap/pdftex/plain/pdftex.map}) [1] >> !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found >> ==> Fatal error occurred, no output PDF file produced! > > I have tried to compile the following example: > > beginfig(1); > draw btex $x+1=2$ etex; > endfig; > end. > > It works fine with TeX Live 2010/TLContrib, but fails in minimals > (nearly-latest version of ConTeXt). > > To me this seems as if mptopdf was trying to run plain pdfTeX instead > of ConTeXt [or I have no idea what]. It then only reads pdftex.map > which certainly lacks the information about lmmi font. But I wonder > why it only reads from pdftex.map ... I could fix pdftex.map, but I > would like to figure out what exactly is going on ... Just some more information ... Looking into the filename.1 makes me very suspicious: %!PS %%BoundingBox: 0 0 0 0 %%HiResBoundingBox: 0 0 0 0 %%Creator: MetaPost 1.503 %%CreationDate: 2011.01.12:1822 %%Pages: 1 %*Font: ec-lmr12 11.95517 11.95517 1c:800c040106d42298 %*Font: lmmi12 11.95517 11.95517 78:8 %%BeginProlog %%EndProlog %%Page: 1 1 0 0 0 setrgbcolor 208.537 -9.2369 moveto (1) ec-lmr12 11.95517 fshow -1.133 -67.5053 moveto (b) ec-lmr12 11.95517 fshow 5.6958 -67.5053 moveto (egin\034g\(1\);) ec-lmr12 11.95517 fshow 60.9747 -67.5053 moveto (dra) ec-lmr12 11.95517 fshow 77.5584 -67.5053 moveto (w) ec-lmr12 11.95517 fshow 89.9146 -67.5053 moveto (btex) ec-lmr12 11.95517 fshow 116.2533 -67.5053 moveto (x) lmmi12 11.95517 fshow showpage %%EOF What exactly does "begindraw" do in EPS file? Adding ec-lmr12 and lmmi12 into pdftex.map got rid of the error, but didn't generate any valid output (it created an empty pdf). What mptopdf run on filename.1 does is basically pdftex -fmt=mptopdf -progname=context \\relax mathmp.1 (maybe I'm wrong; but it behaved exactly like that), but I didn't manage to get any sensible output out of that. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
2011/1/12 Michal Kvasnička : > Hallo. > > I tried mtxrun --script mptopdf chart08.1 but I've got the following error. > > This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) > \write18 enabled. > entering extended mode > [MP to PDF] > (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m > ap/pdftex/plain/pdftex.map}) [1] > !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found > ==> Fatal error occurred, no output PDF file produced! I have tried to compile the following example: beginfig(1); draw btex $x+1=2$ etex; endfig; end. It works fine with TeX Live 2010/TLContrib, but fails in minimals (nearly-latest version of ConTeXt). To me this seems as if mptopdf was trying to run plain pdfTeX instead of ConTeXt [or I have no idea what]. It then only reads pdftex.map which certainly lacks the information about lmmi font. But I wonder why it only reads from pdftex.map ... I could fix pdftex.map, but I would like to figure out what exactly is going on ... Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
2011/1/12 Michal Kvasnička : > Hallo. > > I tried mtxrun --script mptopdf chart08.1 but I've got the following error. > > This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) > \write18 enabled. > entering extended mode > [MP to PDF] > (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m > ap/pdftex/plain/pdftex.map}) [1] > !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found > ==> Fatal error occurred, no output PDF file produced! > > MPtoPDF 1.4.0 : error while processing tex file > > I'm using ConTeXt minimals under Ubuntu 10.10, the last stable version of > ConTeXt (ver: 2010.07.30 11:35 MKII). However, it produces the same error > with two other betas I've got in my computer. > > I guess there is something broken inside the mptopdf since I can compile the > charts themselves with texexec --mptex chart08.mp. And when I include it > into a TeX file with \externalfigure, the pdf file created is all right. > > Can you tell me how to solve it? I will really need mptopdf in two or three > weeks painfully. Many thanks. > > Best wishes, > Michal Can you show a minimal example ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
Hallo. I tried mtxrun --script mptopdf chart08.1 but I've got the following error. This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found ==> Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.0 : error while processing tex file I'm using ConTeXt minimals under Ubuntu 10.10, the last stable version of ConTeXt (ver: 2010.07.30 11:35 MKII). However, it produces the same error with two other betas I've got in my computer. I guess there is something broken inside the mptopdf since I can compile the charts themselves with texexec --mptex chart08.mp. And when I include it into a TeX file with \externalfigure, the pdf file created is all right. Can you tell me how to solve it? I will really need mptopdf in two or three weeks painfully. Many thanks. Best wishes, Michal 2011/1/12 Hans Hagen > On 10-1-2011 12:37, Mojca Miklavec wrote: > >> Hans& Taco, >> >> A tiny request: is there any chance to make the mptopdf script point >> to "--script mptopdf" instead of "--script base"? >> > > i see, the sh script is wrong > > > And note for Taco: I have no idea how it got there (I think that I use >> TLContrib), but my TL installation (/usr/texbin/mptopdf) contains: >> > > it was wrong in the context zip; for windows one can just copy the stub > mtxrun.exe to mptopdf.exe but the same is not true for the shell script that > needs to be: > > #!/bin/sh > mtxrun --script mptopdf "$@" > > I'm not sure, but a generic (copyable) script could be: > > #!/bin/sh > mtxrun --script $0 "$@" > > (no shell expert) > > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > - > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On Wed, Jan 12, 2011 at 12:17, Hans Hagen wrote: > On 12-1-2011 10:31, Mojca Miklavec wrote: > >> No, that would not work properly. $0 gives me full path to the >> executable script, so in my case I would get >> mtxrun --script /context/tex/texmf-osx-64/bin/mptopdf >> which is probably not desirable. There are ways to circumvent this, >> but leaving the scripts the way they are now still seems reasonable to >> me. > > ok, can you check if the current zip has it right for you? It seems ok, thanks. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On 12-1-2011 10:31, Mojca Miklavec wrote: No, that would not work properly. $0 gives me full path to the executable script, so in my case I would get mtxrun --script /context/tex/texmf-osx-64/bin/mptopdf which is probably not desirable. There are ways to circumvent this, but leaving the scripts the way they are now still seems reasonable to me. ok, can you check if the current zip has it right for you? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On Wed, Jan 12, 2011 at 10:07, Hans Hagen wrote: > > it was wrong in the context zip; for windows one can just copy the stub > mtxrun.exe to mptopdf.exe but the same is not true for the shell script that > needs to be: > > #!/bin/sh > mtxrun --script mptopdf "$@" That's right, but may I ask to fix that in ConTeXt? > I'm not sure, but a generic (copyable) script could be: > > #!/bin/sh > mtxrun --script $0 "$@" > > (no shell expert) No, that would not work properly. $0 gives me full path to the executable script, so in my case I would get mtxrun --script /context/tex/texmf-osx-64/bin/mptopdf which is probably not desirable. There are ways to circumvent this, but leaving the scripts the way they are now still seems reasonable to me. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On 10-1-2011 12:37, Mojca Miklavec wrote: Hans& Taco, A tiny request: is there any chance to make the mptopdf script point to "--script mptopdf" instead of "--script base"? i see, the sh script is wrong And note for Taco: I have no idea how it got there (I think that I use TLContrib), but my TL installation (/usr/texbin/mptopdf) contains: it was wrong in the context zip; for windows one can just copy the stub mtxrun.exe to mptopdf.exe but the same is not true for the shell script that needs to be: #!/bin/sh mtxrun --script mptopdf "$@" I'm not sure, but a generic (copyable) script could be: #!/bin/sh mtxrun --script $0 "$@" (no shell expert) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
On Mon, Jan 10, 2011 at 08:55, Taco Hoekwater wrote: > >> And when I try to use it I get: >> >>> mptopdf a.mp >> >> -bash: /usr/texbin/mptopdf: Permission denied > > Permission denied is usually a file permission error > (script is not executable). Totally weird. The file /usr/local/texlive/2010/texmf-dist/scripts/context/perl/mptopdf.pl was not executable, but it is executable in TeXLive's SVN which is a bit strange. Moreover the file I have is dated 28th May, while the one in TL is dated 1st June. Maybe MacTeX took older files exactly in the three-day window (but I did update after that ...) or maybe I simply screwed up the installation by rewriting some ConTeXt files one day without being aware of it (which is more probable). TLContrib's ConTeXt doesn't seem to accidentally have that file, at least not at the moment. Thanks anyway, Mojca PS: the request for Hans is still valid ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf (broken again)
Hi, That mptopdf probably comes from the 'mptopdf' texlive package. On 01/10/2011 12:37 AM, Mojca Miklavec wrote: And when I try to use it I get: mptopdf a.mp -bash: /usr/texbin/mptopdf: Permission denied Permission denied is usually a file permission error (script is not executable). Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf (broken again)
Hans & Taco, A tiny request: is there any chance to make the mptopdf script point to "--script mptopdf" instead of "--script base"? And note for Taco: I have no idea how it got there (I think that I use TLContrib), but my TL installation (/usr/texbin/mptopdf) contains: eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q' if 0; # MikTeX users can set environment variable TEXSYSTEM to "miktex". #D \module #D [ file=mptopdf.pl, ... #D copyright={PRAGMA ADE / Hans Hagen \& Ton Otten}] #C #C This module is part of the \CONTEXT\ macro||package and is #C therefore copyrighted by \PRAGMA. See licen-en.pdf for #C details. # use File::Copy ; # not in every perl use Config ; use Getopt::Long ; use strict ; use File::Basename ; And when I try to use it I get: > mptopdf a.mp -bash: /usr/texbin/mptopdf: Permission denied Thanks a lot, Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] MPtoPDF problem
On 01/06/2011 03:59 PM, Michal Kvasnička wrote: Hallo. Few days ago I migrated to Ubuntu 10.10 (Linux) and last stable ConTeXt minimals (2010.07.30 11:35 MKII) (from very old ConTeXt version). Now I found I can't run mptopdf: Command mptopdf chart.1 just prints chart.1 and an empty line Not sure what goes wrong here. Command mtxrun --script mptopdf chart.1 fails with these complaints: This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found ==> Fatal error occurred, no output PDF file produced! This probably means that you do not have the latin modern fonts installed. Check to make sure that you have all the texlive packages in ubuntu installed, the dependencies are not always perfect. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] MPtoPDF problem
Hallo. Few days ago I migrated to Ubuntu 10.10 (Linux) and last stable ConTeXt minimals (2010.07.30 11:35 MKII) (from very old ConTeXt version). Now I found I can't run mptopdf: Command mptopdf chart.1 just prints chart.1 and an empty line Command mtxrun --script mptopdf chart.1 fails with these complaints: This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found ==> Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.0 : error while processing tex file And command mtxrun --script mptopdf chart.mp starts to compile something, than reports that it cannot write the log file and asks for another file name, and eventually fails with the same complaints as above. Can you possibly tell me what to do? Many thanks. Best wishes, Michal Kvasnicka ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf overwrites and deletes pdf file?
On 2-2-2010 21:16, Nicola wrote: Hi, consider a folder containing foo.tex and foo.mp. Suppose that, when compiled, foo.mp outputs foo.1. Then, the following: texexec foo.tex mptopdf foo.mp will end up having foo.pdf deleted. I guess this is because mptopdf creates foo.pdf out of foo.mp *and then* renames it into foo-1.mp. Is it true? Is there a workaround (something like -jobname), other than using different names? no, unless i patch (or rewrite mptopdf) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf overwrites and deletes pdf file?
Hi, consider a folder containing foo.tex and foo.mp. Suppose that, when compiled, foo.mp outputs foo.1. Then, the following: texexec foo.tex mptopdf foo.mp will end up having foo.pdf deleted. I guess this is because mptopdf creates foo.pdf out of foo.mp *and then* renames it into foo-1.mp. Is it true? Is there a workaround (something like -jobname), other than using different names? Nicola ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf does not work with filenametemplate
Given the following source file foo.mp: beginfig(0); filenametemplate "foo.eps"; endfig; end; running 'mptopdf foo.mp' results in: MPtoPDF 1.3.3 : no filename matches foo (because it is looking for foo.0, of course). I've read that 'filenametemplate' is going to be deprecated in favor of 'outputtemplate': will mptopdf be compatible with that command? Or is mptopdf also going to be replaced by something else (sorry, I'm not following the recent developments very closely)? Nicola ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf
David Arnold wrote: > All, I sent this to OS X TeX list, but perhaps I can get some guidance > here? > > All, > > After installing MacTeX (textlve2008), mptopdf fails: > > pstricks $ mptopdf bruce > This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) > %&-line parsing enabled. > [MP to PDF] > (./bruce.0{/Users/darnold/Library/texmf/fonts/map/pdftex/updmap/pdf > tex.map}) [1] > kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 > rm-lmr12 > mktexpk: don't know how to create bitmap font for rm-lmr12. Looks like you should install or update the Latin Modern font package. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mptopdf
All, I sent this to OS X TeX list, but perhaps I can get some guidance here? All, After installing MacTeX (textlve2008), mptopdf fails: pstricks $ mptopdf bruce This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %&-line parsing enabled. [MP to PDF] (./bruce.0{/Users/darnold/Library/texmf/fonts/map/pdftex/ updmap/pdf tex.map}) [1] kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 rm-lmr12 mktexpk: don't know how to create bitmap font for rm-lmr12. kpathsea: Appending font creation commands to missfont.log. !pdfTeX error: pdftex (file rm-lmr12): Font rm-lmr12 at 600 not found ==> Fatal error occurred, no output PDF file produced! This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %&-line parsing enabled. [MP to PDF] (./bruce.1{/Users/darnold/Library/texmf/fonts/map/pdftex/ updmap/pdf tex.map}) [1] kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 rm-lmr12 mktexpk: don't know how to create bitmap font for rm-lmr12. kpathsea: Appending font creation commands to missfont.log. !pdfTeX error: pdftex (file rm-lmr12): Font rm-lmr12 at 600 not found ==> Fatal error occurred, no output PDF file produced! MPtoPDF 1.3.3 : bruce.* is converted to bruce-0.pdf + bruce-1.pdf I tried: tlmgr update context No good. Same error as above after update. Any suggestions? david ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mptopdf
Steve MC Han wrote: > Could someone give some help for me? > > If I do metapost I have an error message: this is the exact error message > > > C:\Han\slide>mpost --tex=latex 2MS6 > This is MetaPost, Version 0.993 (Web2C 7.5.6) > (2MS6.mpmakempx: Command failed: mpto -tex 2MS6.mp > >> 2MS6.mp >>> 2MS6.mpx > ! Unable to make mpx file. > l.34 label.lft(btex > Number of students etex rotated 90, (-u,u)); > Transcript written on 2MS6.log. > Can you check what is in mpxerr.log? It looks like the 'normal' latex command in your path has a problem with something, that does not happen with the executable in texlive's bin directory. Best wishes, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] mptopdf
Could someone give some help for me? If I do metapost I have an error message: this is the exact error message C:\Han\slide>mpost --tex=latex 2MS6 This is MetaPost, Version 0.993 (Web2C 7.5.6) (2MS6.mpmakempx: Command failed: mpto -tex 2MS6.mp >> 2MS6.mp >> 2MS6.mpx ! Unable to make mpx file. l.34 label.lft(btex Number of students etex rotated 90, (-u,u)); Transcript written on 2MS6.log. But if I set the path "path c:\TexLive2007\bin\win32" at prompt command and then do metapost, then it is O.K. (no error message) as I copied below. C:\Han\slide>path c:\TexLive2007\bin\win32 C:\Han\slide>mpost --tex=latex 2MS6 This is MetaPost, Version 0.993 (Web2C 7.5.6) (2MS6.mp [0] [1] [2] [3] [4] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [30] ) 16 output files written: 2MS6.0 .. 2MS6.30 Transcript written on 2MS6.log. I have to set the path again whenever I turn on the PC. This all problem started after I did mptopdf.ini Can anyone give some insight for me? Thank you in advance. - Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF error
Peter Rolf wrote: > Taco Hoekwater wrote: >> Peter Rolf wrote: >>> this is a bug in the current metapost beta (which is already fixed by >>> Taco). Simply use the stable version (0.901) instead. A new beta will >>> (hopefully) be released this week. >> It won't happen today anymore, I am afraid. But 'real soon now'. >> > > I know that you are busy (as a bee), so 'real soon now' sounds pretty > good ;) > this was too soon for me. thx taco. > Best, Peter > >> Taco >> ___ >> ntg-context mailing list >> ntg-context@ntg.nl >> http://www.ntg.nl/mailman/listinfo/ntg-context >> > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF error
Taco Hoekwater wrote: > Peter Rolf wrote: >> >> this is a bug in the current metapost beta (which is already fixed by >> Taco). Simply use the stable version (0.901) instead. A new beta will >> (hopefully) be released this week. > > It won't happen today anymore, I am afraid. But 'real soon now'. > I know that you are busy (as a bee), so 'real soon now' sounds pretty good ;) Best, Peter > Taco > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF error
Peter Rolf wrote: > > > this is a bug in the current metapost beta (which is already fixed by > Taco). Simply use the stable version (0.901) instead. A new beta will > (hopefully) be released this week. It won't happen today anymore, I am afraid. But 'real soon now'. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF error
Hi Willi, Willi Egger wrote: > Hi, > > I wanted to compile a file which used to work without problems. Now I > get a fatal error in MPtoPDF. > > This is pdfTeX, Version 3.141592-1.40.1 (Web2C 7.5.6) (format=cont-en > 2007.2.8) 8 FEB 2007 22:46 > entering extended mode > \write18 enabled. > (c:/context/tex/texmf-mswin/web2c/natural.tcx) > **Doekenbon.tex \emergencyend > (./Doekenbon.tex > > ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.2.8 int: english/english > . > \@@layerboxGridBackground=\box158 > [EMAIL PROTECTED]@@[EMAIL PROTECTED] > \openout7 = `Doekenbon-mpgraph.mp'. > > \openout6 = `Doekenbon-mpgraph.mpb'. > > system(mpost -progname=metafun -mem=metafun Doekenbon-mpgraph)...executed. > > [EMAIL PROTECTED]@\crossreferenceobject=\count214 > [MP to PDF] (./Doekenbon-mpgraph.1 > Runaway argument? > ! Paragraph ended before \handleMPsequence was complete. > >\par > this is a bug in the current metapost beta (which is already fixed by Taco). Simply use the stable version (0.901) instead. A new beta will (hopefully) be released this week. Greetings, Peter > > What might be the reason for this message? > there is an empty line in the postscript file, which breaks the conversion > Willi > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] MPtoPDF error
Hi, I wanted to compile a file which used to work without problems. Now I get a fatal error in MPtoPDF. This is pdfTeX, Version 3.141592-1.40.1 (Web2C 7.5.6) (format=cont-en 2007.2.8) 8 FEB 2007 22:46 entering extended mode \write18 enabled. (c:/context/tex/texmf-mswin/web2c/natural.tcx) **Doekenbon.tex \emergencyend (./Doekenbon.tex ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.2.8 int: english/english . \@@layerboxGridBackground=\box158 [EMAIL PROTECTED]@@[EMAIL PROTECTED] \openout7 = `Doekenbon-mpgraph.mp'. \openout6 = `Doekenbon-mpgraph.mpb'. system(mpost -progname=metafun -mem=metafun Doekenbon-mpgraph)...executed. [EMAIL PROTECTED]@\crossreferenceobject=\count214 [MP to PDF] (./Doekenbon-mpgraph.1 Runaway argument? ! Paragraph ended before \handleMPsequence was complete. \par What might be the reason for this message? Willi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF Error ??
Wim Neimeijer wrote: > > Installed metapost 0.993 (reports as 0.992) and did the ctxtools version is wrong, yes (beta software, you know ... > --update, however at the end of the update I am getting > > TeXExec | updating file database > > mktexlsr: Done. > TeXExec | using tex engine pdftex > TeXExec | using tex format path > c:/Context/isoimage/usr/local/context/tex/texmf-local/web2c/pdftex > TeXExec | generating tex format cont-en > *! I can't read pdftex.pool; bad path?* This could be bad, but it is unrelated to metapost. If you context still runs ok, I would not worry about it, since it seems metafun is the only format that was correctly regenerated. It could be that ctxtools somehow only understands about pdftex 1.40 (whose executable name for pdfetex is now once again renamed to pdftex) Hans can no doubt explain what happens here better than I can. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF Error ??
[EMAIL PROTECTED] wrote: Wim Neimeijer wrote: [EMAIL PROTECTED] wrote: Wim Neimeijer wrote: I am getting the following error when recompiling my docs with the latest context. The docs run ok with the previous context version. Check your metapost version. It should be upwards of 0.990, if it is not, that is the problem. Taco My version of metapost is 0.990, which came with the standalone Context for MS Windows date 24-11-2006 Just fetch this one: https://foundry.supelec.fr/frs/?group_id=13&release_id=194 You can simply unzip and copy the binaries from the metapost-0.993-win32.zip over the ones from the distrib, and run ctxtools --update to refresh the metafun format. Best, Taco Installed metapost 0.993 (reports as 0.992) and did the ctxtools --update, however at the end of the update I am getting TeXExec | updating file database mktexlsr: Done. TeXExec | using tex engine pdftex TeXExec | using tex format path c:/Context/isoimage/usr/local/context/tex/texmf-local/web2c/pdftex TeXExec | generating tex format cont-en *! I can't read pdftex.pool; bad path?* TeXExec | generating tex format cont-nl ! I can't read pdftex.pool; bad path? TeXExec | generating tex format mptopdf ! I can't read pdftex.pool; bad path? TeXExec | using mp engine mpost TeXExec | using mps format path c:/Context/isoimage/usr/local/context/tex/texmf-local/web2c TeXExec | generating mps format metafun This is MetaPost, Version 0.992 (Web2C 7.5.5) (INIMP) (c:/Context/isoimage/usr/local/context/tex/texmf-local/web2c/natural.tcx) (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/metafun.mp (c:/Context/isoimage/usr/local/context/tex/t exmf-local/metapost/context/base/mp-base.mp Preloading the plain mem file, version 0.63) (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/mp-tool.mp ) (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/mp-spec.mp) (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/mp-core.mp) (c:/Context/isoimage/usr/local/context/tex/ texmf-local/metapost/context/base/mp-page.mp) (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/mp-text.mp) (c:/Context/isoimage/usr/local/context/tex/ texmf-local/metapost/context/base/mp-txts.mp) (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/mp-shap.mp) (c:/Context/isoimage/usr/local/context/tex/ texmf-local/metapost/context/base/mp-butt.mp) (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/mp-char.mp) (c:/Context/isoimage/usr/local/context/tex/ texmf-local/metapost/context/base/mp-step.mp) (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/mp-grph.mp) (c:/Context/isoimage/usr/local/context/tex/ texmf-local/metapost/context/base/mp-figs.mp) (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/mp-grid.mp (c:/Context/isoimage/usr/local/context/tex/t exmf-local/metapost/context/base/mp-form.mp (c:/Context/isoimage/usr/local/context/tex/texmf/metapost/base/string.mp) (c:/Context/isoimage/usr/local/context/tex/texmf/metapost/base/marith.mp (c:/Context/isoimage/usr/local/context/tex/texmf/metapost/b ase/string.mp (c:/Context/isoimage/usr/local/context/tex/texmf-local/metapost/context/base/mp-func.mp) ) Beginning to dump on file metafun.mem (mem=metafun 2007.1.7) at most 3038 strings of total length 40259 48330 memory locations dumped; current usage is 12622&35507 1761 symbolic tokens Transcript written on metafun.log. TeXExec | TeXExec | tex engine path: c:/Context/isoimage/usr/local/context/tex/texmf-local/web2c/pdftex TeXExec | mps engine path: c:/Context/isoimage/usr/local/context/tex/texmf-local/web2c TeXExec | TeXExec | mps: 07/01/2007 20:02:46 > c:/Context/isoimage/usr/local/context/tex/texmf-local/web2c/metafun.mem (481440) TeXExec | TeXExec | runtime: 2.312 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF Error ??
Wim Neimeijer wrote: > [EMAIL PROTECTED] wrote: > >> Wim Neimeijer wrote: >> >> >>> I am getting the following error when recompiling my docs with the >>> latest context. >>> The docs run ok with the previous context version. >>> >>> >> >> >> Check your metapost version. It should be upwards of 0.990, >> if it is not, that is the problem. >> >> Taco >> > > My version of metapost is 0.990, which came with the standalone Context > for MS Windows date 24-11-2006 Just fetch this one: https://foundry.supelec.fr/frs/?group_id=13&release_id=194 You can simply unzip and copy the binaries from the metapost-0.993-win32.zip over the ones from the distrib, and run ctxtools --update to refresh the metafun format. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF Error ??
[EMAIL PROTECTED] wrote: Wim Neimeijer wrote: I am getting the following error when recompiling my docs with the latest context. The docs run ok with the previous context version. Check your metapost version. It should be upwards of 0.990, if it is not, that is the problem. Taco My version of metapost is 0.990, which came with the standalone Context for MS Windows date 24-11-2006 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF Error ??
Wim Neimeijer wrote: > I am getting the following error when recompiling my docs with the > latest context. > The docs run ok with the previous context version. > Check your metapost version. It should be upwards of 0.990, if it is not, that is the problem. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] MPtoPDF Error ??
I am getting the following error when recompiling my docs with the latest context. The docs run ok with the previous context version. Don't know what is wrong here, I hope someone has the answer. TeXExec | processing document 'cart.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file cart.top TeXExec | using randomseed 477 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeX, Version 3.141592-1.40.0-beta-20060213 (Web2c 7.5.5) \write18 enabled. (c:\CONTEXT\isoimage\usr\local\context\tex\texmf-local/web2c/natural.tcx) entering extended mode (./cart.tex ConTeXt ver: 2007.01.04 17:37 MK II fmt: 2007.1.7 int: english/english language: language en is active system : cont-new loaded ... metafun 2007-1-7 2:22 ) 1 output file written: cart-mpgraph.1 Transcript written on cart-mpgraph.log. TeXExec | runtime: 0.734 [MP to PDF] (./cart-mpgraph.1 ! Missing number, treated as zero. \@@MP42 \presetMPscale ...en 4 \zeropoint \dimen 6=\gMPs 2 \onepoint \dimen 8 \zeropo... \handleMPpathscale ->\presetMPscale \PDFcode {\gMPs 1 0 0 \gMPs 2 0 0 cm}\re... \dohandleMPpathB ...{\@@MP :P:\somestring }\relax \handleMPsequence l.31 B0.90909 1 s S Q ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mptopdf problems
Hi Thomas, You can also try texexec --mpgraphic file.mp AFAIK, it should be equivalent to mptopdf, if not better. It creates a temporary tex file, with \setoutput[pdftex] \setupcolors[state=start] % Some lines for font maps \starttext \startTEXpage \convertMPtoPDF{file.1}{1}{1} \stopTEXpage \startTEXpage \convertMPtoPDF{file.2}{1}{1} \stopTEXpage % etc \stoptext So, in the end you get a single pdf with each figure on different page. Aditya On Tue, 31 Oct 2006, Thomas A. Schmitz wrote: > Disregard the message; I just updated ConTeXt with Gerben's latest > installer package, and the problem is gone. > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mptopdf problems
Disregard the message; I just updated ConTeXt with Gerben's latest installer package, and the problem is gone. Thomas On Oct 31, 2006, at 11:34 AM, Thomas A. Schmitz wrote: > Hi all, > > I'm struggling with a new installation here on my MacBook. One > problem I have is that mptopdf bails out when I have textext code in > my mpgraphics. There were a couple of similar problems in the mailing > list a while back, but no real solution. When I compare the > mpgraph.log output from this new install with the output from a good > installation, these are the diffs I get: > > -(/usr/local/teTeX/share/texmf.local/web2c/natural.tcx) > **test-mpgraph.mp > (test-mpgraph.mp > -{randomseed:=33} > -write0 = `test-mpgraph.mpo'. > +{randomseed:=3203} > -write0 = `test-mpgraph.mpt'. > +! Extra tokens will be flushed. > + > + @@@ > + ...font [MyAGaramondPrempnum,11pt] "@@@ > + > string.contextversion > +graphictextdirective->...graphictextstring&(TEXT0) > + &CRLF; > + > + ; > +l.19 string contextversion; > + > +? x > - [1] > -metafun 2006-10-30 22:30 > - ) > -1 output file written: test-mpgraph.1 > > From what I've understood, metapost seems to be calling the wrong > text (tex instead of texexec), but where can this be fixed? The > configuration on both installations is identical (write 18 enabled, > identical cont-sys.tex). > > Thanks > > Thomas > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] mptopdf problems
Hi all, I'm struggling with a new installation here on my MacBook. One problem I have is that mptopdf bails out when I have textext code in my mpgraphics. There were a couple of similar problems in the mailing list a while back, but no real solution. When I compare the mpgraph.log output from this new install with the output from a good installation, these are the diffs I get: -(/usr/local/teTeX/share/texmf.local/web2c/natural.tcx) **test-mpgraph.mp (test-mpgraph.mp -{randomseed:=33} -write0 = `test-mpgraph.mpo'. +{randomseed:=3203} -write0 = `test-mpgraph.mpt'. +! Extra tokens will be flushed. + + @@@ + ...font [MyAGaramondPrempnum,11pt] "@@@ + string.contextversion +graphictextdirective->...graphictextstring&(TEXT0) + &CRLF; + + ; +l.19 string contextversion; + +? x - [1] -metafun 2006-10-30 22:30 - ) -1 output file written: test-mpgraph.1 From what I've understood, metapost seems to be calling the wrong text (tex instead of texexec), but where can this be fixed? The configuration on both installations is identical (write 18 enabled, identical cont-sys.tex). Thanks Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mptopdf batch
Taco Hoekwater wrote: David Arnold wrote: I am pretty sure it used to work that way. I can remember compiling with something like: mptopdf filename.* I double-checked. This works: $ mptopdf 'filename.*' because mptopdf expands the pattern itself. I've make a one-line change so the quotes are no longer needed: 40c40 < my $pattern = $ARGV[0] ; --- > my $pattern = "@ARGV" ; Should be a harmless change. ok ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mptopdf batch
David Arnold wrote: I am pretty sure it used to work that way. I can remember compiling with something like: mptopdf filename.* I double-checked. This works: $ mptopdf 'filename.*' because mptopdf expands the pattern itself. I've make a one-line change so the quotes are no longer needed: 40c40 < my $pattern = $ARGV[0] ; --- > my $pattern = "@ARGV" ; Should be a harmless change. Chees, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mptopdf batch
I am pretty sure it used to work that way. I can remember compiling with something like: mptopdf filename.* On Dec 31, 2005, at 12:44 AM, Taco Hoekwater wrote: David Arnold wrote: All, I am wondering why this only compiles one file. How can I compile section3figs-mpgraph.# of #=1-7 in one command? Good question. I would do: $ for a in section3figs-mpgraph.[0-9]+; do mptopdf $a; done but that only works on unixy systems. A multi-file option for mptopdf would be nice. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mptopdf batch
David Arnold wrote: All, I am wondering why this only compiles one file. How can I compile section3figs-mpgraph.# of #=1-7 in one command? Good question. I would do: $ for a in section3figs-mpgraph.[0-9]+; do mptopdf $a; done but that only works on unixy systems. A multi-file option for mptopdf would be nice. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Mptopdf batch
All, I am wondering why this only compiles one file. How can I compile section3figs-mpgraph.# of #=1-7 in one command? figures $ ls figlibSection1.xml section3figs-mpgraph.log figlibSection2.xml section3figs-mpgraph.mp figlibSection3.xml section3figs-mpgraph.mpo junk5.tex section3figs-mpgraph.mpt mpgraph.mp section3figs-mpgraph.mpx mptrace.tmp section3figs.log section1figs.texsection3figs.pdf section2figs.texsection3figs.tex section3figs-mpgraph-1.pdf section3figs.tmp section3figs-mpgraph.1 section3figs.tui section3figs-mpgraph.2 section3figs.tuo section3figs-mpgraph.3 tmpgraph-mpgraph.mp section3figs-mpgraph.4 tmpgraph.bck section3figs-mpgraph.5 tmpgraph.log section3figs-mpgraph.6 tmpgraph.tmp section3figs-mpgraph.7 tmpgraph.tui figures $ mptopdf section3figs-mpgraph.* This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) [MP to PDF] (./section3figs-mpgraph.1{/Users/darnold/Library/texmf/ fonts/map/pd ftex/updmap/pdftex.map}) [1]type1/blu esky/cm/cmsy10.pfb>bluesky/cm/c mr12.pfb>{/usr/local/teTeX/share/texmf.tetex/fonts/enc/dvips/lm/lm- ec.enc}/local/teTeX/share/texmf.tetex/fonts/type1/public/lm/lmr12.pfb>local/teTe X/share/texmf.tetex/fonts/type1/bluesky/cm/cmmi12.pfb> Output written on section3figs-mpgraph.pdf (1 page, 24994 bytes). Transcript written on section3figs-mpgraph.log. MPtoPDF 1.3 : section3figs-mpgraph.1 is converted to section3figs- mpgraph-1.pdf figures $ I also tried: figures $ mptopdf section3figs-mpgraph.[1-7]This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) [MP to PDF] (./section3figs-mpgraph.1{/Users/darnold/Library/texmf/ fonts/map/pd ftex/updmap/pdftex.map}) [1]type1/blu esky/cm/cmsy10.pfb>bluesky/cm/c mr12.pfb>{/usr/local/teTeX/share/texmf.tetex/fonts/enc/dvips/lm/lm- ec.enc}/local/teTeX/share/texmf.tetex/fonts/type1/public/lm/lmr12.pfb>local/teTe X/share/texmf.tetex/fonts/type1/bluesky/cm/cmmi12.pfb> Output written on section3figs-mpgraph.pdf (1 page, 24992 bytes). Transcript written on section3figs-mpgraph.log. MPtoPDF 1.3 : section3figs-mpgraph.1 is converted to section3figs- mpgraph-1.pdf figures $ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mptopdf problem
Wolfgang Zillig wrote: Hello, I have a miktex installed on xp. Not too long ago I made a update. Yesterday I noticed that mptopdf won't do its job anymore. As I made a copy before upgrading so I could check the behaviour with the old version. The "old" version (which runs) is mptopdf 1.21 The "new" version is 1.3 The errormessage is: This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded format=mptopdf 2005.7.5) 6 JUL 2005 08:53 entering extended mode **fuenf.mp (fuenf.mp [MP to PDF] ! I can't find file `beginfig(1).tex'. When I replace the new file by the old one everything works again. Hm, strange. Can you print $command ? { if ($miktex) { if ($dosish) { $command = "pdfetex &mptopdf" } else { $command = "pdfetex \\&mptopdf" } } else { if ($dosish) { $command = "pdfetex -progname=context &mptopdf" } else { $command = "pdfetex -progname=context \\&mptopdf" } } maybe changing the &mptopdf into "-fmt=mptopdf" works better? (we needed the & because of changes in the (e)fmt switch last year in pdftex, maybe we can drop that now, assuming that everyoen has a recent version) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] mptopdf problem
Hello, I have a miktex installed on xp. Not too long ago I made a update. Yesterday I noticed that mptopdf won't do its job anymore. As I made a copy before upgrading so I could check the behaviour with the old version. The "old" version (which runs) is mptopdf 1.21 The "new" version is 1.3 The errormessage is: This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded format=mptopdf 2005.7.5) 6 JUL 2005 08:53 entering extended mode **fuenf.mp (fuenf.mp [MP to PDF] ! I can't find file `beginfig(1).tex'. When I replace the new file by the old one everything works again. Any suggestions? Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF problem: metafun.mem error
Andreas Steiger <[EMAIL PROTECTED]> writes: Hello, > Well, after about a minute of tons of lines i get another error > message :(. could you please run texexec --make --alone mptopdf and post the resulting logfile? [...] > I can't find neither cont-en.efmt nor metafun.mem on my harddisk, > might it be there went something wrong during the installation? cont-en.efmt and metafun.mem are not shipped with ConTeXt. These should be generated during installation. How did you install ConTeXt? Patrick -- Silent is the goldfish in its bowl ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] MPtoPDF problem: metafun.mem error
Hello David, Tuesday, August 19, 2003, 5:34:07 PM, you wrote: DA> Andreas, DA> First, type: DA> texexec --make --alone DA> and see what happens. Well, after about a minute of tons of lines i get another error message :(. loading : Context Support Macros / PDF ) ( \localtexmf\tex\context\base\supp-mpe.tex loading : Metapost Special Extensions ! Undefined control sequence. 1.537 \appendtoks These are the lines 530 to 546, I tried already do mark the specific lines as comment, but then other error messages appear. \def\stopMPshading {\global\advance\currentPDFshade \plusone \setxvalue{obj:Sh:\currentMPspecial}% {/Sh\the\currentPDFshade\space\the\pdflastobj\space0 R }% \setxvalue{mps:Sh:\currentMPspecial}% {\the\currentPDFshade}} \appendtoks \global\let\currentMPshades\empty \to \MPstartresources \appendtoks \ifx\currentMPshades\empty \else \xdef\currentPDFresources{\currentPDFresources /Shading <<\currentMPshades>>}% \fi \to \MPstopresources DA> Look in \localtexmf\miktex\fmt and check the dates of DA> cont-en.efmt. Look for a newly updated metafun.mem file. If there is one DA> there, move it to \localtexmf\miktex\mem. I can't find neither cont-en.efmt nor metafun.mem on my harddisk, might it be there went something wrong during the installation? -- Best regards, Andreas Steiger mailto:[EMAIL PROTECTED] ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] MPtoPDF problem: metafun.mem error
Andreas, First, type: texexec --make --alone and see what happens. Look in \localtexmf\miktex\fmt and check the dates of cont-en.efmt. Look for a newly updated metafun.mem file. If there is one there, move it to \localtexmf\miktex\mem. On some systems texexec --make --alone will dumpt the format files into the current directory. You must move them manually to the correct place: \localtexmf\miktex\fmt for format files, \localtexmf\miktex\mem for the metapost format files. Don't forget to refresh the filename database and make sure Yap is closed when you do so. At 05:28 PM 8/19/03 +0200, you wrote: >Hi, > > I'm trying to setup Metapost on my computer using Miktex (version > 2.2.6) but when I try to execute mptopdf.pl I get the following > error message: > > > TeXExec 3.2 - ConTeXt / PRAGME ADE 1997-2003 > > metapost : G:\metapost\height >format : metafun >initexmf: don't know how to dump metafun >cannot make metafun.mem >I can't found the feault mem file! > >total run time : 0 seconds > >MPtoPDF 1.2 : error while processing mp file > > > I tried already different things (like changing paths) but nothing > worked :(. How could I solve my problem? >-- >Best regards, > Andreas mailto:[EMAIL PROTECTED] > >___ >ntg-context mailing list >[EMAIL PROTECTED] >http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] MPtoPDF problem: metafun.mem error
Hi, I'm trying to setup Metapost on my computer using Miktex (version 2.2.6) but when I try to execute mptopdf.pl I get the following error message: TeXExec 3.2 - ConTeXt / PRAGME ADE 1997-2003 metapost : G:\metapost\height format : metafun initexmf: don't know how to dump metafun cannot make metafun.mem I can't found the feault mem file! total run time : 0 seconds MPtoPDF 1.2 : error while processing mp file I tried already different things (like changing paths) but nothing worked :(. How could I solve my problem? -- Best regards, Andreas mailto:[EMAIL PROTECTED] ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context