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 have a problem with captions.

I'm new to LaTeX and I don't know English names of "this". I want to have something like:

Figure X.X: bla bla bla bla

            bla bla bla bla

            etc.

and

Figure X.X: bla bla bla bla 

            a) bla bla bla 

            b) bla bla bla

How do I do this?

share|improve this question

3 Answers 3

up vote 7 down vote accepted

You can use the caption package with the option format=hang to do this

enter image description here

\documentclass{article}
\usepackage[format=hang]{caption}

\begin{document}

\begin{figure}
    \centering
    \rule{20pt}{10pt} %just for demonstration
    \caption{ Here's a long caption, it goes across more than
    one line| the style you describe is called `hanging'.}
\end{figure}

\end{document}

Putting an enumerate environment in a caption can be done- see

Using the itemize environment inside a caption

for details.

share|improve this answer
\documentclass{article}
\usepackage[format=hang,labelsep=colon]{caption}    
\begin{document}

\begin{figure}
    \centering
    \rule{5cm}{3cm} %just for demonstration
    \caption[text for the list of figures]
            { \tabular[t]{@{}p{5cm}@{}}
              bla bla bla bla and some other nonsense text \\
              a) bla bla bla    \\
              b) bla bla bla
              \endtabular}
\end{figure}

\end{document}

enter image description here

share|improve this answer

Hanging indent is the default setup for captions in the classes from the KOMA-Script bundle.

\documentclass[paper=letter]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{lipsum}

\begin{document}
  \begin{figure}[!ht]
    \centering
    \rule{3.2in}{1.8in}
    \caption[LoF entry]{\lipsum[1]}
  \end{figure}
\end{document}
share|improve this answer

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.