1

I want comment an image inside caption{}, but I don't want have the comment in the table of image. So I used caption*{}.

\begin{figure}[H] \centering
    \includegraphics[height=6cm, width=0.65\textwidth, keepaspectratio]{figure/campione}
    \caption{\textit{text}}\caption*{\textit{comment}}
\end{figure}

I'd like to have the comment right after text; as comment is the continue of text because with this code comment goes in a new line. How it is

How I want

0

1 Answer 1

5

How about this? \caption has an optional argument, which you can use to have a different text in the List of Figures.

Output

enter image description here

Code

\documentclass[11pt]{article}
\usepackage{graphicx}
\begin{document}
\listoffigures
\begin{figure}[hbt]
  \includegraphics[width=.5\linewidth]{example-image-a}
  \caption[Short caption for LoF]{Really long caption with lots of info}
\end{figure}

\end{document}
1
  • You're right. I forgot of []. Thanks
    – Shika93
    Jun 21, 2016 at 14:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .