0

This question already has an answer here:

I'm trying to make a list of figures but am having some problems with the captioning.

Some pictures have long names since I explain some things in the caption, but I don't want this to show in the list of figures. How can I change it?

Attached a picture of how it looks right now. I want it only to read "2.6 Proportional control" as an example.

enter image description here

marked as duplicate by Werner table-of-contents Aug 21 '16 at 13:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    try \caption[short]{very very long} – touhami Aug 21 '16 at 12:38
  • ...different float, same solution... – Werner Aug 21 '16 at 13:22
1

The \caption command also has an optional parameter, \caption[''short'']{''long''} which is used for the List of Tables or List of Figures.

Typically the short description is for the caption listing, and the long description will be placed beside the figure or table. This is particularly useful if the caption is long, and only a "one-liner" is desired in the figure/table listing.

Here is an example of this usage:

\documentclass{article}

\usepackage{graphicx}

\begin{document}

\listoffigures

\begin{figure}[!ht]
  \centering
    \includegraphics[width=0.5\textwidth]{example-image-a}
    \caption[Image A]{Image A : describe it here.}
\end{figure}

\begin{figure}[!ht]
  \centering
      \includegraphics[width=0.5\textwidth]{example-image-b}
  \caption[Image B]{Image B : describe it here.}
\end{figure}


\end{document}

Hope this helps. You can find more about \caption here.

Not the answer you're looking for? Browse other questions tagged or ask your own question.