Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to have to following text at my figures:

<< FIGURE >>
Figure 1: Title of my figure which is displayed in the list of figures
Here in a new line a long description about the figure, in a smaller text

I've found this one:

\caption[Title of my figure which is displayed...]%
  {Here in a new line a long...}

The problem with the given code is that I get not the title under my figure, only "Figure 1: Here in a new line a long...".

How to solve this? Thank you!

share|improve this question
2  
You got the syntax of \caption wrong. The correct form is: \caption[<short caption using in the list-of-figures>]{<full caption which is displayed under the figure>} –  Martin Scharrer Jul 30 '11 at 17:55
add comment

2 Answers

up vote 6 down vote accepted

Use the \caption macro for the (short) "heading" of the figure and just add the longer description into the figure environment (after the \caption and with proper vertical spacing).

\documentclass{report}

\begin{document}

\listoffigures

\chapter{foo}

\begin{figure}
\centering
\rule{1cm}{1cm}% Placeholder for actual figure
\caption{Title of my figure which is displayed in the list of figures}
\medskip
\small
Here in a new line a long description about the figure, in a smaller text
\end{figure}

\end{document}
share|improve this answer
    
Thank you, it looks great :-) –  strauberry Jul 31 '11 at 7:43
    
The only problem for this is that the small text will be centred, and I prefer it justified. I used the package caption and I quite liked it. –  Vivi Jan 23 '13 at 0:44
add comment

In addition to the comment above, you can have a look at the caption package which allows for many customizations.

http://www.ctan.org/pkg/caption

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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