[metapost] \leqslant does NOT work in metapost
José Carlos Santos
jcsantos at fc.up.pt
Sun Sep 12 16:51:30 CEST 2010
On 12-09-2010 2:43, Dehua Xu wrote:
> I found that \leqslant does not work in metapost under MikTex 2.8.
> The codes are as follows.
>
> u:=0.5cm;
> beginfig(1);
>
> draw (-11,8.1)*u--(11,8.1)*u;
> draw (-11,6.9)*u--(11,6.9)*u;
> draw (-7,9.3)*u--(-7,6.9)*u;
>
> %%%the following line works well
> label (btex $\leq u$ etex,(-1,8.7)*u);
>
> %%%the following line does not work
> %label (btex $\leqslant u$ etex,(-1,8.7)*u);
>
> drawarrow (-1.8,8.7)*u--(-7,8.7)*u;
> drawarrow (-0.2,8.7)*u--(5,8.7)*u;
> draw (5,9.3)*u--(5,6.9)*u;
>
> endfig;
> end;
Exactly what do you mean when you say "does not work"?
> And, it still does not work in MikTex 2.8 even if I start the .mp file
> with the following codes.
>
> verbatimtex
> %&latex
> \documentclass{article}
> \usepackage{amsmath,amssymb}
> \begin{document}
> etex
>
> However, this method works in MikTex 2.4.
I can compile this document:
verbatimtex
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
etex
beginfig(1)
label(btex $\leqslant$ etex,(0,0));
endfig;
end
under MiKTeX 2.8 without problems. Can you?
Best regards,
Jose Carlos Santos
More information about the metapost
mailing list