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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- 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