TransWikia.com

Footnotes with tcolorbox

TeX - LaTeX Asked by simonm12 on July 3, 2021

I would like to know how to put footnotes outside of a tcolorbox.
An 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 textfootnote{and a footnote inside the box} but I would like to have this footnote at the end of the page
end{tcolorbox}
end{document}

One Answer

enter image description here

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

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

Correct answer by js bibra on July 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP