LaTeX forum ⇒ Graphics, Figures & TablesTables or Itemize enviroments inside a caption

Information and discussion about graphics, figures & tables in LaTeX documents.
viertelkind
Posts: 1
Joined: Thu May 13, 2010 10:31 am

Tables or Itemize enviroments inside a caption

Postby viertelkind » Thu May 13, 2010 10:35 am

Hi everybody!
I have a problem with a caption of a figure.

I'd like to put a small itemize enviroment (or a table if itemize is not possible).

I've tried the obvious
  1.  
  2. \caption[{blablabla.\newline
  3. \begin{itemize}
  4. \item tetststst
  5. \item adsfasdasd
  6. \end{itemize}
  7. }

but
but it does not compile. Already had a good look at the caption package, but i does not seem to help in this case.

Any suggestions, or just impossible :)
thanks
steffen

User avatar
sommerfee
Posts: 495
Joined: Mon Apr 09, 2007 4:20 pm

Postby sommerfee » Thu May 13, 2010 11:21 am

viertelkind wrote:Already had a good look at the caption package, but i does not seem to help in this case.


But it does:

  1. \documentclass{article}
  2. \usepackage{caption}
  3.  
  4. \begin{document}
  5.  
  6. \begin{figure}
  7. \captionsetup{singlelinecheck=off}
  8. \caption[blablabla]{%
  9. blablabla.\\
  10. \begin{itemize}
  11. \item tetststst
  12. \item adsfasdasd
  13. \end{itemize}
  14. }
  15. \end{figure}
  16.  
  17. \end{document}


See also section "3.1 Typesetting captions" in the caption package documentation.

Axel


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 1 guest