Graphics, Figures & TablesHow to place a graph beside a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jurjen
Posts: 4
Joined: Sat Jan 17, 2009 2:00 pm

How to place a graph beside a table

Post by jurjen »

Hi all,

I geuss it must be simple, but I couldn't figure it out... I have a table with only two columns. I want to place the corresponding graph beside it. What's the most easy way to do this?

I tried the smash command, but it gives a lot of errors.

Recommended reading 2024:

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

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

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

How to place a graph beside a table

Post by phi »

Simply put them next to each other. To keep the baselines aligned, use the optional argument to the tabular environment:

Code: Select all

\begin{tabular}[b]{ll}
A & B \\
C & D \\
E & F
\end{tabular}
\fbox{\hskip 40pt \vrule height 30pt \hskip 40pt}
jurjen
Posts: 4
Joined: Sat Jan 17, 2009 2:00 pm

Re: How to place a graph beside a table

Post by jurjen »

Ah, that was not too difficult. Thank you very much! :D
Post Reply