Graphics, Figures & TablesHline in a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
johan_2960
Posts: 2
Joined: Wed Mar 30, 2011 6:55 pm

Hline in a table

Post by johan_2960 »

Hay

When I insert a figure in my table it makes the Hline disappear, can anyone tell my how I can fix this.

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
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Hline in a table

Post by Stefan Kottwitz »

Hi Johan,

don't nest figure and table environments.
Perhaps you're just using \includegraphics without a figure environment? Please show the code which is not working.

Stefan
LaTeX.org admin
johan_2960
Posts: 2
Joined: Wed Mar 30, 2011 6:55 pm

Re: Hline in a table

Post by johan_2960 »

I am indeed using \includegraphics... because when I used \begin{figure}... I got a error message from texmaker

\begin{table}[h]
\centering
\begin{tabular}{ |m{3cm}| m{7.5cm}| m{3cm}| }
\hline alkaan & \includegraphics[scale=0.08]{alkaan} \centering &-aan \\
\hline alkeen & \includegraphics[scale=0.08]{alkeen}\centering& -een \\
\hline alkyn & \includegraphics[scale=0.08]{alkyn}\centering & -yn \\
\end{tabular}
\end{table}
Post Reply