Re: 章タイトルを別ページにしたいのですが

名前: トニイ@FTEX
日時: 2004-02-24 11:36:20
IPアドレス: 219.116.97.*

>>26401 >柱が消えてしまいました. ># \pagestyle{headings}の設定です. これは修正をほどこせば可能です。 具体的には \markboth{}{} の代わりに \chaptermark{#1} とします。 >「目次」「図目次」「表目次」「謝辞」 >などのタイトルも別ページになってしまったことです・・・ \chapter(* 無し) と \chapter* (* あり)とで体裁を変えることは可能です。 「目次」などは \chapter* で実現されていますので,この方法をとってみましょう。 以上の変更を加えたのが以下です。中身は以前のものと比較してみてください。 % pLaTeX2e \documentclass{jreport} \pagestyle{headings} \makeatletter \renewcommand{\chapter}{% \if@openright \cleardoublepage \else \clearpage \fi \thispagestyle{jpl@in}%% 変更 \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi \secdef\@chapter\@schapter} \def\@chapter[#1]#2{% \null\vfil%% 変更 \ifnum \c@secnumdepth >-1\relax \refstepcounter{chapter}% \addcontentsline{toc}{chapter}{% \prechaptername\thechapter\postchaptername\hspace{1em}#1}% \else \addcontentsline{toc}{chapter}{#1}% \fi \chaptermark{#1}%% 変更 {\centering \interlinepenalty\@M\reset@font \ifnum \c@secnumdepth >-1\relax \huge\bfseries\prechaptername\thechapter\postchaptername \par\vskip20\p@ \fi \Huge\bfseries#2\par}% \@endchapter} % \def\@schapter#1{%% 変更 \@makeschapterhead{#1}\@afterheading } \def\@endchapter{\vfil\newpage \if@twoside\null\thispagestyle{empty}\newpage\fi \if@tempswa\twocolumn\fi} \makeatother \begin{document} \tableofcontents \listoffigures \listoftables \chapter{最初に} \section{それから} \chapter{はじめに} 次のページになっていますか? \chapter*{謝辞} ありがとう \end{document}

この書き込みへの返事:

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