# Latex: Custom ToC, LoF, LoT for Thesis

I'm having problems satisfying the Contents page

## Here is what I've tried:

\documentclass[12pt]{report}
...
...

\setlength{\cftbeforetoctitleskip}{0.5in}
\setlength{\cftaftertoctitleskip}{0.5in}
\renewcommand{\cfttoctitlefont}{\hfill\normalsize}
\renewcommand{\cftaftertoctitle}{\hfill}
\renewcommand{\cftchapfont}{\normalsize}
\renewcommand{\cftchappagefont}{\normalsize}
\setcounter{tocdepth}{2}

% Set List of Figures Parameters
\setlength{\cftbeforeloftitleskip}{0.5in}
\setlength{\cftafterloftitleskip}{0.2in}
\renewcommand{\cftloftitlefont}{\hfill\normalsize}
\renewcommand{\cftafterloftitle}{\hfill\null\\[0.5in]Figure\hfill{Page}}

% Rename Bibliography
\renewcommand{\bibname}{References}

\tocloftpagestyle{plain}
{
\clearpage
\tableofcontents
\cleardoublepage
}

% List of Figures Page
\listoffigures

% List of Appendices Page


Q1. How can I say "List of Figures" in the ToC, but have the actual heading on the page to be "LIST OF FIGURES" (all caps)? How do I suppress unwanted header/footer if the list overflows into multiple pages?

Q2. How do I create a similar page for the Appendices?

## migrated from stackoverflow.comApr 22 '13 at 15:00

This question came from our site for professional and enthusiast programmers.

• 'How can I say "List of Figures" in the ToC, but have the actual heading on the page to be "LIST OF FIGURES" (all caps)?'

Use the following definition for \cftloftitlefont:

\renewcommand{\cftloftitlefont}{\hfill\normalsize\MakeUppercase}
\renewcommand{\cftafterloftitle}{%
\hfill\null\\[0.5in]Figure\hfill{Page}}


This works because the LoF title is passed as a single token, which is easily gobbled by \MakeUppercase. The addition of \addcontentsline in \cftafterloftitle inserts the LoF in the ToC.

• 'How do I suppress unwanted header/footer if the list overflows into multiple pages?'

You can issue a specific page style throughout the entire LoF. While the default for the first page would be plain, subsequent pages could also be forced to show up as plain (if they don't already). Here's an example that would set the entire LoF using the mystyle page style and set it back to myotherstyle afterwards:

\pagestyle{mystyle}
\tocloftpagestyle{mystyle}{
% List of Figures Page
\listoffigures
\cleardoublepage
}
\pagestyle{myotherstyle}


For the second request, I suggest completing your current code snippet into something that resembles a minimal working example (MWE). Note that there may be packages the influence the appendix (like the appendix package or displaying appendices using sections even though the class provides chapters). So, some more information here would be valuable.

• Per your suggestion, I've attached a MEW: --------------------------------------------- – Ramapriya Rangachar Oct 24 '13 at 0:54
• @RamapriyaRangachar: You shouldn't define \listappendixname that way. Rather \makeatletter \newcommand{\listofappendices}{{\def\contentsname{List of Appendices}\let\old@starttoc\@starttoc\def\@starttoc#1{\old@starttoc{app}}\tableofcontents}}\makeatother which makes \listofappendices duplicate what \tableofcontents does, except for the appropriate name changes. – Werner Oct 24 '13 at 4:12