答案1
您的格式化目标需要花费一些开销。希望下面显示的代码能够提供理解 LaTeX 代码所需的解释。
它是你的有责任确保两个表格确实适合分配的空间。如果其中一个表格明显比另一个宽,您可能需要调整两个minipage
环境的相对宽度——只要表格的总宽度小于\textwidth
。
以下屏幕截图显示了测试文档的前两页。(第三页包含更多填充文本。)
\documentclass{IEEEtran}
\usepackage{newtxtext,newtxmath} % Times Roman text and math fonts
%% required packages:
\usepackage{rotating} % for 'sidewaystable' environment
\usepackage{afterpage} % for '\afterpage' macro
\usepackage{booktabs} % for well-spaced horizontal rules
\usepackage{lipsum} % filler text
\begin{document}
\lipsum[1-6] % start with some filler text (all on page 1)
\afterpage{% defer execution till start of next page
\clearpage % force-flush any accumulated floats
\onecolumn % switch to one-column mode
\begin{sidewaystable} % switch to landscape mode
\begin{minipage}[t]{0.5\textwidth}
\centering
\caption{Parameter settings}
\begin{tabular}[t]{ccc} % a sample 'tabular' env.
\toprule
a & b & c \\
\midrule
d & e & f \\
\bottomrule
\end{tabular}
\end{minipage}% % no empty line after this line
\begin{minipage}[t]{0.5\textwidth}
\centering
\caption{The success rate of x, y, and z}
\begin{tabular}[t]{cccc} % another sample 'tabular' env.
\toprule
a & b & c & d \\
\midrule
e & f & g & h \\
i & j & k & l \\
\bottomrule
\end{tabular}
\end{minipage}
\end{sidewaystable}
\clearpage
\twocolumn % revert to two-column mode
} % end of argument of \afterpage
\lipsum[7-20] % more filler text, to be typeset on pages 1 and 3 of sample doc.
\end{document}