3

I'm writing an article using the REVTeX documentclass, and use hyperref. The problem is that when I add URLs to my references, the linked titles aren't broken at all.

Minimal example:
.tex file:

\documentclass[twocolumn]{revtex4-1}
\usepackage{hyperref}
\begin{document}
\cite{reference, reference2}
\bibliography{references}
\end{document}

references:

@TECHREPORT{reference,
    AUTHOR      = {Firstname Lastname},
    TITLE       = {Extremely long and complicated title of something I want to reference several times in my very interesting article},    
    INSTITUTION = {Institution},
    YEAR        = {2013},
    URL         = {http://url/}
}

@TECHREPORT{reference2,
    AUTHOR      = {Firstname Lastname},
    TITLE       = {Regular reference},    
    INSTITUTION = {Institution},
    YEAR        = {2013},
    FILE        = {http://url/},
}

Compile using latex, bibtex, latex, latex, dvipdf.

The result:enter image description here

Does anyone know of a way to remedy this?

closed as too localized by Andrew Swann, Kurt, jubobs, Qrrbrbirlbel, T. Verron May 24 '13 at 15:48

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Welcome to TeX.SX! You may have a look on our starter guide. Your sample code wraps correctly for me. Are you packages up-to-date? – Andrew Swann May 24 '13 at 8:34
  • Your code works for me. Maybe you use some old package versions. – mafp May 24 '13 at 8:36
  • How can I check what package versions I have? I'm on Ubuntu 12.04, using the default versions from the repos – Filip S. May 24 '13 at 8:46
  • @AndrewSwann Could you tell me what versions of the packages you have? I added \listfiles to my preamble, and got hyperref.cfg 2002/06/06 v1.2, revsymb4-1.sty 2010/07/25/20:33:00 4.1r, natbib.sty 2010/09/13 8.31b, url.sty 2006/04/12 ver 3.3, and lots of other packages I don't know if is relevant. – Filip S. May 24 '13 at 9:05
  • 1
    Using latex gives the problem. breakurl solutions as in tex.stackexchange.com/q/20768/15925 would be expected to help, but revtex writes an \href command in the bibliography rather than \url. Now breakurl provides \burlalt that has the same syntax as \href, but (a) I can't get the \burlalt command to work - it produces compilation errors even in simple article documents, (b) I don't see how to make the substitution of \href by \burlalt, except via an external processing of the .bbl. I think you are going to have to use pdflatex – Andrew Swann May 24 '13 at 11:08

Browse other questions tagged or ask your own question.