Graphics, Figures & Tables ⇒ longtable | Figure inside a Cell
longtable | Figure inside a Cell
I want a figure inside a cell in a longtable. But when i try so i get the error: "Float lost". How do i fix it?
\begin{longtable}{m{0.2\textwidth}m{0.4\textwidth}m{0.3\textwidth}}
\endfirsthead
\cellcolor{niceblue}\color{white} \textbf{Abb.} &\cellcolor{niceblue}\color{white} \textbf{Meaning} & \cellcolor{niceblue}\color{white} \textbf{Comment}\\%\midrule
\endhead
\bottomrule
\multicolumn{3}{r}{\textit{continued on the next page\dots}}
\endfoot
\bottomrule
\endlastfoot
\cellcolor{niceblue}\color{white} \textbf{abb.} &\cellcolor{niceblue}\color{white} \textbf{Meaning} & \cellcolor{niceblue}\color{white} \textbf{Comment}\\
1 & 1 & \begin{figure} \includegraphics{1} \end{figure} \\
\end{longtable}
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
longtable | Figure inside a Cell
And by the way, the forum software offers a »Code« environment to tag code as such. The button is in the list right above the input window while composing a message. It would be very kind if you use it. It just keep a post clear and legible.
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: longtable | Figure inside a Cell
Thanks.. I will do that

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
longtable | Figure inside a Cell
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10