Tables

How to Change the Table Caption Name in LaTeX

Change the word Table in LaTeX captions with the tablename macro, the caption package or babel, and rename the List of Tables heading as well.

On this page
  1. Rename the word in the preamble
  2. Rename the word with babel
  3. Rename the word with the caption package
  4. Rename the List of Tables heading
  5. Change the numbering style
  6. Cross-references and autoref
  7. When a change does not appear

LaTeX writes the word Table in a table caption from a macro called \tablename. The number comes from the counter table and is placed after the word, so changing the macro changes only the word. The number and cross-references are not affected.

Rename the word in the preamble

To change the word for the whole document, redefine \tablename in the preamble, before \begin{document}:

\documentclass{article}
\renewcommand{\tablename}{Tab.}

\begin{document}

\begin{table}[h]
  \centering
  \begin{tabular}{lr}
    \hline
    Item & Count \\
    \hline
    Apples & 12 \\
    Pears & 7 \\
    \hline
  \end{tabular}
  \caption{Fruit counts.}
  \label{tab:fruit}
\end{table}

\end{document}

The caption now begins with Tab. 1 instead of Table 1. If your document loads babel, a preamble change can be overwritten, so read the babel section below as well.

Rename the word with babel

Babel sets the caption words for the document’s language when the document starts (see writing Spanish documents with babel for an example), so a plain \renewcommand may be overwritten. Use \addto on the caption set for that language instead:

\usepackage[english]{babel}
\addto\captionsenglish{\renewcommand{\tablename}{Tab.}}

Babel keeps each language’s caption words in a macro named \captions followed by the language name, so the English one is \captionsenglish. For another language, use the matching macro, and check the babel documentation for its exact name.

Rename the word with the caption package

The caption package sets the label name with one option:

\usepackage{caption}
\captionsetup[table]{name=Tab.}

The [table] part limits the change to tables. Without it, the setting applies to every float, including figures.

Rename the List of Tables heading

\listoftables prints its heading from \listtablename. For lists of tables and figures, see table of contents, lists and nomenclature in LaTeX. Redefine it before the list:

\renewcommand{\listtablename}{Index of Tables}
\listoftables

The list needs two compilation runs to pick up its entries.

Change the numbering style

To number tables with letters, redefine \thetable:

\renewcommand{\thetable}{\Alph{table}}

Captions then read Table A, and \ref shows the letter too. This changes the number, not the word, so it works with any of the methods above.

Cross-references and autoref

\ref{tab:fruit} prints only the number, so the word in the surrounding text is up to you. If you use \autoref from hyperref, it takes its word from a separate macro, \tableautorefname, which you need to change too:

\usepackage{hyperref}
\renewcommand{\tableautorefname}{Tab.}

When a change does not appear

  • The command is in the wrong place. It must come before the table it should affect. Put it in the preamble.
  • babel is loaded. Use \addto\captionsenglish, as shown above.
  • The document class sets its own caption words. Some journal and thesis classes define their own. Check the class documentation for the caption options it supports.
  • The output is stale. Compile again. Lists and cross-references need a second run to settle.

For smaller caption text or other table styling, see LaTeX table formatting: fonts, sizes and styles.

The complete guide to tables

LaTeX Table Formatting: Fonts, Sizes and Styles
Read the guide

Keep exploring

Guides from other topics

All topics →