Posizionamento sotto tabelle

  • Creatore
    Topic
  • #47868
    Up
    0
    Down
    ::


    Ciao a tutti,
    dovrei realizzare una tabella costituita da 3 sottotabelle disposte una sotto l’altra. Ho usato il pacchetto subfig. con il seguente codice:

    \begin{table}[!tb]
    \caption{Mean value, symmetric standard deviation (SSD), asymmetric standard deviation (ASD) and range of percentage of identified marker, time needed to execute the test, distance covered by the robot arm EE, number of magnetic link losses ($\#$MLLs) and robot EE mean velocity for the three interfaces}
    \label{ist}
    \centering
    \subfloat[]{
    \begin{tabular}{|p{0.16\textwidth}|p{0.03\textwidth}|p{0.03\textwidth}|p{0.08\textwidth}|p{0.07\textwidth}|p{0.05\textwidth}|p{0.05\textwidth}|p{0.05\textwidth}|p{0.10\textwidth}|p{0.10\textwidth}|}

    \hline
    \textbf{HR cooperative control} & \textbf{Mean} & \textbf{SSD} & \textbf{ASD} & \textbf{Range} \\

    \hline
    \textbf{Marker [$\%$]}&84.6 &6.2 &+6.9/-6.5 &72.7-92.3 \\

    \hline
    \textbf{Time }&298& 95&+81/-69 &157-499 \\

    \hline
    \textbf{Distance [m]}&2.6&1.2&+1.1/-1.2&1-5.2 \\

    \hline
    \textbf{$\#$MLLs}&3.5&1.5&+1.7/-1.8&0-6 \\

    \hline
    \textbf{EE velocity [mm/s]}&8.9&3.4&+2.9/-3.5&5.4-16.5 \\

    \hline
    \end{tabular}
    }
    \subfloat[]{
    \begin{tabular}{|p{0.16\textwidth}|p{0.03\textwidth}|p{0.03\textwidth}|p{0.08\textwidth}|p{0.07\textwidth}|p{0.05\textwidth}|p{0.05\textwidth}|p{0.05\textwidth}|p{0.10\textwidth}|p{0.10\textwidth}|}

    \hline
    \textbf{3DConnexion T. control} & \textbf{Mean} & \textbf{SSD} & \textbf{ASD} & \textbf{Range} \\

    \hline
    \textbf{Marker [$\%$]}&79.6 &11.3&+11.2/-11.7 &55.6-92.3 \\

    \hline
    \textbf{Time }&440&124&+148/-146& 264-707 \\

    \hline
    \textbf{Distance [m]}&1.3& 0.4&+0.5/-0.5&0.7-2.0 \\

    \hline
    \textbf{$\#$MLLs}& 1.9&1.2&+1.1/-0.9& 0-4 \\

    \hline
    \textbf{EE velocity [mm/s]}&3.0&0.8&+0.6/-0.6&2.0-5.1 \\

    \hline
    \end{tabular}
    }
    \subfloat[]{
    \begin{tabular}{|p{0.16\textwidth}|p{0.03\textwidth}|p{0.03\textwidth}|p{0.08\textwidth}|p{0.07\textwidth}|p{0.05\textwidth}|p{0.05\textwidth}|p{0.05\textwidth}|p{0.10\textwidth}|p{0.10\textwidth}|}
    \hline
    \textbf{Phantom T. control} & \textbf{Mean} & \textbf{SSD} & \textbf{ASD} & \textbf{Range} \\
    \hline
    \textbf{Marker [$\%$]}&79.6 &10.6&+12.8/-12.2&55.6-90.9 \\
    \hline
    \textbf{Time }&573&216&+172/-182&280-1006 \\
    \hline
    \textbf{Distance [m]}&1.1&0.5&+0.5/-0.47& 0.4-2.2 \\
    \hline
    \textbf{$\#$MLLs}&2.0&1.1&+1/-0.9&0-4 \\
    \hline
    \textbf{EE velocity [mm/s]}&1.9&0.7&+0.9/-0.8& 1.1-3.7 \\
    \hline
    \end{tabular}
    }

    \end{table}

    Purtroppo in questo modo le tabelle mi vengono disposte una accanto all’altro, Come posso fare per disporle una sotto l’altra?

    P.S. sto scrivendo un articolo a doppia colonna.

    Grazie dell’aiuto,

    A presto,

    Gioia

Visualizzazione 3 filoni di risposte
  • Autore
    Risposte
    • #47869
      admin
      Amministratore del forum
        Up
        0
        Down
        ::

        Ciao a tutti,
        . . .
        Gioia

        `\documentclass{book}
        \usepackage[margin=3cm]{geometry}
        \usepackage{subfig}
        \begin{document}
        \begin{table}[!tb]
        \caption{Mean value, symmetric standard deviation (SSD), asymmetric standard deviation (ASD) and range of percentage of identified marker, time needed to execute the test, distance covered by the robot arm EE, number of magnetic link losses ($\#$MLLs) and robot EE mean velocity for the three interfaces}
        \label{ist}
        \centering
        \subfloat[]{
        \begin{tabular}{|p{0.35\textwidth}|p{0.1\textwidth}|p{0.1\textwidth}|p{0.15\textwidth}|p{0.15\textwidth}|}
        \hline
        \textbf{HR cooperative control} & \textbf{Mean} & \textbf{SSD} & \textbf{ASD} & \textbf{Range} \\
        \hline
        \textbf{Marker [$\%$]}&84.6 &6.2 &+6.9/-6.5 &72.7-92.3 \\
        \hline
        \textbf{Time }&298& 95&+81/-69 &157-499 \\
        \hline
        \textbf{Distance [m]}&2.6&1.2&+1.1/-1.2&1-5.2 \\
        \hline
        \textbf{$\#$MLLs}&3.5&1.5&+1.7/-1.8&0-6 \\
        \hline
        \textbf{EE velocity [mm/s]}&8.9&3.4&+2.9/-3.5&5.4-16.5 \\
        \hline
        \end{tabular}
        }\\
        \subfloat[]{
        \begin{tabular}{|p{0.35\textwidth}|p{0.1\textwidth}|p{0.1\textwidth}|p{0.15\textwidth}|p{0.15\textwidth}|}
        \hline
        \textbf{3DConnexion T. control} & \textbf{Mean} & \textbf{SSD} & \textbf{ASD} & \textbf{Range} \\
        \hline
        \textbf{Marker [$\%$]}&79.6 &11.3&+11.2/-11.7 &55.6-92.3 \\
        \hline
        \textbf{Time }&440&124&+148/-146& 264-707 \\
        \hline
        \textbf{Distance [m]}&1.3& 0.4&+0.5/-0.5&0.7-2.0 \\
        \hline
        \textbf{$\#$MLLs}& 1.9&1.2&+1.1/-0.9& 0-4 \\
        \hline
        \textbf{EE velocity [mm/s]}&3.0&0.8&+0.6/-0.6&2.0-5.1 \\
        \hline
        \end{tabular}
        }\\
        \subfloat[]{
        \begin{tabular}{|p{0.35\textwidth}|p{0.1\textwidth}|p{0.1\textwidth}|p{0.15\textwidth}|p{0.15\textwidth}|}
        \hline
        \textbf{Phantom T. control} & \textbf{Mean} & \textbf{SSD} & \textbf{ASD} & \textbf{Range} \\
        \hline
        \textbf{Marker [$\%$]}&79.6 &10.6&+12.8/-12.2&55.6-90.9 \\
        \hline
        \textbf{Time }&573&216&+172/-182&280-1006 \\
        \hline
        \textbf{Distance [m]}&1.1&0.5&+0.5/-0.47& 0.4-2.2 \\
        \hline
        \textbf{$\#$MLLs}&2.0&1.1&+1/-0.9&0-4 \\
        \hline
        \textbf{EE velocity [mm/s]}&1.9&0.7&+0.9/-0.8& 1.1-3.7 \\
        \hline
        \end{tabular}
        }
        \end{table}
        \end{document} `

        1. Aspetta chi è più esperto di me per vedere se la soluzione è giusta;
        2. Ho anche modificato il preambolo delle tabelle perchè si sovrapponevano le intestazioni;
        3. Punto più importante: sei sicura che le unità di misura si scrivono in quel modo?

        Ciao,
        ansys.

      • #47870
        robitex
        Amministratore del forum
          Up
          0
          Down
          ::


          Ecco la mia versione, ancora migliorabile s’intende:

          `\documentclass{article}
          \usepackage{booktabs}

          \begin{document}

          {\newcommand{\ctitle}[1]{\multicolumn{1}{c}{\textbf{#1}}}
          \newcommand{\headerssd}{& \ctitle{Mean} & \ctitle{SSD} & \ctitle{ASD} & \ctitle{Range}}
          \newcommand\ee{\textsc{ee }}
          \footnotesize
          \setlength{\tabcolsep}{3.2pt}
          \begin{tabular}{*{10}{r}}
          \multicolumn{5}{c}{\textbf{HR cooperative control}}\\\midrule
          \headerssd\\\midrule
          Marker ($\%$) & 84.6 & 6.2 & +6.9/-6.5 & 72.7-92.3 \\
          Time (s) & 298 & 95 & +81/-69 & 157-499 \\
          Distance (m) & 2.6 & 1.2 & +1.1/-1.2 & 1-5.2 \\
          $\#$MLLs & 3.5 & 1.5 & +1.7/-1.8 & 0-6 \\
          \ee velocity (mm/s) & 8.9 & 3.4 & +2.9/-3.5 & 5.4-16.5 \\\bottomrule
          \\
          \multicolumn{5}{c}{\textbf{3D Connexion T. control}}\\\midrule
          \headerssd\\\midrule
          Marker ($\%$) & 79.6 & 11.3 & +11.2/-11.7 & 55.6-92.3 \\
          Time (s) & 440 & 124 & +148/-146 & 264-707 \\
          Distance (m) & 1.3 & 0.4 & +0.5/-0.5 & 0.7-2.0 \\
          $\#$MLLs & 1.9 & 1.2 & +1.1/-0.9 & 0-4 \\
          \ee velocity (mm/s) & 3.0 & 0.8 & +0.6/-0.6 & 2.0-5.1 \\\bottomrule
          \\
          \multicolumn{5}{c}{\textbf{Phantom T. control}}\\\midrule
          \headerssd\\\midrule
          Marker ($\%$) & 79.6 & 10.6 & +12.8/-12.2 & 55.6-90.9 \\
          Time (s) & 573 & 216 & +172/-182 & 280-1006 \\
          Distance (m) & 1.1 & 0.5 & +0.5/-0.47 & 0.4-2.2 \\
          $\#$MLLs & 2.0 & 1.1 & +1/-0.9 & 0-4 \\
          \ee velocity (mm/s) & 1.9 & 0.7 & +0.9/-0.8 & 1.1-3.7 \\\bottomrule
          \end{tabular}
          }

          \end{document}`

          Bye

        • #47871
          Up
          0
          Down
          ::

          Ciao a tutti,
          dovrei realizzare una tabella costituita da 3 sottotabelle disposte una sotto l’altra. Ho usato il pacchetto subfig. con il seguente codice:

          Purtroppo in questo modo le tabelle mi vengono disposte una accanto all’altro, Come posso fare per disporle una sotto l’altra?

          P.S. sto scrivendo un articolo a doppia colonna.

          Non hai alcuna speranza di inserire tutta quella roba in una sola colonna. Meglio usare l’ambiente “table*”:
          `\begin{table*}
          \caption{Mean value, symmetric standard deviation (SSD), asymmetric standard deviation (ASD)
          and range of percentage of identified marker, time needed to execute the test, distance
          covered by the robot arm EE, number of magnetic link losses (\#MLLs) and robot EE mean
          velocity for the three interfaces. (M. stands for Mean)}
          \label{ist}
          \centering
          \newcommand{\ccol}[1]{\multicolumn{1}{c}{\textbf{#1}}}
          \subfloat[]{\begin{tabular}{lrrrr}
          \toprule
          \textbf{HR cooperative control} & \ccol{M.} & \ccol{SSD} & \ccol{ASD} & \ccol{Range} \\
          \midrule
          \textbf{Marker} (\%) & 84.6 & 6.2 & $+6.9$/$-6.5$ & 72.7–92.3 \\
          \textbf{Time} (s) & 298 & 95 & $+81$/$-69$ & 157–499 \\
          \textbf{Distance} (m) & 2.6 & 1.2 & $+1.1$/$-1.2$ & 1–5.2 \\
          \textbf{\#MLLs} & 3.5 & 1.5 & $+1.7$/$-1.8$ & 0–6 \\
          \textbf{EE velocity} (mm/s) & 8.9 & 3.4 & $+2.9$/$-3.5$ & 5.4–16.5 \\
          \bottomrule
          \end{tabular}}\\
          \subfloat[]{\begin{tabular}{lrrrr}
          \toprule
          \textbf{3DConnection T. control} & \ccol{M.} & \ccol{SSD} & \ccol{ASD} & \ccol{Range} \\
          \midrule
          \textbf{Marker} (\%) & 79.6 & 11.3 & $+11.2$/$-11.7$ & 55.6–92.3 \\
          \textbf{Time} (s) & 440 & 124 & $+148$/$-146$ & 264–707 \\
          \textbf{Distance} (m) & 1.3 & 0.4 & $+0.5$/$-0.5$ & 0.7–2.0 \\
          \textbf{\#MLLs} & 1.9 & 1.2 & $+1.1$/$-0.9$ & 0–4 \\
          \textbf{EE velocity} (mm/s) & 3.0 & 0.8 & $+0.6$/$-0.6$ &2.0–5.1 \\
          \bottomrule
          \end{tabular}}\\
          \subfloat[]{\begin{tabular}{lrrrr}
          \toprule
          \textbf{Phantom T. control} & \ccol{M.} & \ccol{SSD} & \ccol{ASD} & \ccol{Range} \\
          \midrule
          \textbf{Marker} (\%) & 79.6 & 10.6 & $+12.8$/$-12.2$ & 55.6–90.9 \\
          \textbf{Time} (s) & 573 & 216 & $+172$/$-182$ & 280–1006 \\
          \textbf{Distance} (m) & 1.1 & 0.5 & $+0.5$/$-0.47$ & 0.4–2.2 \\
          \textbf{\#MLLs} & 2.0 & 1.1 & $+1$/$-0.9$ & 0–4 \\
          \textbf{EE velocity} (mm/s) & 1.9 & 0.7 & $+0.9$/$-0.8$ & 1.1–3.7 \\
          \bottomrule
          \end{tabular}}
          \end{table*}`
          E adesso caccia alle differenze come sulla Settimana Enigmistica. 🙂 Se non capisci qualcosa, chiedi. Occorre caricare il pacchetto booktabs.

          Ciao
          Enrico

        • #47872
          Up
          0
          Down
          ::


          Grazie a tutti per il prezioso aiuto!!!! ci sono riuscita 😀

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

      Go to top