名前: ひこ 日時: 2011-07-05 12:08:58 IPアドレス: 58.88.239.*
環境の違いでMetaPostを使った図が崩れてしまいます。 OSはWindowsXP SP3、みなもさん作のMePoTeXパッケージ(ver3.60)を利用しています。 ・意図した図が作成できるTeX環境 pTeX, Version 3.1415926-p3.1.11 (sjis) (Web2C 2010) (format=platex 2011.4.1) MetaPost, version 1.600 (Web2C 2010) (kpathsea version 6.0.0) (兼宗さんのサイトを利用して、角藤さんの2011/04/13更新時の最新環境を構築) ・図が崩れるTeX環境 e-pTeX, Version 3.1415926-p3.2-110415-2.3 (sjis) (Web2C 2011) (format=platex 2011.7.1) MetaPost, version 1.760 (kpathsea version 6.0.1) (2011/07/04更新時の最新環境) TeXソースは以下の通りです。上のいずれの環境でもerrorなくcompile出来ます。 ========== sample.tex ================== \documentclass{jarticle} % \usepackage[dviout]{graphicx} \usepackage{MePoTeX} % \begin{document} % \begin{MPpic}<5mm,5mm>(12,8) \sendMP{% z0=(0w,2h); z1=(12w,2h); z2=(6w,0h); z3=(6w,8h); z4=(6w,2h); z5=(10w,2h); z6=z4+4w*dir(80); z7=z4+4w*dir(160); z8=z4+4w*dir(240); z9=0.6[z7,z8];} \mptLabel{z1}<0mm,-2mm>{\footnotesize{$x$}} \mptLabel{z3}<-5mm,0mm>{\footnotesize{$y$}} \mptLabel{z4}<-2mm,-2mm>{\footnotesize{O}} \mptLabel{z5}<2mm,2mm>{\footnotesize{A}} \mptLabel{z6}<0mm,2mm>{\footnotesize{B}} \mptLabel{z7}<-2mm,0mm>{\footnotesize{C}} \mptLabel{z9}<0mm,-2mm>{\footnotesize{D}} \mptDrawPath[pensize=0.5pt,arrowtype=->]{z0--z1}%x軸 \mptDrawPath[pensize=0.5pt,arrowtype=->]{z2--z3}%y軸 \mptDrawPath[pensize=0.5pt,arrowtype=->]{z5--z6--z7--z9}%経路ABCD \mptAngleMark[label=\footnotesize{$\theta$},pensize=0.5pt]{z6}{z5}{z4}%\angle{BAO} \end{MPpic} % \end{document} ======================================== compileで吐き出される@sample.mp fileは全く同一でした。 ========== @sample.mp ================== prologues:=5; input mptUser.mp; string SAVfile; SAVfile:=jobname&".sav"; beginfig(1); numeric w,h; w:=5mm; h:=5mm; z0=(0w,2h); z1=(12w,2h); z2=(6w,0h); z3=(6w,8h); z4=(6w,2h); z5=(10w,2h); z6=z4+4w*dir(80); z7=z4+4w*dir(160); z8=z4+4w*dir(240); z9=0.6[z7,z8]; setLabel((z1),6.78477pt,4.44444pt, 1.0pt)((3.39238pt,7.41275pt), 0)("\footnotesize {$x$}","1.0pt") ("withcolor background"); setLabel((z3),6.48848pt,4.44444pt, 2.55556pt)((17.4706pt,0.94444pt), 0)("\footnotesize {$y$}","1.0pt") ("withcolor background"); setLabel((z4),8.6112pt,6.46666pt, 1.0pt)((9.99614pt,8.42386pt), 0)("\footnotesize {O}","1.0pt") ("withcolor background"); setLabel((z5),8.36676pt,6.46666pt, 1.0pt)((-1.50716pt,-2.95721pt), 0)("\footnotesize {A}","1.0pt") ("withcolor background"); setLabel((z6),8.01675pt,6.46666pt, 1.0pt)((4.00838pt,-2.95721pt), 0)("\footnotesize {B}","1.0pt") ("withcolor background"); setLabel((z7),8.13898pt,6.46666pt, 1.0pt)((9.76003pt,2.73332pt), 0)("\footnotesize {C}","1.0pt") ("withcolor background"); setLabel((z9),8.48898pt,6.46666pt, 1.0pt)((4.24449pt,8.42386pt), 0)("\footnotesize {D}","1.0pt") ("withcolor background"); begingroup save _pth; path _pth; mptSavePen; _pth:=z0--z1; pickup pencircle scaled 0.5pt; draw _pth ; draw yajiri(_pth,6.0pt,40, 0.16,0) ; mptRestorePen; endgroup; begingroup save _pth; path _pth; mptSavePen; _pth:=z2--z3; pickup pencircle scaled 0.5pt; draw _pth ; draw yajiri(_pth,6.0pt,40, 0.16,0) ; mptRestorePen; endgroup; begingroup save _pth; path _pth; mptSavePen; _pth:=z5--z6--z7--z9; pickup pencircle scaled 0.5pt; draw _pth ; draw yajiri(_pth,6.0pt,40, 0.16,0) ; mptRestorePen; endgroup; begingroup save _pth; path _pth; _pth:=AngleArc(z6,z5,z4,15.0pt,90); mptSavePen; pickup pencircle scaled 0.5pt; draw _pth ; mptRestorePen; begingroup save _lp,_dr; pair _lp,_dr; _dr:=(point infinity of _pth - point0of _pth)rotated90; _lp:= point 1 of _pth; if _dr dotprod (_lp - point0of _pth) < 0: _dr:=-_dr; fi _lp:=_lp + 5.0pt* unitvector _dr; setLabel((_lp),6.20143pt,6.55556pt, 1.0pt)((3.10071pt,2.77777pt), 0)("\footnotesize {$\theta $}","1.0pt") ("withcolor background"); endgroup; endgroup; endfig; write "\endinput" to SAVfile; write EOF to SAVfile; end. ======================================== ところが、同時に吐き出された@sample.sav、@sample.1 fileは異なり、 図中のy軸の矢尻の向き、$\theta$と角度マークの位置が意図した位置に来ません。 もちろん、上記の@sample.mpを単独でmpostでcompileしても同じ結果です。 さらに調べてみると、2011/04/17の更新時の環境でも同じ問題が発生します。 よろしくお願いします。
この書き込みへの返事: