jsarticleを使った時のカスタマイズ
昔jsarticleをカスタマイズした時のやつが出てきたのでメモ。スタイルいじるのは素のTeXに近いところまで潜らないといけないので大変。ちなみに直でjsarticleをいじるんじゃなくプリアンブルに記述。
セクションのスタイルを 第~章みたいな感じにする
\makeatletter
\renewcommand{\presectionname}{第} %jsarticleはpre-postchapternameを定義していない.
\renewcommand{\postsectionname}{章}
%\renewcommand{\thesection}{\@arabic\c@section}
\makeatother
図,表,数式の番号を''章.番号''にする
\makeatletter
\renewcommand{\thetable}{\@arabic\c@section.\@arabic\c@table}
\renewcommand{\thefigure}{\@arabic\c@section.\@arabic\c@figure}
\renewcommand{\theequation}{\@arabic\c@section.\@arabic\c@equation}
% カウンタのリセット
\@addtoreset{figure}{section}%章ごとに子カウンタリセット
\@addtoreset{table}{section}%章ごとに子カウンタリセット
\@addtoreset{equation}{section}%章ごとに子カウンタリセット
\makeatother