我有以下问题:
我有两张表.....表一:
\begin{table}[h]
\begin{tabular}{|c|c|}
\hline
\textbf{A} & \textbf{B} \\ \hline
\end{tabular}
\end{table}
表二:
\begin{table}[h]
\begin{tabular}{|c|c|}
\hline
\textbf{C} & \textbf{D} \\ \hline
\end{tabular}
\end{table}
table
我怎样才能在我的页面上为此创建两列?像这样:
there is some text....
TABLE ONE | TABLE TWO
there is some text...
感谢您的建议。
答案1
您可以将两个tabular
s 放在同一个table
环境中:
\documentclass{Article}
\begin{document}
Some text here Some text here Some text here Some text here Some text here Some text here
\begin{table}[htb]
\centering
\begin{tabular}{|c|c|}
\hline
\textbf{A} & \textbf{B} \\ \hline
\end{tabular}
\quad
\vrule
\quad
\begin{tabular}{|c|c|}
\hline
\textbf{C} & \textbf{D} \\ \hline
\end{tabular}
\end{table}
Some more text to follow
\end{document}
答案2
对于懒人来说,可以将页面拆分为小页面:
some text...
\begin{minipage}{0.5\textwidth}
\begin{tabular}{ c c }
...
\end{tabular}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\begin{tabular}{ c c }
...
\end{tabular}
\end{minipage}
some more text...