General ⇒ Insert figures into a table
-
- Posts: 58
- Joined: Sun Apr 27, 2008 12:50 pm
Insert figures into a table
I am new to LaTeX. It is brilliant but I have encountered some problems.. Currently: I would like to create a table with figures in it. Figures on the left hand side and next to it some description... Can anyone help with that?
Cheers,
a.k.
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Insert figures into a table
Code: Select all
\documentclass[BCOR13mm,DIV15]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{array,booktabs}
\usepackage{tikz}
\usepackage{blindtext}
\begin{document}
\begin{table}[!ht]
\centering
\begin{tabular}{m{4cm}m{10cm}}\toprule
\begin{tikzpicture}
\draw[gray,very thin] (-2,-2) grid (2,2);
\shade[ball color=blue] (0,0) circle (1cm);
\end{tikzpicture}
& \blindtext \tabularnewline\midrule
\begin{tikzpicture}
\draw[gray,very thin] (-2,-2) grid (2,2);
\shade[ball color=purple] (0,0) circle (1cm);
\end{tikzpicture}
& \blindtext \tabularnewline\midrule
\begin{tikzpicture}
\draw[gray,very thin] (-2,-2) grid (2,2);
\shade[ball color=green] (0,0) circle (1cm);
\end{tikzpicture}
& \blindtext \tabularnewline\bottomrule
\end{tabular}
\caption{Table with graphics and decriptions}\label{tab:gfxtable}
\end{table}
\end{document}
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10