KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당

좀 더 간단하게 구현할 수 있는 방법을 생각해봤습니다. (oblivoir/memoir를 사용하면 titletoc 패키지가 필요하지 않습니다.)

\newcommand\maintoc{%
    \setlength{\cftbeforechapterskip}{1.5em \@plus\p@}%
    \renewcommand*{\cftchapterfont}{\color{white}\Large\bfseries\sffamily}%
    \renewcommand*{\cftchapterpagefont}{\color{white}\Large\bfseries\sffamily}%
    \renewcommand\chapternumberlinehook[1]{%
        \rlap{\raisebox{-.75ex}{\color{blue}\rule{1\textwidth}{16pt}}}%
    }%
}

\chapternumberlinehook는 장 번호 앞에서 작용합니다. \rlap(텍스트를 겹치게 하는 효과가 있습니다)을 이용해서 바탕색을 깔도록 재정의했습니다.

KTUG 한국 텍 사용자 그룹