Is it possible to adjust the size of the box around the footnote links produced by hyperref? Specifically, I would like to move the base of the box closer to the base of the object inside.

The quick brown fox jumps over the lazy dog\footnote{and lands on a spike}.

footnote link

3 Answers 3


You can try processing your file with xelatex. When I do that with your MWE, hyperref forms a box tightly around the footnote. When I tried with pdflatex, I received the same output as in the image you attached.

  • 1
    +1 -- I think your "comment" is an answer. (Just to be clear: I tested it and it worked.)
    – lockstep
    Commented Feb 9, 2012 at 19:48
  • 3
    IMHO changing the compiler is not a general solution. I for myself would like to stick with pdflatex. Commented Feb 10, 2012 at 11:37
  • I get an assortment of different results using different engines on different machines. I'm going to avoid boxed links in the future. Commented Mar 2, 2012 at 16:32

"You can[...] adjust it for pdflatex with[...] hacking hyperref" (Lars Kotthoff, https://tex.stackexchange.com/a/44032/6865), thus:

enter image description here


% If you like footnotesymbols instead of numbers:



  \ltx@ifpackageloaded{hyperref}{% hyperref loaded
    \ifHy@hyperfootnotes% option hyperfootnotes=true
      % Code from the hyperref package
      % End of code form the hyperref package
   }{% hyperref not loaded, nothing to be done here
  \xdef\sfootnote@opt{#1}% contains the optional argument
  \xdef\sfootnote@arabic{\arabic{footnote}}% is the Arabic footnotenumber
  \edef\sfootnote@formated{\thefootnote}% could also be * or dagger
  \ifx\sfootnote@opt\empty% i.e. no optional argument used
    \ltx@ifpackageloaded{hyperref}{% hyperref loaded
     }{% hyperref not loaded
  \ltx@ifpackageloaded{hyperref}{% hyperref package loaded
    \ifHy@hyperfootnotes% option hyperfootnotes=true
      \hbox {\@textsuperscript {\normalfont \ref{fnr:\sfootnote@arabic}}}%
    \else% option hyperfootnotes=false
      \hbox {\@textsuperscript {\normalfont \ref*{fnr:\sfootnote@arabic}}}%
  }{% hyperref package not loaded
    \hbox {\@textsuperscript {\normalfont \ref{fnr:\sfootnote@arabic}}}%


The quick\footnote{really fast} brown\footnote{maybe more like a dark red} fox
jumps over the\footnote[1]{custom footnote number: 1} lazy
dog\footnote{and escapes the hunt}.


It is easier to test the hyperlinks when there is a second page!


Footnotes are challenging - https://tex.stackexchange.com/search?q=footnote currently lists nearly 400 questions. Therefore there is no guarantee that this will work for more complex situations or with one or the other of the many packages handling footnotes.


You can't adjust it for pdflatex without hacking hyperref. It uses a PDF annotation to display the link and the size of the box is defined by a Rect ... inside the PDF. The code that generates that is

/H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def

i.e. it uses the coordinates of the bounding box as determined by pdflatex. You would need to work around this and adjust the incorrect bounding box.

I'd recommend that you go with the xelatex answer.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .