[Tex/LaTex] Format ToC in KOMA-Script

koma-scripttable of contentstocstyle

I want to make the page number italic in the ToC.

\documentclass{scrbook}

\usepackage{blindtext}
\usepackage{tocstyle}
\usetocstyle{nopagecolumn}
\begin{document}

\tableofcontents

\blinddocument

\end{document}

Similar to Pretty Table of Contents
and Modifying mini-toc content

Best Answer

Use \settocstylefeature{pagenumberhook}{\itshape}. For the nopagecolumn style, make sure to use a font like Latin Modern that features the sans-serif/bold/italic combination.

\documentclass{scrbook}

\usepackage{lmodern}% for sans-serif plus bold plus italic

\usepackage{tocstyle}
\usetocstyle{nopagecolumn}
\settocstylefeature{pagenumberhook}{\itshape}

\usepackage{blindtext}

\begin{document}

\tableofcontents

\blinddocument

\end{document}

enter image description here