#Weird vertical gaps in table
1 messages · Page 1 of 1 (latest)
Table code: \begin{tabular}{lr|rrr|rrr|} \cline{3-8} & \multicolumn{1}{l|}{} & \multicolumn{3}{c|}{Deep non-polar ocean} & \multicolumn{3}{c|}{Global ocean} \\ \cline{2-8} \multicolumn{1}{l|}{} & \multicolumn{1}{l|}{Wave drag $\chi$} & \multicolumn{1}{l|}{Total RMSE} & \multicolumn{1}{l|}{Amplitude error} & \multicolumn{1}{l|}{Phase error} & \multicolumn{1}{l|}{Total RMSE} & \multicolumn{1}{l|}{Amplitude error} & \multicolumn{1}{l|}{Phase error} \\ \hline \multicolumn{1}{|r|}{Spherical harmonic SAL, $n=40$} & 0.8 & \multicolumn{1}{r|}{5.66} & \multicolumn{1}{r|}{2.85} & 4.89 & \multicolumn{1}{r|}{7.92} & \multicolumn{1}{r|}{4.81} & 6.30 \\ \hline \multicolumn{1}{|l|}{Spherical harmonic SAL, $n=200$} & 0.8 & \multicolumn{1}{r|}{5.62} & \multicolumn{1}{r|}{2.83} & 4.85 & \multicolumn{1}{r|}{7.83} & \multicolumn{1}{r|}{4.80} & 6.19 \\ \hline \multicolumn{1}{|r|}{Convolution SAL} & 0.4 & \multicolumn{1}{r|}{4.14} & \multicolumn{1}{r|}{2.71} & 3.13 & \multicolumn{1}{r|}{6.93} & \multicolumn{1}{r|}{4.69} & 5.10 \\ \hline \multicolumn{1}{|r|}{Mixed SAL} & 0.6 & \multicolumn{1}{r|}{3.69} & \multicolumn{1}{r|}{2.39} & 2.81 & \multicolumn{1}{r|}{6.36} & \multicolumn{1}{r|}{4.51} & 4.49 \\ \hline \end{tabular}
(from the online latex table maker)
Hmm I can't replicate this, is there more to the preamble?
bruh
is the template available on overlefa
ok ta
ok so far i've found out it's their loading of array and something else
this is what I comment out \RequirePackage{array} which is an improvement
woe
I think the only hack right now (since we can't touch the tempalte) is to use \noalign{\vskip-<some value>}
after cline and \\
\begin{tabular}{lr|rrr|rrr|}
\cline{3-8}\noalign{\vskip-.4em}
&
\multicolumn{1}{l|}{} &
\multicolumn{3}{c|}{Deep non-polar ocean} &
\multicolumn{3}{c|}{Global ocean} \\\noalign{\vskip-.2em}
\cline{2-8}\noalign{\vskip-.4em}
\multicolumn{1}{l|}{} &
\multicolumn{1}{l|}{Wave drag $\chi$} &
\multicolumn{1}{l|}{Total RMSE} &
\multicolumn{1}{l|}{Amplitude error} &
\multicolumn{1}{l|}{Phase error} &
\multicolumn{1}{l|}{Total RMSE} &
\multicolumn{1}{l|}{Amplitude error} &
\multicolumn{1}{l|}{Phase error} \\ \hline
\multicolumn{1}{|r|}{Spherical harmonic SAL, $n=40$} &
0.8 &
\multicolumn{1}{r|}{5.66} &
\multicolumn{1}{r|}{2.85} &
4.89 &
\multicolumn{1}{r|}{7.92} &
\multicolumn{1}{r|}{4.81} &
6.30 \\ \hline
\multicolumn{1}{|l|}{Spherical harmonic SAL, $n=200$} &
0.8 &
\multicolumn{1}{r|}{5.62} &
\multicolumn{1}{r|}{2.83} &
4.85 &
\multicolumn{1}{r|}{7.83} &
\multicolumn{1}{r|}{4.80} &
6.19 \\ \hline
\multicolumn{1}{|r|}{Convolution SAL} &
0.4 &
\multicolumn{1}{r|}{4.14} &
\multicolumn{1}{r|}{2.71} &
3.13 &
\multicolumn{1}{r|}{6.93} &
\multicolumn{1}{r|}{4.69} &
5.10 \\ \hline
\multicolumn{1}{|r|}{Mixed SAL} &
0.6 &
\multicolumn{1}{r|}{3.69} &
\multicolumn{1}{r|}{2.39} &
2.81 &
\multicolumn{1}{r|}{6.36} &
\multicolumn{1}{r|}{4.51} &
4.49 \\ \hline
\end{tabular}
Like this
yields this
Thanks