Re: 目次のページ番号のフォントを統一したい

名前: トニイ@FTEX
日時: 2003-02-06 19:11:12
IPアドレス: 219.99.199.*

>>16200 >節の見出しはそのままで, >ページ番号のみフォントを変えることはできないのでしょうか? 以下のようなことでしょうか。 目次の体裁を変更するには,節(\section)なら \l@section を再定義します。 { と } で囲って,書体(\headfont) が及ぶ範囲を,節番号と節見出しにのみに してみました。 % pLaTeX2e \documentclass[a4j]{jsarticle} \makeatletter %%% Document Class: jsarticle 2002/05/11 okumura %%% \l@section を再定義します。 \renewcommand*{\l@section}[2]{% \ifnum \c@tocdepth >\z@ \addpenalty{\@secpenalty}% \addvspace{1.0em \@plus\p@}% \begingroup \parindent\z@ \rightskip\@tocrmarg \parfillskip-\rightskip \leavevmode{\headfont %% ^ \setlength\@lnumwidth{1.5em}% \advance\leftskip\@lnumwidth \hskip-\leftskip #1}\nobreak\hfil\nobreak\hbox to\@pnumwidth{\hss#2}\par %% ^ \endgroup \fi} \makeatother \begin{document} \tableofcontents \section{あいうえお} \subsection{かきくけこ} \subsubsection{さしすせそ} たちつてと \end{document}

この書き込みへの返事:

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