[ubuntu-jp:927] Re: METAPOSTで質問。
Leona OKAMURA
leona at simasima.org
Mon Jul 14 19:06:56 BST 2008
おかむらです
うちの環境 (Hardy 日本語ローカライズド版) では,ご提示のサンプルで
面積 πr2 と描かれた円のファイルが出来上がりますので,
>もしかしたら、漢字が通らないのでは
ということは無いと思います.
> jmpost test
> を実行しますとエラーが表示されます。
どんなエラーでしょうか.
以下がmetapost作成の手順です.
------
% jmpost --kanji=euc testeuc.mp
This is jMetaPost, Version 0.641-0.04 (EUC) (Web2C 7.5.4)
(testeuc.mp [] )
1 output file written: testeuc.ps
Transcript written on testeuc.log.
% platex tex
% dvips -Ppdf -E tex -o tex.eps
This is dvips(k) p1.7a Copyright 2005 ASCII Corp. (www-ptex at ascii.co.jp)
based on dvips(k) 5.96 Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2008.07.14:2231' -> tex.eps
<tex.pro><alt-rule.pro><finclude.pro><texps.pro><special.pro>. <cmr7.pfb>
<cmmi10.pfb>[1<testeuc.ps>]
% evince tex.eps
------
[testeuc.mp]
> verbatimtex
> \documentclass{jsarticle}
> \begin{document}
> etex;
> beginfig(-1);
> u=30;
> fill (u,0)..(2u,u)..(u,2u)..(0,u)..cycle withcolor 0.7white;
> label(btex 面積 $\pi r^2$ etex,(u,u));
> endfig;
> verbatimtex
> \end{document}
> etex;
> end.
[tex.tex]
\documentclass{jsarticle}
\usepackage[dvips]{graphicx}
\pagestyle{empty}
\begin{document}
\includegraphics{testeuc.ps}
\end{document}
More information about the ubuntu-jp
mailing list