gutenberg / latex-awesomebox

A package to draw attention boxes in your documents, illustrated with FontAwesome icons (Mirror)
https://git.umaneti.net/latex-awesomebox/about/
Do What The F*ck You Want To Public License
52 stars 6 forks source link

Footnotes in an awesomebox not showing up #14

Closed jchampavere closed 5 years ago

jchampavere commented 5 years ago

Footnotes defined in environments from awesomebox package are not showing up, as in the MWE below.

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[a4paper]{geometry}
\usepackage{awesomebox}
\usepackage{babel}
\begin{document}
\begin{noteblock}
I can't get a \verb|\footnote|!\footnote{Can I?}
\end{noteblock}
\end{document}

I've also posted the issue as a question in LaTeX Stack Exchange (https://tex.stackexchange.com/questions/504154/how-can-i-get-footnotes-in-awesomebox)

milouse commented 5 years ago

Hi,

Your problem comes from the fact that awesomebox use a tabular environment to create its boxes. Thus you have the same problem as this one.

To have footnotes working, you just have to add the following lines in your document header:

\usepackage{footnote}
\makesavenoteenv{tabular}

I'll add information about that in the package documentation for a future release. Thank you very much for your bug report.

I keep it open to remind me about adding documentation.

jchampavere commented 5 years ago

Thanks for the quick answer and the trick, which solves my issue.

milouse commented 5 years ago

Documentation added. This not worses a new release thought, but at least it's commited and will be published with next release.