我尝试将两个表格放在同一个页面中。我在互联网上看到我可以使用 minipage 来实现这一点。我使用 minipage,但两个表格仍然在不同的页面中,而不是并排的。我使用的代码片段是:
\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}
答案1
这个想法是这样的:
\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}