Graphics, Figures & TablesShow titles or labels in \listoffigures?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mèlèth
Posts: 6
Joined: Wed Oct 01, 2014 10:24 am

Show titles or labels in \listoffigures?

Post by mèlèth »

Hello everyone,

I'm trying to add a table of figures to my article with \listoffigures and I was wondering if there was a way to display the titles or the labels of the figures in the table instead of the caption. My captions are pretty long as I use them to explain what's on the figure so they aren't really fit for a table.

Thank you in advance.

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Show titles or labels in \listoffigures?

Post by Johannes_B »

The caption command does know an optional argument.

Code: Select all

\caption[Short entry for the list]{The long entry with the object
explaining the stuff. If an optional argument is given, it is printed to 
the lof. If it is given but empty, an empty entry is typeset (depending on 
the class and packages). If no optional argument is given, the mandatory 
argument is used for the lof as is. The same mechanism is at work for the 
list of tables}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
mèlèth
Posts: 6
Joined: Wed Oct 01, 2014 10:24 am

Re: Show titles or labels in \listoffigures?

Post by mèlèth »

Awesome! Thank you.
Post Reply