1

I have some URL entries in my bibliography. In several of them, I noticed that a break after "http://" instead of after "http" would improve both layout and readability. This is how one entry looks like right now: enter image description here

How can I enforce a break after "http://" instead? Or, is ist possible to remove the "http://" altogether (only have it in the link?)

This is how the URL is provided:

howpublished = {\url{http://www.harrisgeospatial.com/ProductsandSolutions/GeospatialProducts/ENVI.aspx}},
1

You can prevent breaks after the colon:

\documentclass{article}

\usepackage{url}
\usepackage{etoolbox}

\textwidth=0.5cm
\begin{document}
blbl \url{http://www}

\appto\UrlNoBreaks{\do\:}

blbl \url{http://www}
\end{document}

enter image description here

Removing the http:// would be easy with biblatex/biber (but more difficult if the link should remain clickable). With bibtex you would imho have to patch \url.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.