[metapost] An error message when use mptopdf: Undefined control sequence. \documentclass {article}.
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Sun Feb 25 14:52:44 CET 2007
On 2/25/07, Hongyi Zhao <hongyi.zhao at gmail.com> wrote:
> Hi all,
>
> I use the metapost shipped with texlive 2007. When I use mptopdf to
> generate pdf figs, tho I can get the right pdf files ultimately, I
> will also be given error messages like this:
>
> ==============
> ! Undefined control sequence.
> l.44 \documentclass
> {article}
> ?
> =============
Ups!
The functionality has been greatly reorganized and optimized in May
last year. But since the developer doesn't use LaTeX and LaTeX users
don't upgrade their TeX distributions (there is noone to blame since
it is indeed a bit tricky to do so, and LaTeX users usually have no
need to), this part remained untested until now.
If you want a temporary solution, use
verbatimtex
\def\fett{\ss\bf}
\def\mathcal#1{{\cal#1}}
etex
instead of what you have now and running
mptopdf zScaled.mp
should suffice (no need to run mpost separately).
But this behaviour should be fixed.
Mojca
More information about the metapost
mailing list