GeneralInsert figures into a table

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

Insert figures into a table

Post by kostoglotov »

Hi there,
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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Insert figures into a table

Post by localghost »

Take this as an extendible example.

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}
More information about the used packages is available on CTAN. Further extensions of the tabular environment are given by tabularx and tabulary.


Best regards
Thorsten¹
Post Reply