TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Use parbox or minipage.

share|improve this answer

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.