Linebreak before URL with biblatex/alphabetic
\documentclass{scrartcl}
\usepackage{xcolor}
\usepackage[style=authoryear,backend=biber,]{biblatex}
\usepackage[colorlinks=true,urlcolor=red!50!black]{hyperref}
\addbibresource{biblatex-examples.bib}
\DeclareFieldFormat{formaturl}{\newline #1}
\newbibmacro*{url+urldate}{%
\printtext[formaturl]{%
\printfield{url}}%
\iffieldundef{urlyear}
{}
{\setunit*{\addspace}%
\printtext[urldate]{\printurldate}}}
\begin{document}
\cite{ctan}
\printbibliography
\end{document}
With DeclaredFieldFormat
you can format the whole string of url and urldate. In this case I insert a \newline
in front of the ouput.
EDIT:
added printtext
I found the following package useful for line breaking an URL. At the preamble, just put \usepackage{breakurl}
somewhere after \usepackage{hyperref}
. The \burl
command is defined and, by default, the package also turns the \url
command into a synonym of \burl
.