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.

What do I have to write in the preamble to bring the bibliography to make parentheses around the volume number of an article? I'm using the authoryear style.

Here is an example:

\begin{filecontents}{filename.bib}
@article{Billio.2012,
author = {Billio, Monica and Getmansky, Mila and Lo, Andrew W. and Pelizzon, Loriana},
year = {2012},
title = {Econometric measures of connectedness and systemic risk in the finance and insurance sectors},
pages = {535--559},
volume = {104},
number = {3},
journal = {Journal of Financial Economics}
}
\end{filecontents} 
\documentclass{article}
\usepackage[hyperref=true,
            maxcitenames=4,
            isbn=false,
            dashed=false,
            style=authoryear,
            backend=bibtex,
            firstinits=true]{biblatex}
\bibliography{filename.bib}
\begin{document}
\cite{Billio.2012}
\newpage
\renewcommand\refname{List of Literature}
\printbibliography[heading=bibintoc]
\end{document}

Any help is appreciated.

share|improve this question
2  
I think it's \DeclareFieldFormat[article]{number}{(#1)} in the preamble. –  Jörg Nov 5 '12 at 22:39

1 Answer 1

up vote 14 down vote accepted

Change the number field format for @article (already hinted by Jörg) and redefine the volume+number+eid bibmacro to remove the dot after the volume (and add a non-breaking space or thin space if desired).

\documentclass{article}

\usepackage[style=authoryear,firstinits=true]{biblatex}

\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
%  \setunit*{\adddot}% DELETED
  \setunit*{\addnbspace}% NEW (optional); there's also \addnbthinspace
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{Billio.2012,
author = {Billio, Monica and Getmansky, Mila and Lo, Andrew W. and Pelizzon, Loriana},
year = {2012},
title = {Econometric measures of connectedness and systemic risk in the finance and insurance sectors},
pages = {535--559},
volume = {104},
number = {3},
journal = {Journal of Financial Economics}
}
\end{filecontents} 

\addbibresource{\jobname.bib}

\nocite{*}

\begin{document}

\printbibliography

\end{document}

enter image description here

More information at Guidelines for customizing biblatex styles.

share|improve this answer
    
Thank you and Jörg for the help! –  al.schmid Nov 6 '12 at 13:39

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.