My footnote disappear in shaded environment as shown in the following example. How to fix this, please? Thank you!
\documentclass[english]{scrartcl}
\usepackage{graphics}
\usepackage{environ}
\usepackage[round]{natbib}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\setkomafont{disposition}{\normalfont\bfseries}
\usepackage[printwatermark]{xwatermark}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{framed}
\colorlet{shadecolor}{gray!40}
\begin{document}
\title{}
\maketitle
\begin{shaded}
\begin{enumerate}
\item I love my mother.\footnote{Of course.}
\end{enumerate}
\end{shaded}
\end{document}
Best Answer
From the
framed
manual:So, simply use
\footnotemark
inside theshaded
environment and\footnotetext{Of course.}
just after it.MWE:
Output
EDIT
If you have more than one footnote inside the
shaded
environment, then number your\footnotetext
s, as in the following example:Output: