blob: a4abc5c3e8e4595ca9ff014d7a136d8e853eb3e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<head>
<title>UK TeX FAQ -- question label breaklinks</title>
</head><body>
<h3>Link text doesn't break at end line</h3>
<p>When using the <i>hyperref</i> package, you make a block of text
"active" when you define a hyper-link (when the user clicks on
that text, the reader program will divert to the <em>target</em> of the
link).
<p>The <i>hyperref</i> package uses a <em>driver</em> (in the same way
as the <i>graphics</i> package does), to determine how to implement
all that hyper-stuff.
<p>If you use the driver for <i>dvips</i> output (presumably you want
to distill the resulting PostScript), limitations in the way <i>dvips</i>
deals with the <code>\</code><code>special</code> commands mean that <i>hyperref</i>
must prevent link anchors from breaking at the end of lines. Other
drivers (notably those for PDFTeX and for <i>dvipdfm</i>) don't
suffer from this problem.
<p>The only known solution to this problem is to use the
<i>breakurl</i> package. This package provides a very simple
solution: in place of the single link, the <code>\</code><code>burl</code> command produces
a sequences of small pieces, between each of which a line break is
permitted. Each sequence of pieces, that ends up together in one
line, is converted to a single clickable link.
<dl>
<dt><tt><i>breakurl.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/breakurl.zip">macros/latex/contrib/breakurl</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/breakurl.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/breakurl/">browse</a>)
</dl>
<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=breaklinks">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=breaklinks</a>
</body>
|