Sunday, January 11, 2009

図表番号の表式や、数式番号のカウントを変更

texのbook環境にて
articleなら、chapterをsectionに替えたりする。

1. Figure 1.2をFigure 1-2に変更する。
プリアンブルに
\renewcommand{\thefigure}{\arabic{chapter}-\arabic{figure}}
を書き込む。

2. (1)を(1.1)に変更する。
プリアンブルに
\makeatletter
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
\@addtoreset{equation}{chapter}
\makeatother
を書き込む。