gutenberg / latex-awesomebox

A package to draw attention boxes in your documents, illustrated with FontAwesome icons (Mirror)

Home Page:https://git.umaneti.net/latex-awesomebox/about/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Footnotes in an awesomebox not showing up

jchampavere opened this issue · comments

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)

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.

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

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