However, I would like to define in LaTeX a typical table as made with Excel. The only basic example I made is this one, which is compiling fine, but have several issues :
Code: Select all
\documentclass[10pt,twoside]{revtex4}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage[french]{babel}\usepackage{microtype}\usepackage{amsmath}\usepackage[separate-uncertainty=true]{siunitx}\sisetup{output-decimal-marker = {,}}\begin{document}\section*{A table of results}\begin{center}\begin{tabular}{|c|c|c|}\hline\multicolumn{3}{|c|}{Tableau 1. Le titre du tableau} \\\hline$M$ & $L$ & $\rho$ \\ \hline$\SI{}{\g}$ & $\SI{}{\cm}$ & $\SI{}{\kg/\m^3}$ \\ \hline0,2 & 0,5 & – \\ \hline\hline24,7 & 15,3 & 7,89 \\ \hline45,2 & 24,0 & 9,65 \\ \hline49,9 & 28,7 & 6,90 \\ \hline51,6 & 27,9 & 7,05 \\ \hline68,1 & 12,6 & 7,46 \\ \hline72,0 & 16,8 & 6,45 \\ \hline79,5 & 18,0 & 8,93 \\ \hline83,2 & 22,1 & 7,12 \\ \hline88,0 & 34,0 & 7,09 \\ \hline94,6 & 44,7 & 8,40 \\ \hline\end{tabular}\end{center}\end{document}
1. The three columns should have an equal horizontal size under the title.
2. The vertical space is too small on each line (see especially the units).
3. The division between the head and the data should not be a gap, but a double line, closed at the ends, like what we could do with Excel.
4. I would like to add a small closed legend under the table, moved to the left of the main table, to add some comments about $M$, $L$ and $\rho$.
So how should I do these things ?