moewew / biblatex-trad

traditional bibliography styles with biblatex
LaTeX Project Public License v1.3c
31 stars 7 forks source link

Incollection extra "in"; also inproceedings #3

Closed russella closed 11 years ago

russella commented 11 years ago

Dear Marco,

It seems that there is a bug in the treatment of incollection & inproceedings (I recall that you hadn't completely implemented inproceedings yet). For, e.g., the following entry

@incollection{kohayakawa2,
author={Y. Kohayakawa},
title={{Szemer\'{e}di's} regularity lemma for sparse graphs},
booktitle={Foundations of Computational Mathematics},
editor={F. Cucker and M. Shub},
pages={216--230},
publisher=springer,
year={1997}
}

Using the trad-plain style, this is laid out with an extra "in":

Y.Kohayakawa. Szemer ́edi’s regularity lemma for sparse graphs.In F. Cucker and M. Shub, editors, Foundations of Computational Mathematics, in, pages 216–230. Springer, 1997 (cited on page 4).

Regards, Alex

marcodaniel commented 11 years ago

Hi,

fixed by the following redefinition:

\renewbibmacro*{series+number}{%
  \printfield{number}%
  \setunit*{\addspace}%
  \iffieldundef{series}{}%
   {
    \usebibmacro{in:}%
    \printfield{series}%
   }%
  \newunit}

regards Marco