I have this code
\begin{table}[h]
\caption{Numerical example geometry}
\label{tab_numerical_geo}
\begin{center}
\scalebox{0.9}{
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
$d^A$ & $d^B$ & $d^C$ & $l^A_{12}$ & $l^C_{12}$ & $h^A$ & $h^C$ \\
\hline
-0.4434 & 0.3455 & 0.7798 & 0.1023 & 0.1523 & 0.04 & 0.023 \\
\hline
\end{tabular}
}
\end{center}
\end{table}
I'm using \scalebox
to reduce the size of the table, but it shrinks the space between the caption and the table. Without using it, there is a space, which is nice for my article.
Does anyone know how to reduce the size of the table while keeping that space?
I've tried with \footnotesize
instead of \reducebox
, but the result was the same.
Thanks!
Best Answer
Some suggestions:
To create a bit more spacing between the caption and the tabular material, load the
caption
package and specify the desired value for the optionskip
; in the example below, I setskip=0.5\baselineskip
.Don't use a
center
environment inside atable
; instead, use the\centering
macro.Since the material in the data row can, apparently, contain negative numbers, use an
array
environment instead of atabular
environment. Doing so will free you from having to type lots of$
symbols in the header row.If you must use a smaller font size, don't use
\scalebox
, as doing so will create very "spindly-looking" output. Instead, use\small
(for a 10% linear reduction of the font size) or\footnotesize
(for a 20% linear reduction).For better spacing in the header and data rows, insert typographic struts.