emath BBS

新規発言一覧最新記事過去一覧検索HOME

No.8620  Re[4]:kaitouの使い方(\hako)
発言者: SHIGE
発言日: 2010 02/18 16:07
発言元: i220-221-249-93.s30.a048.ap.plala.or.jp
 tDBさん、わかりやすい回答ありがとうございます。
おかげで、\hakoも回答を表示することができました。

2つ、わからないことがあります。

tDBさんのサンプルソースは、最後の\closeHakoKaiFile
が、全体の\end{enumerate}の後でした。
途中は小問の後だと思いますが、最後はどちらがいいのでしょうか。
どちらでもいいのでしょうか。

2つめは、\hakoの解答に\yakubunや\Yakubunを
入れるとエラーになります。

 箱の中以外では、表示されるようです。

アドバイスをお願いします。

\documentclass{jarticle}
\usepackage{emath,emathP,hako}
\usepackage{emathAe,emathEy}
\renewcommand{\labelenumi}{\framebox[1.2em][c]{\arabic{enumi}}~}% 大問
\renewcommand{\labelenumii}{(\arabic{enumii})}%                 小問

\begin{document}
\openKaiFile
\begin{enumerate}
\item 大問1
\kaitou{\def\Kaienumerate{edaenumerate}\def\Kaienumopt{<retusuu=2>}}

\begin{edaenumerate}

\item 小問1\kaitou{解答1}

\item 小問2\kaitou{$\bunsuu46$}

\item 小問3\kaitou{$\yakubun{4}{6}{2}{3}$}

\item 小問4\kaitou{$\Yakubun{4}{6}$}

\end{edaenumerate}

\item 大問2(穴埋め)
\kaitou{\inputHakoKaiFile}%
\hakosyokika
\openHakoKaiFile% ハコの解答を外部ファイルに書き出す初期化処理
\begin{enumerate}
\item 穴埋め1\Hako'\bunsuu46'

\item 穴埋め2\Hako'\yakubun{4}{6}{2}{3}'

\item 穴埋め3\Hako'\Yakubun{4}{6}'

\end{enumerate}
\closeHakoKaiFile% ハコの解答を外部ファイルに書き出す終了処理


\end{enumerate}
\closeKaiFile
\hrule

【解答】
\inputKaiFile
\end{document}

〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
以下は,logです。

