Layout 在一列环境中并排放置两个表

Layout 在一列环境中并排放置两个表,layout,latex,Layout,Latex,问题与此类似: 而是把两张桌子并排放在一起 我有两张像这样的小桌子: \begin{table}[t] \begin{tabular}{|c|l||r|r||r|r|} %content goes here \end{tabular} \caption{some caption} \end{table} \begin{table}[t] \begin{tabular}{|c|l||r|r||r|r|} %content goes here \end{tabular} \caption{som

问题与此类似: 而是把两张桌子并排放在一起

我有两张像这样的小桌子:

\begin{table}[t]
\begin{tabular}{|c|l||r|r||r|r|}
%content goes here
\end{tabular}
\caption{some caption} 
\end{table}

\begin{table}[t]
\begin{tabular}{|c|l||r|r||r|r|}
%content goes here
\end{tabular}
\caption{some caption for second table} 
\end{table}
我有一个列文档,这些表非常窄,所以我希望将它们并排显示(带有单独的标题),而不是一个一个地显示,其中包含大量未使用的空白

我试着用这个
\multicols
来实现它,但似乎浮点数(这里的表)不能放在它里面

有什么想法吗

编辑
好的,我做过类似的事情:

\begin{table}[h]
\begin{minipage}[b]{80mm}
\begin{tabular}{|c|l||r|r||r|r|}
%//first table goes here
\end{tabular}
    \caption{some caption for first table} 
\end{minipage}

\begin{minipage}[b]{80mm}
\begin{tabular}{|c|l||r|r||r|r|}
%//second table goes here
\end{tabular}
    \caption{some caption for second table} 
\end{minipage}

 \end{table}
但是,无论我设置的迷你页大小如何,表总是根据需要使用尽可能多的空间。例如,如果我有80毫米的迷你页,标题将限制在这80毫米,但表格将更宽

如果我有两张桌子,其中一张桌子有点太宽,它不会出现在第一张桌子旁边,而是在下面


有没有办法把桌子限制在规定的宽度?还是强迫他们一个接一个出现?或者,如何更改其中一个表的字体大小

在同一个表格环境中使用两个迷你页或两个表格环境(但如果需要,您必须对标题做一些处理)。

使用如下方法:

\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[bf,small,tableposition=top]{caption}
\usepackage{subfig}
\begin{document}

\begin{table}
\centering
\subfloat[First table.]{%
\begin{tabular}{|c|l||r|r||r|r|}
a & b & c & d & e & f \\
a & b & c & d & e & f \\
\end{tabular}}%
\qquad\qquad% --- set horizontal distance between tables here
\subfloat[Second table.]{%
\begin{tabular}{|c|l||r|r||r|r|}
a & b & c & d & e & f \\
a & b & c & d & e & f \\
a & b & c & d & e & f \\
a & b & c & d & e & f \\
\end{tabular}}
\end{table}

\end{document}
当表的行数与本例中的不同时,这将负责表的垂直对齐。还要注意的是,表格上方有标题,而数字下方有标题。如果你愿意,优秀的人才可以帮助你改变这种状况


最后,您应该看看表格排版的专业质量。它要求您避免使用垂直线,而是使用水平线。结果通常会好得多,IMHO。

第二个表位于第一个表的下方而不是紧挨着它,这是因为两个迷你页之间的空间。你必须把语句放在另一条语句的正下方,否则latex会把它当作一条结束线。我花了大约一个星期的时间在我自己的桌子上弄清楚这一点

\end{minipage}
\begin{minipage}[b]{80mm}
而不是:

\end{minipage}

\begin{minipage}[b]{80mm}

谢谢,我创建了两个迷你页。但我仍然有一些问题。我已经编辑了我的问题。很好,但有一个问题-我需要使用自定义样式(来自IEEE),当我使用子卷时,它破坏了这种自定义样式,并对表格使用默认样式。有没有办法让标题放在表格上方而不是下方?我多年来一直在表格中遇到这种问题,始终无法找出问题所在。非常感谢。