0

在 Latex 中,如何将两个单独的表格(带有单独的船长)并排放在纸上?

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

4

1 回答 1

4

一种可能性是将表环境与 minipages 对齐[t]并使用 minipages 拆分它,可选地由一个灵活的空间分隔。

\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}

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

\def \textfraction {0.1}
\def \topfraction {0.9}
于 2015-02-23T19:08:24.097 回答