9

I use something like the following to get a footnote without an anchor.

\documentclass{article}
\usepackage{hyperref}
\begin{document}
{\let\thefootnote\relax\footnotetext{2010 Mathematics Subject Classification: 05A05, 05A16.}}
\end{document}

The hyperref package doesn't like this and produces a warning. Is there something simple I can do to prevent the warning? (I prefer to have no warnings.) I do want hyperref to create links for normal footnotes.

A more general question (which should answer the specific one): Is there a command that locally disables hyperref from creating a link?

0

1 Answer 1

11

To get unnumbered footnotes, I would suggest defining a custom command as shown in the following MWE:

\documentclass{article}
\usepackage{hyperref}

\newcommand\nnfootnote[1]{%
  \begin{NoHyper}
  \renewcommand\thefootnote{}\footnote{#1}%
  \addtocounter{footnote}{-1}%
  \end{NoHyper}
}
\begin{document}
\nnfootnote{2010 Mathematics Subject Classification: 05A05, 05A16.}
\end{document}

The NoHyper environment additionally ensures that there is no hyperlink from the text to the footnote.

2
  • 1
    The NoHyper environment it is then. That appears not to be mentioned in the hyperref docs. But is in tex.stackexchange.com/questions/118182/…. Feb 16, 2018 at 13:15
  • 2
    I think you loose the "cliccability" of links, as in \nnfotnote{...\url{https://tex.stackexchange.com/a/415633/56076}...} Mar 8, 2021 at 17: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.