Re: 図番号の振り方

名前: misc
日時: 2004-03-15 03:41:31
IPアドレス: 210.230.18.*

>>27163 >どうも番号が節でリセットされません…。 >それどころか章でもリセットされず、 >文書全体で通し番号になってしまっているのですが…。 …26872 で示された記述を用いた場合, *それらを正しく用い,かつ,それらの設定をキャンセルしてしまうような 他のことがなされていなければ*,下記の例を処理した場合のように 図番号は \section ごとにリセットされます. ここでは,(この掲示板で繰り返しコメントされているように) 現象が再現する例 を提示していただく必要があるようです. \documentclass{jbook} \renewcommand*{\thefigure}{\thesection.\arabic{figure}} \makeatletter \@addtoreset{figure}{section} \makeatother \begin{document} \chapter{サンプル} \section{サンプル文書(1)} 意味のないサンプルテキスト. \begin{figure}[b] \begin{center} \begin{picture}(100,50) \put(0,0){\framebox(100,50){}} \end{picture} \end{center} \caption{図の例(1)} \end{figure} \begin{figure}[b] \begin{center} \begin{picture}(100,50) \put(0,0){\framebox(100,50){}} \end{picture} \end{center} \caption{図の例(2)} \end{figure} \clearpage \section{サンプル文書(2)} 意味のないサンプルテキスト. \begin{figure}[b] \begin{center} \begin{picture}(100,50) \put(0,0){\framebox(100,50){}} \end{picture} \end{center} \caption{図の例(3)} \end{figure} \end{document}

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)