在Latex中,如何将两个单独的表格并排放在纸张上?

use*_*508 0 latex

在 Latex 中,如何将两个单独的桌子(具有单独的队长)并排放在纸张上?

任何帮助都将受到高度赞赏。

Jan*_*ges 5

一种可能性是使用迷你页对齐表环境并[t]分割它,可以选择用灵活的空间分隔。

\documentclass{article}

\def\hfillx{\hspace*{-\textwidth}\hfill}

\begin{document}
    \begin{table}[t]
        \begin{minipage}{0.5\textwidth}
            \centering
            \begin{tabular}{r | c c c}
                $+$
                  & 1 & 2 & 3 \\\hline
                1 & 2 & 3 & 4 \\
                2 & 3 & 4 & 5 \\
                3 & 4 & 5 & 6
            \end{tabular}
            \caption{Addition}
        \end{minipage}%
        \hfillx
        \begin{minipage}{0.5\textwidth}
            \centering
            \begin{tabular}{r | c c c}
                $\times$
                  & 1 & 2 & 3 \\\hline
                1 & 1 & 2 & 3 \\
                2 & 2 & 4 & 6 \\
                3 & 3 & 6 & 9
            \end{tabular}
            \caption{Multiplication}
        \end{minipage}%
    \end{table}
    %
    \section{Section}
    
    Text
\end{document}
Run Code Online (Sandbox Code Playgroud)

如果表格很大,可能需要通过将其放入序言中来放大允许浮动的页面的上半部分:

\def\textfraction{0.1}
\def\topfraction{0.9}
Run Code Online (Sandbox Code Playgroud)