Graphics, Figures & TablesVertical alignment of tabular environment inside list item

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gernot
Posts: 1
Joined: Wed Oct 06, 2010 6:16 pm

Vertical alignment of tabular environment inside list item

Post by gernot »

Hi all,

creating a tabular environment inside a list item seems to cause the bullet/number/description to become vertically centered (relative to the table).

How can I make the first line of a table appear on the same line/height as the the description item?

Thank you.

Example:

Code: Select all

\documentclass{article}
\begin{document}
\begin{description}
	\item[vertically centered]
		\begin{tabular}{ l l }
			123 & 123 \\
			123 & 123 \\
			123 & 123 \\
			123 & 123 \\
		\end{tabular}
\end{description}
\end{document}
Last edited by gernot on Wed Oct 06, 2010 9:44 pm, edited 1 time in total.

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Vertical alignment of tabular environment inside list item

Post by gmedina »

Hi,

use the optional argument of tabular:

Code: Select all

\documentclass{article}
\begin{document}
\begin{description}
   \item[vertically centered]
      \begin{tabular}[t]{ l l }
         123 & 123 \\
         123 & 123 \\
         123 & 123 \\
         123 & 123 \\
      \end{tabular}
\end{description}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply