I have trouble with the size of boxes around links when using hyperref
. When I run the following minimal working example with LaTeX,
\documentclass[letter,10pt]{amsart}
\usepackage{hyperref}
\hypersetup{pdfborder = {0 0 2}}
\newtheorem{Thm}{Theorem}
\begin{document}
\begin{Thm} \label{Fractions}
$ \dfrac{p}{q} + \dfrac{r}{s} = \dfrac{p s + q r}{q s} $.
\end{Thm}
Applying Theorem \autoref{Fractions}, we get
$ \dfrac{1}{3} + \dfrac{4}{5} = \dfrac{5 + 12}{15} = \dfrac{17}{15} $.
\end{document}
I get a box around the counter ‘1’ that is too tall (having the same height as the fractions that appear on the same line). When I run it with XeLaTeX instead (which some people say solves the problem), I get a box that is too short and overlaps with the text! What I need is a box that fits the content nicely with no overlaps and does not at all depend on the size of other text on the same line.
Could someone help me out here? Thank you very much!
Additional Comment
I have been told that it is the use of \dfrac
that causes the box around the counter to be too tall, but I want to be able to use \dfrac
without having this problem. Compiling with XeLaTeX almost solves the problem, but the box is too small for my liking, because its frame overlaps with the text within and makes it hard to read.
\dfrac
in that line the line height is large and so is the box. To check put a blank line afterwe get
. – user11232 Sep 17 '15 at 9:08\dfrac
causes the problem, but I would like a fix that makes the size of a link box dependent on only its content, regardless of whether I use\dfrac
or not. – Berrick Caleb Fillmore Sep 17 '15 at 18:40