# Footnotes doesn't work inside tasks

See the following MWE. For some reason the footnotes inside tasks environment are not displayed, while they work in enumeration.

\documentclass{article}

\usepackage{enumitem}

\begin{document}
\begin{enumerate}
\item test\footnote{test b}
\end{enumerate}
\end{document}

-
the tasks environment is no list (in the LaTeX sense). Every “item” is a box really. Use \footnotemark and outside the environment \footnotetext. –  clemens Jun 29 '13 at 19:29
@cgnieder I was too lazy to look at the code of tasks. For me they would work as an enumeration list with extra features. Thanks for the solution. I think that would be easy to implement in tasks using the tablefootnote package with possible hack as in tex.stackexchange.com/questions/113640/…. If you want provide an answer that I will accept it. –  cacamailg Jun 29 '13 at 19:45
Maybe I should make it more clear in the documentation that {tasks} only superficially looks like a list... –  clemens Jun 29 '13 at 20:22

I admit that the documentation of tasks doesn't make this fact very clear (I'll add something to the next version): the {tasks} environment only looks like a list environment because semantically it is a list. Internally it is no list in the LaTeX sense, i.e. it doesn't use a {list}. The main purpose of it is not to list it's items with a), b), ... That could be easier achieved with a customized {enumerate} list (e.g. via the enumitem package). It's supposed to provide easy means to get rows of items rather than columns. It does this by collecting the environment body which makes it rather a pseudo environment and means that verbatim material cannot be used inside. It then splits the body at every occurrence of \task and puts the parts into boxes (or l3 coffins). These boxes are then put next to each other depending on the number of columns specified. As a consequence footnotes are no longer working inside {tasks}. The standard way around is using \footnotemark and \footnotetext:

\documentclass{article}
\begin{document}

\footnotetext{test a}

\end{document}


Another possibility is to load the footnote package and enable the footnotes with \makesavenoteenv:

\documentclass{article}
\usepackage{footnote}
\begin{document}

\end{document}


A third solution might be to make the {tasks} environment compatible with tablefootnote the same way that Marco Daniel used here for {mdframed}:

\documentclass{article}
\usepackage{tablefootnote}
\makeatletter
\tfn@tablefootnoteprintout%
\gdef\tfn@fnt{0}%
}
\makeatother
\begin{document}