1

I have 10 tables in 5 rows (two in each row) in a single column environment. I have used a syntax like:

\documentclass{article}
\usepackage{booktabs}

\begin{document}

\begin{table}
    \begin{minipage}{.48\linewidth}
        \caption{Set \#1}
        \label{ds1}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 750\\ 
            row2 & 350\\ 
            \bottomrule
        \end{tabular}
    \end{minipage}
    \begin{minipage}{.48\linewidth}
        \caption{Set \#2}
        \label{ds2}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 499\\ 
            row2 & 699\\ 
            \bottomrule
        \end{tabular}
    \end{minipage}
\end{table}
\end{document}

But now the publisher is asking me to not to use multiple tabulars in a table, rather use separate table environments.

I still want to have two columns of tables because the tables are really small. Is there a way to make columns of tables with different table environments (rather than multiple tabulars in a table)?

I tried putting each minipage in a different table environment but that puts the second table below the first one.

17
  • Two such simple tabulars show up next to each other in a row even without this minipage setup.
    – user31729
    Aug 12 '16 at 18:41
  • @ChristianHupfer : I do still need to somehow put those tabulars inside separate tables, i can remove minipages if that helps.
    – armen
    Aug 12 '16 at 18:46
  • The problem is still the dreadful floating here. I am not sure that table environments are the correct usage here!
    – user31729
    Aug 12 '16 at 18:49
  • But that's what the publisher is asking for, If I understand you correctly. What would you use instead?
    – armen
    Aug 12 '16 at 18:51
  • 2
    you can not have two table environments side by side in a one column document, but surely the publisher should only be concerned with the typeset result? what's the difference between tow \caption in a single table which you have, and what they are asking for? Aug 12 '16 at 18:54
0

If you have to you could do this (note the order is down the column not across the rows

enter image description here

\documentclass{article}
\usepackage{booktabs}
\makeatletter
\setlength\@fpsep{55\p@ \@plus 2fil}

\begin{document}

\twocolumn

\begin{table}
        \caption{Set \#1}
        \label{ds1}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 750\\ 
            row2 & 350\\ 
            \bottomrule
        \end{tabular}
\end{table}
\begin{table}

        \caption{Set \#2}
        \label{ds2}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 499\\ 
            row2 & 699\\ 
            \bottomrule
        \end{tabular}
\end{table}
\begin{table}
        \caption{Set \#3}
        \label{ds3}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 750\\ 
            row2 & 350\\ 
            \bottomrule
        \end{tabular}
\end{table}
\begin{table}

        \caption{Set \#4}
        \label{ds4}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 499\\ 
            row2 & 699\\ 
            \bottomrule
        \end{tabular}
\end{table}


\begin{table}
        \caption{Set \#5}
        \label{dss1}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 750\\ 
            row2 & 350\\ 
            \bottomrule
        \end{tabular}
\end{table}
\begin{table}

        \caption{Set \#6}
        \label{dss2}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 499\\ 
            row2 & 699\\ 
            \bottomrule
        \end{tabular}
\end{table}
\begin{table}
        \caption{Set \#7}
        \label{dss3}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 750\\ 
            row2 & 350\\ 
            \bottomrule
        \end{tabular}
\end{table}
\begin{table}

        \caption{Set \#8}
        \label{dss4}
        \begin{tabular}{@{}lc@{}} \toprule
            \textbf{Name}&\textbf{count}\\ \midrule
            row1 & 499\\ 
            row2 & 699\\ 
            \bottomrule
        \end{tabular}
\end{table}

\onecolumn
\end{document}
1

How about using the \captionof{table}{captionText} inside a minipage?

Output

enter image description here

Code

\documentclass[11pt]{article}
\usepackage{caption}
\usepackage{lipsum}
\usepackage{booktabs}
\begin{document}

\lipsum[1-2]

\vspace{\intextsep}
\begin{minipage}{.45\textwidth}
\centering
  \begin{tabular}{lll}
    \toprule
    Foo & Baz& Bar \\
    \midrule
    A & B & C \\
    1 & 2 & 3 \\
    \bottomrule
  \end{tabular}
  \captionof{table}{Table of Foo}
\end{minipage}%
\begin{minipage}{.45\textwidth}
\centering
  \begin{tabular}{lll}
    \toprule
    Foo & Baz& Bar \\
    \midrule
    A & B & C \\
    1 & 2 & 3 \\
    \bottomrule
  \end{tabular}
  \captionof{table}{Table of Baz}
\end{minipage}%
\vspace{\intextsep} 

\lipsum[1-2]
\end{document}
1
  • It works, but I'm not sure if it's acceptable, it's still using two tabulars (without a table of course). Again, I'm not very familiar with the typesetting of the papers.
    – armen
    Aug 12 '16 at 19:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.