tabella grande in una pagina

  • Creatore
    Topic
  • #101523
    Up
    0
    Down
    ::


    Cari ragazzi come posso fare entrare tutta questa tabella in una pagina ?
    `\begin{table}[h]
    \begin{tabular}{|l|l|l|l|l|l|l|l|l|}
    \hline
    \textbf{} & \textbf{tal quale} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 50 gradi 2h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno\\ 100 °C 1 h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 100°C 2h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 150°C 15 min\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 150°C 1h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 150 °C 2h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}deposizione \\ in temperatura\\ 100 °C2 h\end{tabular}} \\ \hline
    \textbf{durezza {[}HV{]}} & 129,75 $\pm$0,5 & 128,75 $\pm$0,96 & 129,25 $\pm$0,96 & 128$\pm$ 2,94 & 137$\pm$ 2,16 & 129,5$\pm$ 1,9 & 121,75 $\pm$2,98 & 149,5 $\pm$0,5 \\ \hline
    \textbf{\begin{tabular}[c]{@{}l@{}}lunghezza\\ media\\ delle cricche \\ {[}\textmu m{]}\end{tabular}} & 11,15$\pm$ 4,17 & 15,09 $\pm$5,08 & 13,75$\pm$6,9 & 11,09$\pm$ 6,05 & 19,61$\pm$ 8,48 & 16,73 $\pm$10,07 & 14,81 $\pm$8,13 & 12,9$\pm$ 6,91 \\ \hline
    \textbf{\begin{tabular}[c]{@{}l@{}}numero di \\ cricche\end{tabular}} & 11 & 24 & 35 & 11 & 10 & 5 & 23 & 45 \\ \hline
    \textbf{\begin{tabular}[c]{@{}l@{}}frequenza \\ di occorrenza\\ cricche{[}\%{]}\end{tabular}} & 0,372 & 0,769 & 0,713 & 0,641 & 0,873 & 0,699 & 0,983 & 0,547 \\ \hline
    \textbf{\begin{tabular}[c]{@{}l@{}}porosità\\ percentuale\end{tabular}} & \textbackslash & \textbackslash & \textbackslash & \textbackslash & \textbackslash & \textbackslash & \textbackslash & \textbackslash \\ \hline
    \end{tabular}
    \caption{Tabella unificatrice di tutti i dati}
    \label{generale}
    \end{table}`

