Friday, January 23, 2009

Appendixの設定

texにて、普通の\appendixを使わず、
Appendix
A.1 foo
A.2 bar
と表示させる方法。(book環境)
\chapter*{Appendix} %chapter 7 Appendixのように表示させない
\renewcommand{\thechapter}{A} %章番号をAに設定
\addcontentsline{toc}{chapter}{Appendix} %tocには表示
\setcounter{equation}{0} %式番号をリセット
\setcounter{figure}{0} %図番号をリセット
\section{foo}
\section{baa}