two tables side by side

LaTeX side-by-side tables

StartLaTeX faqLaTeX topicsLaTeX course
< spacing in math mode     > line break within table cell

side by side tables

To put two tables side-by-side, there are two ways. First just put the two tables in a first one, second minipage.

By using the first option \hline> have to replaced by \cline.

example three tables

\documentclass{article}
\begin{document}

\begin{tabular}{ll}
\begin{tabular}{ccc}
A & B & C \\
\cline{1-3}
1 & 2 & 3 \\
\cline{1-3}
C & B & A \\
\end{tabular}
&
\begin{tabular}{ccc}
D & E & F \\
\cline{1-3}
4 & 5 & 6 \\
\cline{1-3}
F & E & D \\
\end{tabular}
\end{tabular}
\end{document}
Output

example minipage

\documentclass{article}
\begin{document}
\begin{minipage}{1.5in}
\begin{tabular}{ccc}
A & B & C \\
\hline
1 & 2 & 3 \\
\hline
C & B & A \\
 \end{tabular}
\end{minipage}
\begin{minipage}{1.5in}
 \begin{tabular}{ccc}
D & E & F \\
\hline
4 & 5 & 6 \\
\hline
F & E & D \\
 \end{tabular}    
\end{minipage}
\end{document} 
Output

Advertisement

Contact   Privacy Policy   disclosures

accept decline

This website uses cookies and pixel tags to ensure you get the best experience on our website. By using this website, you consent to the use of cookies.learn more about cookies see also our privacy policy