Here are three alternatives using cellspace
, makecell
or nicematrix
.
I also used \displaystyle
instead of \mathlarger
inside of the first column, as well as an S
type column from siunitx
for the numbers in the last column.
All three examples result in the following output:
\documentclass{article}
\usepackage{mathtools}
% only used in first example:
\usepackage[column=0]{cellspace}
\setlength{\cellspacetoplimit}{0.5\tabcolsep}
\setlength{\cellspacebottomlimit}{\cellspacetoplimit}
% only used in second example:
\usepackage{makecell}
\setcellgapes{0.5\tabcolsep}
% only used in third example:
\usepackage{nicematrix}
% used for improved output in second cell
\usepackage{siunitx}
\sisetup{table-align-exponent=false}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabular}{|>{\(\displaystyle}0c<{\)}|S[table-format=1.15e-1]|}
\hline
\int_{l_{\min}}^{l_{\max}}C_{\ell,\text{gal,ph}} (\ell)\text{d}\ell & 6.75254172757782e-05 \\ \hline
\Bigg[\int_{l_{\min}}^{l_{\max}}C_{\ell,\text{gal,ph}} (\ell)\text{d}\ell\Bigg]^{2} & 4.559681978267965e-09 \\ \hline
\Bigg[\int_{l_{\min}}^{l_{\max}}C_{\ell,\text{gal,ph}} (\ell)\text{d}\ell\Bigg]^{-1} & {\num{14809.238363029064}} \\ \hline
\dfrac{1}{ng} \quad \text{(str)} & 2.417598569737143e-07 \\ \hline
\end{tabular}
\end{table}
\begin{table}[h!]
\centering
\makegapedcells
\begin{tabular}{|>{\(\displaystyle}c<{\)}|S[table-format=1.15e-1]|}
\hline
\int_{l_{\min}}^{l_{\max}}C_{\ell,\text{gal,ph}} (\ell)\text{d}\ell & 6.75254172757782e-05 \\ \hline
\Bigg[\int_{l_{\min}}^{l_{\max}}C_{\ell,\text{gal,ph}} (\ell)\text{d}\ell\Bigg]^{2} & 4.559681978267965e-09 \\ \hline
\Bigg[\int_{l_{\min}}^{l_{\max}}C_{\ell,\text{gal,ph}} (\ell)\text{d}\ell\Bigg]^{-1} & {\num{14809.238363029064}} \\ \hline
\dfrac{1}{ng} \quad \text{(str)} & 2.417598569737143e-07 \\ \hline
\end{tabular}
\end{table}
\begin{table}[h!]
\centering
\begin{NiceTabular}[cell-space-limits=0.5\tabcolsep]{>{\(\displaystyle}c<{\)}S[table-format=1.15e-1]}[hvlines]
\int_{l_{\min}}^{l_{\max}}C_{\ell,\text{gal,ph}} (\ell)\text{d}\ell & 6.75254172757782e-05 \\
\Bigg[\int_{l_{\min}}^{l_{\max}}C_{\ell,\text{gal,ph}} (\ell)\text{d}\ell\Bigg]^{2} & 4.559681978267965e-09 \\
\Bigg[\int_{l_{\min}}^{l_{\max}}C_{\ell,\text{gal,ph}} (\ell)\text{d}\ell\Bigg]^{-1} & {\num{14809.238363029064}} \\
\dfrac{1}{ng} \quad \text{(str)} & 2.417598569737143e-07 \\
\end{NiceTabular}
\end{table}
\end{document}