1

This question already has an answer here:

I tried put two tables in the same page. I read in the Internet that I can make this using the minipage. I use minipage but the two tables still in pages differents, not side by side. The piece of code that I used is:

\documentclass[11pt]{article}
\usepackage{amstext}
\usepackage{lmodern}
\usepackage{ragged2e}
\usepackage{mathtools,float,geometry}
\usepackage{booktabs,array,tabularx,threeparttablex}
\usepackage{subfig}
\begin{document}
\begin{table}[H]
\begin{minipage}{.2\textwidth}
\centering
\begin{tabular}{cc}
\toprule Tempo (s) & Per\'{i}odo (s)\\
\midrule 0,9509 & 1,3645\\
\hline 2,3153 & 1,3644\\
\bottomrule
\end{tabular}
\end{minipage}
\end{table}

\begin{table}[H]
\begin{minipage}{.2\textwidth}
\centering
\begin{tabular}{cc}
\toprule Tempo (s) & Velocidade (m/s)\\
\midrule 0,2733 & 5,3763\\
\hline 0,9496 & 5,3763\\
\bottomrule
\end{tabular}
\end{minipage}
\end {table}
\end{document}

marked as duplicate by Mensch, Troy, Schweinebacke, Mico tables May 29 '17 at 13:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Put the minipages into a single table environment. – cfr Apr 12 '16 at 1:20
  • @cfr How I do that? Do you want me to do a only one table? – Carmen González Apr 12 '16 at 1:23
  • 1
    One table. Two minipages. Two tabulars. – cfr Apr 12 '16 at 1:32
  • 1
    That's because .2\textwidth is too little. See below. – cfr Apr 12 '16 at 1:44
  • 1
    You can increase 0.4 a bit, but if the total width of the two tables exceeds your total \textwidth then you cannot make them fit side-by-side without either making the tables smaller (smaller font, less content etc.) or making the \textwidth bigger (bigger paper, smaller margins etc.). Or you can rotate the entire page or the tables for landscape mode. But I don't know what you mean about the footer or how tall the tables are, so this may not help. – cfr Apr 12 '16 at 9:26
4

This is the idea:

\documentclass[11pt]{article}
\usepackage{float}
\usepackage{booktabs}
\begin{document}
  \begin{table}[H]
    \begin{minipage}{.4\textwidth}
      \centering
      \begin{tabular}{cc}
        \toprule Tempo (s) & Per\'{i}odo (s)\\
        \midrule 0,9509 & 1,3645\\
        2,3153 & 1,3644\\
        \bottomrule
      \end{tabular}
    \end{minipage}
    \begin{minipage}{.4\textwidth}
      \centering
      \begin{tabular}{cc}
        \toprule Tempo (s) & Velocidade (m/s)\\
        \midrule 0,2733 & 5,3763\\
        0,9496 & 5,3763\\
        \bottomrule
      \end{tabular}
    \end{minipage}
  \end{table}
\end{document}

double trouble

Not the answer you're looking for? Browse other questions tagged or ask your own question.