1

I'd like to create compact itemized lists within a column of a table that are vertically alligned with non-itemized text from the same column. I'm using enumitem to get more control over these environments, but I can't figure out how to completely remove the vertical spacing above and below the itemize environment.

Consider this simple example:

\documentclass[12pt]{report}
\usepackage{enumitem}
\usepackage{booktabs}

\begin{document}

\begin{tabular}{p{3cm}p{3cm}}
\toprule
Column one & Column two \\
\midrule
First group &
\begin{itemize}[noitemsep,topsep=0ex,partopsep=0ex,leftmargin=2ex]
\item First item
\item Second item
\end{itemize} \\
Second group &
\begin{itemize}[noitemsep,topsep=0ex,partopsep=0ex,leftmargin=2ex]
\item First item
\item Second item
\end{itemize} \\
\bottomrule
\end{tabular}

\end{document}

output

I have set topsep and partopsep to zero to try and remove the vertical spacing, but this does not seem to work as expected. Is there additional spacing outside the itemize environment that I'm overlooking?

1

I found the best approach was to using a nested tabular approach, shown in this answer.

Here is an adaptation to a slightly modified example:

\documentclass[12pt]{report}
\usepackage{booktabs}
\usepackage[raggedrightboxes]{ragged2e}

\begin{document}

\begin{tabular}{p{3cm}p{3cm}}
\toprule
Column one & Column two \\
\midrule
First group &
  \begin{tabular}[t]{@{\textbullet~}p{3cm}@{}}
    First item \\
    Second item
  \end{tabular} \\
Second group &
  \begin{tabular}[t]{@{\textbullet~}p{3cm}@{}}
    First item \\
    Second item, now with a longer description
  \end{tabular} \\
\bottomrule
\end{tabular}

\end{document}

output

| improve this answer | |

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