I'm writing about this author and most of my references are of her work. There's only one single entry by another person with the same lastname and I'd like that only this entry were disambiguated with the given name, as in
I tried to manually edit the .bbl
file and set the uniquename
field to 0
, and that works. So I tried this:
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=hash,
match={d6cfb2b8c4b3f9440ec4642438129367},
final]
\step[fieldset=uniquename, fieldvalue=0]
}
}
}
But it doesn't work (I don't think hash
and uniquename
are "fields", but I don't know how to call them)
Here's a non working mwe:
\begin{filecontents}{\jobname.bib}
@book{mainauthor,
author = {Jane Doe},
title = {Title},
year = {2016},
option = {uniquename=false},
}
@book{another,
author = {Hans Doe},
title = {Title},
year = {2016},
}
\end{filecontents}
\documentclass{article}
\usepackage[style=authoryear]{biblatex}
\addbibresource{\jobname.bib}
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=hash,
match={d6cfb2b8c4b3f9440ec4642438129367},
final]
\step[fieldset=uniquename, fieldvalue=0]
}
}
}
\begin{document}
\autocites{mainauthor,another}
\printbibliography
\end{document}
uniquename
using source mapping. – moewe Sep 14 '16 at 13:27uniquename
should be a per-entry option, but not even that seems to work in your MWE - maybe that is a bug, or I misunderstand what should be happening in that case. – moewe Sep 14 '16 at 13:29