我看了 vanden 的代码在此处输入链接描述
\documentclass{article}
\begin{document}
\begin{tabular}{cc}
\begin{minipage}{.5\linewidth}
\begin{tabular}{ll}
1 & 2
\end{tabular}
\end{minipage} &
\begin{minipage}{.5\linewidth}
\begin{tabular}{ll}
3 & 4 \\
g & e \\
f & e \\
f & e \\
\end{tabular}
\end{minipage}
\end{tabular}
\end{document}
如何让表格从页面的同一层级开始?如何为两个表格添加标题?谢谢
答案1
也许你正在寻找
\documentclass{article}
\usepackage{subcaption}
\begin{document}
\begin{table}[htbp]
\centering
\caption{Common caption}
\begin{subtable}[t]{.5\textwidth} % Look at option [t]
\centering
\caption{A caption}
\begin{tabular}{ll}
1 & 2
\end{tabular}
\end{subtable}%
\begin{subtable}[t]{.5\textwidth}
\centering
\caption{Another caption}
\begin{tabular}{ll}
3 & 4 \\
g & e \\
f & e \\
f & e
\end{tabular}
\end{subtable}
\end{table}
\end{document}
.5\textwidth
我觉得有点太宽了