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

I have a problem with a too long hyperlink.

This reference is one word, but it is too long and doesn't set the text width, so some part is pushed beyond the margin:


How to pledge hyperlink to break on a new line (similarly as when LaTeX breaks words across lines)?

share|improve this question
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. – hpesoj626 Oct 16 '12 at 11:26
It's hard to know how to answer your question without more context. Please add a minimal working example (MWE) that illustrates your problem. – Andrew Uzzell Oct 16 '12 at 11:27
Possible duplicate: Forcing linebreaks in \url – hpesoj626 Oct 16 '12 at 11:51

Hyperref driver with breaklinks support

Then TeX couldn't find break points and the question is not related to hyperref. Solution: Insert break points, e.g. \-, \discretionary, \hyphenation, \penalty, …

Hyperref driver without breaklinks support

From the README:

Wrapped/broken link support

Only few drivers support automatically wrapped/broken links, e.g. pdftex, dvipdfm, hypertex. Other drivers lack this feature, e.g. dvips, dvipsone.


  • For long section or caption titles in the table of contents or list of figures/tables option linktocpage can be used. Then the page number will be a link, and the overlong section title is not forced into an one line link with overvull \hbox warning.
  • \urls are caught by package breakurl.
  • The option breaklinks is intended for internal use. But it can be used to force link wrapping, e.g. when printing a document. However, when such a document is converted to PDF and viewed with a PDF viewer, the active link area will be misplaced.

    Another limitation: some penalties are "optimized" by TeX, thus there are missing break points, especially within \url. (See thread "hyperref.sty, breaklinks and url.sty 3.2" in comp.text.tex 2005-09).

Also manual broken links are possible:

share|improve this answer

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.