Problema con Tabella

  • Creatore
    Topic
  • #103819
    Claudia
    Partecipante
      Up
      0
      Down
      ::


      Ciao a tutti! Sto scrivendo la mia tesi con Latex e ho trasformato con la macro di Excel delle tabelle da mettere in appendice.
      Inserisco il codice generato, ma purtroppo nonni genera la pagina e la tabella 🙁

      Metto di seguito il codice della prima tabella…ne ho altre 31 uguali….La cosa strana è che in altri capitolo ho messo altre tabelle e ha funzionato.

      \chapter {Tabelle di Inventario}

      Di seguito vengono riportate, suddivise per sistema, le tabelle di inventario complete.

      \section {\textit{Brake System}}

      \subsection {\textit{Embodied Energy – Material}

      \begin{table}[htbp]
      \centering
      \caption{\textit{Embodied Energy – Material}}
      \resizebox{0.8\columnwidth}{!}{%
      \begin{tabular}{rccccccc}
      \toprule
      Component & \textbf{Material} & \textbf{Recycled content*
      (\%)} & \textbf{Part mass
      (kg)} & \textbf{Qty.} & \textbf{Total mass
      (kg)} & \textbf{Energy
      (MJ)} & \textbf{\%} \\
      \midrule
      \textbf{Brake Caliper – Front} & Al-12\%SiC(p) & Virgin (0\%) & 1,76 & 2 & 3,52 & 717,22 & 29,8 \\
      \textbf{Brake Caliper – Rear} & Al-12\%SiC(p) & Virgin (0\%) & 1,72 & 2 & 3,44 & 700,92 & 29,2 \\
      \textbf{Brake Discs – Brake Discs} & Stainless steel, ferritic, AISI 444, wrought, annealed & Virgin (0\%) & 2,20 & 4 & 8,80 & 442,09 & 18,4 \\
      \textbf{Brake Discs – Keys} & Aluminum, 6063, wrought, T4 & Virgin (0\%) & 0,04 & 24 & 0,96 & 191,76 & 8,0 \\
      \textbf{Brake Discs – Brake Flange} & Aluminum, 6063, wrought, T4 & Virgin (0\%) & 0,17 & 4 & 0,68 & 135,83 & 5,7 \\
      \textbf{Brake Pads} & Graphite (extruded) & Virgin (0\%) & 0,23 & 4 & 0,92 & 201,71 & 8,4 \\
      \textbf{Master Cylinder – Balance Bar} & Low alloy steel, AISI 4130, air melted, normalized & Virgin (0\%) & 0,10 & 1 & 0,10 & 3,23 & 0,1 \\
      \textbf{Master Cylinder – Balance Bar Pin} & Low alloy steel, AISI 4130, air melted, normalized & Virgin (0\%) & 0,34 & 1 & 0,34 & 10,99 & 0,5 \\
      Total & \textbf{} & \textbf{} & \textbf{} & \textbf{42} & \textbf{18,76} & \textbf{2403,74} & \textbf{100} \\
      \bottomrule
      \end{tabular}}%
      \label{tab:EmbodiedEnergyBRMat}%
      \end{table}%

      Grazie per l’aiuto

    Visualizzazione 3 filoni di risposte
    • Autore
      Risposte
      • #103820
        Up
        0
        Down
        ::


        Benvenuta!

        Devi caricare due pacchetti: graphicx e booktabs.

        La prossima volta manda un esempio minimo compilabile, come il seguente, e metti il codice negli appositi tag
        in modo che sia più facilmente visibile sul forum.

        `
        \documentclass{book}

        \usepackage{graphicx}
        \usepackage{booktabs}

        \begin{document}

        \begin{table}
        \centering
        \caption{\textit{Embodied Energy – Material}}
        \resizebox{0.8\columnwidth}{!}{%
        \begin{tabular}{rccccccc}
        \toprule
        Component & \textbf{Material} & \textbf{Recycled content*
        (\%)} & \textbf{Part mass
        (kg)} & \textbf{Qty.} & \textbf{Total mass
        (kg)} & \textbf{Energy
        (MJ)} & \textbf{\%} \\
        \midrule
        \textbf{Brake Caliper – Front} & Al-12\%SiC(p) & Virgin (0\%) & 1,76 & 2 & 3,52 & 717,22 & 29,8 \\
        \textbf{Brake Caliper – Rear} & Al-12\%SiC(p) & Virgin (0\%) & 1,72 & 2 & 3,44 & 700,92 & 29,2 \\
        \textbf{Brake Discs – Brake Discs} & Stainless steel, ferritic, AISI 444, wrought, annealed & Virgin (0\%) & 2,20 & 4 & 8,80 & 442,09 & 18,4 \\
        \textbf{Brake Discs – Keys} & Aluminum, 6063, wrought, T4 & Virgin (0\%) & 0,04 & 24 & 0,96 & 191,76 & 8,0 \\
        \textbf{Brake Discs – Brake Flange} & Aluminum, 6063, wrought, T4 & Virgin (0\%) & 0,17 & 4 & 0,68 & 135,83 & 5,7 \\
        \textbf{Brake Pads} & Graphite (extruded) & Virgin (0\%) & 0,23 & 4 & 0,92 & 201,71 & 8,4 \\
        \textbf{Master Cylinder – Balance Bar} & Low alloy steel, AISI 4130, air melted, normalized & Virgin (0\%) & 0,10 & 1 & 0,10 & 3,23 & 0,1 \\
        \textbf{Master Cylinder – Balance Bar Pin} & Low alloy steel, AISI 4130, air melted, normalized & Virgin (0\%) & 0,34 & 1 & 0,34 & 10,99 & 0,5 \\
        Total & \textbf{} & \textbf{} & \textbf{} & \textbf{42} & \textbf{18,76} & \textbf{2403,74} & \textbf{100} \\
        \bottomrule
        \end{tabular}}%
        \label{tab:EmbodiedEnergyBRMat}%
        \end{table}

        \end{document}`

        Ciao
        Ivan

      • #103821
        Claudia
        Partecipante
          Up
          0
          Down
          ::


          Grazie mille per la risposta! Il fatto è che i due pacchetti sono caricati, già nel file master e difatti in altri capitoli altre tabelle riesco a inserirle…..

          Ti allego il file principale e quello di appendice….Sperando che vada bene e tu riesca a capire!

          Grazie mille

          Claudia

          Attachments:
          You must be logged in to view attached files.
        • #103822
          Up
          0
          Down
          ::


          C’era qualche carattere strano nell’ultima riga \end {document} e qualche parentesi } mancante in \section e \subsection. Erano posizionate male anche \caption e \label
          Ora l’esempio compila.
          `\documentclass[a4paper,12pt,pdfa,cucitura,oneside,openrights]{toptesi}

          \usepackage{graphicx,booktabs}

          \begin{document}

          \chapter {Tabelle di Inventario}

          Di seguito vengono riportate, suddivise per sistema, le tabelle di inventario complete.

          \section {\textit{Brake System}}

          \subsection {\textit{Embodied Energy – Material}}

          \begin{table}[htbp]
          \centering
          \caption{\textit{Embodied Energy – Material}} \label{tab:EmbodiedEnergyBRMat}%
          \resizebox{1\columnwidth}{!}{%
          \begin{tabular}{rccccccc}
          \toprule
          Component & \textbf{Material} & \textbf{Recycled content*
          (\%)} & \textbf{Part mass
          (kg)} & \textbf{Qty.} & \textbf{Total mass
          (kg)} & \textbf{Energy
          (MJ)} & \textbf{\%} \\
          \midrule
          \textbf{Brake Caliper – Front} & Al-12\%SiC(p) & Virgin (0\%) & 1,76 & 2 & 3,52 & 717,22 & 29,8 \\
          \textbf{Brake Caliper – Rear} & Al-12\%SiC(p) & Virgin (0\%) & 1,72 & 2 & 3,44 & 700,92 & 29,2 \\
          \textbf{Brake Discs – Brake Discs} & Stainless steel, ferritic, AISI 444, wrought, annealed & Virgin (0\%) & 2,20 & 4 & 8,80 & 442,09 & 18,4 \\
          \textbf{Brake Discs – Keys} & Aluminum, 6063, wrought, T4 & Virgin (0\%) & 0,04 & 24 & 0,96 & 191,76 & 8,0 \\
          \textbf{Brake Discs – Brake Flange} & Aluminum, 6063, wrought, T4 & Virgin (0\%) & 0,17 & 4 & 0,68 & 135,83 & 5,7 \\
          \textbf{Brake Pads} & Graphite (extruded) & Virgin (0\%) & 0,23 & 4 & 0,92 & 201,71 & 8,4 \\
          \textbf{Master Cylinder – Balance Bar} & Low alloy steel, AISI 4130, air melted, normalized & Virgin (0\%) & 0,10 & 1 & 0,10 & 3,23 & 0,1 \\
          \textbf{Master Cylinder – Balance Bar Pin} & Low alloy steel, AISI 4130, air melted, normalized & Virgin (0\%) & 0,34 & 1 & 0,34 & 10,99 & 0,5 \\
          Total & \textbf{} & \textbf{} & \textbf{} & \textbf{42} & \textbf{18,76} & \textbf{2403,74} & \textbf{100} \\
          \bottomrule
          \end{tabular}}%
          \end{table}%

          \subsection {\textit{Embodied Energy – Manufacture}}

          \begin{table}[htbp]
          \centering
          \caption{\textit{Embodied Energy – Manufacture}}
          \resizebox{1\columnwidth}{!}{%
          \begin{tabular}{rrrcc}
          \toprule
          Component & \multicolumn{1}{c}{\textbf{Process}} & \multicolumn{1}{c}{\textbf{Amount processed}} & \textbf{Energy
          (MJ)} & \textbf{\%} \\
          \midrule
          \textbf{Brake Caliper – Front} & \multicolumn{1}{c}{Metal powder forming} & 3,52 & 85,79 & 42,5 \\
          \textbf{Brake Caliper – Rear} & \multicolumn{1}{c}{Metal powder forming} & 3,44 & 83,84 & 41,6 \\
          \textbf{Brake Discs – Brake Discs} & \multicolumn{1}{c}{Rough rolling} & 8,80 & 25,94 & 12,9 \\
          \textbf{Brake Discs – Keys} & \multicolumn{1}{c}{Rough rolling} & 0,96 & 2,42 & 1,2 \\
          \textbf{Brake Discs – Brake Flange} & \multicolumn{1}{c}{Rough rolling} & 0,68 & 1,71 & 0,9 \\
          \textbf{Master Cylinder – Balance Bar} & \multicolumn{1}{c}{Rough rolling} & 0,10 & 0,46 & 0,2 \\
          \textbf{Master Cylinder – Balance Bar Pin} & \multicolumn{1}{c}{Rough rolling} & 0,34 & 1,57 & 0,8 \\
          Total & \textbf{} & \textbf{} & \textbf{201,74} & \textbf{100} \\
          \bottomrule
          \end{tabular}}%
          \label{tab:EmbodiedEnergyBRMan}%
          \end{table}

          \subsection {\textit{CO\ped{2} Footprint – Material}}

          \begin{table}[htbp]
          \centering
          \caption{\textit{CO\ped{2} Footprint – Material}}
          \begin{tabular}{rccccccc}
          \toprule
          Component & \textbf{Material} & \textbf{Recycled content*
          (\%)} & \textbf{Part mass
          (kg)} & \textbf{Qty.} & \textbf{Total mass
          (kg)} & \textbf{CO2 footprint
          (kg)} & \textbf{\%} \\
          \midrule
          \textbf{Brake Caliper – Front} & Al-12\%SiC(p) & Virgin (0\%) & 1,76 & 2 & 3,52 & 46,42 & 28,5 \\
          \textbf{Brake Caliper – Rear} & Al-12\%SiC(p) & Virgin (0\%) & 1,72 & 2 & 3,44 & 45,36 & 27,8 \\
          \textbf{Brake Discs – Brake Discs} & Stainless steel, ferritic, AISI 444, wrought, annealed & Virgin (0\%) & 2,20 & 4 & 8,80 & 33,53 & 20,6 \\
          \textbf{Brake Discs – Keys} & Aluminum, 6063, wrought, T4 & Virgin (0\%) & 0,04 & 24 & 0,96 & 12,61 & 7,7 \\
          \textbf{Brake Discs – Brake Flange} & Aluminum, 6063, wrought, T4 & Virgin (0\%) & 0,17 & 4 & 0,68 & 8,93 & 5,5 \\
          \textbf{Brake Pads} & Graphite (extruded) & Virgin (0\%) & 0,23 & 4 & 0,92 & 15,25 & 9,3 \\
          \textbf{Master Cylinder – Balance Bar} & Low alloy steel, AISI 4130, air melted, normalized & Virgin (0\%) & 0,10 & 1 & 0,10 & 0,24 & 0,1 \\
          \textbf{Master Cylinder – Balance Bar Pin} & Low alloy steel, AISI 4130, air melted, normalized & Virgin (0\%) & 0,34 & 1 & 0,34 & 0,81 & 0,5 \\
          Total & \textbf{} & \textbf{} & \textbf{} & \textbf{42} & \textbf{18,76} & \textbf{163,15} & \textbf{100} \\
          \bottomrule
          \end{tabular}%
          \label{tab:CO2BRMat}%
          \end{table}%
          \end{document}
          `

          Ciao
          Ivan

        • #103823
          Claudia
          Partecipante
            Up
            0
            Down
            ::


            Ahahah Maledette parentesi!!! E dire che l’avevo controllato mille volte!

            Grazie mille! 🙂

            Claudia

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

        Go to top