---------------------------------------------------------------------- lri4-154:/dd/mp $ la total 8.0K -rw------- 1 micha micha 242 2007-09-19 16:20 test2.mp -rw------- 1 micha micha 364 2007-09-19 16:21 test.mp ---------------------------------------------------------------------- lri4-154:/dd/mp $ diff -C1 test* *** test2.mp 2007-09-19 16:20:23.000000000 +0200 --- test.mp 2007-09-19 16:21:01.000000000 +0200 *************** *** 7,12 **** beginfig(1) ! label (btex abc etex, (0,0)); label (btex b etex, (2cm, 2cm)); ! label (btex def$\nicefrac{1}{2}$ etex, (4cm, 4cm)); endfig; --- 7,16 ---- + input TEX; + + TEXPRE ("%&latex" & char(10) & "\documentclass{article}" & "\usepackage[nice]{nicefrac}" & "\begin{document}"); + beginfig(1) ! label (TEX("abc"), (0,0)); label (btex b etex, (2cm, 2cm)); ! label (TEX("def$\nicefrac{1}{2}$"), (4cm, 4cm)); endfig; ---------------------------------------------------------------------- lri4-154:/dd/mp $ mptopdf test2.mp TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 metapost to tex : test2 executable : latex format : latex inputfile : tmpgraph.tex This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) (/usr/share/texmf/web2c/natural.tcx) entering extended mode (./tmpgraph.tex LaTeX2e <2003/12/01> Babel and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size10.clo)) (/usr/share/texmf/tex/latex/units/nicefrac.sty (/usr/share/texmf/tex/latex/base/ifthen.sty)) No file tmpgraph.aux. [1] [1] [1] (./tmpgraph.aux) ) Output written on tmpgraph.dvi (3 pages, 440 bytes). Transcript written on tmpgraph.log. return code : 0 run time : 0 seconds dvi to metapost : test2 metapost : test2 format : metafun This is MetaPost, Version 1.000 (Web2C 7.5.5) (/usr/share/texmf/web2c/natural.tcx) (test2.mp [1{/home/micha/.texmf-var/fonts/map/pdftex/updmap/pdftex.map}] metafun 2007-9-13 15:56 ) 1 output file written: test2.1 Transcript written on test2.log. total run time : 0 seconds This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) [MP to PDF] (./test2.1{/home/micha/.texmf-var/fonts/map/pdftex/updmap/pdftex.ma p}) [1] Output written on test2.pdf (1 page, 9955 bytes). Transcript written on test2.log. MPtoPDF 1.3 : test2 is converted to test2-1.pdf ---------------------------------------------------------------------- lri4-154:/dd/mp $ Here, test2-1.pdf is really fine. lri4-154:/dd/mp $ rm *~*.mp lri4-154:/dd/mp $ mptopdf test.mp TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 metapost to tex : test executable : latex format : latex inputfile : tmpgraph.tex This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) (/usr/share/texmf/web2c/natural.tcx) entering extended mode (./tmpgraph.tex LaTeX2e <2003/12/01> Babel and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size10.clo)) (/usr/share/texmf/tex/latex/units/nicefrac.sty (/usr/share/texmf/tex/latex/base/ifthen.sty)) No file tmpgraph.aux. [1] (./tmpgraph.aux) ) Output written on tmpgraph.dvi (1 page, 188 bytes). Transcript written on tmpgraph.log. return code : 0 run time : 1 seconds dvi to metapost : test metapost : test format : metafun This is MetaPost, Version 1.000 (Web2C 7.5.5) (/usr/share/texmf/web2c/natural.tcx) (test.mp (/usr/share/texmf/metapost/base/TEX.mp) (mptextmp.mp >> mptextmp.mp >> mptextmp.mpx ! Unable to make mpx file. l.3 btex abc etex Transcript written on test.log. error in metapost run : test.mp:3 total run time : 1 seconds MPtoPDF 1.3 : error while processing mp file ---------------------------------------------------------------------- lri4-154:/dd/mp $ rm *~*.mp lri4-154:/dd/mp $ mpost test.mp This is MetaPost, Version 1.000 (Web2C 7.5.5) (test.mp (/usr/share/texmf/metapost/base/TEX.mp) (mptextmp.mp) (mptextmp.mp) [1] ) 1 output file written: test.1 Transcript written on test.log. ---------------------------------------------------------------------- lri4-154:/dd/mp $ mptopdf test.mp TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 metapost to tex : test executable : latex format : latex inputfile : tmpgraph.tex This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) (/usr/share/texmf/web2c/natural.tcx) entering extended mode (./tmpgraph.tex LaTeX2e <2003/12/01> Babel and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size10.clo)) (/usr/share/texmf/tex/latex/units/nicefrac.sty (/usr/share/texmf/tex/latex/base/ifthen.sty)) No file tmpgraph.aux. [1] (./tmpgraph.aux) ) Output written on tmpgraph.dvi (1 page, 188 bytes). Transcript written on tmpgraph.log. return code : 0 run time : 0 seconds dvi to metapost : test metapost : test format : metafun This is MetaPost, Version 1.000 (Web2C 7.5.5) (/usr/share/texmf/web2c/natural.tcx) (test.mp (/usr/share/texmf/metapost/base/TEX.mp) (mptextmp.mp) (mptextmp.mp) [1{/home/micha/.texmf-var/fonts/map/pdftex/updmap/pdftex.map}] metafun 2007-9-13 15:56 ) 1 output file written: test.1 Transcript written on test.log. total run time : 0 seconds This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) [MP to PDF] (./test.1{/home/micha/.texmf-var/fonts/map/pdftex/updmap/pdftex.map }) [1] Output written on test.pdf (1 page, 9638 bytes). Transcript written on test.log. MPtoPDF 1.3 : test is converted to test-1.pdf ---------------------------------------------------------------------- lri4-154:/dd/mp $ test-1.pdf now has the `b' in the center and `def1/2' on u-r and l-l corners.