Bug#457622: context: Importing mps files from latex is broken
Package: context
Version: 2007.12.18-1
Severity: normal
With the latest version of context, including Metapost figures in
latex (using graphicx) is broken. I've attached minimal test files,
and with thoose I get the error log below.
The definition of doflushMPtext in the error is in supp-pdf.tex. The
comment at the top of that file indicates it is only used outside of
Context itself, so I'm guessing this is a bug in context rather than
in the way it is called by graphicx.
This bug does not appear with context version 2007.09.28-1.
Log of the run:
------------------------------------------------------------
dpt@amaryllis:/tmp$ pdflatex t
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./t.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, ukrainian, russian, bulgarian, basque, french, german, ngerman, pin
yin, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def))) (./t.aux)
(/usr/share/texmf/tex/context/base/supp-pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
) [MP to PDF] (./test-0.mps
! Undefined control sequence.
\doflushMPtext #1->\edef \!!stringa {#1}\@EA
\dodoflushMPtext \!!stringa \re...
l.16 (Test) cmr10 9.96265 fshow
?
------------------------------------------------------------
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (50, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages context depends on:
ii lmodern 1.010x-4 scalable PostScript and OpenType f
ii ruby 1.8.2-2 An interpreter of object-oriented
ii tex-common 1.10 common infrastructure for building
ii texlive-base 2007-13 TeX Live: Essential programs and f
ii texlive-base-bin 2007.dfsg.1-2 TeX Live: Essential binaries
ii texlive-metapost 2007.dfsg.1-2 TeX Live: MetaPost (and Metafont)
Versions of packages context recommends:
ii luatex 0.20.2-1 next generation TeX engine
-- no debconf information
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{test-0}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
beginfig(0);
draw (0,0)--(1cm,1cm);
label.lft("Test", (0,0));
endfig;
end
Reply to: