ヘッダに subsection の見出しを表示させる方法について

名前: 道産子
日時: 2005-05-04 18:51:44
IPアドレス: 61.114.198.*

こんにちは, 道産子です. プリアンブルで以下のようにヘッダを再定義し, 偶数ページに section の見出しを, 奇数ページに subsection の見出しを表示させるようにしています. この場合, 1 Section 2 1.1 Subsection 2.1 1.2 Subsection 2.2 の様に同一ページに section とsubsection が2つあると, ヘッダに subsection の 見出しが表示されません. ヘッダに "Subsection 2.2" が表示される様にしたい場合 はどうすれば良いのでしょうか? 又, subsection と 参考文献が同一ページにある場 合, 参考文献を優先してヘッダに表示させる方法も合わせて質問させて下さい. 宣し くお願い致します. \documentclass[12pt,leqno,notitlepage,twoside]{jarticle} \makeatletter \def\ps@mypagestyle{\ps@empty \def\@evenhead{% \underline{\hbox to\textwidth{\rlap{\thepage}\hfil\leftmark\hfil}}}% \def\@oddhead{% \underline{\hbox to\textwidth{\hfil\rightmark\hfil\llap{\thepage}}}}% \def\sectionmark##1{\markboth{% \ifnum \c@secnumdepth >\z@ \thesection\hskip1zw\fi ##1}{}}% \def\subsectionmark##1{\markright{% \ifnum \c@secnumdepth >\@ne \thesubsection\hskip1zw\fi ##1}}% } \pagestyle{mypagestyle} \makeatother \title{Title} \begin{document} \maketitle \newpage \section{Section 1} \newpage \section{Section 2} \subsection{Subsection 2.1} \subsection{Subsection 2.2} \end{document}

この書き込みへの返事:

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