[tex-live] texlive/metapost btex ... etex bug
Dan Luecking
dluecking at sbcglobal.net
Mon May 6 22:55:35 CEST 2013
On Mon, May 6, 2013, at 8:31:09 CEST Dare Afolabi wrote:
>prologues:=3;
>outputtemplate:="%j-%2d.mps";
>input TEX;
>TEXPRE("%&latex" & char(10) & "\documentclass{article}\begin{document}");
>TEXPOST("\end{document}");
>beginfig(1);
>label.bot(btex $A$ etex, (60,50));
>endfig;
>end
You loaded TEX.mp, but don't make any use of the macro TEX
that it defines. It is this macro that makes use of TEXPRE
and TEXPOST. If you don't use TEX(...), these strings
never make it into the .tex file that is processed.
Try using
label.bot(TEX("$A$"), (60,50));
or use verbatimtex instead of TEXPRE.
On the other hand, perhaps you were thinking of the
environmental variable MPTEXPRE, whose value would be a
filename. If that variable is defined, the contents of that
file would be prepended to the .tex file for processing, as
if it were a verbatimtex block.
Dan
Daniel H. Luecking
Department of Mathematical Sciences
Fayetteville, Arkansas
http://www-cs-faculty.stanford.edu/~knuth/iaq.html
More information about the tex-live
mailing list