Consider the following table:
\begin{table}
\centering
\caption{cc-pVTZ was used for $NO_2H$. Ground staet energies}
\renewcommand{\arraystretch}{1.2}
\begin{tabular}{|p{3cm}||c|c|c|}
\hline
\multirow{2}{5cm}{\textbf{Molecule}} & \multicolumn{2}{c|}{\textbf{UKRMol+ Integrals}} & \textbf{Molpro Integrals}\
% \hline
% \textbf{Inactive Modes} & \textbf{Description}\
\cline{2-4}
& \textbf{Molpro Ground Energy} & \textbf{UKRMol+ Ground Energy} & \textbf{UKRMol+ Ground Energy }\
%\hhline{~--}
\hline
$ \mathrm{C_4H_8N_2}$ & -264.84232294 & -264.8423229345 & -264.8423248314 \ \hline
$ \mathrm{H_2O}$ & -76.02677205 & -76.0267720532 & -76.0267721310 \ \hline
$ \mathrm{He_2}$ & -5.71032232 & -5.7103223179 & -5.7103223229 \ \hline
$ \mathrm{NO_2H}$ & -204.6040946252 & -204.6040107299 & -204.6040951267 \ \hline
$ \mathrm{N_2}$ & -108.95555875 & -108.9555587520 & -108.9555589593 \ \hline
$ \mathrm{H_2O_2}$ & -150.78066093 & -150.7806609345 & -150.7806612050 \ \hline
$ \mathrm{HF}$ & -100.01970689 & -100.0197068851 & -100.0197069270 \
\hline \hline
\end{tabular}
\end{table}
Is there a way to ensure that the table fits within the textblock? E.g., how should I adjust (simplify?) the information in the header cells? Is there a way to instruct LaTeX to round the numbers to show fewer decimal digits?



chemformulaormhcheminstead of using math mode. – leandriis Aug 17 '21 at 17:22