Graphics, Figures & TablesTwo tables side-by-side in one page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
oeteo
Posts: 2
Joined: Sat Aug 21, 2010 10:07 pm

Two tables side-by-side in one page

Post by oeteo »

Hi everyone,

I am writing a thesis and I'd like to simulate the multiple page per sheet printing to put two tables side-by-side on each page.
I tried

Code: Select all

sidewaystable
, which is not bad but I cannot get to put two tables in one page.

Code: Select all

multicols
doesn't work because I have some minipages in my tables.

Is there something I can do?
Last edited by oeteo on Sun Aug 22, 2010 12:48 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Two tables side-by-side in one page

Post by gmedina »

Hi,

maybe I didn't understand you question correctly, but isn't enough to use something like the following?

Code: Select all

\documentclass{article}
\usepackage{caption}

\begin{document}

\noindent\begin{minipage}{.45\linewidth}
  \centering
  \begin{tabular}{cc}\hline
    Column1a & Column2a \\
    Column1b & Column2b \\
    Column1c & Column2c \\ \hline
  \end{tabular}
  \captionof{table}{first of two side-by-side tables.}
  \label{tab:test1}
\end{minipage}\hfill
\begin{minipage}{.45\linewidth}
  \centering
  \begin{tabular}{cc}\hline
    Column1a & Column2a \\
    Column1b & Column2b \\ \hline
  \end{tabular}
  \captionof{table}{second of two side-by-side tables.}
  \label{tab:test2}
\end{minipage}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
oeteo
Posts: 2
Joined: Sat Aug 21, 2010 10:07 pm

Two tables side-by-side in one page

Post by oeteo »

Looks good... In fact, I used a similar technique with minipage and the rotating package to have it landscaped:

Code: Select all

\usepackage{rotating}
...

Code: Select all

\begin{table}[!ht]

\footnotesize
\caption{Results for testset0-1 (left) and testset0-2 (right)}

\begin{sideways}
\begin{minipage}[b]{0.7\linewidth}
\centering
\input{res02}
\end{minipage}
\end{sideways}

\begin{sideways}
\begin{minipage}[b]{0.7\linewidth}
\centering
\input{res01}
\end{minipage}
\end{sideways}

\end{table}
So I have my two tables in landscape orientation with a caption in portrait orientation
Post Reply