Re: [MiKTeX] Problem using LaTeX in MetaPost
MiKTeX source code moved to GitHub
Brought to you by:
csc
|
From: George N. W. I. <gn...@gm...> - 2012-02-07 22:55:04
|
On Tue, Feb 7, 2012 at 6:16 PM, Carlos Mallen <var...@ya...> wrote:
> 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
Page 64 of the MetaPost 1.504 manual gives a quite different example
using LaTeX:
input TEX;
TEXPRE("%&latex" & char(10) &
"\documentclass{article}\begin{document}"); TEXPOST("\end{document}");
beginfig(100)
last := 10;
for i := 0 upto last:
label(TEX("\( n_{" & decimal(i) & "} \)"), (5mm*i,0));
endfor
...
endfig;
Have you tried this form?
--
George N. White III <aa...@ch...>
Head of St. Margarets Bay, Nova Scotia
|