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}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- 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