Re: 章毎の付録

名前: トニイ@FTEX
日時: 2004-04-12 18:04:45
IPアドレス: 219.116.97.*

>>28043 >複雑なスタイルファイルで単に上記を挿入しただけではchapter関連でひっかかり >コンパイルが通りませんでした。 \chapter の定義が,標準のクラスファイルのものと異なっているのが原因でしょうね。 定義の内容を示して頂けなければ解決は難しいでしょう。 ちょっと面倒ですが,毎回 \chapter の前で \renewcommand{\thesection}{\thechapter.\arabic{section}}%% 追加 とすればどうでしょうか。 % pLaTeX2e \documentclass{jreport} \makeatletter %%% \subappendix の定義 \newcommand{\subappendix}{\par \setcounter{section}{0}% \renewcommand{\thesection}{\thechapter.\@Alph\c@section} % \renewcommand{\thesection}{\appendixname~\@Alph\c@section} } \makeatother \begin{document} \chapter{はじめに} \section{まず} \section{なんとか} \subappendix \section{おまけ}% 付録 1.A \renewcommand{\thesection}{\thechapter.\arabic{section}}%% 追加 \chapter{次に} \section{かんとか} \subappendix \section{えい}% 付録 2.A \section{やー}% 付録 2.B \renewcommand{\thesection}{\thechapter.\arabic{section}}%% 追加 \chapter{終わり近くで} \section{なんちゃら} \subappendix \section{終わり}% 付録 3.A \appendix \chapter{最後に}% 付録 A \end{document}

この書き込みへの返事:

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