LaTeX forum ⇒ Graphics, Figures & TablesRemoving caption from a figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Posts: 13
Joined: Mon Jul 06, 2009 12:54 pm

Removing caption from a figure

Postby albart » Tue Jul 07, 2009 5:12 pm

Hello list,

I am working on the final steps of a manuscript. The journal in which I wish to publish my manuscript requires a list of figures with their captions, using package endfloat I could do this.

Now, I am still left with the following point. For the figures, the journal requires a very short caption, Figure 1, and the full caption should be in the list op figures. How could I manage the remove the caption from underneath the figures and include it only in the list of captions? I used the following article, but this did not remove the captions from underneath the figures. Could you suggest me how to remove captions from underneath figures, and not from for example tables, while conserving them for hte list of figures?

Thanks in advance,


Recommended reading 2021: • •
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Removing caption from a figure

Postby localghost » Tue Jul 07, 2009 7:23 pm

Since you didn't provide a minimal working example (MWE), I can give only very general advice based on the caption package.

The easiest way to eliminate the caption below a figure but simultaneously get a caption into the LoF is to give the optional argument with an empty mandatory argument to the \caption command.
\caption[Entry for the List of Figures (LoF)]{}\label{fig:without}

This would result in a stand-alone label like "Figure 1:" or similar. Since there will follow no caption, the colon as separator makes no sense any more. And here comes the caption package into play.

This will remove the colon and only leave the figure label with possibility for a later reference. Other capabilities of this package are described in its manual.

Best regards
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Posts: 13
Joined: Mon Jul 06, 2009 12:54 pm

Removing caption from a figure

Postby albart » Wed Jul 08, 2009 8:25 am

Thanks, that worked exactly as I wanted. The article which I mentioned in my post showed how to remove figure captions but that did not work for me. The reason that I did not provide a minimal working example was that I do not understand the following code:

% after hypperref, do this to remove figure captions properly
\def\onlylabel \label#1#2\par{\label{#1}}
\long\def\@caption#1[#2]#3{\origcaption#1[#2]{\onlylabel #3}}

which is taken from If I use this code in my document, latex tells me
! Use of \onlylabel doesn't match its definition.
. After my previous request, I placed \makeatletter and \makeatother before and after this declaration.



Posts: 264
Joined: Fri Feb 05, 2010 10:15 pm

Re: Removing caption from a figure

Postby coachbennett1981 » Mon Nov 15, 2010 5:22 am

Glad I found this via google. This saved me so much time reading the caption documentation. Thank you!

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 7 guests