# Use table with footnotes and colored cells

Is it possible to have a LaTEX document that contains both a table with footnotes and colored cells? The package colortbl seems to cause problems if savenotes is used somewhere in the document. Does a workaround exist for that?

Code:

\usepackage{colortbl}

\begin{savenotes}
\begin{table}
\centering
\caption{Table}

\begin{tabular}{l}
Row 1 \\
Row 2\footnote{Footnote.} \\
\end{tabular}

\label{Tbl_1}
\end{table}
\end{savenotes}

• Please provide a complete example. Can't you just use the standard way to get footnotes here? i.e. Make the mark and create the footnote outside? – cfr Oct 16 '16 at 23:35
• package footnote is incompatible with color/xcolor due to a bug. You can try recent package footnotehyper, but use of hyperref is then more or less mandatory. – user4686 Oct 17 '16 at 11:47

Migrated from comment:

package footnote is incompatible with color/xcolor due to a bug. You can try recent package footnotehyper, but use of hyperref is then more or less mandatory.

edit: I copied pasted code snippet from OP which is not a mwe, not having time then nor now to really add the missing pieces. To get something more realistic use for example:

\begin{tabular}{|>{\columncolor[gray]{.8}[0pt]}l|}


which seems to work ok but I don't modify the image.

note: package footnote as used below via footnotehyper has NO facilities to handle correctly footnotes from floating objects like tables. It will work sort of.

\documentclass{article}

\usepackage{colortbl}

\usepackage{footnotehyper}

\usepackage{hyperref}

\begin{document}

\begin{savenotes}
\begin{table}
\centering
\caption{Table}

\begin{tabular}{l}
Row 1 \\
Row 2\footnote{Footnote.} \\
\end{tabular}

\label{Tbl_1}
\end{table}
\end{savenotes}

\end{document}


produces

and at bottom of page

I discovered that the tablefootnote command from the package of the same name works well and is not in conflict with colortbl.