I'm using exam package, I would like to add a footnote to a solution: it displays the mark but not the note text. In question environment it is all right.

\documentclass[12pt, answers]{exam}
\usepackage[english, italian]{babel}


%\myhdr{3A - INT}{Domande da un minuto}{Sistemi}{Pag. \thepage\ - \numpages}

\section{Capitolo 1}

In quali parti si divide un \footnote{footnotes working fine} indirizzo IPv4?
    \begin{solution}Network portion e Host portion\footnote{footnotes working fine} \end{solution}

\section{Capitolo 8}
In quanti livelli viene, di fatto, divisa la gerarchia della rete dal momento in cui aggiungo le sottoreti?
    \begin{solution}Tre: rete, sottorete e host\end{solution}
Che cosa viene facilitato dalla creazione di un ulteriore livello nella gerarchia di rete?
    \begin{solution}La creazione dei sottogruppi nella rete IP che ne deriva facilita la velocizzazione di trasmissione dei pacchetti e la minimizzazione del traffico locale\footnote{ Introducing an additional level to the hierarchy creates additional sub-groups within an IP network that facilitates faster packet delivery and added filtration, by helping to minimize ‘local’ traffic.}\end{solution}

I would like to have it working even with my footer on, though commented in this example.


You can use the footnote pacakge to obtain footnotes from within the exam class:

enter image description here


\documentclass[12pt, answers]{exam}



Some question
    Text\footnote{Some footnote} 

  • 1
    Thanks, it worked. Anyway, just using package footnote was of no help, until I added the \makesavenoteenv{solution} line. Could you please explain the little magic of that command? – massi Sep 22 '17 at 6:18
  • 2
    @massi: The \makesavenoteenv is used to specify for which environments, the \footnotes should be saved. – Peter Grill Sep 25 '17 at 2:18
  • It works, but it has a problem. When the answer option is removed, the footnote still appears in the document. – Sergio Llorente Jul 5 '18 at 17:35
  • @SergioLlorente: I think it best if you ask a new question and include a MWE including \documentclass and the appropriate packages that reproduces the problem. You can reference this question if it is relevant. – Peter Grill Jul 5 '18 at 20:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.