名前: ほけほけ 日時: 2008-01-23 18:20:04 IPアドレス: 210.151.113.*
\kaitou{1}で ----------------------------- | 1 | | ----------------------------- \kaitou{2}で ----------------------------- | 1 | | ----------------------------- | 2 | | ----------------------------- のようになるようなマクロ\kaitouを以下のようにすると,エラーが起きました. いろいろ検索しましたが,見つかりません. どなたか解決策等があれば宜しくお願いします. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[a4paper]{jsarticle} \begin{document} \newcounter{cnt} \newcommand{\kaitou}[1]{% \begin{tabular}{|l|l|} \hline \newcount \i \i=0% \loop% {\ifnum \i < #1% {\stepcounter{cnt}\arabic{cnt}&(解答するところ)\\ \hline}% \advance \i by 1}% \repeat% \end{tabular}} \kaitou{2} \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 以下,ログです. This is pTeX, Version 3.141592-p3.1.3 (sjis) (Web2C 7.5.2) (format=platex 2003.11.8) 23 JAN 2008 18:02 **おれ2実験.tex (./おれ2実験.tex pLaTeX2e <2001/09/04>+0 (based on LaTeX2e <2001/06/01> patch level 0) (c:/usr/local/share/texmf/ptex/platex/js/jsarticle.cls Document Class: jsarticle 2003/11/24 okumura LaTeX Info: Redefining \sffamily on input line 306. LaTeX Info: Redefining \ttfamily on input line 309. \symmincho=\mathgroup4 LaTeX Font Info: Overwriting symbol font `mincho' in version `bold' (Font) JY1/mc/m/n --> JY1/gt/m/n on input line 317. LaTeX Info: Redefining \mathrm on input line 319. LaTeX Info: Redefining \mathbf on input line 320. LaTeX Font Info: Font shape `JY1/mc/m/n' will be (Font) scaled to size 9.60999pt on input line 368. LaTeX Font Info: Font shape `JT1/mc/m/n' will be (Font) scaled to size 9.60999pt on input line 368. \fullwidth=\dimen118 LaTeX Font Info: Font shape `JY1/mc/m/n' will be (Font) scaled to size 7.68799pt on input line 486. LaTeX Font Info: Font shape `JT1/mc/m/n' will be (Font) scaled to size 7.68799pt on input line 486. \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 1391. LaTeX Info: Redefining \LaTeX on input line 1413. LaTeX Info: Redefining \LaTeXe on input line 1434. \heisei=\count89 ) (./おれ2実験.aux) \openout1 = `おれ2実験.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for JY1/mc/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for JT1/mc/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. \c@cnt=\count90 LaTeX Font Info: External font `cmex10' loaded for size (Font) <7> on input line 15. LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line 15. LaTeX Font Info: Font shape `JY1/mc/m/n' will be (Font) scaled to size 6.72699pt on input line 15. LaTeX Font Info: Font shape `JY1/mc/m/n' will be (Font) scaled to size 4.805pt on input line 15. \i=\count91 ! Missing } inserted. <inserted text> } l.15 \kaitou{2} I've put in what seems to be necessary to fix the current column of the current alignment. Try to go on, since this might almost work. ! Undefined control sequence. <recently read> \iterate l.15 \kaitou{2} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Misplaced \crcr. \endtabular ->\crcr \egroup \egroup $\egroup l.15 \kaitou{2} I can't figure out why you would want to use a tab mark or \cr or \span just now. If something like a right brace up above has ended a previous alignment prematurely, you're probably due for more error messages, and you might try typing `S' now just to see what is salvageable. ! Extra }, or forgotten $. \endtabular ->\crcr \egroup \egroup $\egroup l.15 \kaitou{2} I've deleted a group-closing symbol because it seems to be spurious, as in `$x}$'. But perhaps the } is legitimate and you forgot something else, as in `\hbox{$x}'. In such cases the way to recover is to insert both the forgotten and the deleted material, e.g., by typing `I$}'. [1 ] (./おれ2実験.aux) ) Here is how much of TeX's memory you used: 345 strings out of 95597 3385 string characters out of 1191919 50788 words of memory out of 1500001 3526 multiletter control sequences out of 10000+50000 8564 words of font info for 38 fonts, out of 600000 for 2000 19 hyphenation exceptions out of 2000 23i,6n,19p,124b,216s stack positions out of 1500i,500n,5000p,200000b,5000s Output written on おれ2実験.dvi (1 page, 380 bytes).
この書き込みへの返事: