## LaTeX forum ⇒ Text Formatting ⇒ hyperref | Option "breaklinks" with dvips Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

### hyperref | Option "breaklinks" with dvips

Hi all.

Consider the following MWE:

\documentclass{article}\usepackage[danish]{babel}\usepackage[breaklinks=true]{hyperref} \begin{document} \tableofcontents\bigskip \section{A title which is longer that the width of the page in order to illustrate the problem} \end{document}

When I compile via latex + dvips + ps2pdf (I have PSTricks figures and EPS pictures in my real document), I get the following warning:

Package hyperref Warning: You have enabled option breaklinks'.
(hyperref) But driver hdvips.def' does not suppport this.

Is there any way to fix this so that the link from a ToC entry, which i longer than the textwidth, will be correct? (It obviously is not correct in the MWE above.)

P.S. The two and a half lines just before the beginning of section 3.3 in the hyperref manual is not very encouraging reading. Therefore, I am looking for some other trick.
In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

Stefan Kottwitz
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm
Hi,

\usepackage{hypdvips}

Stefan

svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am
Awesome!

Thank you.

To other users: You have to load the package after hyperref. (It is all in the documentation.)
In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)