Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Whenever I put

\begin{table}
\begin{tabular}
...
\end{tabular}
\caption{My great table}
\end{table}

It would end up with the name "Table 1: My great table". I don't want the prefix "Table 1:". Is there a way to suppress it?

share|improve this question
1  
Possible related question: How to remove figure label? –  chl Jan 22 '12 at 11:46
add comment

1 Answer

up vote 13 down vote accepted

I recommend you to use the \caption* command from the caption package:

\documentclass{article}
\usepackage{caption}
\begin{document}
\begin{table}
\begin{tabular}{ll}
1 & 2
\end{tabular}
\caption*{My great table}
\end{table}
\end{document}

As @egreg suggests there's also the possibility to do it using the \captionsetup command:

\documentclass{article}
\usepackage{caption}
\captionsetup{labelformat=empty}
\begin{document}
\begin{table}
\begin{tabular}{ll}
1 & 2
\end{tabular}
\caption{My great table}
\end{table}
\end{document}

Doing so you don't always need to use *.

The solution you're using depends on what you're trying to achieve. The second one adds your table to the list of tables whereas \caption* does not. (Thanks @Herbert)

share|improve this answer
2  
You could also point out the possibility of setting labelformat=empty, that avoids the having to add *. –  egreg Jan 22 '12 at 10:27
    
@egreg Thanks for your input. I've added it to my answer. –  Thorsten Jan 22 '12 at 10:32
6  
\caption* and labelformat=empty are quite different in their behaviour! The latter will be in the table of contents and the first not –  Herbert Jan 22 '12 at 10:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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