Graphics, Figures & Tableslimiting figure caption text in list of figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
CJFugate
Posts: 12
Joined: Thu Aug 23, 2012 11:47 pm

limiting figure caption text in list of figures

Post by CJFugate »

I have a list of figures generated by \listoffgures. I have the following figure caption -

Code: Select all

\caption{Three-dimensional structure of carboxybiotin.  \textit{(left)} N1$^\prime$ -carboxybiotin is composed of a planar imidazolidone ring fused to a thiophane ring, existing primarily in the endo conformation.  \textit{(right)} The space filling model shows how the N1$^\prime$ of biotin is partially by the steric bulk of the thiophane ring.  Adapted from a structure of the streptavidin:biotin complex (PDB ID: 3RY2)}
I want all this junk in the caption under the figure, but in the list of figures all I want to see is the first sentence, Three-dimensional structure of carboxybiotin. Is there a simple solution to this?

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: 10335
Joined: Mon Mar 10, 2008 9:44 pm

limiting figure caption text in list of figures

Post by Stefan Kottwitz »

Yes, there's a simple way: an optional argument would be used for the list of figures.

Code: Select all

\caption[Three-dimensional structure of carboxybiotin.]{Three-dimensional
  structure of carboxybiotin.  \textit{(left)} N1$^\prime$ -carboxybiotin is
  composed of a planar imidazolidone ring fused to a thiophane ring, existing
  primarily in the endo conformation.  \textit{(right)} The space filling model
  shows how the N1$^\prime$ of biotin is partially by the steric bulk of the
  thiophane ring.  Adapted from a structure of the streptavidin:biotin
  complex (PDB ID: 3RY2)}
Optinonal arguments are given in square brackets, mandatory arguments un curly braces.

Stefan
LaTeX.org admin
CJFugate
Posts: 12
Joined: Thu Aug 23, 2012 11:47 pm

Re: limiting figure caption text in list of figures

Post by CJFugate »

Wow. That was simple. I do my best to find the answer myself before I fill a forum with simple questions. Can you recommend a reference that lists all (or the main ones?) the latex commands with their syntax options?
Post Reply