Graphics, Figures & TablesHow to get LaTeX not to print "Table X" in front of caption?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
brt381
Posts: 4
Joined: Sat Aug 15, 2009 9:43 pm

How to get LaTeX not to print "Table X" in front of caption?

Post by brt381 »

Hi,

I want to create a caption for my tables using \caption, and to be able to reference the number of a given table from elsewhere (using \label and \ref), but I don't want \caption to put "Table 1:", "Table 2:", etc. in front of the contents of \caption. Is there any way I can disable this?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

How to get LaTeX not to print "Table X" in front of caption?

Post by php1ic »

You need to redefine the name given to a table as nothing. Put this before the \begin{document}

Code: Select all

\renewcommand{\tablename}{}
brt381
Posts: 4
Joined: Sat Aug 15, 2009 9:43 pm

Re: How to get LaTeX not to print "Table X" in front of caption?

Post by brt381 »

Thanks. This gets rid of "Table", but it still prints the number and the colon. I don't want it to print anything at all (other than the argument to \caption). Is there any way to accomplish this?

Thanks a lot!

Cheers.
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

How to get LaTeX not to print "Table X" in front of caption?

Post by sommerfee »

Code: Select all

\usepackage[labelformat=empty,labelsep=none]{caption}
HTH,
Axel
brt381
Posts: 4
Joined: Sat Aug 15, 2009 9:43 pm

Re: How to get LaTeX not to print "Table X" in front of caption?

Post by brt381 »

Exactly what I wanted! Thank you very much.
Post Reply