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.

Is it possible to include a table in itemize?

\begin{itemize}
\item item 1
\begin{tabu}[X X]
\toprule
150 & 150 \\ bottomrule
\end{tabu}
\item item 2
\end{itemize}

The alignment should be:

  • Item 1


    150 150


  • Item 2

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Please add complete examples with the necessary packages.

You're using the wrong syntax for the table. Column specifiers should be within braces ({}) not brackets ([]). To get the alignment you want, just add an empty line after item.

enter image description here

\documentclass{article}
\usepackage{tabu,booktabs}
\begin{document}
\begin{itemize}
\item item 1

\begin{tabu}{X X}
\toprule
150 & 150 \\ \bottomrule
\end{tabu}
\item item 2
\end{itemize}

\end{document}
share|improve this answer
    
I think, \begin{tabu}{l l} more close to desired output. –  ferahfeza Apr 10 at 7:39
1  
@ferahfeza Perhaps, but the X columns came from the OPs code. –  Torbjørn T. Apr 10 at 7:42
    
@TorbjørnT. Thanks. Will remember to give complete code next time onwards. My error was NOT leaving a line between \item and \begin{tabu} –  deshmukh Apr 10 at 7:51
\documentclass{article}
\usepackage{tabularx,booktabs}
\begin{document}
  \begin{itemize}
\item item 1\par
\begin{tabularx}{\linewidth}{X X}
\toprule
150 & 150 \\ \bottomrule
\end{tabularx}
\item item 2
\end{itemize}
\end{document}

enter image description here

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.