1

I am using this code to create itemize within a tabular environment.

\documentclass[12pt]{extarticle}

\usepackage{geometry}
\usepackage{array}

\begin{document}

\begin{table}
    \centering
    \setlength{\leftmargini}{0.4cm}
    \begin{tabular}{| m{2cm} | m{4cm} | m{4cm} | m{4cm} |}
        \hline
        Verticals & Drivers & Enablers & 5G requirement \\
        \hline
        Education & 
        \begin{itemize} 
            \item Remote delivery 
            \item Immersive experiences 
        \end{itemize} & 
        \begin{itemize} 
            \item Video streaming 
            \item Augmented reality 
            \item Virtual reality 
        \end{itemize} & 
        \begin{itemize} 
            \item Large bandwidth 
            \item Low latency 
        \end{itemize} \\
        \hline
    \end{tabular}
\end{table}

\end{document}

Which results in this

enter image description here

As you can see, it has a large amount of vertical space just before the list starts and after it ends.

How can I get a tighter vertical layout?

1
  • this answer should point you in the right direction
    – js bibra
    Jan 26 at 5:23
2

The enumitem package allows you to customize virtually all aspects of an itemize-like environment. An application of this idea to your formatting objective leads to the following result:

enter image description here

\documentclass[12pt]{extarticle}
\usepackage{geometry}
\usepackage{ragged2e} % for '\RaggedRight' macro
\usepackage{enumitem}
\newlist{tabitemize}{itemize}{1} % create a bespoke 1-level itemize-like env.
\setlist[tabitemize]{label=\textbullet, nosep, leftmargin=*, 
                     before={\begin{minipage}[t]{\linewidth}\RaggedRight},
                     after={\end{minipage}}}
\begin{document}

\begin{table}
    \centering
    \begin{tabular}{| p{2cm} | p{4cm} | p{4cm} | p{4cm} |}
        \hline
        Verticals & Drivers & Enablers & 5G requirement 
        \\
        \hline
        Education & 
        \begin{tabitemize}   
            \item Remote delivery
            \item Immersive experiences 
        \end{tabitemize} & 
        \begin{tabitemize} 
            \item Video streaming 
            \item Augmented reality 
            \item Virtual reality 
        \end{tabitemize} & 
        \begin{tabitemize} 
            \item Large bandwidth 
            \item Low latency 
        \end{tabitemize} 
        \\ 
        \hline
    \end{tabular}
\end{table}

\end{document}
1
  • 1
    +1. I've taken the liberty of editing the details of the tabitemize environment.
    – Mico
    Jan 26 at 10:20

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