LaTeX forum ⇒ Graphics, Figures & TablesFigure in list of figures but without caption

Information and discussion about graphics, figures & tables in LaTeX documents.
Posts: 11
Joined: Wed Jun 16, 2010 1:07 pm

Figure in list of figures but without caption

Postby dax42 » Sat Aug 28, 2010 1:52 am

Hi there,

Is it possible to have a silent caption on a figure?
Basically, my figure already includes its caption inside the figure file, so that I don't want to add another one with Latex. However, I do want the figure to appear in the list of figures! Is there any way to do that?


User avatar
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Postby gmedina » Sat Aug 28, 2010 2:47 am


you can use the \addcontentsline command; an example (I used black rectangles to simulate actual figures, but of course you can use the standard \includegraphics command provided the graphicx package has been loaded):

  1. \documentclass{book}
  3. \begin{document}
  4. \listoffigures
  6. \begin{figure}[!ht]
  7. \centering
  8. \rule{2cm}{2cm}
  9. \caption{A black rectangle with regular caption.}
  10. \end{figure}
  12. \begin{figure}[!ht]
  13. \centering
  14. \stepcounter{figure}
  15. \rule{2cm}{2cm}
  16. \addcontentsline{lof}{figure}{\protect\makebox[2.3em][l]{\thefigure}A black rectangle without caption but listed in the lof.}
  17. \end{figure}
  19. \begin{figure}[!ht]
  20. \centering
  21. \rule{2cm}{2cm}
  22. \caption{Another black rectangle with regular caption.}
  23. \end{figure}
  25. \end{document}

Even though I showed how to achieve what you requested, I would suggest you to include only the figure, if possible, and produce its caption using the standard \caption command to avoid font inconsistencies.

Posts: 11
Joined: Wed Jun 16, 2010 1:07 pm

Postby dax42 » Sun Aug 29, 2010 10:12 pm

Thanks a lot, that's really helpful!

User avatar
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Mon Aug 30, 2010 8:57 pm

Now that the problem seems to be solved, please be so kind and mark the topic accordingly as described in Section 3 of the Board Rules.

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

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 6 guests