j(s)article.clsのsectionカウンターに親カウンターとしてpartを取りたい

名前: munepi
日時: 2006-04-22 06:23:34
IPアドレス: 218.41.214.*

タイトルどおりなのですが、j(s)article.clsのsectionカウンターに親カウンターとして partを取っていないので、partが変わるごとにsectionがリセットされずに困っています。 sectionカウンターを再定義できればいいのですが、何か適切な方法はないでしょうか? 一応、mysectionというもう1つのカウンターを走らすことでうまくいってはいますが…。 -------------------------------------------------------------------------------- \documentclass{jarticle} %%% <local definitions> % jarticle.clsのsectionカウンターが親カウンターとしてpartを取っていないため \newcounter{mysection}[part] \makeatletter \renewcommand{\thesection}{\@arabic\c@mysection}% sectionの代わりにmysectionを使用 \renewcommand{\section}{% \addtocounter{mysection}{1}% sectionごとにmysectionを1ずつ増やす \@startsection{section}{1}{\z@}% {1.5\Cvs \@plus.5\Cdp \@minus.2\Cdp}% {.5\Cvs \@plus.3\Cdp}% {\reset@font\normalsize\bfseries}} \makeatother %%% </local definitions>

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます。適宜改行を入れてください)