jsarticleのsectionで改ページしたくなった
まず、jsarticleに関するドキュメントを見ると\section
は
\if@twocolumn \newcommand{\section}{% \@startsection{section}{1}{\z@}% {0.6\Cvs}{0.4\Cvs}% {\normalfont\large\headfont\raggedright}} \else \newcommand{\section}{% \if@slide\clearpage\fi \@startsection{section}{1}{\z@}% {\Cvs \@plus.5\Cdp \@minus.2\Cdp}% $BA0%"%-(B {.5\Cvs \@plus.3\Cdp}% $B8e%"%-(B {\normalfont\Large\headfont\raggedright}} \fi
と定義されています。
改ページするには直前に\clearpage
を挿入すればいいのですが、オプションをいじるだけではできません。
なので、\section
を再定義します。
プリアンブルに以下のものを追加します。
¥makeatletter ¥renewcommand{¥section}{% ¥clearpage ¥@startsection{section}{1}{¥z@} {¥Cvs ¥@plus.5¥Cdp ¥@minus.2¥Cdp} {.5¥Cvs ¥@plus.3¥Cdp} {¥normalfont¥Large¥headfont¥raggedright}} ¥makeatother
今回はtwocolumn
オプションは使わないので省きました。