TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to remove figure 1 from the caption under my figure but to have it in my list of figures. Is it possible?

With \caption[Entry for the List of Figures (LoF)]{}\label{fig:without} I can have the caption in my list of figures but I still have "Figure 1" under my figure and I would like to remove that.

share|improve this question
Welcome to TeX.SX. It's not very clear why the caption shouldn't appear below the figure. – egreg Nov 10 '12 at 21:46
Is it good to have a figure with list entry and without caption and number in the text? Anyway, you can do \refstepcounter{figure}\addcontentsline{lof}{figure}{\numberline{\thefigure}{Ca‌​ption}} instead of \caption. It increments the figure counter and adds a line to \listoffigures. (\addcontentsline{lof}{figure}{\numberline{}{Caption}} without the number and without increasing the figure counter.) – Qrrbrbirlbel Nov 10 '12 at 21:50
Thank you. What exactly is the \numberline and \thefigure? – xaud Nov 10 '12 at 22:03
up vote 3 down vote accepted

You can use the macro \addcontentsline to add a list entry to the List of Figures (or others).

It takes three arguments:

  1. the filename-extension of the list. (toc for Table of Contents, lof for Lists of Figures, lot for List of Tables, …)
  2. the structure level
    • toc: part, chapter, section, …
    • lof: figure
    • lot: table
  3. the entry itself. Mostly it is preceeded by \protect\numberline{…} whose argument is the number for the entry and it aligns the following text.

My code provides two three commands:

  • \nocaption that adds only an caption text to the list,
  • \nocaptionbutnumber that adds additionally a number to the entry (that is incremented before, and
  • \nocaptionwithweirdalignment that doesn't use \numberline and therefore its entry text is aligned to the left (I wouldn't use it).

Minor Update

I've updated the answer so that the \addcontentsline macro doesn't have hard-coded first and second parameter. The commands should work now in table and other environment that define \@captype and the proper extension macro \ext@<\@captype>.


    \addcontentsline{\csname ext@\@captype\endcsname}{\@captype}{\protect\numberline{}#1}%
    \addcontentsline{\csname ext@\@captype\endcsname}{\@captype}{\protect\numberline{\csname the\@captype\endcsname}#1}%%
    \addcontentsline{\csname ext@\@captype\endcsname}{\@captype}{#1}%
\nocaption{Caption 1}
\nocaptionbutnumber{Caption 2}
\nocaptionbutnumber{Caption 3}
\nocaptionwithweirdalignment{Caption 4}



share|improve this answer

Your Answer


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.