This is pTeX, Version 3.141592-p3.1.10 (sjis) (Web2C 7.5.6) (format=platex 2007.7.11)  18 FEB 2010 15:58
**test2.tex
(./test2.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:/tex/share/texmf/tex/platex/base/jarticle.cls
Document Class: jarticle 2006/06/27 v1.6 Standard pLaTeX class
\c@@paper=\count81
(c:/tex/share/texmf/tex/platex/base/jsize10.clo
File: jsize10.clo 2006/06/27 v1.6 Standard pLaTeX file (size option)
)
\c@part=\count82
\c@section=\count83
\c@subsection=\count84
\c@subsubsection=\count85
\c@paragraph=\count86
\c@subparagraph=\count87
\c@figure=\count88
\c@table=\count89
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\symmincho=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `mincho' in version `bold'
(Font)                  JY1/mc/m/n --> JY1/gt/m/n on input line 601.
\toclineskip=\dimen118
\@lnumwidth=\dimen119
\bibindent=\dimen120
\heisei=\count90
)
(c:/tex/share/texmf/tex/platex/misc/emath/emath.sty
\EM@boxa=\box41
\bsityuubox=\box42
Package: emath 2009/12/12 v2.16 初等数学マクロパッケージ

(c:/tex/share/texmf/tex/platex/misc/emath/emath2e.sty
(c:/tex/share/texmf/tex/latex/amslatex/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
(c:/tex/share/texmf/tex/latex/amslatex/amstext.sty
Package: amstext 2000/06/29 v2.01

(c:/tex/share/texmf/tex/latex/amslatex/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks15
\ex@=\dimen121
))
(c:/tex/share/texmf/tex/latex/amslatex/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen122
)
(c:/tex/share/texmf/tex/latex/amslatex/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count91
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count92
\leftroot@=\count93
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count94
\DOTSCASE@=\count95
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box43
\strutbox@=\box44
\big@size=\dimen123
LaTeX Font Info:    Redeclaring font encoding OML on input line 567.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 568.
\macc@depth=\count96
\c@MaxMatrixCols=\count97
\dotsspace@=\muskip10
\c@parentequation=\count98
\dspbrk@lvl=\count99
\tag@help=\toks16
\row@=\count100
\column@=\count101
\maxfields@=\count102
\andhelp@=\toks17
\eqnshift@=\dimen124
\alignsep@=\dimen125
\tagshift@=\dimen126
\tagwidth@=\dimen127
\totwidth@=\dimen128
\lineht@=\dimen129
\@envbody=\toks18
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks19
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
(c:/tex/share/texmf/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2002/01/22 v2.2d

(c:/tex/share/texmf/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2001/10/25 v2.2f
\symAMSa=\mathgroup5
\symAMSb=\mathgroup6
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 132.
))
(c:/tex/share/texmf/tex/platex/misc/emath/emathC.sty
Package: emathC 2009/09/15 v0.71

(c:/tex/share/texmf/tex/latex/tools/calc.sty
Package: calc 2005/08/06 v4.2 Infix arithmetic (KKT,FJ)
\calc@Acount=\count103
\calc@Bcount=\count104
\calc@Adimen=\dimen130
\calc@Bdimen=\dimen131
\calc@Askip=\skip46
\calc@Bskip=\skip47
LaTeX Info: Redefining \setlength on input line 75.
LaTeX Info: Redefining \addtolength on input line 76.
\calc@Ccount=\count105
\calc@Cskip=\skip48
)
(c:/tex/share/texmf/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks20
)
(c:/tex/share/texmf/tex/latex/base/ifthen.sty
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
)
\c@tempcnta=\count106
\templa=\dimen132
\emath@toks@=\toks21
\Sett@width=\dimen133
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathE.sty
Package: emathE 2009/03/06 v1.05 拡張enumerate

(c:/tex/share/texmf/tex/platex/misc/emath/emathEc.sty
Package: emathEc 2009/05/01 v0.09

(c:/tex/share/texmf/tex/latex/tools/enumerate.sty
Package: enumerate 1999/03/05 v3.00 enumerate extensions (DPC)
\@enLab=\toks22
)
(c:/tex/share/texmf/tex/platex/misc/emath/jquote.sty
Package: jquote 2009/10/21 v0.11
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathK.sty)
\kizami@ti=\count107
\syoki@ti=\count108
)
\c@Enumi=\count109
\c@Enumii=\count110
\c@Enumiii=\count111
\c@Enumiv=\count112
\tkn@Enum@ang=\toks23
\tkn@Enum@opt=\toks24
\emtokena=\toks25
))
\c@marginpar=\count113
\templb=\dimen134
\templc=\dimen135
\tempboxa=\box45
\tempboxb=\box46
\EMc@hizyosuu=\count114
\EMc@syou=\count115
\EMc@zyo@amari=\count116
\GCM=\count117
\zyo@@c=\count118
\hizyo@@c=\count119
\wari@@cnt=\count120
\wari@@cmax=\count121
\gyou@@c=\count122
\hidari@@p=\count123
\migi@@p=\count124
LaTeX Info: Redefining \to on input line 1838.
\renritu@hidariyohaku=\dimen136
LaTeX Info: Redefining \mathstrut on input line 2829.
LaTeX Font Info:    Try loading font information for U+msa on input line 2880.

(c:/tex/share/texmf/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2002/01/19 v2.2g AMS font definitions
)
LaTeX Font Info:    Try loading font information for U+msb on input line 2880.

(c:/tex/share/texmf/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2002/01/19 v2.2g AMS font definitions
)
\@ltxlinelen=\dimen137
\fileophndl=\read1
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathP.sty
Package: emathP 2008/05/26 v 0.73

(c:/tex/share/texmf/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(c:/tex/share/texmf/tex/latex/graphics/graphics.sty
Package: graphics 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)

(c:/tex/share/texmf/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(c:/tex/share/texmf/tex/latex/config/graphics.cfg)
Package graphics Info: Driver file: dvips.def on input line 90.

(c:/tex/share/texmf/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
\Gin@req@height=\dimen138
\Gin@req@width=\dimen139
)
(c:/tex/share/texmf/tex/latex/graphics/color.sty
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)

(c:/tex/share/texmf/tex/latex/config/color.cfg)
Package color Info: Driver file: dvips.def on input line 130.

(c:/tex/share/texmf/tex/latex/graphics/dvipsnam.def
File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
(c:/tex/share/texmf/tex/platex/misc/emath/emathPxy.sty
Package: emathPxy 2009/07/18 v 0.48

(c:/tex/share/texmf/tex/platex/misc/emath/emathPh.sty
Package: emathPh 2009/12/23 v 3.78

(c:/tex/share/texmf/tex/platex/misc/emath/epic.sty
Enhancements to Picture Environment. Version 1.2 - Released June 1, 1986
\@@multicnt=\count125
\d@lta=\count126
\@delta=\dimen140
\@@delta=\dimen141
\@gridcnt=\count127
\@joinkind=\count128
\@dotgap=\dimen142
\@ddotgap=\dimen143
\@x@diff=\count129
\@y@diff=\count130
\x@diff=\dimen144
\y@diff=\dimen145
\@dotbox=\box47
\num@segments=\count131
\num@segmentsi=\count132
\@datafile=\read2
) (c:/tex/share/texmf/tex/platex/misc/emath/eepic.sty
Extension to Epic and LaTeX. Version 1.1b - Released Febrary 7, 1988
\@gphlinewidth=\count133
\@eepictcnt=\count134
\@tempdimc=\dimen146
\maxovaldiam=\dimen147
\@filltype=\box48
)
LaTeX Info: Redefining \color on input line 154.
\@tempdimd=\dimen148
\henko@box=\box49
\DHS@seq=\toks26
\yasen@toks=\toks27
\tenretu@namae=\toks28
\namae@opt=\toks29
\@tmpla=\dimen149
LaTeX Info: Redefining \Deruta on input line 10492.
)
\xunitlength=\dimen150
\yunitlength=\dimen151
) (c:/tex/share/texmf/tex/platex/misc/emath/emathPk.sty
Package: emathPk 2009/07/03 v 1.17
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathT.sty
Package: emathT 2009/09/08 v0.60

(c:/tex/share/texmf/tex/latex/tools/array.sty
Package: array 2005/08/23 v2.4b Tabular extension package (FMi)
\col@sep=\dimen152
\extrarowheight=\dimen153
\NC@list=\toks30
\extratabsurround=\skip49
\backup@length=\skip50
)
(c:/tex/share/texmf/tex/latex/tools/hhline.sty
Package: hhline 1994/05/23 v2.03 Table rule package (DPC)
)
\rowtotalheight=\dimen154
\rowheight=\dimen155
\rowdepth=\dimen156
\hyouretuhaba=\dimen157
\emT@w=\dimen158
\emT@h=\dimen159
\emT@@h=\dimen160
\emT@d=\dimen161
\emT@@d=\dimen162
\emT@r=\dimen163
\arrayrulewidthb=\dimen164
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathPb.sty
Package: emathPb 2009/06/10 v 0.34α
\rectbox@item@box=\box50
\rectbox@bitem@box=\box51
\c@enumrectbox=\count135
\c@rectboxenum=\count136
\rectb@x=\box52
\mekureb@x=\box53
\em@whndl=\write3
\brace@box=\box54
\ps@box=\box55
\psfboxW=\dimen165
\psfboxV=\dimen166
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathPg.sty
Package: emathPg 2006/08/26 v 0.04
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathPsiki.sty
Package: emathPsiki 2008/02/17 v 0.03α

(c:/tex/share/texmf/tex/platex/misc/emath/emathLb.sty
Package: emathLb 2009/11/20 v 0.13
)
(c:/tex/share/texmf/tex/latex/tools/verbatim.sty
Package: verbatim 2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
\every@verbatim=\toks31
\verbatim@line=\toks32
\verbatim@in@stream=\read3
)
\Sikipic@hndl=\write4
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathPp.sty
Package: emathPp 2009/10/13 v 0.83

(c:/tex/share/texmf/tex/platex/misc/emath/emathPl.sty
Package: emathPl 2009/11/03 v 0.20
\pl@in=\read4
)))
(c:/tex/share/texmf/tex/platex/misc/emath/hako.sty
Package: hako 2009/06/22 v1.54
\c@hako@mozisuu=\count137
\c@hakoban=\count138
\c@hakobanaiu=\count139
\c@hakobaniro=\count140
\c@hakobanAIU=\count141
\c@hakobanIRO=\count142
\c@hakobanara=\count143
\c@hakobanalp=\count144
\c@hakobanALP=\count145
\c@hakobanrma=\count146
\c@hakobanRMA=\count147
\c@hakobanmar=\count148
\c@hakobankan=\count149
\c@xh@koban=\count150
\c@xh@kobanaiu=\count151
\c@xh@kobaniro=\count152
\c@xh@kobanAIU=\count153
\c@xh@kobanIRO=\count154
\c@xh@kobanara=\count155
\c@xh@kobanalp=\count156
\c@xh@kobanALP=\count157
\c@xh@kobanrma=\count158
\c@xh@kobanRMA=\count159
\c@xh@kobanmar=\count160
\c@xh@kobankan=\count161
\@kosuuban=\count162
\H@kobox=\box56
\hako@skipa=\skip51
\h@koraise=\skip52
\hako@kai@rhndl=\read5
\hako@kai@hndl=\write5
\HKF@tabfmt=\toks33
\HakoKai@length=\skip53
\HakoKai@box=\box57
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathAe.sty
\c@kaitou@syorihou=\count163
Package: emathAe 2009/02/01 v0.68

(c:/tex/share/texmf/tex/platex/misc/emath/emathR.sty
Package: emathR 2009/11/20 v0.21 read source files.
\sub@texfile=\read6
)
\enum@fmti=\toks34
\enum@fmtii=\toks35
\enum@fmtiii=\toks36
\enum@fmtiv=\toks37
\Ae@tokena=\toks38
\Kai@Midasi=\toks39
\kaitou@out=\write6
\hint@out=\write7
)
(c:/tex/share/texmf/tex/platex/misc/emath/emathEy.sty
Package: emathEy 2009/11/22 v0.22 横並び enumerate
\eda@box=\box58
\ed@beta@box=\box59
\c@edamon@suu=\count164
\edaenum@wdth=\dimen167
\edaenum@wdth@=\dimen168
\leftmargin@org@s=\dimen169
\edaitemindent=\dimen170
\betaitemindent=\dimen171
\beta@linewidth=\dimen172
\eda@linewidth=\dimen173
\pre@edasep=\dimen174
\post@edasep=\dimen175
\preedaenumskip=\dimen176
\postedaenumskip=\dimen177
\yokoenum@wd=\dimen178
) (./test2.aux)
\openout1 = `test2.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for JY1/mc/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for JT1/mc/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
\openout6 = `./test2.k1'.

\openout5 = `./hk@.001'.

LaTeX Font Info:    Font shape `JT1/mc/bx/n' in size <10> not available
(Font)              Font shape `JT1/gt/m/n' tried instead on input line 31.
LaTeX Font Info:    Font shape `JY1/mc/bx/n' in size <10> not available
(Font)              Font shape `JY1/gt/m/n' tried instead on input line 31.

(./test2.k1
! Use of \yakubun@ doesn't match its definition.
\@ifnextchar ...eserved@d =#1\def \reserved@a {#2}
                                                  \def \reserved@b {#3}\futu...
l.42 \end
         \Kaienumerate\protect \def \Kaienumerate{enumerate}\def\Kaienumopt{}
? x

▼関連発言

8616:kaitouの使い方について [SHIGE] 02/17 14:16
 └8617:Re:kaitouの使い方について [tDB] 02/17 16:53
  └8618:Re[2]:kaitouの使い方について [SHIGE] 02/17 23:38
   └8619:Re[3]:kaitouの使い方について [tDB] 02/18 08:24
    └8620:Re[4]:kaitouの使い方(\hako) [SHIGE] 02/18 16:07
     └8621:Re[5]:kaitouの使い方(\hako) [tDB] 02/18 16:28
      └8622:Re[6]:kaitouの使い方(\hako) [SHIGE] 02/18 17:51<-last

Pass 保存


CGIROOM