Debian Codegraph @

texmf-dist/doc/latex/biblatex/examples/51-style-authoryear-ibid.tex

raw
1 %
2 % This file presents the 'authoryear-ibid' style
3 %
4 \documentclass[a4paper]{article}
5 \usepackage[T1]{fontenc}
6 \usepackage[utf8]{inputenc}
7 \usepackage[american]{babel}
8 \usepackage{csquotes}
9 \usepackage[style=authoryear-ibid,backend=biber]{biblatex}
10 \usepackage{hyperref}
11 \addbibresource{biblatex-examples.bib}
12 % Some generic settings:
13 \newcommand{\cmd}[1]{\texttt{\textbackslash #1}}
14 \setlength{\parindent}{0pt}
15 \newenvironment{bibsample}
16 {\trivlist\samepage
17 \setlength{\itemsep}{0pt}}
18 {\endtrivlist}
19 \begin{document}
20
21 \section*{The \texttt{authoryear-ibid} style}
22
23 This citation style is a variant of the \texttt{authoryear} style.
24 Immediately repeated citations are replaced by the abbreviation
25 `ibidem' unless the citation is the first one on the current page or
26 double page spread (depending on the setting of the
27 \texttt{pagetracker} package option). This style is intended for
28 citations given in footnotes.
29
30 \subsection*{Additional package options}
31
32 \subsubsection*{The \texttt{ibidpage} option}
33
34 The scholarly abbreviation \emph{ibidem} is sometimes taken to mean
35 both `same author~+ same title' and `same author~+ same title~+ same
36 page' in traditional citation schemes. By default, this is not the
37 case with this style because it may lead to ambiguous citations.
38 With \texttt{ibidpage=true} a page range postnote will be suppressed
39 in an \emph{ibidem} citation if the last citation was to the same
40 page range. With \texttt{ibidpage=false} the postnote is not omitted.
41 Citations to different page ranges than the previous always produce
42 the page ranges with either setting.
43 The default setting is \texttt{ibidpage=false}.
44
45 Consider the following example citations
46 \begin{verbatim}
47 \cite[378]{sigfridsson}
48 \cite[378]{sigfridsson}
49 \cite[12]{worman}
50 \cite[13]{worman}
51 \end{verbatim}
52 %
53 If \texttt{ibidpage} is set to \texttt{true}, the citations
54 come out as
55 \begin{quote}
56 Sigfridsson and Ryde 1998, p.~378
57
58 ibid.
59
60 Worman 2002, p.~12
61
62 ibid., p.~13
63 \end{quote}
64 %
65 The result for \texttt{ibidpage=false} is
66 \begin{quote}
67 Sigfridsson and Ryde 1998, p.~378
68
69 ibid., p.~378
70
71 Worman 2002, p.~12
72
73 ibid., p.~13
74 \end{quote}
75
76 \subsubsection*{The \texttt{dashed} option}
77
78 By default, this style replaces recurrent authors/editors in the
79 bibliography by a dash so that items by the same author or editor
80 are visually grouped. This feature is controlled by the package
81 option \texttt{dashed}. Setting \texttt{dashed=false} in the
82 preamble will disable this feature. The default setting is
83 \texttt{dashed=true}.
84
85 \subsubsection*{The \texttt{mergedate} option}
86
87 Since this style prints the date label after the author/editor in the
88 bibliography, there are effectively two dates in the bibliography:
89 the full date specification (e.g., \enquote{2001}, \enquote{June
90 2006}, \enquote{5th~Jan. 2008}, whose format is controlled by the
91 \texttt{date} option) and the date label (e.g., \enquote{2006a},
92 whose format is controlled with the \texttt{labeldate} option),
93 as found in citations. The \texttt{mergedate} option controls whether
94 or not date specifications are merged with the date label.
95 This option is best explained by example. Note that
96 it only affects the bibliography. Citations use the date label only.
97
98 \begin{bibsample}
99 \item Doe 2000
100 \item Doe 2003a
101 \item Doe 2003b
102 \item Doe 2006a
103 \item Doe 2006b
104 \item Doe 2017
105 \end{bibsample}
106
107 \texttt{mergedate=false} strictly separates the date specification
108 (following \texttt{date}) from the date label (following \texttt{labeldate}).
109 The year will always be printed twice:
110
111 \begin{bibsample}
112 \item Doe, John (2000). \emph{Book~1}. Location: Publisher, 2000.
113 \item Doe, John (2003a). \emph{Book~2}. Location: Publisher, 2003.
114 \item Doe, John (2003b). \emph{Book~3}. Location: Publisher, 2003.
115 \item Doe, John (2006a). \enquote{Article~1}. In: \emph{Monthly Journal} 25.6
116 (June~2006), pp.~70--85.
117 \item Doe, John (2006b). \enquote{Article~2}. In: \emph{Quarterly Journal} 14.3
118 (Fall~2006), pp.~5--25.
119 \item Doe, John (2017). \emph{Webpage}. 7th Aug. 2017.
120 \end{bibsample}
121
122 \texttt{mergedate=minimum} omits the date whenever the full date
123 and the date label have exactly the same precision (date-time granularity).
124
125 \begin{bibsample}
126 \item Doe, John (2000). \emph{Book~1}. Location: Publisher.
127 \item Doe, John (2003a). \emph{Book~2}. Location: Publisher, 2003.
128 \item Doe, John (2003b). \emph{Book~3}. Location: Publisher, 2003.
129 \item Doe, John (2006a). \enquote{Article~1}. In: \emph{Monthly Journal} 25.6
130 (June~2006), pp.~70--85.
131 \item Doe, John (2006b). \enquote{Article~2}. In: \emph{Quarterly Journal} 14.3
132 (Fall~2006), pp.~5--25.
133 \item Doe, John (2017). \emph{Webpage}. 7th Aug. 2017.
134 \end{bibsample}
135
136 \texttt{mergedate=basic} is similar in concept but more economical.
137 It will also omit the date if it differs from the date label only by
138 \texttt{extradate}.
139
140 \begin{bibsample}
141 \item Doe, John (2000). \emph{Book~1}. Location: Publisher.
142 \item Doe, John (2003a). \emph{Book~2}. Location: Publisher.
143 \item Doe, John (2003b). \emph{Book~3}. Location: Publisher.
144 \item Doe, John (2006a). \enquote{Article~1}. In: \emph{Monthly Journal} 25.6
145 (June~2006), pp.~70--85.
146 \item Doe, John (2006b). \enquote{Article~2}. In: \emph{Quarterly Journal} 14.3
147 (Fall~2006), pp.~5--25.
148 \item Doe, John (2017). \emph{Webpage}. 7th Aug. 2017.
149 \end{bibsample}
150
151 \texttt{mergedate=compact} merges all date specifications with the
152 date labels. The merged date is printed in \texttt{date} format,
153 not \texttt{labeldate}, even if it is printed in the position of
154 the date label. The \texttt{issue} field is still treated specially:
155
156 \begin{bibsample}
157 \item Doe, John (2000). \emph{Book~1}. Location: Publisher.
158 \item Doe, John (2003a). \emph{Book~2}. Location: Publisher.
159 \item Doe, John (2003b). \emph{Book~3}. Location: Publisher.
160 \item Doe, John (June 2006a). \enquote{Article~1}. In: \emph{Monthly Journal} 25.6, pp.~70--85.
161 \item Doe, John (2006b). \enquote{Article~2}. In: \emph{Quarterly Journal} 14.3
162 (Fall), pp.~5--25.
163 \item Doe, John (7th Aug. 2017).\emph{Webpage}.
164 \end{bibsample}
165
166 \texttt{mergedate=maximum} strives for maximum compactness.
167 Like \texttt{mergedate=compact} this option merges the date
168 into the date label.
169 Even the \texttt{issue} field is merged with the date label:
170
171 \begin{bibsample}
172 \item Doe, John (2000). \emph{Book~1}. Location: Publisher.
173 \item Doe, John (2003a). \emph{Book~2}. Location: Publisher.
174 \item Doe, John (2003b). \emph{Book~3}. Location: Publisher.
175 \item Doe, John (June 2006a). \enquote{Article~1}. In: \emph{Monthly Journal} 25.6, pp.~70--85.
176 \item Doe, John (Fall 2006b). \enquote{Article~2}. In: \emph{Quarterly Journal} 14.3, pp.~5--25.
177 \item Doe, John (7th Aug. 2017).\emph{Webpage}.
178 \end{bibsample}
179
180 \texttt{mergedate=true} is an alias for \texttt{mergedate=compact}.
181 This is the default setting.
182
183 \subsection*{Hints}
184
185 If you want terms such as \emph{ibidem} to be printed in italics,
186 redefine \cmd{mkibid} as follows:
187
188 \begin{verbatim}
189 \renewcommand*{\mkibid}{\emph}
190 \end{verbatim}
191
192 \subsection*{\cmd{footcite} examples}
193
194 This is just filler text.\footcite{companion}
195 % Immediately repeated citations are replaced by the
196 % abbreviation 'ibidem'...
197 This is just filler text.\footcite{companion}
198 \clearpage
199 % ... unless the citation is the first one on the current page
200 % or double page spread (depending on the setting of the
201 % 'pagetracker' package option).
202 This is just filler text.\footcite[55]{companion}
203 This is just filler text.\footcite[55]{companion}
204
205 \clearpage
206 \printbibliography
207
208 \end{document}