Visualizzazione 4 filoni di risposte
  • Autore
    Risposte
    • #101524
      OldClaudio
      Partecipante
        Up
        0
        Down
        ::


        Sì, ruotandola di 90°, come in questo esempio compilabile:`\documentclass{article}
        \usepackage[utf8]{inputenc}
        \usepackage[T1]{fontenc}
        \usepackage{lmodern,textcomp}
        \usepackage{rotating}

        \begin{document}
        %\begin{table}
        \begin{sidewaystable}\small
        \begin{tabular}{|l|l|l|l|l|l|l|l|l|}
        \hline
        \textbf{} & \textbf{tal quale} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 50 gradi 2h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno\\ 100 °C 1 h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 100°C 2h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 150°C 15 min\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 150°C 1h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}forno \\ 150 °C 2h\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}deposizione \\ in temperatura\\ 100 °C2 h\end{tabular}} \\ \hline
        \textbf{durezza {[}HV{]}} & 129,75 $\pm$0,5 & 128,75 $\pm$0,96 & 129,25 $\pm$0,96 & 128$\pm$ 2,94 & 137$\pm$ 2,16 & 129,5$\pm$ 1,9 & 121,75 $\pm$2,98 & 149,5 $\pm$0,5 \\ \hline
        \textbf{\begin{tabular}[c]{@{}l@{}}lunghezza\\ media\\ delle cricche \\ {[}\textmu m{]}\end{tabular}} & 11,15$\pm$ 4,17 & 15,09 $\pm$5,08 & 13,75$\pm$6,9 & 11,09$\pm$ 6,05 & 19,61$\pm$ 8,48 & 16,73 $\pm$10,07 & 14,81 $\pm$8,13 & 12,9$\pm$ 6,91 \\ \hline
        \textbf{\begin{tabular}[c]{@{}l@{}}numero di \\ cricche\end{tabular}} & 11 & 24 & 35 & 11 & 10 & 5 & 23 & 45 \\ \hline
        \textbf{\begin{tabular}[c]{@{}l@{}}frequenza \\ di occorrenza\\ cricche{[}\%{]}\end{tabular}} & 0,372 & 0,769 & 0,713 & 0,641 & 0,873 & 0,699 & 0,983 & 0,547 \\ \hline
        \textbf{\begin{tabular}[c]{@{}l@{}}porosità\\ percentuale\end{tabular}} & \textbackslash & \textbackslash & \textbackslash & \textbackslash & \textbackslash & \textbackslash & \textbackslash & \textbackslash \\ \hline
        \end{tabular}
        \caption{Tabella unificatrice di tutti i dati}
        \label{generale}
        \end{sidewaystable}
        %\end{table}
        \end{document}`Se hai bisogno di modifiche, leggiti la documentazione del pacchetto rotating.

        Questo è ul tipico esempio di una tabella che starebbe in una pagina se scambiassi le righe con le colonne. inoltre il codice sarebbe molto più leggibile se usassi il pacchetto array e i suoi nuovi descrittori di colonne, in particolare [tt]m{…}[/tt] senza mettere dei tebular dentro le celle di un altro tabular.
        Comunque anche così, e con il font \small si riesce a far stare il tutto dentro una pagina.

      • #101525
        Up
        0
        Down
        ::


        ma è possibile senza farla ruotare ?

      • #101526
        Up
        0
        Down
        ::


        `\begin{table}[h]
        \begin{tabular}{|l|l|l|l|l|}
        \hline
        & \textbf{durezza {[}HV{]}} & \textbf{\begin{tabular}[c]{@{}l@{}}lunghezza \\ media delle \\ cricche {[}\textmu m{]}\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}numero di \\ cricche\end{tabular}} & \textbf{\begin{tabular}[c]{@{}l@{}}frequenza di \\ occorrenza \\cricche{[}\%{]}\end{tabular}} \\ \hline
        \textbf{tal quale} & 129,75$\pm$ 0,5 & 11,15$\pm$ 4,17 & 11 & 0,372 \\ \hline
        \textbf{forno 50 gradi 2h} & 128,75 $\pm$0,96 & 15,09$\pm$,5,08 & 24 & 0,769 \\ \hline
        \textbf{forno 100 °C 1 h} & 129,25$\pm$ 0,96 & 13,75 $\pm$6,9 & 35 & 0,713 \\ \hline
        \textbf{forno 100°C 2h} & 128 $\pm$2,94 & 11,09 $\pm$6,05 & 11 & 0,641 \\ \hline
        \textbf{forno 150°C 15 min} & 137$\pm$ 2,16 & 19,61$\pm$ 8,48 & 10 & 0,873 \\ \hline
        \textbf{forno 150°C 1h} & 129,5 $\pm$1,9 & 16,73$\pm$ 10,07 & 5 & 0,699 \\ \hline
        \textbf{forno 150 °C 2h} & 121,75 $\pm$2,98 & 14,81 $\pm$8,13 & 23 & 0,983 \\ \hline
        \textbf{\begin{tabular}[c]{@{}l@{}}deposizione in \\ temperatura 100 °C2 h\end{tabular}} & 149,5$\pm$ 0,5 & 12,9$\pm$ 6,91 & 45 & 0,547 \\ \hline
        \end{tabular}

        \caption{Tabella unificatrice di tutti i dati}
        \label{generale}
        \end{table}`
        guarda come l’ho generato

      • #101527
        OldClaudio
        Partecipante
          Up
          0
          Down
          ::


          Be’, certo; prima era una tabella con 9 colonne; ora è una tabella con 5 colonne…Ovviamente non contiene gli stessi dati.
          Non usare tabular dentro tabular; non è un errore, perché può servire con certe tabelle complicate; nel tuo caso hai altri mezzi più efficaci per ottenere quello che ottieni in modo arzigogolato con i tabular annidati. Ti ho già suggerito come fare nel precedente messaggio.

          Comunque ti ricordo che le unità di misura nelle intestazioni delle colonne e delle righe non devono essere scritte fra parentesi quadre (è concettualmente sbagliato) ma fra parentesi tonde.

        • #101528
          Up
          0
          Down
          ::


          Grazie lo farò.

      Visualizzazione 4 filoni di risposte
      • Devi essere connesso per rispondere a questo topic.

      Go to top