Ciao, ho delle difficoltà che non riesco a risolvere.
Sto cercando di realizzare una tabella molto grande (il testo da cui l’ho presa riesce a visualizzarla in orizzontale), che ho deciso di mettere in verticale.`
\begin{sidewaystable}%\begin{table}
\begin{tabular}{|r|l|rrr|rrrr|rrrr|}
%TITOLO
\hline
\multicolumn{13}{|c|}{\textbf{Distribuzione utenti alcoldipendenti}}\\\hline
%SOTTOTITOLI
\textbf{ASL} & \textbf{Ser.T} & \multicolumn{3}{|c|}{\textbf{Nuovi utenti}}& \multicolumn{4}{|c|}{\textbf{Utenti gi\`a in carico}} & \multicolumn{4}{|c|}{\textbf{Totale utenti}}\\& & maschi & femmine & Tot & maschi & femmine & Tot & \% & maschi & femmine & Tot & Tasso stat.\\
\hline%RISULTATI
1 & \emph{Totale} & \textit{49} & \textit{18} & \textit{67} & \textit{177} & \textit{55} & \textit{232} & \textit{77.6} & \textit{226} & \textit{73} & \textit{299} & \textit{114.19}\\
& V. Passalacqua & 11 & 3 & 14 & 54 & 17 & 71 & 83.5 & 65 & 20 & 85 & 100.79\\
& V. Lombroso & 11 & 3 & 14 & 19 & 6 & 25 & 64.1 & 30 & 9 & 39 & 65.36\\
& V. Montevideo & 15 & 7 & 22 & 49 & 21 & 70 & 76.1 & 64 & 28 & 92 & 118.88\\
& V. Farinelli & 12 & 5 & 17 & 55 & 11 & 66 & 79.5 & 67 & 16 & 83 & 207.56\\
\hline%ALTRI DATI (7-10)
\end{tabular}
%\label{tab:epidemiologia}
%\caption{Distribuzione utenti alcoldipendenti relativi alle 1-10 di Torino aggiornata al 2004}
%\end{table}\end{sidewaystable}
`Uso come editor TeXmaker per Wxp con Miktex 2.6, il QuickBuild usa latex->dvipdfm
il mio preambolo è:
`
\documentclass[11pt,trieste]{toptesi}
\usepackage{rotating}
`Ho deciso di togliere il TITOLO della tabella e mettere un caption; girando un po per la rete ho trovato questi:
http://www.guit.sssup.it/phpbb/viewtopic.php?t=3071
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/latex_advanced/node23.html
così ho scoperto che dovevo usare Table. Usando Table non mi compila più, mi restituisce il seguente errore[12]
! LaTeX Error: Not in outer par mode.
See the LaTeX manual or LaTeX Companion for explanation.
Type Hfor immediate help.
Volevo premere H per vedere cosa consigliava solo che se lo faccio da cmd :
latex tesi.tex
mi restituisce:
! LaTeX Error: File `imgs/logounito’ not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type Hfor immediate help.
…l.37 \frontespizio
che mi sembra molto strano.
L’errore sul logo non ha nulla a che fare con la tua faccenda, direi.
La soluzione è che se hai una tabella ruotata anche la didascalia deve essere ruotata ed è esattamente ciò che ottieni con l’ambiente sidewaystable se togli il commento davanti a \caption.
Come sempre, il consiglio è di usare anche il pacchetto booktabs e cambiare la tua tabella così:
`\begin{sidewaystable}
\begin{tabular}{rlrrrrrrrrrrr}
%TITOLO
\toprule
\multicolumn{13}{c}{\textbf{Distribuzione utenti alcoldipendenti}}\\
\midrule
%SOTTOTITOLI
\textbf{ASL} & \textbf{Ser.T} & \multicolumn{3}{c}{\textbf{Nuovi utenti}}&
\multicolumn{4}{c}{\textbf{Utenti gi\`a in carico}} &
\multicolumn{4}{c}{\textbf{Totale utenti}}\\
& & maschi & femmine & Tot & maschi & femmine & Tot & \% &
maschi & femmine & Tot & Tasso stat.\\
\cmidrule(r){1-1}\cmidrule(lr){2-2}\cmidrule(lr){3-5}\cmidrule(lr){6-9}\cmidrule(l){10-13}
%RISULTATI
1 & \emph{Totale} & \textit{49} & \textit{18} & \textit{67} & \textit{177} & \textit{55} &
\textit{232} & \textit{77.6} & \textit{226} & \textit{73} & \textit{299} & \textit{114.19}\\
& V. Passalacqua & 11 & 3 & 14 & 54 & 17 & 71 & 83.5 & 65 & 20 & 85 & 100.79\\
& V. Lombroso & 11 & 3 & 14 & 19 & 6 & 25 & 64.1 & 30 & 9 & 39 & 65.36\\
& V. Montevideo & 15 & 7 & 22 & 49 & 21 & 70 & 76.1 & 64 & 28 & 92 & 118.88\\
& V. Farinelli & 12 & 5 & 17 & 55 & 11 & 66 & 79.5 & 67 & 16 & 83 & 207.56\\
\cmidrule(r){1-1}\cmidrule(lr){2-2}\cmidrule(lr){3-5}\cmidrule(lr){6-9}\cmidrule(l){10-13}
%ALTRI DATI (7-10)
\bottomrule
\end{tabular}
\label{tab:epidemiologia}
\caption{Distribuzione utenti alcoldipendenti relativi alle 1-10 di Torino aggiornata al 2004}
\end{sidewaystable}`
Un’ultima cosa: dvipdfm è un programma obsoleto. Usa la compilazione direttamente in pdflatex e vivi felice.
Ciao
Enrico