riduzione spazio tra figura e tabella

  • Creatore
    Topic
  • #106282
    Up
    0
    Down
    ::


    Salve,

    ho distanziato una tabella da una figura col seguente codice:

    `
    \begin{figure}[h]
    \begin{floatrow}
    \ffigbox{%
    %\rule{3cm}{3cm}%
    \includegraphics[width=0.23\textwidth]{immagini_ballbot/001.jpg}}
    {%
    \caption{Mechatronic system}\label{fig_bal_001}%
    }
    \capbtabbox{%
    \Scale[0.7]{
    \begin{tabular}{ll}
    %\toprule
    Main mechanical data\\
    \hline
    Description & Value \\
    %\midrule
    \hline
    Mass of the ball & 0.65[$kg$] \\
    Mass of the wheel & 107[$g$] \\
    Mass of the body & 5.045[$kg$] \\
    Radius of the ball & 120 [$mm$] \\
    Radius of the wheel & 53 [$mm$] \\
    Radius of the body & 140 [$mm$] \\
    Height from the center \\of mass & 410 [$mm$] \\
    Inertia of the ball & 0.005[$kgm^2$] \\
    Inertia of the body & 0.47[$kgm^2$] \\
    \hline
    %\bottomrule
    \end{tabular}}
    }{%
    \caption{System parameters}\label{tab_1}%
    }
    \end{floatrow}
    \end{figure}
    `
    Dovrei ridurre leggermente lo spazio tra la figura a sinistra e la tabella a destra. Come potrei fare?

    Riccardo

Visualizzazione 1 filone di risposte
  • Autore
    Risposte
    • #106283
      Up
      0
      Down
      ::


      La documentazione di floatrow è in molte parti incomprensibile. La tua domanda anche. 🙁 Costringere la gente a ricostruire ciò che serve per riprodurre il problema è il modo migliore per non ricevere risposte.

      Non credo che impostare [tt]\floatrowsep[/tt] sia il modo preferito dall’autrice del pacchetto, ma non vedo altre possibilità. Di certo vedo possibilità di miglioramento della tabella, in particolare la terrificante idea di scrivere le unità di misura in corsivo matematico tra parentesi quadre.

      `
      \documentclass{article}
      \usepackage{floatrow,graphicx,booktabs,siunitx}
      \newfloatcommand{capbtabbox}{table}[][\FBwidth]
      \newcommand{\Scale}[2][1]{\scalebox{#1}{#2}}

      \begin{document}
      \begin{figure}[htp]
      \begin{floatrow}
      \renewcommand\floatrowsep{\hspace{-1em}}
      \ffigbox{%
      \includegraphics[width=0.23\textwidth]{example-image}}
      {%
      \caption{Mechatronic system}\label{fig_bal_001}%
      }
      \capbtabbox{%
      \Scale[0.7]{%
      \begin{tabular}{ll}
      \toprule
      Main mechanical data\\
      \midrule
      Description & Value \\
      \midrule
      Mass of the ball & \SI{0.65}{kg} \\
      Mass of the wheel & \SI{107}{g} \\
      Mass of the body & \SI{5.045}{kg} \\
      Radius of the ball & \SI{120}{mm} \\
      Radius of the wheel & \SI{53}{mm} \\
      Radius of the body & \SI{140}{mm} \\
      Height from the center \\of mass & \SI{410}{mm} \\
      Inertia of the ball & \SI{0.005}{kg.m^2} \\
      Inertia of the body & \SI{0.47}{kg.m^2} \\
      \bottomrule
      \end{tabular}}%
      }{%
      \caption{System parameters}\label{tab_1}%
      }
      \end{floatrow}
      \end{figure}
      \end{document}
      `

      [attachment=1599]ScreenShot2016-05-07at00.19.54.png[/attachment]

      Ciao
      Enrico

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


      Grazie mille prof !

Visualizzazione 1 filone di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top