5

I am looking for a two-column solution: The left column contains one table, the right column several tables. I was thinking of using parboxes as follows:

\parbox[t]{2cm}{\vspace{0pt}
\begin{tabular}{ccc}
x & x & x\\
x & x & x\\
x & x & x\\
x & x & x\\
x & x & x
\end{tabular}}
\hfill 
\parbox[t]{2cm}{\vspace{0pt}
\begin{tabular}{ccc}
x & x & x\\
x & x & x
\end{tabular}\\[1em]
\begin{tabular}{ccc}
x & x & x 
\end{tabular}}

But this creates a nasty space between whatever comes before the two columns. Without \vspace{0pt}, the two first tables in both columns are not top-aligned. I am looking for a top-aligned solution without the extra space before the two columns.

4

Suppress the \vspace{0pt} commands and use the optional argument to control the position of the tabulars:

\documentclass{article}

\begin{document}

text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text

\noindent\parbox[t]{2cm}{%
  \begin{tabular}[t]{ccc}
    x & x & x\\
    x & x & x\\
    x & x & x\\
    x & x & x\\
    x & x & x
  \end{tabular}
}\hfill
\parbox[t]{2cm}{%
  \begin{tabular}[t]{ccc}
    x & x & x\\
    x & x & x
  \end{tabular}\\[1em]
  \begin{tabular}{ccc}
    x & x & x 
  \end{tabular}
}

\end{document}

enter image description here

  • You can also use parent tabulars instead of \parbox like shown in Help aligning tables. Then you do not need to specify the width of the content. – Martin Scharrer Mar 21 '11 at 17:50

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.