I'm using the varioref package to get descriptive references. When used with the hyperref package, the links will often go outside of the text boundary, as demonstrated in the MWE below.
If I set breaklinks=true in the hyperref package, then the link will break across lines (good), but at the expense of the link not working (bad).
Is there a way to fix this? In the context of this example, I would almost prefer, 'on the preceding page', to be regular text, and not part of the link.
\documentclass{report}
\usepackage[left=6cm,right=1cm,showframe=true]{geometry}
\usepackage{varioref}
\usepackage[colorlinks=true,linkcolor=blue]{hyperref}
\usepackage[all]{hypcap}
\begin{document}
\begin{table}
\centering
\begin{tabular}{cc}
1 & 2
\end{tabular}
\caption{We're going to link to this table}
\label{tab:mytable}
\end{table}
\clearpage
Some text to fill in the space. This should emulate the problem- in Table \vref{tab:mytable}
\end{document}
EDIT
Here's the relevant info from listfiles
varioref.sty 2011/07/27 v1.4z package for extended references (FMi)
hyperref.sty 2011/08/19 v6.82h Hypertext links for LaTeX
Following the comments, yes I'm using the latex->dvips->pstopdf route.
hyperrefandvariorefare you using? To find out, add\listfilesbefore\documentclass{report}and check the.logfile after you've compiled. – Werner Sep 04 '11 at 15:35latex->dvips->pstopdfas the actual document usespstricks– cmhughes Sep 04 '11 at 15:48\usepackage[colorlinks=true,linkcolor=blue,breaklinks]{hyperref}the typesetting is correct. There are various ways to use pstricks withpdflatex. – egreg Sep 04 '11 at 15:51