## biblatex and natbib, year printed twice

### biblatex and natbib, year printed twice

Hi,

I am running biblatex 0.9a with natbib style. In my citations, the year
always gets printed twice. Any idea what is causing this?

Cheers,

Georg

Here is a minimal example:

\documentclass[a4paper]{article}

\usepackage{csquotes}
\usepackage[style=mybiblio,
natbib=true,
maxnames=6,
minnames=5,
sortcites=true,
bibtex8=true,
block=space]{biblatex}

\bibliography{test}

\begin{document}

\section{Example}
This is an example citation: \cite{Falcon2007UsingGOstatsto}.

\printbibliography

\end{document}

Here is the content of the corresponding test.bib file:

@ARTICLE{Falcon2007UsingGOstatsto,
author = {S Falcon and Robert Gentleman},
title = {Using GOstats to test gene lists for GO term association},
journal = {Bioinformatics},
year = {2007},
volume = {23},
pages = {257--258},
number = {2},
month = {2},
}

### biblatex and natbib, year printed twice

In article < XXXX@XXXXX.COM >,

Howdy,

What is in the mybiblio style? Could that be the cause of the problem?

Good Luck,
Herb Schulz

### biblatex and natbib, year printed twice

Herbert Schulz < XXXX@XXXXX.COM > writes:

Hi,

I was probably confused because it did work without problems with
biblatex v0.8i, while the problem occured with biblatex 0.9a, using the
same mybiblio style. Your post made me have a second look at my mybiblio
style, and indeed I could find the cause:

mybiblio is based on authoryear.bbx, and there is a macro
year+labelyear, with a field for year and for labelyear. I just
commented out the field labelyear. I am pretty new to biblatex, so I am
not sure if that is the appropriate way to do it, but it gives me the
result I want

\newbibmacro*{year+labelyear}{%
\iffieldundef{year}
{} {\printtext[parens]{%
\printfield{year}%
% removed labelyear \printfield{labelyear}
}}}

Cheers,

Georg