
두 개의 열로 구성된 작은 목차를 갖고 싶습니다. 목차의 페이지 번호를 제외한 모든 것이 예상대로 보입니다. 각주 크기 대신 여전히 일반 크기이고 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부터 TOC 및 목록 항목의 형식을 지정할 수 있는 새로운 가능성이 있습니다. 당신이 사용할 수있는
\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}