大文字の索引タイトルと 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}

関連情報