>>186
> それを修正するには \l@section の再定義となる(略)。
これ前からウザかったんだが、値のハードコーディングをせずに
変数で変更できるパッケージを発見した。 tocloft.sty だ。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{jsarticle}\title{jSarticleの場合}
% \documentclass[platex]{bxjsarticle}\title{BXjsarticleの場合}
% \documentclass{jarticle}\title{jarticleの場合}
\makeatletter\@ifclassloaded{jarticle}{
\newcommand{\headfont}{\bfseries}
\newcommand{\presectionname}{} \newcommand{\postsectionname}{}
\renewcommand{\thesection}{\presectionname\@arabic\c@section\postsectionname}
}{}\makeatother
\renewcommand{\presectionname}{第}
\renewcommand{\postsectionname}{節。。。。。}
\usepackage{tocloft}
\settowidth{\cftsecnumwidth}{\presectionname\postsectionname\hspace*{2zw}}
\renewcommand{\cftsecfont}{\headfont}
\renewcommand{\cftsecleader}{\headfont\cftdotfill{\cftsecdotsep}}
\renewcommand{\cftsecpagefont}{\headfont}
\usepackage{varioref}
\DeclareTextFontCommand{\textHeadfont}{\headfont}
\labelformat{section}{\textHeadfont{第\arabic{section}節}}
\begin{document}
\maketitle\tableofcontents
\section{尻}\label{sec:尻} 屁については\ref{sec:屁}を参照せよ。
\setcounter{section}{99}
\section{屁}\label{sec:屁} 尻については\ref{sec:尻}を参照せよ。
\end{document}