Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage[paperheight=3in,paperwidth=5in]{geometry}
- usepackage{lipsum}
- usepackage{tcolorbox}
- newcounter{footnotecount} % Define counter
- begin{document}
- % The footnote is placed on the page where you place this:
- My global footnote is defined herefootnote{label{name}This is my global footnote.}
- % The label is required to refer to the footnote.
- % Now, save your footnote counter before making any colorbox, because footnote counters are local for every box
- setcounter{footnotecount}{value{footnote}}% Store footnote counter
- begin{tcolorbox}
- % Load the counter and refer to your global footnote
- setcounter{footnote}{value{footnotecount}}
- Second reference to global footnotefootnotemark[ref{name}]
- begin{tcolorbox}
- % It's still possible to use local footnotes, which by default (conveniently) uses letters in the tcolorbox environment
- A local footnotefootnote{This is a local footnote}
- setcounter{footnote}{value{footnotecount}}
- Third reference to global footnotefootnotemark[ref{name}]
- % Another local footnote, not disturbed by the counter of the global footnote:
- A local footnotefootnote{This is my second local footnote}
- end{tcolorbox}
- end{tcolorbox}
- end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement