[metapost] a problem of label when using metapost

Troy Henderson thenders at gmail.com
Tue Nov 15 17:53:14 CET 2011


Liu An,

A minimal MetaPost file for me using LaTeX labels and embedding fonts (so that
the resulting output is self-contained) might look like:

=== begin cut here ===

prologues:=3;
verbatimtex
%&latex
\documentclass{minimal}
\begin{document}
etex

beginfig(0);
...
label(btex *somethinghere* etex,origin);
...
endfig;

end

=== end cut here ===

This should work.  If it doesn't you might try manually making sure that MetaPost
is being called to use LaTeX to typeset the labels by

mpost -tex=latex foo.mp

--
Troy Henderson


More information about the metapost mailing list