Hi, I am not really a ConTeXt user but use the mptopdf script to convert my mp drawings directly into pdf which was working great in the past. Yesterday and the day before i updated my TeX system using Gerben's i-Installer to the new gwTeX foundation and to the latest ConTeXt beta and since then I get an error if my Metapost file contains LaTeX control sequences:
MPtoPDF 1.3.2 : running 'texexec --mptex ' TeXExec | processing graphic 'mp-minimal.mp' TeXExec | using internal mptotex converter TeXExec | processing document 'mp-minimal-temp.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | writing option file mp-minimal-temp.top TeXExec | using randomseed 1177 TeXExec | tex engine: pdfetex TeXExec | tex format: cont-en This is pdfTeX, Version 3.141592-1.40.0-rc4 (Web2C 7.5.5) (/usr/local/gwTeX/texmf.pkgs/web2c/natural.tcx) entering extended mode (./mp-minimal-temp.tex
ConTeXt ver: 2007.01.02 13:44 MK II fmt: 2007.1.3 int: english/english
language : language en is active system : cont-new loaded (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-new.mkii)) system : cont-old loaded (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/gwTeX/texmf.pkgs/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/gwTeX/texmf.pkgs/tex/context/user/cont-sys.rme (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-exa.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-syn.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-enc.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-siz.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-map.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-spe.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex)) bodyfont : 12pt rm is loaded language : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi :texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec ->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded specials : tex,postscript,rokicki loaded system : mp-minimal-temp.top loaded (./mp-minimal-temp.top specials : loading definition file dvi (/usr/local/gwTeX/texmf.pkgs/tex/context/base/spec-dvi.tex) specials : tex loaded specials : loading definition file ps (/usr/local/gwTeX/texmf.pkgs/tex/context/base/spec-ps.tex) specials : tex,postscript loaded specials : loading definition file tr (/usr/local/gwTeX/texmf.pkgs/tex/context/base/spec-tr.tex) specials : tex,postscript,rokicki loaded ) systems : system commands are disabled (/usr/local/gwTeX/texmf.pkgs/tex/context/base/sort-def.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/sort-lan.tex) systems : begin file mp-minimal-temp at line 42 ! Undefined control sequence. l.44 \documentclass [12pt,a4paper]{article} ? ! Emergency stop. l.44 \documentclass [12pt,a4paper]{article} No pages of output. Transcript written on mp-minimal-temp.log. TeXExec | runtime: 0.529086 This is MetaPost, Version 0.993 (Web2C 7.5.5) (/usr/local/gwTeX/texmf.pkgs/web2c/natural.tcx) (mp-minimal.mp
mp-minimal.mp mp-minimal.mpx ! Unable to make mpx file. l.9 label(btex Test etex, (1,1) ); Transcript written on mp-minimal.log. TeXExec | runtime: 0.865779
MPtoPDF 1.3.2 : no filename matches mp-minimal
Here is my minimal example: prologues:=2; verbatimtex \documentclass[12pt,a4paper]{article} \begin{document} etex beginfig(1); label(btex Test etex, (1,1) ); endfig; end I tried to understand which script is actual called when i call mptopdf but got kind of lost in the sequence of shell script calling ruby scripts calling perl scripts, etc. So, I wasn't able to find out the right command line options, etc. for making mpost aware of calling latex instead of tex. Can someone help me out here? Best regards Martin -- If you didn't get caught, did you really do it?