7
votes
2answers
202 views

How can I effect line breaks within the title without hardcoding \\'s in \title?

Although I do need line breaks within my title for my document's title page (I'm using the book class), I'd like to avoid hardcoding line breaks in the argument passed to the \title command, for three ...
0
votes
0answers
25 views

URLs out of page margin [duplicate]

I am writing a report in LaTeX. I am done with all of the work. Last thing that is remaining is that some of my references are going out of the margins and I don't know how to handle them. I Googled ...
3
votes
1answer
177 views

hyperref line break problem

I am using xelatex and I have the following warnings: !!!** WARNING ** Annotation out of page boundary.!!! !!!** WARNING ** Current page's MediaBox: [0 0 597.6 842.4]!!! !!!** WARNING ** Annotation: ...
4
votes
2answers
280 views

How to use \url in sloppypar to make url into multi-lines?

I met a problem about how to make the long link into a multi-lines one. The following is LaTeX code: \documentclass[11pt]{article} \usepackage[colorlinks,citecolor=black,linkcolor=black]{hyperref} ...
3
votes
1answer
247 views

Why hyperref doesn't break links when using \href but it does when using \url ? Bibtex entries in the middle of a document?

I encountered the following problem while preparing my CV. There are a few links prepared by hyperref that are not broken in several lines. I am wondering if there is a way to fix this problem. This ...
6
votes
1answer
149 views

How to carry long text of \href to the next line while ocgcolorlinks is present?

This simplest code \documentclass[a4paper]{book} \usepackage[ocgcolorlinks]{hyperref} \begin{document} \href{"some URL"}{"long text"} \end{document} by compiling with pdflatex puts the "long ...
4
votes
2answers
497 views

Insert hyphenation point in BibTeX using PDFLaTeX and hyperref

How to tell PDFLaTeX to make hyphenation in place where I want it to be? I have my document file: \documentclass[10pt,a4paper]{article} \PassOptionsToPackage{hyphens}{url}\usepackage{hyperref} ...
4
votes
1answer
115 views

Several nameref and page margins

I've been struggling with nameref for some time now. I am trying to make them respect the available space there is on a line, but I can't seem to find how. The LaTeX code is the following: ...
12
votes
1answer
245 views

Box around raggedright links spanning two lines extends to right margin

I need to use boxed links and ragged right text. The problem is that when a link spans two lines, though the link is broken correctly (when using pdflatex) the box around the linked text extends until ...
15
votes
1answer
709 views

How to break long URLs using common hyphenation but adding a line feed indicator?

I saw several questions like this one that request a solution for breaking apart URLs. I wonder if it is possible to hyphenate the words in a URL as it happens in normal text (i.e., breaking apart ...
9
votes
1answer
721 views

bibtex: URL and DOI line breaks on different characters

In my references, I want to allow DOI's to break on a slash '/' character (or as a last resort on any character) to avoid underfull lines like the third reference below. Note that URL's are already ...
7
votes
1answer
3k views

How to break long url in an item

I have an enumerate. In an item I have a long url. I use the package breakurl and it works fine outside the enumerate but not in the item. \usepackage[margin=3cm]{geometry} \usepackage{hyperref} ...
10
votes
1answer
5k views

hyperref package, breaklinks option

When I compile with LaTeX + dvips, I get the following warning message: Package hyperref Warning: You have enabled option `breaklinks'. (hyperref) But driver `hdvips.def' does not ...
13
votes
1answer
3k views

Hyperref + \url: long URL with dashes won't break

I've discovered a rather weird behaviour of PdfLaTeX. In this example \documentclass{article} \usepackage[breaklinks]{hyperref} \begin{document} ...
11
votes
1answer
1k views

Breaking links and escaping characters in bibliographies with backlinks and ocgcolorlinks set

I have the following situation: I have to use the ocgcolorlinks option in hyperref, so that links are not broken. So I had the idea to set each char as a link with \href. After putting some code ...
3
votes
0answers
1k views

BibTeX, hyperref, natbib and very long (institutional) author names in references [closed]

Edit: having tried to make a MWE the issue I was having has gone away - so please disregard! I'm having trouble with a reference to a work by MIT, I have to cite this as "Massachusetts Institute of ...
3
votes
1answer
516 views

varioref hyperlinks go outside the text boundary

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 ...
7
votes
4answers
6k views

How to allow line break in a long hyperlink in a PDF compiled by latex-dvips-ps2pdf?

I am using latex-dvips-ps2pdf steps with -Ppdf option passed to dvips. The following code snippet \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage{breakurl} ...
14
votes
2answers
11k views

How to put a line-break in section heading?

I have some section headings occupying two lines and I'm not satisfied with the way XeLaTeX breaks the heading. If I manually add \\ the output looks fine, but I get the following warning: [hyperref] ...
4
votes
1answer
3k views

hyperref url breaking

References: Forcing linebreaks in \url So, in a plain document with \usepackage{url} \begin{document} You can find this at \url{very-long-url}. \end{document} the URL will be broken down, e.g. ...