Re: Tabelle affiancate

#38741
Up
0
Down
::


il codice è questo:

`
\begin{table}[htbp]
\centering
\scalebox{0.75}{ %
\subtable[Tabella1\label{tab:a}]{%
\begin{tabular}{*3c}
\toprule
\textbf{abcdef} & \textbf{defghi}& \textbf{ghilmn}\\
\midrule
lmnopq & 1234 & 2345 \\
\midrule
opqrst & 3456 & 4567 \\
\midrule
rstuvz & 5678 & 6789 \\
\bottomrule
\end{tabular}
}\qquad\qquad
\subtable[Tabella2\label{tab:b}]{%
\begin{tabular}{*3c}
\toprule
\textbf{abcdef} & \textbf{defghi}& \textbf{ghilmn}\\
\midrule
lmnopq & 1234 & 2345 \\
\midrule
opqrst & 3456 & 4567 \\
\midrule
rstuvz & 5678 & 6789 \\
\bottomrule
\end{tabular}
}\qquad\qquad
\subtable[Tabella3\label{tab:c}]{%
\begin{tabular}{*3c}
\toprule
\textbf{abcdef} & \textbf{defghi}& \textbf{ghilmn}\\
\midrule
lmnopq & 1234 & 2345 \\
\midrule
opqrst & 3456 & 4567 \\
\midrule
rstuvz & 5678 & 6789 \\
\bottomrule
\end{tabular}
}\qquad\qquad
\subtable[Tabella4\label{tab:d}]{%
\begin{tabular}{*3c}
\toprule
\textbf{abcdef} & \textbf{defghi}& \textbf{ghilmn}\\
\midrule
lmnopq & 1234 & 2345 \\
\midrule
opqrst & 3456 & 4567 \\
\midrule
rstuvz & 5678 & 6789 \\
\bottomrule
\end{tabular}
}
} %
\caption{Prova sottotabelle}
\end{table}
`

comunque ho scoperto che il problema è dato da scalebox, perchè se non lo uso il problema non si pone e ottengo l’effetto che voglio io.
A questo punto la domanda diventa: c’è un modo per ottenere il risultato che voglio e ridurne un po’ le dimensioni per risparmiare spazio?

mettendo \\ come suggerivi ottengo un generico errore:
LaTeX Error: Something’s wrong–peraphs a missing \item

Go to top