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

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

User avatar
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