[metapost] Problem using LaTeX in MetaPost
Carlos Mallen
varphi625-x at yahoo.com.mx
Tue Feb 7 17:33:15 CET 2012
Hi,
I'm using MiKTeX version 2.9 and MetaPost version 1.504. I'm no longer able to use LaTeX in MetaPost. The file
verbatimtex
%&latex
\documentclass{article}
\begin{document}
etex
input latexMP;
filenametemplate "%j-%3c.mps";
beginfig(1);
draw (0, 0)--(150, 150);
label(btex $A$ etex, (0, 0));
show mpversion;
endfig;
verbatimtex
\end{document}
etex
end
fails because LaTeX commands aren't recognized. The error file is
This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex 2012.2.7) 7 FEB 2012 10:28
**mp632087.tex
(C:\Personal\MetaPost-Manual\1.005\Graphics\mp632087.tex
! Undefined control sequence.
l.2 \documentclass
{article}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.3 \begin
{document}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
[1] [1] )
Output written on mp632087.dvi (2 pages, 340 bytes).
What should I do?
Carlos Mallén
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/metapost/attachments/20120207/04d8ca52/attachment.html>
More information about the metapost
mailing list