Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can I put a table and a PNG (using \includegraphics) next to each other in the same figure, in the following way?

             +----+
    +-----+  |png |
    |table|  |png |
    |table|  |png |
    +-----+  +----+
  Figure 4.1: Caption

So the table and the PNG are aligned at the bottom.

I tried to just put both in a table (2 columns), but the objects are not aligned at the bottom.

share|improve this question
add comment

2 Answers

up vote 14 down vote accepted

You need to align the table with its baseline by passing it the optional [b] placement argument. After that you can just put them side-by-side. Here's an example:

\documentclass{article}
\begin{document}
\begin{figure}\centering
  \begin{tabular}[b]{|cc|}
    \hline a & b \\ c & d \\ \hline
  \end{tabular}
  \qquad
  \rule{2cm}{3cm}% = graphic
  \caption{Double figure/table combo!}
\end{figure}
\end{document}
share|improve this answer
add comment

Use parbox or minipage.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.