# Wasting of vertical space by an itemize within a tabularx

When I am using an itemize within a tabular(x) cell, it wastes a lot of vertical space.. How can I get rid of it?

My MWE:

\documentclass{beamer}

\usepackage{tabularx}

\begin{document}

\begin{frame}
\begin{tabularx}{\textwidth}{|l|X|}
\hline
Test
&
\begin{itemize}
\item item 1
\item item2
\end{itemize}
\\\hline
\end{tabularx}

\end{frame}

\end{document}


• Is the fact that the sample code you posted employs the beamer document class important? Or are you maybe interested in solutions that apply to other document classes? Please advise.
– Mico
Nov 23 '21 at 10:25
• I need it in the beamer context.. :) Nov 23 '21 at 10:39
• See if tex.stackexchange.com/questions/623160/fit-this-table-in-beamer can help you. Nov 23 '21 at 10:43

Try the following:

\documentclass{beamer}

\usepackage{tabularx}

\begin{document}

\begin{frame}
\begin{tabularx}{\textwidth}{|l|X|}
\hline
Test
&   \begin{minipage}{\linewidth}
\smallskip
\begin{itemize}
\item item 1
\item item2
\end{itemize}
\smallskip
\end{minipage}
\\\hline
\end{tabularx}
\end{frame}

\end{document}