Note nelle tabelle

  • Creatore
    Topic
  • #80327
    Up
    0
    Down
    ::


    Buongiorno a tutti,
    Ho cercato di risolvere il probelma in due modi, il primo è molto semplice ma mi crea dei problemi con le note a fondo tabella, il secondo invece non mi scrive i corretti indici. Comunque il primo metodo che ho usato è:

    `
    begin{table}[p]
    \begin{minipage}{\textwidth}
    \centering
    \caption{\cdots} \label{\cdots}
    \small
    \begin{tabular}{*2{m{.1\textwidth}}m{.15\textwidth}m{.08\textwidth}m{.24\textwidth}m{.16\textwidth}}
    \toprule
    \textbf{\cdots $^a$} & \textbf{\cdots} & \textbf{\cdots} & \textbf{\cdots} &\textbf{\cdots} & \textbf{\cdots}\\
    \midrule
    \cdots & \cdots & \cdots & \cdots & \cdots &\cdots\\
    \midrule
    \cdots & \cdots & \cdots & \cdots & \cdots &\cdots\\
    \midrule
    \cdots & \cdots & \cdots & \cdots & \cdots &\cdots\\
    \midrule
    \cdots & \cdots & \cdots & \cdots & \cdots &\cdots\\
    \midrule
    \cdots & \cdots & \cdots & $^b$ & \cdots &\cdots\\
    \midrule
    \cdots & \cdots & \cdots & $^b$ & \cdots &\cdots\\
    \midrule
    \cdots & \cdots & \cdots & $^b$ & \cdots &\cdots\\
    \bottomrule
    \multicolumn{6}{l}{$^a$ \cdot} \\
    \multicolumn{6}{l}{$^b$ \cdot}\\
    \end{tabular}
    \end{minipage}
    \end{table}
    `

    le note vengono inserite come elementi matematici ma l’unico problema è le ultime due righe

    `
    \multicolumn{6}{l}{$^a$ \cdot} \\
    \multicolumn{6}{l}{$^b$ \cdot}\\
    `

    sono corrette ma escono dal foglio. Sapete darmi qualche soluzione per sistemarle?

    Ho anche provato \footnotemark[1] e \footnotemark[2] (al posto di $^a$ e $^b$) ma quando scrivo le note a fondo tabella:

    `
    \footnotetext[1]{\cdots}
    \footnotetext[2]{\cdots}
    `

    nella tabella ho le note ad apice come 1 e 2 mentre quando scrivo il testo, mi scrive a e b. Sapete dove ho sbagliato?

    Grazie

Visualizzazione 4 filoni di risposte
  • Autore
    Risposte
    • #80328
      Up
      0
      Down
      ::


      Un esempio vero sarebbe utile.

      Ciao
      Enrico

    • #80329
      Up
      0
      Down
      ::


      Va bene,

      questo è quello che a me serve
      [attachment=503]tabella1.png[/attachment]
      ma al posto di * e ** ho messo le note che si vedono così
      [attachment=504]tabella1ERR.jpg[/attachment]
      che però la nota b fuoriesce dal foglio
      mentre con \footnotemark e \footnotetext ho
      [attachment=505]TabellaFootnote.jpg[/attachment]

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


      Va bene,

      questo è quello che a me serve

      [attachment:1]tabella1.png[/attachment]

      ma al posto di * e ** ho messo le note che si vedono così

      [attachment:2]tabella1ERR.jpg[/attachment]

      mentre con \footnotemark e \footnotetext ho

      [attachment:3]TabellaFootnote.jpg[/attachment]

    • #80331
      Up
      0
      Down
      ::


      Un esempio di codice.

      Nelle mie note sulla programmazione in LaTeX si trova proprio un esempio adatto. Quando aggiungerai un esempio di codice con la tabella incriminata (togli i dati protetti, se ce ne sono), ti posso dire di più.

      Esiste anche il pacchetto threeparttable che potrebbe essere adatto, ma a me non piace.

      Ciao
      Enrico

    • #80332
      Up
      0
      Down
      ::


      Allora se non erro ti serve qualcosa come:

      `
      \documentclass[11pt, a4paper, twoside,openright]{book}

      \usepackage{booktabs}
      \usepackage{tabularx}
      \usepackage{array}
      \usepackage{dcolumn}
      \usepackage[singlelinecheck=true,font=small,labelfont=bf,textfont=sl]{caption}
      \usepackage{multirow}
      \usepackage{longtable}
      \usepackage[pdftex]{rotating}
      \usepackage{pdfpages}

      \begin{document}

      \begin{table}[p]
      \begin{minipage}{\textwidth}
      \centering
      \caption{text} \label{text}
      \small
      \begin{tabular}{*2{m{.1\textwidth}}m{.15\textwidth}m{.08\textwidth}m{.24\textwidth}m{.16\textwidth}}
      \toprule
      \textbf{text $^a$} & \textbf{text} & \textbf{text} & \textbf{text} &\textbf{text} & \textbf{text}\\
      \midrule
      text & text & text & text & text &text\\
      \midrule
      text & text & text & text & text &text\\
      \midrule
      text & text & text & text & text &text\\
      \midrule
      text & text & text & text & text &text\\
      \midrule
      text & text & text & $^b$ & text &text\\
      \midrule
      text & text & text & $^b$ & text &text\\
      \midrule
      text & text & text & $^b$ & text &text\\
      \bottomrule
      \multicolumn{6}{l}{$^a$ text} \\
      \multicolumn{6}{l}{$^b$ text}\\
      \end{tabular}
      \end{minipage}
      \end{table}

      \end{document}
      `

      in questo caso la nota b fuoriesce dal foglio mentre nel caso seguente con \footmarknote e \foottextnote:

      `
      \documentclass[11pt, a4paper, twoside,openright]{book}

      \usepackage{booktabs}
      \usepackage{tabularx}
      \usepackage{array}
      \usepackage{dcolumn}
      \usepackage[singlelinecheck=true,font=small,labelfont=bf,textfont=sl]{caption}
      \usepackage{multirow}
      \usepackage{longtable}
      \usepackage[pdftex]{rotating}
      \usepackage{pdfpages}

      \begin{document}

      \begin{table}[p]
      \begin{minipage}{\textwidth}
      \centering
      \caption{text} \label{text}
      \small
      \begin{tabular}{*2{m{.1\textwidth}}m{.15\textwidth}m{.08\textwidth}m{.24\textwidth}m{.16\textwidth}}
      \toprule
      \textbf{text \footnotemark[1]} & \textbf{text} & \textbf{text} & \textbf{text} &\textbf{text} & \textbf{text}\\
      \midrule
      text & text & text & text & text &text\\
      \midrule
      text & text & text & text & text &text\\
      \midrule
      text & text & text & text & text &text\\
      \midrule
      text & text & text & text & text &text\\
      \midrule
      text & text & text &\footnotemark[2] & text &text\\
      \midrule
      text & text & text & \footnotemark[2] & text &text\\
      \midrule
      text & text & text &\footnotemark[2] & text &text\\
      \bottomrule
      \footnotetext[1]{TEXT}
      \footnotetext[2]{TEXT}
      \end{tabular}
      \end{minipage}
      \end{table}

      \end{document}
      `

      L’indice delle note e sbagliato

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

Go to top