iuecos” post=96841Ciao a tutti!
Ho fatto una teballa per inserire dei dati ma le colonne non sono equispaziate lungo la larghezza della tabella. Non riesco a capire l’errore, sarà perchè ho utilizzato dei titoli troppo lunghi?
`\begin{table}
\caption{Reazioni della testa nella posizione più svantaggiosa.} %didascalia
\begin{center}
\[
\begin{array}{cccccc}
\toprule
\multicolumn{6}{c}{\text{\scshape{\large{Reazioni per}}}}\\
\multicolumn{6}{c}{ a\ped{x}=4\unit{m/s^2}, a\ped{y}=4\unit{m/s^2}, a\ped{z}=-3\unit{m/s^2}, a\ped{\alpha}=5\unit{m/s^2}, a\ped{\gamma}=-5\unit{m/s^2}} \\
\multicolumn{6}{c}{\alpha=0\ap{\circ}, \theta=315\ap{\circ}, \gamma=315\ap{\circ}}\\
\midrule
R\ped{tx} & R\ped{ty} & R\ped{tz} & M\ped{tx} & M\ped{ty} & M\ped{tz} \\
\text{[\unit{N}]} & \text{[\unit{N}]} & \text{[\unit{N}]} & \text{[\unit{Nm}]} & \text{[\unit{Nm}]} & \text{[\unit{Nm}]} \\
-1600 & -1850 & 2018 & 422 & 181 & 0 \\
\bottomrule
\end{array}
\]
\end{center}
\label{rt:tab} %riferimenti
\end{table}`qualcuno mi aiuta a trovare l’errore?
Vi ringrazio anticipatamente 😉
Sinceramente non so quale sia il problema, visto che non aiuti indicando i pacchetti che carichi. Questo però funziona e ho una certa fiducia che il risultato sia migliore di quello che otterresti con quel codice.
`
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{amsmath,booktabs,siunitx}
\begin{document}
\begin{tabular}{*{6}{S[table-format=-4.0]}}
\toprule
\multicolumn{6}{c}{\scshape Reazioni per}\\
\multicolumn{6}{c}{%
$a_x=\SI{4}{m/s^2}$, $a_y=\SI{4}{m/s^2}$, $a_z=\SI{-3}{m/s^2}$,
} \\
\multicolumn{6}{c}{%
$a_{\alpha}=\SI{5}{m/s^2}$, $a_{\gamma}=\SI{-5}{m/s^2}$%
} \\
\multicolumn{6}{c}{%
$\alpha=\SI{0}{\degree}$, $\theta=\SI{315}{\degree}$, $\gamma=\SI{315}{\degree}$%
}\\
\midrule
$R_{tx}$ & $R_{ty}$ & $R_{tz}$ & $M_{tx}$ & $M_{ty}$ & $M_{tz}$ \\
{(\si{N})} & {(\si{N})} & {(\si{N})} & {(\si{N.m})} & {(\si{N.m})} & {(\si{N.m})} \\
-1600 & -1850 & 2018 & 422 & 181 & 0 \\
\bottomrule
\end{tabular}
\end{document}
`
[attachment=1126]ScreenShot2014-10-08at13.00.33.jpg[/attachment]
Ciao
Enrico