I would like to write text into multiple columns using the nicematrix
and booktabs
packages.
However, there is the unwanted spacing, circled in the picture.
Is there any way to get rid of it so that the three columns are vertically aligned?
Solutions using other ways to do this are welcome, but they must:
- Be able to show the equation with adequate spacing above and below, as the booktabs package does automatically
- Have the vertical lines
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{float}
\usepackage{nicematrix}
\usepackage{booktabs}
\begin{document}
\begin{table}[H]
\centering
\begin{NiceTabular}{|p{3.9em}| p{14em} |p{10em} | p{10em}|}
\toprule
\textbf{Test} & \textbf{Test} & \textbf{Test} & \textbf{Test} \\
\midrule
H&H&H&$\left(\frac{1}{1+\frac{\alpha}{\beta}}\right)^{10}$\\
\midrule
Test
&
Test Test Test TestTestTest TestTest Test TestTest TestTest TestTestTest TestTestTestTestTest TestTestTest
&
\Block{1-2}{
\begin{minipage}{22em}
Test Test Test TestTestTest TestTest Test TestTest TestTest TestTestTest TestTestTestTestTest TestTestTest
\end{minipage}}
&
\\
\bottomrule
\end{NiceTabular}
\end{table}
\end{document}