Graphics, Figures & TablesFigures Intentionally Not in List of Figures?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
surrix
Posts: 9
Joined: Sun Nov 08, 2009 7:07 pm

Figures Intentionally Not in List of Figures?

Post by surrix »

Hey all,

Is it possible to create figures intentionally not in the List of Figures, such as the * environments for sections, subsections, etc? How does one go about doing this? Same question for tables. I still want to have captions.

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Figures Intentionally Not in List of Figures?

Post by gmedina »

Hi,

you can use an empty optional argument for the \caption command:

Code: Select all

\caption[]{the text of the caption.}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
surrix
Posts: 9
Joined: Sun Nov 08, 2009 7:07 pm

Figures Intentionally Not in List of Figures?

Post by surrix »

gmedina wrote:Hi,

you can use an empty optional argument for the \caption command:

Code: Select all

\caption[]{the text of the caption.}
Hi,

Unfortunately, doing that simply results in entries with empty captions in the List of Figures, but they're still there. :\

Thanks
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Figures Intentionally Not in List of Figures?

Post by localghost »

There are two possible solutions by using the caption package.
  • Use the \caption* command. This will result in a caption without a label thus without number.
  • Switch off the entry for a certain figure or table.

    Code: Select all

    \begin{figure}[!ht]
      \captionsetup{list=no}
      \centering
      \rule{6.4cm}{3.6cm}
      \caption{Dummy figure}\label{fig:dummy}
    \end{figure}
    This doesn't generate an entry in the LoF thus the numbering there will be interrupted.

Best regards
Thorsten
surrix
Posts: 9
Joined: Sun Nov 08, 2009 7:07 pm

Figures Intentionally Not in List of Figures?

Post by surrix »

localghost wrote:There are two possible solutions by using the caption package.
  • Use the \caption* command. This will result in a caption without a label thus without number.
  • Switch off the entry for a certain figure or table.

    Code: Select all

    \begin{figure}[!ht]
      \captionsetup{list=no}
      \centering
      \rule{6.4cm}{3.6cm}
      \caption{Dummy figure}\label{fig:dummy}
    \end{figure}
    This doesn't generate an entry in the LoF thus the numbering there will be interrupted.

Best regards
Thorsten
This sounds like what I need. Thanks!
Post Reply