\useboxの中のpicture環境の中でpict2eの\cbezierが ! Undefined control sequence. になる

名前: ろりん
日時: 2007-04-02 16:07:03
IPアドレス: 220.150.100.*

Windows XP Pro SP2, 奥村先生の第4版のCD-ROMの pLaTeX2e, dvipdfm.exe を使用です。 今まで使っていたpicture環境をpict2eに対応させようと\cbezierを使用したところ、\useboxの中のpicture環境の中でpict2eの\cbezierが ! Undefined control sequence. になります。元のファイルは2000行以上の自作マクロなのですが添付のように簡略化してみました。 \documentclass[a4paper,14pt]{jsarticle} \usepackage[dvipdfm]{graphicx} \usepackage[dvipdfm]{pict2e} % pict2eを使おう! \def\図面の欄{% 次の行から描画のコマンドを記述します。 \put(0,0){\line(0,1){10}} \put(0,0){\line(1,0){11}} \qbezier(1,1)(0,7.3)(4,7) \cbezier(2,2)(0,8.3)(9,4)(11,10) % pict2eだから\cbezierが使えます \qbezier(4,7)(11,7)(10,10) }% 手前の行までに描画のコマンドを記述します。 %---savebox定義 \newsavebox{\BOXforA} \savebox{\BOXforA}{% \begin{picture}(58,56) \setlength{\unitlength}{5truemm} \図面の欄 \end{picture}% } % End of savebox \begin{document}% \usebox{\BOXforA}% \end{document} このファイルを処理すると、 This is pTeX, Version 3.141592-p3.1.10 (sjis) (Web2C 7.5.5) (format=platex 2006.11.14) 2 APR 2007 15:19 **test-pict2e-2.tex (./test-pict2e-2.tex pLaTeX2e <2006/11/10>+0 (based on LaTeX2e <2005/12/01> patch level 0) Babel <v3.8h> and hyphenation patterns for english, usenglishmax, ukenglish, ba sque, bulgarian, coptic, welsh, czech, slovak, german, ngerman, danish, spanish , catalan, estonian, finnish, french, irish, polygreek, monogreek, ancientgreek , croatian, hungarian, interlingua, ibycus, bahasa, icelandic, italian, latin, mongolian, dutch, norsk, polish, portuguese, pinyin, romanian, russian, samin, slovene, usorbian, serbian, swedish, turkish, ukrainian, dumylang, nohyphenatio n, loaded. (c:/usr/local/share/texmf-local/ptex/platex/js/jsarticle.cls Document Class: jsarticle 2006/11/01 okumura LaTeX Info: Redefining \rmfamily on input line 319. LaTeX Info: Redefining \sffamily on input line 322. LaTeX Info: Redefining \ttfamily on input line 325. \symmincho=\mathgroup4 LaTeX Font Info: Overwriting symbol font `mincho' in version `bold' (Font) JY1/mc/m/n --> JY1/gt/m/n on input line 390. LaTeX Font Info: Font shape `JT1/mc/m/n' will be (Font) scaled to size 9.60999pt on input line 582. LaTeX Font Info: Font shape `JY1/mc/m/n' will be (Font) scaled to size 9.60999pt on input line 582. \fullwidth=\dimen118 LaTeX Font Info: Font shape `JT1/mc/m/n' will be (Font) scaled to size 7.68799pt on input line 729. LaTeX Font Info: Font shape `JY1/mc/m/n' will be (Font) scaled to size 7.68799pt on input line 729. \c@part=\count81 \c@section=\count82 \c@subsection=\count83 \c@subsubsection=\count84 \c@paragraph=\count85 \c@subparagraph=\count86 \@abstractbox=\box41 \c@figure=\count87 \c@table=\count88 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \@lnumwidth=\dimen119 \bibindent=\dimen120 LaTeX Info: Redefining \TeX on input line 1682. LaTeX Info: Redefining \LaTeX on input line 1708. LaTeX Info: Redefining \LaTeXe on input line 1733. \heisei=\count89 ) (c:/usr/local/share/texmf/tex/latex/graphics/graphicx.sty Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) (c:/usr/local/share/texmf/tex/latex/graphics/keyval.sty Package: keyval 1999/03/16 v1.13 key=value parser (DPC) \KV@toks@=\toks15 ) (c:/usr/local/share/texmf/tex/latex/graphics/graphics.sty Package: graphics 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR) (c:/usr/local/share/texmf/tex/latex/graphics/trig.sty Package: trig 1999/03/16 v1.09 sin cos tan (DPC) ) (c:/usr/local/share/texmf/tex/latex/config/graphics.cfg) Package graphics Info: Driver file: dvipdfm.def on input line 90. (c:/usr/local/share/texmf/tex/latex/graphics/dvipdfm.def File: dvipdfm.def 1999/9/6 vx.x Driver-dependant file )) \Gin@req@height=\dimen121 \Gin@req@width=\dimen122 ) (c:/usr/local/share/texmf/tex/latex/pict2e/pict2e.sty Package: pict2e 2006/03/05 v0.2s Improved picture commands (HjG,RN) Package pict2e Info: Driver file: dvipdfm.def on input line 99. Package pict2e Info: Driver file for pict2e: p2e-dvipdfm.def on input line 101. (c:/usr/local/share/texmf/tex/latex/pict2e/p2e-dvipdfm.def File: p2e-dvipdfm.def 2004/06/25 v0.1r Driver-dependant file (RN,HjG) ) \pIIe@GRAPH=\toks16 ) \BOXforA=\box42 ! Undefined control sequence. \図面の欄 ... \qbezier (1,1)(0,7.3)(4,7) \cbezier (2,2)(0,8.3)(9,4)(11,10) \... l.21 } % End of savebox ? ! Emergency stop. \図面の欄 ... \qbezier (1,1)(0,7.3)(4,7) \cbezier (2,2)(0,8.3)(9,4)(11,10) \... l.21 } % End of savebox End of file on the terminal! Here is how much of TeX's memory you used: 726 strings out of 94481 8334 string characters out of 1174923 60882 words of memory out of 1500000 4126 multiletter control sequences out of 10000+50000 8372 words of font info for 36 fonts, out of 2000000 for 2000 684 hyphenation exceptions out of 8191 25i,4n,21p,236b,88s stack positions out of 3000i,500n,5000p,200000b,5000s No pages of output. 先ほどのファイルを以下のように\savebox, \useboxから取り出すと、正常に描画されます。\savebox, \useboxを使用しないというわけにはいかないのです。解決策はあるでしょうか。 \documentclass[a4paper,14pt]{jsarticle} \usepackage[dvipdfm]{graphicx} \usepackage[dvipdfm]{pict2e} \def\図面の欄{% 次の行から描画のコマンドを記述します。 \put(0,0){\line(0,1){10}} \put(0,0){\line(1,0){11}} \qbezier(1,1)(0,7.3)(4,7) \cbezier(2,2)(0,8.3)(9,4)(11,10) \qbezier(4,7)(11,7)(10,10) }% 手前の行までに描画のコマンドを記述します。 \begin{document}% \begin{picture}(58,56) \setlength{\unitlength}{5truemm} \図面の欄 \end{picture}% \end{document} 以上

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます。適宜改行を入れてください)