- 449 名前:名無しさん@お腹いっぱい。 mailto:sage [2008/08/15(金) 02:22:43 ]
- tbook で文章を書いているのですが、\ref で章や節を参照すると、
後者のみ、前後に「第」と「節」が付いています。つまり \chapter{boge} \label{hoge} \section{foo} \label{foo} \ref{hoge}\ref{foo} → 一第一節 第\ref{hoge}章\ref{foo} → 第一章第一節 となります。chapterの方も「第」「章」が付くようにするには どうすればいいのでしょう? chapter と section の設定は以下のとおりです。 \renewcommand{\chapter}{ \if@openright\cleardoublepage\else\clearpage\fi \thispagestyle{jpl@in} \global\@topnum\z@ \@afterindenttrue \secdef\@chapter\@schapter} \def\@chapter[#1]#2{ \ifnum \c@secnumdepth >\m@ne \if@mainmatter \refstepcounter{chapter} \typeout{\@chapapp\space\thechapter\space\@chappos} [...] \newcommand{\presectionname}{第} \newcommand{\postsectionname}{節} %\renewcommand{\thesection}{\presectionname\rensuji{\@arabic\c@section}\postsectionname} \renewcommand{\thesection}{\presectionname{\Kanji{section}}\postsectionname} \renewcommand{\section}{\@startsection{section}{1}{\z@} {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs} {.5\Cvs \@plus.3\Cvs} {\reset@font\large\bfseries}}
|

|