posizionamento tabelle

  • Creatore
    Topic
  • #82176
    Up
    0
    Down
    ::


    Salve a tutti,

    ho necessità di far sì che le due tabelle che ho creato non vengano separate da pdfLatex. Cioè, esistono come due tabelle distinte ma vorrei che restassero visualizzate consecutivamente (una sotto l’altra) e non spostate a scelta del compilatore.
    Come posso fare?

    Grazie in anticipo, Arekhname

    Allego la tabella:

    `\begin{subtables}
    \begin{table}\centering
    \caption{Nominal wavelengths (in \SI{}{\nm}) at characteristic emission lines of four different lamps}\label{tab:nominal}
    \begin{tabular}{cccc} \hline
    \toprule
    {Sodium} & {Mercury} & {Cadmium} & {Helium}\\
    \midrule
    {588.995} & {404.66} & {467.81} & {447.15}\\
    {589.59} & {435.83} & {479.99} & {501.57}\\
    {} & {546.07} & {508.58} & {587.56}\\
    {} & {579.07} & {643.65} & {667.82}\\
    {} & {} & {} & {706.52}\\
    \bottomrule
    \end{tabular}
    \end{table}
    \begin{table}\centering
    \caption{Measured wavelengths (in \SI{}{\nm}) at characteristic emission lines of the same lamps}\label{tab:measured}
    \begin{tabular}{cccc} \hline
    \toprule
    {Sodium} & {Mercury} & {Cadmium} & {Helium}\\
    \midrule
    {589} & {406} & {468} & {447}\\
    {592} & {436} & {480} & {502}\\
    {} & {546} & {509} & {587}\\
    {} & {579} & {644} & {668}\\
    {} & {} & {} & {707}\\
    \bottomrule
    \end{tabular}
    \end{table}
    \end{subtables}`

