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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
|
% This is a biblatex citation style file, originally adapted from
% Lehman's authoryear-comp.cbx. It is heavily modified, with the
% intention of providing inline citations (and a reference list) for
% the author-date style of the Chicago Manual of Style, 17th edition.
\ProvidesFile{chicago-authordate.cbx}[2021/03/27 v 3.16 biblatex
citation style]
\RequireCitationStyle{chicago-dates-common}
%%%% Field Formats -- Title, Citetitle, Lostitle %%%%
\DeclareFieldFormat{title}{\mkbibemph{#1}\isdot}
\DeclareFieldFormat{citetitle}{\mkbibemph{#1}\isdot}
\DeclareFieldFormat{lostitle}{\mkbibemph{#1}\isdot}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,online,thesis,unpublished]
{title}{%
\iffieldundef{title}%
{}%
{\mkbibquote{#1\isdot}}}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,online,thesis,unpublished]
{citetitle}{%
\iffieldundef{title}%
{#1\isdot}%
{\mkbibquote{#1\isdot}}}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,online,thesis,unpublished]
{lostitle}{%
\iffieldundef{title}%
{#1\isdot}%
{\mkbibquote{#1\isdot}}}
\DeclareFieldFormat[artwork,image,inreference]{title}{%
\iffieldundef{entrysubtype}%
{\mkbibemph{#1}\isdot}%
{#1\isdot}}
\DeclareFieldAlias[artwork]{citetitle}[artwork]{title}
\DeclareFieldAlias[artwork]{lostitle}[artwork]{title}
\DeclareFieldAlias[image]{citetitle}[artwork]{title}
\DeclareFieldAlias[image]{lostitle}[artwork]{title}
\DeclareFieldAlias[inreference]{citetitle}[artwork]{title}
\DeclareFieldAlias[inreference]{lostitle}[artwork]{title}
\DeclareFieldFormat[letter]{title}{#1\isdot}
\DeclareFieldFormat[letter]{citetitle}{#1\isdot}
\DeclareFieldFormat[letter]{lostitle}{#1\isdot}
\DeclareFieldFormat[suppbook,suppcollection]{title}{\mkbibemph{#1}\isdot}
\DeclareFieldAlias[suppbook]{citetitle}[suppbook]{lostitle}
\DeclareFieldFormat[suppbook,suppcollection]{lostitle}{%
\usebibmacro{inforaft}%
\addspace%
\mkbibemph{#1}\isdot}
\DeclareFieldAlias[suppcollection]{citetitle}[suppbook]{lostitle}
\DeclareFieldFormat[misc]{title}{%
\iffieldundef{entrysubtype}%
{\mkbibemph{#1}\isdot}%
{\ifcapital{\MakeCapital{#1\isdot}}{#1\isdot}}}
\DeclareFieldAlias[misc]{citetitle}[misc]{title}
\DeclareFieldAlias[misc]{lostitle}[misc]{title}
\DeclareFieldFormat[report]{title}{%
\iffieldequalstr{entrysubtype}{unpublished}%
{\mkbibquote{#1\isdot}}%
{\mkbibemph{#1}\isdot}}%
\DeclareFieldFormat[report]{citetitle}{%
\iffieldequalstr{entrysubtype}{unpublished}%
{\mkbibquote{#1\isdot}}%
{\mkbibemph{#1}\isdot}}
\DeclareFieldFormat[report]{lostitle}{%
\iffieldequalstr{entrysubtype}{unpublished}%
{\mkbibquote{#1\isdot}}%
{\mkbibemph{#1}\isdot}}
\DeclareFieldFormat[review,suppperiodical]{title}{%
\ifcapital{\MakeCapital{#1\isdot}}%
{#1\isdot}}
\DeclareFieldAlias[review]{lostitle}[review]{title}
\DeclareFieldAlias[review]{citetitle}[review]{title}
\DeclareFieldAlias[suppperiodical]{citetitle}[review]{title}
\DeclareFieldAlias[suppperiodical]{lostitle}[review]{title}
\DeclareFieldFormat{booktitle}{\mkbibemph{#1}}
\DeclareFieldFormat{maintitle}{\mkbibemph{#1}}
\DeclareFieldFormat{booksubtitle}{\mkbibemph{#1}}
\DeclareFieldFormat{mainsubtitle}{\mkbibemph{#1}}
\DeclareFieldFormat[audio,music,video]{title}{%
\ifthenelse{\iffieldundef{booktitle}\AND\iffieldundef{entrysubtype}}%
{\mkbibemph{#1}\isdot}%
{\mkbibquote{#1\isdot}}}
\DeclareFieldFormat[video]{citetitle}{%
\ifthenelse{\iffieldundef{booktitle}\AND\iffieldundef{entrysubtype}}%
{\mkbibemph{#1}\isdot}%
{\ifboolexpr{%
test {\iffieldequalstr{entrysubtype}{tvepisode}}%
and
not test {\iffieldundef{title}}%
and
not test {\iffieldundef{booktitle}}%
and
not test {\iffieldundef{shorttitle}}%
}%
{\mkbibemph{#1}\isdot}%
{\mkbibquote{#1\isdot}}}}
\DeclareFieldAlias[video]{lostitle}[video]{title}
\DeclareFieldAlias[music]{citetitle}[music]{title}
\DeclareFieldAlias[music]{lostitle}[music]{title}
\DeclareFieldAlias[audio]{citetitle}[audio]{title}
\DeclareFieldAlias[audio]{lostitle}[audio]{title}
\DeclareFieldFormat{issuetitle}{\mkbibquote{#1\isdot}}
%%%% Formatting macros, called both by cbx and bbx %%%%
\newbibmacro*{video+title}{% Simplifies trad style.
\iffieldundef{title}%
{}%
{\printtext[title]{%
\printfield[tnoformat]{title}%
\setunit{\subtitlepunct}%
\printfield[stnoformat]{subtitle}}}}
\newbibmacro*{italtitle+stitle}{%
\printtext[title]{%
\printfield[tnoformat]{title}%
\setunit{\subtitlepunct}%
\printfield[stnoformat]{subtitle}}%
\setunit{\ptitleaddonpunct}%
\printfield{titleaddon}%
\setunit{\addspace}%
\usebibmacro{language+transtitle}%
\newunit\newblock}
\newbibmacro*{mag+news+title}{%
\printtext[title]{%
\printfield[noformat]{title}%
\setunit{\subtitlepunct}%
\printfield[noformat]{subtitle}}%
\setunit{\ptitleaddonpunct}%\setunit{\addcomma\addspace}
\ifboolexpr{%
togl {cms@related}%
and
test {\iffieldequalstr{relatedtype}{reviewof}}%
}%
{\usebibmacro{related:init}%
\usebibmacro{related}}%
{\printfield{titleaddon}}%
}%\newcunit\newblock
\newbibmacro*{issuetitle}{%
\iffieldundef{issuetitle}%
{}%
{\ifthenelse{\ifentrytype{article}\OR%
\ifentrytype{review}\OR%
\ifentrytype{suppperiodical}}% This test is for
{\usebibmacro{cms-in:}}% periodical entries
{}%
\printtext[issuetitle]{%
\printfield[itnoformat]{issuetitle}%
\iftoggle{cms@origpublished}% Complications due to \smartof
{}%
{\setunit{\subtitlepunct}%
\printfield[sitnoformat]{issuesubtitle}}}}}
%%%% Related macros that can't reside in common.cbx %%%%
\newbibmacro*{related:reviewof}[1]{%
\entrydata*{#1}{%
\let\newunit\newcunit% FIXME??
\iffieldundef{title}%
{}%
{\printtext[title]{%
\printfield[tnoformat]{title}%
\setunit{\subtitlepunct}%
\printfield[stnoformat]{subtitle}}}%
\newcunit%
\ifnameundef{author}%
{\newcunit%
\usebibmacro{byeditor+others}}%
{\bibstring{by}\addspace%
\printnames[byauthor]{author}%
\newcunit\usebibmacro{byeditor+others}}%
\setunit{\ctitleaddonpunct}%
\printfield{titleaddon}}}
\DeclareFieldFormat{title:hook}{%
\begingroup
\mkrelatedstringtext{%
\lbx@inittitlehook{#1}}%
\endgroup
\mkbibemph{#1}}
\DeclareFieldFormat{title:hook:alt}{%
\iftoggle{cms@reprintmt}%
{\begingroup
\mkrelatedstringtext{%
\lbx@inittitlehook{#1}}%
\endgroup}%
{\lbx@inittitlehook{#1}}% Inside entries don't use main doc. lang.
\mkbibemph{#1}}
\DeclareFieldFormat{ititle:hook}{%
\begingroup
\mkrelatedstringtext{%
\lbx@inittitlehook{#1}}%
\endgroup
\iffieldundef{issuesubtitle}%
{\mkbibquote{#1}}%
{\mkbibquote{#1\subtitlepunct\printfield{issuesubtitle}}}}
\DeclareFieldFormat{chapter:hook}{%
\begingroup
\mkrelatedstringtext{%
\lbx@inittitlehook{\bibstring{chapter}}%
\bibstring{chapter}~#1\addspace\bibstring{in}}
\endgroup}
\DeclareFieldFormat{avchapter:hook}{%
\begingroup
\mkrelatedstringtext{%
\lbx@inittitlehook{\bibstring{chapter}}%
\bibstring{chapter}~#1}
\endgroup}
\DeclareFieldFormat{muschapter:hook}{%
\begingroup
\mkrelatedstringtext{%
\lbx@inittitlehook{\bibstring{track}}%
\bibstring{track}~#1}%
\endgroup}
\DeclareFieldFormat{volume:hook}{%
\begingroup
\mkrelatedstringtext{%
\lbx@inittitlehook{\bibxstring{volume}}%
\bibstring{volume}~#1}%
\endgroup}%
\DeclareFieldFormat{parttoo:hook}{%
\ifnumerals{#1}%
{\addcomma\addspace\bibstring[\mkrelatedstringtext]{partvolume}~#1}%
{\addcomma\addspace\ifcapital{\MakeCapital{#1}}{#1}}}
\DeclareFieldFormat{part:hook}{%
\begingroup
\ifnumerals{#1}%
{\mkrelatedstringtext{%
\lbx@inittitlehook{\bibxstring{partvolume}}%
\bibstring{partvolume}~#1}}%
{\mkrelatedstringtext{\lbx@inittitlehook{#1}}%
\ifcapital{\MakeCapital{#1}}{#1}}%
\endgroup}
\DeclareFieldFormat{sitnoformat}{#1}
\DeclareFieldFormat{sjtnoformat}{#1}
\DeclareFieldFormat{stnoformat}{#1}
\DeclareFieldFormat{itnoformat}{#1}
\DeclareFieldFormat{jtnoformat}{#1}
\DeclareFieldFormat{jtsnoformat}{#1}
\DeclareFieldFormat{tnoformat}{#1}
\newbibmacro*{cms:titlehook}{% Needed for the full drivers in reprintfrom
\ifthenelse{\iffieldundef{chapter}\OR\NOT\(\ifentrytype{audio}\OR%
\ifentrytype{inbook}\OR\ifentrytype{incollection}\OR%
\ifentrytype{inproceedings}\OR\ifentrytype{letter}\OR%
\ifentrytype{music}\OR\ifentrytype{video}\)}%
{\iffieldundef{issuetitle}%
{\iffieldundef{title}%
{\iffieldundef{booktitle}%
{\iffieldundef{journaltitle}% Switch order for 17th ed.
{\iffieldundef{maintitle}%
{}%
{\toggletrue{cms@reprintmt}%
\ifthenelse{\(\iffieldundef{volume}\AND\iffieldundef{part}\)%
\OR\ifentrytype{inbook}\OR\ifentrytype{incollection}\OR%
\ifentrytype{inproceedings}\OR\ifentrytype{letter}}%
{\DeclareFieldAlias{maintitle}{title:hook}}%
{\iffieldundef{volume}%
{\DeclareFieldAlias{part}{part:hook}%
\let\cms@ofwrap\mkrelatedstringtext}%
{\DeclareFieldAlias{volume}{volume:hook}%
\DeclareFieldAlias{part}{parttoo:hook}%
\let\cms@ofwrap\mkrelatedstringtext}}}}%
{\DeclareFieldAlias{jtnoformat}{title:hook}%
\DeclareFieldAlias{sjtnoformat}{title}%
\DeclareFieldAlias{journaltitle}{default}%
\DeclareFieldAlias{injournaltitle}{default}%
\DeclareFieldAlias{shortjournal}{series}%
\DeclareFieldAlias{inshortjournal}{series}%
\DeclareFieldAlias{jtsnoformat}{title:hook}}}%
{\DeclareFieldAlias{booktitle}{title:hook}}}%
{\DeclareFieldAlias{tnoformat}{title:hook}%
\DeclareFieldAlias{stnoformat}{citetitle}%
\DeclareFieldAlias[video]{title}{default}%
\DeclareFieldAlias[audio]{title}{default}%
\DeclareFieldAlias[music]{title}{default}%
\DeclareFieldAlias{title}{default}%
\DeclareFieldAlias[periodical]{shorttitle}{series}}}%
{\DeclareFieldAlias{itnoformat}{ititle:hook}%
\DeclareFieldAlias{issuetitle}{default}}}%
{\ifthenelse{\ifentrytype{audio}\OR\ifentrytype{music}\OR%
\ifentrytype{video}}%
{\iffieldundef{title}%
{\ifentrytype{music}%
{\DeclareFieldAlias[music]{chapter}{muschapter:hook}%
\let\cms@ofwrap\mkrelatedstringtext}%
{\DeclareFieldAlias{chapter}{avchapter:hook}%
\let\cms@ofwrap\mkrelatedstringtext}}%
{\DeclareFieldAlias{tnoformat}{title:hook}%
\DeclareFieldAlias{stnoformat}{citetitle}%
\DeclareFieldAlias[video]{title}{default}%
\DeclareFieldAlias[audio]{title}{default}%
\DeclareFieldAlias[music]{title}{default}}}%
{\DeclareFieldAlias{chapter}{chapter:hook}}}}%
\endinput
|