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]}
}
Best Answer
There is a difference between
\RaggedRight
and\raggedright
. Have you tried (and disliked) both?I must be honest and say, that I do not quite see what you mean by it "looks ugly" from this example. Maybe you could give a more detailed description of what exactly it is that bothers you.
Alternatively you could also take a look at this package that is specifically designed to handle URLs in the bibliography: http://www.ctan.org/tex-archive/biblio/bibtex/contrib/urlbst It has a
alphaurl.bst
, that may do a formatting to your liking. The disadvantage would be that you would need to modify your bibliography to the new tags (URL
andLastchecked
).