# Suppress Chapter number in Table to display "Table #" instead of "Table Chapter#.#"

This is my first time working in LaTeX; I am working on my dissertation and I need to rename Tables so that they are numbered as Table 1, Table 2 etc. rather than include the Chapter number in them so as to show up as Table 2.1 for Chapter 2 Table 1.

Additionally, I still want them to show up in the List of Tables so that the List of Table is as follows:

                                   List of Tables
Table                                                                   Page
<Chapter Title>
#                               <Table Caption>                         #
#                               <Table Caption>                         #
#                               <Table Caption>                         #
<Chapter Title>
#                               <Table Caption>                         #
#                               <Table Caption>                         #
#                               <Table Caption>                         #


How do I do this?

• Shall the table be counted continously then, the counter not reset in a new chapter?
– user31729
Jul 11 '15 at 8:13
• Thanks, that worked flawlessly, Can I add the Chapter Title to the List of Tables using this? Jul 11 '15 at 8:14
• No, not directly, but is possible, of course!
– user31729
Jul 11 '15 at 8:16

The resetting of the table counter and the formatting like 2.1 can be switched off with \counterwithout{table}{chapter}.

If the resetting should be kept, but not the formatting, use

\renewcommand{\thetable}{\arabic{table}}

rather!

\documentclass{book}

\usepackage{xpatch}
\usepackage{chngcntr}

\counterwithout{table}{chapter}
% Append some code to the definition of \@chapter, automatically adding the chapter (short) title to the LoT.
\makeatletter
\makeatother

\begin{document}
\tableofcontents
\listoftables
\chapter{First}
\begin{table}
\caption{Dummy table}
\end{table}

\chapter{Second}
\begin{table}
\caption{Another Dummy table}
\end{table}

\end{document}


• I just saw that the O.P. added an image to show how the chapter title should be added. I will edit my solution
– user31729
Jul 11 '15 at 8:28
• This worked perfectly, Thank you so much! Can I however have only those Chapters listed that actually have tables in them? Jul 13 '15 at 22:34
• @user3228698: Yes, but that's another question ;-)
– user31729
Jul 14 '15 at 4:54
• Follow up: tex.stackexchange.com/q/255582 Jul 16 '15 at 7:57