Changing the headings

Like in our diagram example, if you don't like the heading Contents, you could easily change it. The text of the heading is stored in the text macro \contentsname. So, just redefine it as follows:

\renewcommand{\contentsname}{Table of Contents}

Here's a list of all those headings:

List

Heading command

Default heading

Table of contents

\contentsname

Contents

List of figures

\listfigurename

List of figures

List of tables

\listtablename

List of tables

Bibliography

\bibname in book and report

\refname in article

Bibliography in book and report

References in article

Index

\indexname

Index

Furthermore, as promised, here's a list of further macros for names used by LaTeX:

Name

Command

Default value

figure

\figurename ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.