I'm trying to typeset a table in LaTeX. So far I have the following:
\documentclass{scrreprt}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{table}[ht]
\centering
\caption{Table with different values}
\begin{tabular}{lScSS}
\toprule
Model & \multicolumn{1}{p{0.1\textwidth}}{\centering Mass} & \multicolumn{1}{p{0.18\textwidth}}{\centering Dim.\\(X\,\(\times\)\,Y\,\(\times\)\,Z)} & \multicolumn{1}{p{0.3\textwidth}}{\centering Moment of Inertia\\(small comment)} & \multicolumn{1}{p{0.2\textwidth}}{\centering Nominal Torque} \\
& [\si{\kilogram}] & [\si{mm}] & [\si{\kilogram\meter\squared}] & [\si{\newton\meter}] \\
\midrule
A12345678 & 11e-6 & 11\,\(\times\)\,22\,\(\times\)\,33 & 111,1e-6 & 11e-9 \\
B12345678 & 22e-6 & 44\,\(\times\)\,55\,\(\times\)\,66 & 222,2e-6 & 22e-9 \\
B12345678 & 0,3 & 77\,\(\times\)\,88\,\(\times\)\,99 & 3,33e-3 & 3e3 \\
B12345678 & 0,4 & 11\,\(\times\)\,22\,\(\times\)\,33 & 4,44e-3 & 4e-3 \\
B12345678 & 5,51 & 111\,\(\times\)\,222\,\(\times\)\,33 & 5,552e-3 & 55e30 \\
B12345678 & 6,7 & 444\,\(\times\)\,555\,\(\times\)\,66 & 6,666e-3 & 6e-3 \\
B12345678 & 8,9 & 777\,\(\times\)\,888\,\(\times\)\,99 & 7,77e-3 & 0,7 \\
\bottomrule
\end{tabular}
\end{table}
Normal lines ot text:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
\end{document}
While this is approximately what I want, I'm still unsatisfied with the result. Especially the text alignment is still odd. So basically, I want to beautify the table.
I want to achieve the following:
- The table width should not exceed the normal text width on the page (A4 paper size)
- Text wrapping in the header row (as I did in the MWE)
- Decimal delimiter alignment (and also alignment of the scientific notation, if possible)
- Footnotes within the cells, with their detailed explanation directly below the table
As a plus:
The caption is set quite close to the tables top rule.
Is this normal behavior and if not, how to achieve proper spacing?
Any other improvements are welcomed as well.
Many thanks for your help!