08/02/24 01:18:29
\documentclass{treport}
\makeatletter
\def\@dottedtocline#1#2#3#4#5{%
\ifnum #1>\c@tocdepth \else
\vskip\toclineskip \@plus.2\p@
{\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@lnumwidth #3\relax
\advance\leftskip \@lnumwidth \hbox{}\hskip -\leftskip
{#4}\nobreak
\leaders\hbox{%
%%% $\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$%%% original
\tbaselineshift\z@ \m@th $\mkern \@dotsep mu$.$\mkern \@dotsep mu$}%
\hfill\nobreak
\hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
\par}%
\fi}
\makeatother
\begin{document}
\tableofcontents
\chapter{ふがふが}
\section{ふーふー}
\chapter{ピヨピヨ}
\section{ほげほげ}
\end{document}