I am using Miktex 2.9 (64-bit) and TexnicCenter when compiling Metapost (version 1.504). My files will compile fine without labels. When I try to add a tex label, metapost crashes. I NEED HELP PLEASE!
Also, when compiling it is generating files with filenames like'mp755048' which have a .tex, .dvi, and .txt associated with the filename. The .dvi file contains the latex label by itself. The text file contains:
This is TeX, Version 3.1415926 (MiKTeX 2.9) (preloaded format=tex 2012.3.18) 1 FEB 2013 16:44
**mp755048.tex
("C:\Users\Documents\Research\Thesis - Paper 2\Graphs\mp755048.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 mp755048.dvi (2 pages, 340 bytes).
A minimal example that fails:
prologues :=3;
verbatimtex
%&latex
\documentclass{article}
\begin{document}
etex
beginfig(1);
label(btex $x$ etex, origin);
endfig;
end;
etex), but once corrected I have no problem. – egreg Feb 1 at 21:30