scrartcl を使用した脚注サイズの 2 列の目次: 目次のページ番号が大きすぎます

scrartcl を使用した脚注サイズの 2 列の目次: 目次のページ番号が大きすぎます

2 列の小さな目次を作成したいと思います。目次内のページ番号を除いて、すべて期待どおりです。ページ番号は、footnotesize ではなく normalsize のままで、sffamily ではなく rmfamily のままです。

\documentclass{scrartcl}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{multicol}

\BeforeStartingTOC[toc]{\begin{multicols}{2}\sffamily\footnotesize}%
\AfterStartingTOC[toc]{\end{multicols}}

\begin{document}
\tableofcontents{}

\blinddocument{}

\end{document}

以下は PDF からのスクリーンショットです:

ここに画像の説明を入力してください

目次内のページ番号を管理する方法について何かアイデアはありますか?

答え1

KOMA-Scriptバージョン3.20以降では、目次とリストエントリをフォーマットする新しい機能が追加されました。

\newcommand\fontintoc[1]{\sffamily\footnotesize #1}

\RedeclareSectionCommands[
    tocentryformat=\usekomafont{disposition}\fontintoc,
    tocpagenumberformat=\usekomafont{disposition}\fontintoc
]{part,section}

\RedeclareSectionCommands[
    tocentryformat=\fontintoc,
    tocpagenumberformat=\fontintoc
]{subsection,subsubsection,paragraph,subparagraph}

ここに画像の説明を入力してください

コード:

\documentclass{scrartcl}[2016/05/10]

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{multicol}

\BeforeStartingTOC[toc]{\begin{multicols}{2}}%
\AfterStartingTOC[toc]{\end{multicols}}

\newcommand\fontintoc[1]{\sffamily\footnotesize #1}

\RedeclareSectionCommands[
    tocentryformat=\usekomafont{disposition}\fontintoc,
    tocpagenumberformat=\usekomafont{disposition}\fontintoc
]{part,section}

\RedeclareSectionCommands[
    tocentryformat=\fontintoc,
    tocpagenumberformat=\fontintoc
]{subsection,subsubsection,paragraph,subparagraph}

\begin{document}
\tableofcontents{}
\blinddocument{}
\end{document}

関連情報