I tried two ways to format a bibliography with lots of URL's:
- Without 'RaggedRight'
- With 'RaggedRight'
In the first case, there are wide spaces between words in some items, that a really not acceptable. In the second case, the whole bibliography looks rather ugly for my taste.
So I'm looking for a third way, without 'RaggedRight' and without the spaces between words. Here is a MWE:
\documentclass[fontsize=14pt, DIV=13, german, a4paper, table]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{url}
\usepackage{ragged2e}
\usepackage[hyphenbreaks]{breakurl}
\sloppy
\begin{document}
\part{Part 1}
\label{part:part-1}
\chapter{Chapter 1}
\label{chap:chapter-1}
\section{Section 1}
\label{sec:section-1}
Here I cite two publications: first \cite{toll2009leibnitzMonaden},
then \cite{duarte2011jobsTrends}.
% \begin{RaggedRight}
\bibliographystyle{alpha}
\bibliography{literatur/literatur}
% \end{RaggedRight}
\end{document}
using the following .bib file:
@Misc{duarte2011jobsTrends,
author = {Duarte, Gustavo},
title = {{Programming Language Jobs and Trends}},
howpublished =
{\url{http://duartes.org/gustavo/blog/post/programming-language-jobs-and-trends}},
year = 2011,
note = {[Online; accessed 25-July-2011]}
}
@Misc{toll2009leibnitzMonaden,
author = {Toll, Andreas},
title = {{Leibniz' Philosophie der Monaden}},
howpublished =
{\url{http://www.suite101.de/content/leibnitz-philosophie-der-monaden-a58452}},
year = 2009,
note = {[Online; accessed 04-August-2011]}
}
\smallfont size directive for the bibliography, you'd find that -- at least for the two entries you show -- both fully-justified and RaggedRight text may look fairly good. Incidentally, don't use the\usepackage[hyphenbreaks]{breakurl}directive; use\usepackage[hyphens]{url}instead. – Mico Jan 07 '13 at 17:05breakurldoesn't work withpdflatex. You getting considerably better results with\usepackage[hyphens]{url}as suggested by Mico. See also http://tex.stackexchange.com/q/3033/15925 . – Andrew Swann Jan 08 '13 at 08:34