hyperref and \verb

Doug McKenna doug at mathemaesthetics.com
Thu Jan 30 00:28:02 CET 2020


There is a package called |fancyvrb| that should be loaded prior to the |hyperref| package. Then, after |hyperref| is loaded, you can add a line to your file: 

\VerbatimFootnotes % Enable fancyvrb package to work in footnotes 

The program I use to convert my source files to LaTeX files for typesetting C code into a book uses verbatim quotes of code extensively, and the above allows verbatim code to be quoted in footnotes. It seems to work in my case. 

Doug McKenna 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20200129/54fc8c5e/attachment.html>


More information about the texhax mailing list.