Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

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
1  
@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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.