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.

I want the caption of one of my tables to say only Table, without the number. Caption* did not seem to work.

Also, I still I want it to appear in the list of tables. Is there any way to do that?

share|improve this question
3  
table* is not for not numbering the caption. –  egreg Aug 1 at 14:54
    
You are right, I changed that to caption* –  dorien Aug 1 at 14:58
    
Actually, caption* does not do it. I will edit my question. Thank you –  dorien Aug 1 at 15:00
    
For some discussion on the use of * see: Do all starred commands have anything in common? –  Alan Munn Aug 1 at 15:01

1 Answer 1

up vote 5 down vote accepted

Package caption provides a star form of \caption as in longtable, where the star form suppresses the numbering and the entry in the table of contents.

The entry for the list of tables can be added via \addcontentsline{lot}{table}{...}. Example, which also supports hyperref:

\documentclass{article}
% \usepackage{hyperref}
\usepackage{caption}% for star form: \caption*

\begin{document}
  \listoftables

  \section{My section}
  The beautiful table can be found on page \pageref{fig:my}.

 \begin{table}[hpb]
    \csname phantomsection\endcsname % anchor, if hyperref is loaded
    \centering
    \fbox{My beautiful table}
    \caption*{My table caption}
    \label{fig:my}
    \addcontentsline{lot}{table}{My table caption}
  \end{table}
\end{document}

Result

share|improve this answer
    
That seems ideal. However, with my template (using classicthesis.sty), it comes up as Table 0.1*: (new line) thecaption –  dorien Aug 1 at 19:44
    
@dorien That means, the star form is not recognized and the star is taken as caption title. Is package caption loaded? –  Heiko Oberdiek Aug 1 at 20:04
    
Excellent! Is there also a way to output "Table: " in front? –  dorien Aug 1 at 21:43
    
@dorien "Table: " could be put inside the title and be omitted in the entry for the list of figures. –  Heiko Oberdiek Aug 1 at 21:45
    
Very true! Only minor thing left: it does not appear nice in the toc, because it is not indented. See here: dl.dropboxusercontent.com/u/13564139/toc.png –  dorien Aug 1 at 21:49

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.