2

I would like to know how to put footnotes outside of a tcolorbox. A simple example of what I get with the usual footnote command :

enter image description here:

\documentclass[10pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tcolorbox}

\begin{document} \begin{tcolorbox} this is text\footnote{and a footnote inside the box} but I would like to have this footnote at the end of the page \end{tcolorbox} \end{document}

simonm12
  • 110
  • https://tex.stackexchange.com/questions/481317/footnote-outside-tikzbox-and-tcolorbox – js bibra Feb 28 '21 at 01:49
  • welcome-- please have alook at the answer below -- adapted from -- https://tex.stackexchange.com/questions/520067/footnote-outside-theorem-environment – js bibra Feb 28 '21 at 01:59

1 Answers1

6

enter image description here

\documentclass[10pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}

\usepackage{tcolorbox} \usepackage{footnote} \BeforeBeginEnvironment{tcolorbox}{\savenotes} \AfterEndEnvironment{tcolorbox}{\spewnotes} \begin{document} \begin{tcolorbox} this is text\footnote{and a footnote inside the box} but I would like to have this footnote at the end of the page \end{tcolorbox} \end{document}

js bibra
  • 21,280