2

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

3

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}
3
  • I think, \begin{tabu}{l l} more close to desired output.
    – user31034
    Apr 10 '14 at 7:39
  • 1
    @ferahfeza Perhaps, but the X columns came from the OPs code. Apr 10 '14 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 '14 at 7:51
2
\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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.