Re: disporre tabella in orizzontale splittata su più fogli

#8569
Up
0
Down
::

Uso questo post per porre la mia domanda. Ho la seguente tabella
`{\footnotesize
\begin{sidewaystable}
\centering
\caption{Recognition rate for all the classes together}
\label{tab:k6.7}
\begin{tabularx}{\textwidth}{X|XXXXXXXXXXXXXXXXXXXXX}
\toprule
Ratio & KA & KUe & KUf & TEL & TOd & TOu & WKe & WKs & AD & AL & AN & AND & CL & DE & HA & JA & JO & MI & MIG & TI & VO \\
\midrule
KA &\textbf{0,75}& 0& 0& 0& 0& 0& 0& 0& 0& 0,125& 0& 0& 0& 0& 0& 0& 0,125& 0& 0& 0& 0\\
KUe &0 &\textbf{1} &0 &0 &0 &0& 0 &0 &0 &0 &0 &0 &0 &0& 0& 0& 0& 0& 0 &0 &0\\
KUf &0 &0& \textbf{1} &0 &0 &0& 0 &0 &0 &0 &0 &0& 0& 0& 0& 0 &0 &0 &0 &0 &0\\
TEL &0 &0 &0 &\textbf{1} &0& 0 &0 &0& 0 &0& 0& 0 &0 &0 &0& 0 &0 &0 &0& 0& 0\\
TOd &0 &0 &0 &0 &\textbf{1} &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0\\
TOu &0 &0 &0 &0 &0& \textbf{1} &0 &0 &0 &0 &0 &0 &0& 0 &0 &0 &0& 0& 0 &0& 0\\
WKe &0 &0,125 &0 &0 &0 &0& \textbf{0,875}& 0 &0& 0& 0 &0 &0 &0 &0 &0 &0 &0 &0 &0& 0\\
WKs &0 &0 &0 &0 &0 &0 &0 &\textbf{1} &0 &0 &0 &0&0 &0 &0 &0 &0&0 &0 &0 &0\\
AD &0 &0 &0 &0 &0 &0 &0 &0 &\textbf{0,875} &0 &0 &0 &0 &0 &0 &0 &0,125& 0& 0& 0& 0\\
AL &0 &0 &0 &0 &0 &0,375& 0& 0& 0& \textbf{0,375}& 0& 0,125& 0& 0,125& 0& 0& 0& 0& 0& 0& 0\\
AN &0 &0 &0 &0 &0,125& 0 &0 &0& 0 &0 &\textbf{0,75}& 0& 0 &0 &0,125 &0 &0 &0 &0 &0 & 0\\
AND &0 &0 &0 &0 &0 &0 &0 &0 &0 &0& 0 &\textbf{0,75}& 0,125 &0 &0,125 &0& 0 &0& 0& 0 & 0\\
CL &0 &0 &0 &0 &0,125 &0 &0 &0 &0,125& 0 &0 &0 &\textbf{0,625} &0 &0 &0& 0& 0& 0& 0& 0,125 \\
DE &0 &0 &0 &0 &0 &0,25& 0& 0 &0 &0 &0 &0 &0& \textbf{0,625}& 0 &0 &0,125 &0 &0 &0 & 0\\
HA &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &\textbf{0,75}& 0 &0 &0 &0 &0 &0,25\\
JA &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0,125 &0 &0,125& 0& \textbf{0,75}& 0& 0& 0& 0& 0\\
JO &0 &0 &0 &0 &0 &0& 0& 0 &0 &0 &0 &0& 0 &0 &0 &0 &\textbf{1}& 0 &0 &0& 0 \\
MI &0 &0& 0& 0 &0 &0& 0& 0& 0& 0 &0& 0 &0 &0& 0& 0& 0 &\textbf{0,5}& 0,375& 0& 0,125\\
MIG &0 &0 &0 &0& 0& 0,125& 0& 0& 0 &0 &0 &0& 0& 0 &0& 0& 0 &0& \textbf{0,75}& 0,125 & 0\\
TI &0 &0 &0 &0& 0 &0 &0& 0 &0& 0 &0& 0,125 &0 &0 &0 &0& 0& 0& 0 &\textbf{0,75}& 0,125\\
VO &0& 0& 0 &0 &0 &0& 0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0 &0,125 &0 &0 &\textbf{0,875}\\
\bottomrule
\end{tabularx}
\end{sidewaystable}\par}`
Non riesco ancora a farla stare nella pagina inorizzontale. E pure il testo fuoriesce dalle colonne. Cosa si potrebbe fare?

Scrivi così:
\begin{sidewaystable}
\centering
\caption{Recognition rate for all the classes together}
\label{tab:k6.7}
\medskip
\footnotesize\setlength{\tabcolsep}{.5\tabcolsep}
\begin{tabular}{l*{22}{c}}
\toprule

\bottomrule
\end{tabular}
\end{sidewaystable}[/code]
Riducendo lo spazio tra le colonne alla metà di quello usuale, forse riesci a guadagnare lo spazio necessario.

Nota come \footnotesize può andare in un altro posto, riducendo i problemini di sintassi e anche il \medskip fra la didascalia e la tabella. Non userei tabularx, non ha molto senso.

Ciao
Enrico

Go to top