Graphics, Figures & Tables ⇒ Removing caption from a figure
Removing caption from a figure
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 http://www.latex-community.org/index.ph ... Itemid=112, 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,
Albart
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Removing caption from a figure
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.
Code: Select all
\caption[Entry for the List of Figures (LoF)]{}\label{fig:without}
Code: Select all
\usepackage[font=small,labelsep=none]{caption}
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Removing caption from a figure
Code: Select all
% after hypperref, do this to remove figure captions properly
\def\onlylabel \label#1#2\par{\label{#1}}
\let\origcaption=\@caption
\long\def\@caption#1[#2]#3{\origcaption#1[#2]{\onlylabel #3}}
. After my previous request, I placed \makeatletter and \makeatother before and after this declaration.! Use of \onlylabel doesn't match its definition.
Regards,
Albart
-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm