LyXHow to modify the title of one Figure in the LOF

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Edulis
Posts: 16
Joined: Thu May 26, 2011 10:38 pm

How to modify the title of one Figure in the LOF

Post by Edulis »

Dear all,

I have several figures (and tables) with very long entries. When I add the List of Figures, the titles for these figures result too long. Can I abreviate only the entries of the LOF?

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

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

How to modify the title of one Figure in the LOF

Post by Stefan Kottwitz »

Hi Edulis,

just use the optional argument of \caption:

Code: Select all

\caption[short title for LOF]{long title for caption in body text}
Stefan
LaTeX.org admin
Edulis
Posts: 16
Joined: Thu May 26, 2011 10:38 pm

Re: How to modify the title of one Figure in the LOF

Post by Edulis »

Thanks a lot, Stephan.

And if in the caption there is any reference? How can you do?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: How to modify the title of one Figure in the LOF

Post by Stefan Kottwitz »

If the reference is required only in the caption below the figure, use the reference just in the argument in curly braces, and use the caption text in square brackets without the reference, so it doesn't come into the LOF.

If the reference is additionally required in the LOF, use \protect directly before the referencing command.

Stefan
LaTeX.org admin
Post Reply