fncychap이 포함된 대문자 색인 제목

fncychap이 포함된 대문자 색인 제목

안녕하세요. 저는 LyX를 사용하고 있으며 서문에 \usepackage[Lenny]{fncychap}을 사용하고 있습니다.

TOC 또는 색인 목록의 타일은 소문자인데 대문자로 쓰고 싶습니다.

내가 원하는 것을 수행하려면 어떤 명령을 입력해야 하며 어디에 입력해야 합니까?

답변1

사용 tocloft패키지:

\documentclass{book}

\usepackage[Lenny]{fncychap}
\usepackage{tocloft}

%\renewcommand{\contentsname}{Table of contents} % change "Contents" to "Table of Contents"
\renewcommand{\cfttoctitlefont}{\center\hfill\large\bfseries\MakeUppercase} % change toc title to upper case
\renewcommand{\cftaftertoctitle}{\hfill}
%\renewcommand{\cftchapfont}{\scshape} %For uppercase TOC entries

\begin{document}
\tableofcontents
\chapter{Foo1}
Some text.

\chapter{Foo2}
Some text.

\end{document}

관련 정보