1

I want to increase the line spacing in the following array table, what should I do?

\documentclass{article}
\usepackage{amsmath, amssymb} 
\begin{document}
\[
 \begin{array}
 {|c|c|c|c|}
 \hline
 X & 1 & 2 & 3
 \\
 \hline
 \mathrm{p}(X=x_{i}) &
 \dfrac{1}{22} & \dfrac{9}{22} & \dfrac{6}{11}
 \\
 \hline
 \end{array}
 \]
 \end{document}

1 Answers1

1

A possible solution is to use the tabularray package:

\documentclass{article}

\usepackage{amsmath,amssymb,tabularray}

\begin{document}

[ \begin{tblr}{cells=c,rowsep=3pt,hlines,vlines} X & 1 & 2 & 3 \ \operatorname{p}(X=x_{i}) & \dfrac{1}{22} & \dfrac{9}{22} & \dfrac{6}{11} \ \end{tblr} ]

\end{document}

enter image description here