Graphics, Figures & TablesTables or Itemize enviroments inside a caption

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

Tables or Itemize enviroments inside a caption

Post by viertelkind »

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

Code: Select all

 
\caption[{blablabla.\newline
\begin{itemize}
	\item tetststst
	\item adsfasdasd
\end{itemize}
} 
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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Tables or Itemize enviroments inside a caption

Post by sommerfee »

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

Code: Select all

\documentclass{article}
\usepackage{caption}

\begin{document}

\begin{figure}
\captionsetup{singlelinecheck=off}
\caption[blablabla]{%
blablabla.\\
\begin{itemize}
   \item tetststst
   \item adsfasdasd
\end{itemize}
}
\end{figure}

\end{document}
See also section "3.1 Typesetting captions" in the caption package documentation.

Axel
Post Reply