Footnotes inside captions using LyX [duplicate]

I finally found a way to insert a footnote inside a caption while using float:Table in LyX, from this answer. You need to insert \protect\footnotemark in the caption and \footnotetext{Text to footnote} directly after the float.

See source:

\begin{table}[h]
\begin{tabular}{|c|c|}
\hline
1 & 2\tabularnewline
\hline
\hline
3 & 4\tabularnewline
\hline
\end{tabular}

\caption{This is the caption. \protect\footnotemark}

\end{table}

\footnotetext{Text to footnote}

Is there a more efficient way to include a footnote inside a caption when using LyX?

• not a lyx user, so i don't know how this plays out, but in straight latex, a \footnotemark within a float and matching \footnotetext outside the float could end up on different pages. rather counterproductive. – barbara beeton Dec 12 '12 at 21:24
• Yes indeed, that can be problematic in many cases. – socialli Dec 12 '12 at 21:41
• I guess you could use a minipage (Insert --> Box --> Frameless) as in tex.stackexchange.com/a/84331/586 – Torbjørn T. Jul 31 '13 at 20:14