1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
%
% This file presents the 'authoryear-comp' style
%
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=authoryear-comp]{biblatex}
\usepackage{hyperref}
\bibliography{biblatex-examples}
% Some generic settings.
\newcommand{\cmd}[1]{\texttt{\textbackslash #1}}
\setlength{\parindent}{0pt}
\begin{document}
\section*{The \texttt{authoryear-comp} style}
This style is a compact version of the \texttt{authoryear} style
which prints the author only once if subsequent references passed to
a single citation command share the same author. If they share the
same year as well, the year is also printed only once. This style
will implicitly enable the \texttt{sortcites} package option at load
time.
\subsection*{Additional package options}
\subsubsection*{The \texttt{dashed} option}
By default, this style replaces recurrent authors/editors in the
bibliography by a dash so that items by the same author or editor
are visually grouped. This feature is controlled by the package
option \texttt{dashed}. Setting \texttt{dashed=false} in the
preamble will disable this feature. The default setting is
\texttt{dashed=true}.
\subsubsection*{The \texttt{mergedate} option}
The \texttt{mergedate} option controls whether or not date
specifications are merged with the date label which is printed after
the author in the bibliography. For example, while
\texttt{mergedate=false} outputs:
\begin{quote}
Doe, John (2008a). \enquote{Article}. In: \emph{Journal} 23.5 (May
2008), pp.~5--24.
\end{quote}
%
\texttt{mergedate=true} will print:
\begin{quote}
Doe, John (May 2008a). \enquote{Article}. In: \emph{Journal} 23.5,
pp.~15--34.
\end{quote}
%
The default setting is \texttt{mergedate=true}. Note that this
options only affects the bibliography. Citations never include full
dates anyway. In this example, the citation will be \enquote{Doe
2008a} in both cases.
\subsection*{Multiple citations}
\cite{knuth:ct:c,aristotle:physics,knuth:ct:b,aristotle:poetics,aristotle:rhetoric,knuth:ct:d}
\clearpage
\printbibliography
\end{document}
|