TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

\section{Example} \label{example}
Section \ref{example}.

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).

enter image description here

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

Any ideas on how to fix this?

share|improve this question
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

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

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.