For the same author, I want a reference like Doe (1990; 1997)
rather than Doe (1990) and Doe (1997)
, and I want (Doe 1990; 1997)
rather than (Doe 1990; Doe 1997)
.
In other words, my question is very close to this question but I am using biblatex
, not natbib
.
Is there a straightforward, simple way to do this? Apologies if I am overlooking something.
Here is the MWE:
\documentclass{standalone}
\usepackage[applemac]{inputenc}
\usepackage[backend=biber,style=authoryear,giveninits]{biblatex}
\bibliography{Literature}
\begin{document}
I get ``\textcite{Doe1996,Doe1990}" but I want ``Doe (1990; 1997)". I get ``\autocite{Doe1996,Doe1990}" but I want ``(Doe 1990; 1997)"
\end{document}
style=authoryear-comp
should give you the desired result. From thebiblatex
documentation: "A compact variant of the authoryearstyle which prints the author only once if subsequent references passed to a single citation command share the same author. ". See also: Biblatex - Combine Papers using citet for a similar question.style=authoryear-comp,
as suggested by leandriis should get you pretty far. The only difference is that it uses a comma to separate years and not a semicolon, but that could be changed if desired. If you don't get 'compact' citations despite usingstyle=authoryear-comp,
, you need to show us a compilable example complete with.bib
entries (you can usebiblatex-examples.bib
and the two entriesknuth:ct:a
andknuth:ct:b
). The following works for me gist.github.com/moewew/4f45ab210f29494406b7b08848d817a1filecontents
will not overwrite an existing file. This is a problem when your are experimenting and adding entries one by one. Of course you could always remove the automatically generated.bib
file when you add a new entry, but that is cumbersome. There are ways to allowfilecontents
to overwrite existing files. In a current LaTeX version write\begin{filecontents}[force]{\jobname.bib}
instead of\begin{filecontents}{\jobname.bib}
to allow overwriting. In an older LaTeX version load\usepackage{filecontents}
.