Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using biblatex with bibstyle=authoryear option. I'd like to customize the style to insert a line break after the year in each bibliography entry. Currently, an entry looks like this

authoryear bibliography entry

I'd like to have a line break after (1993). so that First Draft of a... started on the new line.

Is there a user-side biblatex customization option or a command to accomplish this?

There's an option to have a line break after each block in the entry block=par, and it looks like this

enter image description here

However this is not what I need. I want the line break to be after the Author-Year line, and the rest of the blocks to be in one paragraph.

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

A simple solution is to redefine the \labelnamepunct command. This command is executed after the name and title are printed by biblatex drivers in the authoryear style. A possible re-definition is

\renewcommand*{\labelnamepunct}{\newunitpunct\par}

This produce the following output

enter image description here

share|improve this answer
    
thank you. This is exactly what I was looking for. –  dmakarov Jul 12 at 13:18
add comment

Here is another solution using the xpatch package. You'll to make the modification for every entry driver — at least for every entry you use. I also replace the quotes around title with colour:

\documentclass [12pt]{article} % this must go first, there are many different classes
\usepackage[utf8]{inputenc}
\usepackage[x11names]{xcolor}
\usepackage{filecontents}

\begin{filecontents*}{\jobname.bib}
@article{Neu93,
  author = {John von Neumann},
  title = {First Draft of a Report on the EDVAC},
  journaltitle = {IEEE Ann. Hist. Comput. },
  date = {1993},
  volume = {15},
  number = {4},
  pages = {27--75},
}
\end{filecontents*}
\usepackage{csquotes}% recommended in output (biblatex)
\usepackage[style=authoryear]{biblatex}

\usepackage{xpatch}

\xpatchbibdriver{article}{%
  \setunit{\labelnamepunct}\newblock
  }
  {%
  \newline\newblock
  }{}{}

\DeclareFieldFormat
  [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
  {title}{\color{VioletRed4!90!}#1\isdot}

\addbibresource{\jobname.bib}

\begin{document}

\nocite{*}

\printbibliography

\end{document} 

enter image description here

share|improve this answer
    
I think you have to repeat the patch for every driver. –  Guido Jul 12 at 14:29
    
Thanks, Guido. Yes, I meant to add this point, then forgot… I'll correct this at once. –  Bernard Jul 12 at 14:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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