Hi.
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}
Graphics, Figures & Tables ⇒ longtable | Figure inside a Cell
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
longtable | Figure inside a Cell
The figure environment doesn't make sense here. It will try to float. So just drop it.
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
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: longtable | Figure inside a Cell
Okay.. But how do i put a figure into a longtable?
Thanks.. I will do that
Thanks.. I will do that

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
longtable | Figure inside a Cell
Of course with the \includegraphics command from the graphicx package. More specific help only possible with a true minimal example.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10