LaTeX forum ⇒ Graphics, Figures & TablesTable in a table with graph

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

Table in a table with graph

Postby Babs » Thu Oct 20, 2016 7:27 pm


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.

  1. \begin{table}
  2. \begin{tabular}{ccc}
  3. \underline{Table of Values} & & \underline{Graph}\\
  4. \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}\\
  5. \end{tabular}
  6. \end{table}

Thanks in advance for your help!
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 967 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 967 times
Last edited by cgnieder on Tue Oct 25, 2016 4:12 pm, edited 1 time in total.
Reason: added code markup


User avatar
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu Oct 20, 2016 7:44 pm

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.

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 13 guests