1

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?

Itemize within tabularx waste of vertical space

My MWE:

\documentclass{beamer}

\usetheme{Boadilla}

\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}

Thank you for your help!

3
  • 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
  • 1
    I need it in the beamer context.. :)
    – mrbela
    Nov 23 '21 at 10:39
  • 1
    See if tex.stackexchange.com/questions/623160/fit-this-table-in-beamer can help you.
    – Zarko
    Nov 23 '21 at 10:43
2

Try the following:

\documentclass{beamer}
\usetheme{Boadilla}

\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}

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.