![fncychap이 포함된 대문자 색인 제목](https://rvso.com/image/286961/fncychap%EC%9D%B4%20%ED%8F%AC%ED%95%A8%EB%90%9C%20%EB%8C%80%EB%AC%B8%EC%9E%90%20%EC%83%89%EC%9D%B8%20%EC%A0%9C%EB%AA%A9.png)
안녕하세요. 저는 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}