Visualizzazione 6 filoni di risposte
  • Autore
    Risposte
    • #82177
      Up
      0
      Down
      ::


      Usa un solo ambiente table e metti i due tabular al suo interno.
      Puoi usare due didascalie, ciascuna sopra la rispettiva tabella.

      Ciao
      Ivan

    • #82178
      Up
      0
      Down
      ::


      Grazie,
      tuttavia non mi riesce di farlo funzionare, l’ultimo tentativo è il seguente:

      \begin{table} \centering
      \begin{tabular}{cccc} \caption{Nominal wavelengths (in \SI{}{\nm}) at characteristic emission lines of four different lamps} \label{tab:nominal} \hline
      \toprule
      {Sodium} & {Mercury} & {Cadmium} & {Helium}\\
      \midrule
      {588.995} & {404.66} & {467.81} & {447.15}\\
      {589.590} & {435.83} & {479.99} & {501.57}\\
      {} & {546.07} & {508.58} & {587.56}\\
      {} & {579.07} & {643.65} & {667.82}\\
      {} & {} & {} & {706.52}\\
      \bottomrule
      \end{tabular}
      \begin{tabular}{cccc} \hline
      \toprule
      {Sodium} & {Mercury} & {Cadmium} & {Helium}\\
      \midrule
      {589} & {406} & {468} & {447}\\
      {592} & {436} & {480} & {502}\\
      {} & {546} & {509} & {587}\\
      {} & {579} & {644} & {668}\\
      {} & {} & {} & {707}\\
      \bottomrule
      \end{tabular}
      \end{table}

      Potresti indicarmi esattamente come procedere? Grazie in anticipo!

    • #82179
      Up
      0
      Down
      ::

      Arekhnames” post=81521Grazie,
      tuttavia non mi riesce di farlo funzionare, l’ultimo tentativo è il seguente:

      \begin{table} \centering
      \begin{tabular}{cccc} \caption{Nominal wavelengths (in \SI{}{\nm}) at characteristic emission lines of four different lamps} \label{tab:nominal} \hline
      \toprule
      {Sodium} & {Mercury} & {Cadmium} & {Helium}\\
      \midrule
      {588.995} & {404.66} & {467.81} & {447.15}\\
      {589.590} & {435.83} & {479.99} & {501.57}\\
      {} & {546.07} & {508.58} & {587.56}\\
      {} & {579.07} & {643.65} & {667.82}\\
      {} & {} & {} & {706.52}\\
      \bottomrule
      \end{tabular}
      \begin{tabular}{cccc} \hline
      \toprule
      {Sodium} & {Mercury} & {Cadmium} & {Helium}\\
      \midrule
      {589} & {406} & {468} & {447}\\
      {592} & {436} & {480} & {502}\\
      {} & {546} & {509} & {587}\\
      {} & {579} & {644} & {668}\\
      {} & {} & {} & {707}\\
      \bottomrule
      \end{tabular}
      \end{table}

      Potresti indicarmi esattamente come procedere? Grazie in anticipo!

      Questo funziona:

      `\documentclass{article}
      \usepackage{siunitx,booktabs,caption}

      \begin{document}

      \begin{table}
      \centering
      \caption{Nominal wavelengths (in \SI{}{\nm}) at characteristic emission lines of four different lamps.}
      \label{tab:nominal}
      \begin{tabular}{cccc}
      \toprule
      Sodium & Mercury & Cadmium & Helium \\
      \midrule
      588.995 & 404.66 & 467.81 & 447.15 \\
      589.590 & 435.83 & 479.99 & 501.57 \\
      & 546.07 & 508.58 & 587.56 \\
      & 579.07 & 643.65 & 667.82 \\
      & & & 706.52 \\
      \bottomrule
      \end{tabular}

      \bigskip

      \begin{tabular}{cccc}
      \toprule
      Sodium & Mercury & Cadmium & Helium\\
      \midrule
      589 & 406 & 468 & 447 \\
      592 & 436 & 480 & 502 \\
      & 546 & 509 & 587 \\
      & 579 & 644 & 668 \\
      & & & 707 \\
      \bottomrule
      \end{tabular}
      \end{table}

      \end{document}`

      Ciao
      Tommaso

    • #82180
      Up
      0
      Down
      ::


      `\documentclass{article}
      \usepackage{booktabs,siunitx}
      \begin{document}

      \begin{table} \centering
      \caption{Nominal wavelengths (in \SI{}{\nm}) at characteristic emission lines of four different lamps} \label{tab:nominal}
      \begin{tabular}{cccc}
      \toprule
      {Sodium} & {Mercury} & {Cadmium} & {Helium}\\
      \midrule
      {588.995} & {404.66} & {467.81} & {447.15}\\
      {589.590} & {435.83} & {479.99} & {501.57}\\
      {} & {546.07} & {508.58} & {587.56}\\
      {} & {579.07} & {643.65} & {667.82}\\
      {} & {} & {} & {706.52}\\
      \bottomrule
      \end{tabular}
      %\medskip

      \caption{Nominal wavelengths (in \SI{}{\nm}) at characteristic emission lines of four different lamps} \label{tab:nominal}
      \begin{tabular}{cccc}
      \toprule
      {Sodium} & {Mercury} & {Cadmium} & {Helium}\\
      \midrule
      {589} & {406} & {468} & {447}\\
      {592} & {436} & {480} & {502}\\
      {} & {546} & {509} & {587}\\
      {} & {579} & {644} & {668}\\
      {} & {} & {} & {707}\\
      \bottomrule
      \end{tabular}
      \end{table}
      \end{document}`

      \caption deve andare fuori da tabular.
      La prossima volta invia un esempio minimo compilabile

      Ciao
      Ivan

    • #82181
      Up
      0
      Down
      ::

      ivan” post=81523\caption deve andare fuori da table.

      Forse intendevi dire fuori da tabular 🙂

      Ciao
      Tommaso

    • #82182
      Up
      0
      Down
      ::

      illinguista1972″ post=81526

      \caption deve andare fuori da table.

      Forse intendevi dire fuori da tabular 🙂

      Certo. Corretto anche sopra. Grazie!

      Ciao
      Ivan

      p.s.
      Non metterei il punto dentro la didascalia se si intende usare il pacchetto caption.
      C’è infatti un’opzione che permette di ottenerlo automaticamente.

    • #82183
      lorenzo.pantieri
      Partecipante
        Up
        0
        Down
        ::

        ivan” post=81532
        Non metterei il punto dentro la didascalia se si intende usare il pacchetto caption.
        C’è infatti un’opzione che permette di ottenerlo automaticamente.

        Interessante, non lo sapevo. Tommaso, questo punto va nell’Arte 2013. 😉

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

    Go to top