The question is similar to this: How do I display content in two columns in LaTeX? but about placing two tables side by side.
I have two small tables that look like this:
\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}
I have a one-column document, and these tables are very narrow, so I would like to display them side by side (with separate headers) installed one below the other with a lot of unused space.
I tried to do this with this \multicols , but it seems that the float (tables here) cannot be placed inside it.
Any ideas?
EDIT
Ok, I did something like this:
\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}
But the table always uses as much space as needed, regardless of the size of the mini-disk I would set. For example, if I have 80 mm for a mini-disk, the label will be limited to these 80 mm, but the table will be wider.
If I have two tables, and one table is slightly wider, it will not be next to the first table, but under it.
Is there a way to limit the table to the specified width? Or make them appear one next to the other? Or maybe how to change the font size for only one of the tables?
layout latex
Gacek
source share