# hyperref package - link boxes are too small (overlap the text)

The boxes the hyperref package creates around links in my document are too small, hiding out the characters. I'm using latex to get a DVI, then dvi2pdfm to get a PDF. Both from MikTex 2.8. Here's an example:

\documentclass[letter,10pt]{article}
\usepackage[dvipdfm]{hyperref}
\begin{document}
\section{Example}
\section{Example} \label{example}
Section \ref{example}.
\end{document}


As you can see in the picture below, the resulting box overlaps the "2". Below it is how I expect it to look, copied from some PDF on the web (not mine).

I get the same problem if I use the "hypertex" driver in hyperref.

Any ideas on how to fix this?

-
Is there any reason you don't use pdflatex? –  Andrey Vihrov Jul 13 '11 at 10:39
@Andrey, pdflatex works, thanks! It means I have to use epstopdf for my images and slow down the first compilation, but I can live with that. Still I'm curious about the original problem. –  Adam Morrison Jul 13 '11 at 10:50
Is there any reason to use latex->dvi2pdfm? Are you importing EPS or using PSTricks code? If your input file (.tex file) imports PNG, JPEG or PDF files, you should use pdflatex. If it does not solve the issue, try update your MikTeX. –  xport Jul 13 '11 at 12:37
@xport, yes I'm importing EPS. –  Adam Morrison Jul 13 '11 at 13:48

## 1 Answer

use the driver dvips and then run latex->dvips->ps2pdf

-
Thanks, that works. Sadly it adds an extra step. So is the problem in dvipdfm? –  Adam Morrison Jul 13 '11 at 13:49
yes, I think so –  Herbert Jul 13 '11 at 14:06