Graphics, Figures & Tables ⇒ Latex: Image on the left and table on the right
Latex: Image on the left and table on the right
I'm looking to create a table that has an image on the left showing the component. I have an example in the image attach, I'm trying to replicate this.
This is how i want it to look like.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Latex: Image on the left and table on the right
Code: Select all
\documentclass{article}
\usepackage{adjustbox}
\begin{document}
\begin{table}
\adjustimage{width=3cm,valign=c}{example-image}\quad%
\begin{tabular}{ll}
Model & blurred \\
$V_\mathrm{in}$ & blurred \\
$V_\mathrm{out}$ & blurred \\
$I_{\max}$ & blurred \\
Features & blurred \\
Features & blurred \\
Features & blurred \\
Features & blurred \\
Features & blurred \\
Features & blurred \\
\end{tabular}
\end{table}
\end{document}
Latex: Image on the left and table on the right
This is the code I have added
Code: Select all
\begin{table}
\adjustimage{width=3cm,valign=c}{Illustrations/QFN-40-Backside}\quad%
\caption{Table for test} \label{fig:test}
\begin{tabular}{ll}
Model & blurred \\
$V_\mathrm{in}$ & blurred \\
$V_\mathrm{out}$ & blurred \\
$I_{\max}$ & blurred \\
\end{tabular}
\end{table}
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Latex: Image on the left and table on the right
Latex: Image on the left and table on the right
That worked, thank you. One last question please.Johannes_B wrote:Without testing the code, the caption should come first. Please try.
The current alignment of caption is a bit off from the table. Is it possible to make it centered as well?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Latex: Image on the left and table on the right
\centering
after \begin{table}
.
Code: Select all
\documentclass{article}
\usepackage{adjustbox}
\usepackage{caption}
\usepackage{showframe}
\begin{document}
\begin{table}
\caption{The following is not about Wombats}
\centering
\adjustimage{width=3cm,valign=c}{example-image}\quad%
\begin{tabular}{ll}
Model & blurred \\
$V_\mathrm{in}$ & blurred \\
$V_\mathrm{out}$ & blurred \\
$I_{\max}$ & blurred \\
Features & blurred \\
Features & blurred \\
Features & blurred \\
Features & blurred \\
Features & blurred \\
Features & blurred \\
\end{tabular}
\end{table}
\end{document}