Graphics, Figures & TablesTable in a table with graph

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Babs
Posts: 1
Joined: Thu Oct 20, 2016 7:14 pm

Table in a table with graph

Post by Babs »

Hello,

I am attempting to put a table and an image on the same line of another table in beamer. I can't seem to figure out how the sizing works. If I make the image a normal size then there is an awkward amount of white space in the table but the only way I have been successful at getting rid of the white space is to make the image tiny. How can I make both of these items a reasonable size? This is the code I'm using and I've tried numerous sizing tricks on the image.

Code: Select all

\begin{table}
\begin{tabular}{ccc}
\underline{Table of Values} & & \underline{Graph}\\
\begin{tabular}{c|c}e & f \\ \hline 4 & 12 \\ 4.5 & 13.5 \\ 5 & 15 \\ 5.5 & 16.5 \\ 6 & 18 \end{tabular} & & \includegraphics[<whole bunch of different sizing/trimming tricks here>]{earface.png}\\
\end{tabular}
\end{table}


Thanks in advance for your help!
Attachments
Screen Shot 2016-10-20 at 10.03.47 AM.png
Screen Shot 2016-10-20 at 10.03.47 AM.png (42.42 KiB) Viewed 2090 times
Screen Shot 2016-10-20 at 9.56.54 AM.png
Screen Shot 2016-10-20 at 9.56.54 AM.png (30.52 KiB) Viewed 2090 times
Last edited by cgnieder on Tue Oct 25, 2016 4:12 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Table in a table with graph

Post by Johannes_B »

Use two different minipages and place the tabular material in the left minipage, and the image in the right minipage. You can define the width of the minipage.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply