3

In my Table of Contents, the first two entries are List of Tables and List of Figures with the roman page numbers referring to where these lists actually are. I need to make these two entries all capitalized like LIST OF TABLES and LIST OF FIGURES. Thanks in advance.

4

By default there is a difference in what is passed as a contents-related entry and what is set within the document. Since you have little control over this when setting \listoffigures and \listoftables, the example below intervenes by passing the LoF/LoT entries using \MakeUppercase:

enter image description here

\documentclass{article}

\usepackage{tocbibind}

\let\oldaddcontentsline\addcontentsline
\newcommand{\ADDCONTENTSLINE}[3]{%
  \oldaddcontentsline{#1}{#2}{\MakeUppercase{#3}}%
}
\newcommand{\CAPinToC}{\let\addcontentsline\ADDCONTENTSLINE}
\newcommand{\noCAPinToC}{\let\addcontentsline\oldaddcontentsline}

\begin{document}

\tableofcontents

\CAPinToC% All entries in ToC will be CAPITALIZED from here on
\listoftables

\listoffigures

\noCAPinToC% Rever to original \addcontentsline formatting
\section{A section}

\begin{figure}\caption{A figure}\end{figure}
\begin{table}\caption{A table}\end{table}

\end{document}

You can activate this type of ToC-related formatting using \CAPinToC (or revert back to the original definition using \noCAPinToC).

  • When I call \listoffigures, the chapter heading appears as 'List of Figures', while the ToC entry appears as 'List of figures'. How do I remove the capital F from the chapter heading? – Hans Jun 27 '18 at 8:16
  • @Hans: Can you provide a minimal example that replicates this behaviour? Something I can copy-and-paste-and-compile and see exactly what you're seeing? You can use Pastebin. – Werner Jun 27 '18 at 15:47
  • here is the first few lines of code: pastebin.com/c4pqtfwx – Hans Jun 28 '18 at 6:51
1

To change the chapter heading of Figures list, use the following command:

\renewcommand*\listfigurename{List of figures} 

after \begin{document} and before the \listoffigures command.

Similarly to change the chapter heading for Table list, you can use:

\renewcommand*\listtablename{List of tables} 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.