Debian Codegraph @

texmf-dist/source/latex/biblatex-oxref/oxref.dtx

raw
1 % \iffalse
2 %<*internal|bbx|cbx|dbx|lbx|doc>
3 \def\Version{2026/04/14 v3.4}
4 %</internal|bbx|cbx|dbx|lbx|doc>
5 %<*internal>
6 \iffalse
7 %</internal>
8 %<*bbx|cbx|dbx|lbx>
9 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
10 %</bbx|cbx|dbx|lbx>
11 %<*bbx&o>
12 \ProvidesFile{oxref.bbx}
13 [\Version\space Base settings for bibliography styles inspired by the Oxford Guide to Style]
14 %</bbx&o>
15 %<*bbx&n>
16 %<default>\ProvidesFile{oxnotes.bbx}
17 %<ibid>\ProvidesFile{oxnotes-ibid.bbx}
18 %<note>\ProvidesFile{oxnotes-note.bbx}
19 %<inote>\ProvidesFile{oxnotes-inote.bbx}
20 %<trad1>\ProvidesFile{oxnotes-trad1.bbx}
21 %<trad2>\ProvidesFile{oxnotes-trad2.bbx}
22 %<trad3>\ProvidesFile{oxnotes-trad3.bbx}
23 [\Version\space Footnote-based bibliography style inspired by the Oxford Guide to Style]
24 %</bbx&n>
25 %<*bbx&m>
26 \ProvidesFile{oxnum.bbx}
27 [\Version\space Numeric bibliography style inspired by the Oxford Guide to Style]
28 %</bbx&m>
29 %<*bbx&a>
30 \ProvidesFile{oxalph.bbx}
31 [\Version\space Alphabetic bibliography style inspired by the Oxford Guide to Style]
32 %</bbx&a>
33 %<*bbx&y>
34 \ProvidesFile{oxyear.bbx}
35 [\Version\space Author-year bibliography style inspired by the Oxford Guide to Style]
36 %</bbx&y>
37 %<*cbx&n>
38 %<default>\ProvidesFile{oxnotes.cbx}
39 %<ibid>\ProvidesFile{oxnotes-ibid.cbx}
40 %<note>\ProvidesFile{oxnotes-note.cbx}
41 %<inote>\ProvidesFile{oxnotes-inote.cbx}
42 %<trad1>\ProvidesFile{oxnotes-trad1.cbx}
43 %<trad2>\ProvidesFile{oxnotes-trad2.cbx}
44 %<trad3>\ProvidesFile{oxnotes-trad3.cbx}
45 [\Version\space Footnote-based citation style inspired by the Oxford Guide to Style]
46 %</cbx&n>
47 %<*cbx&m>
48 \ProvidesFile{oxnum.cbx}
49 [\Version\space Numeric citation style inspired by the Oxford Guide to Style]
50 %</cbx&m>
51 %<*cbx&a>
52 \ProvidesFile{oxalph.cbx}
53 [\Version\space Alphabetic citation style inspired by the Oxford Guide to Style]
54 %</cbx&a>
55 %<*cbx&y>
56 \ProvidesFile{oxyear.cbx}
57 [\Version\space Author-year citation style inspired by the Oxford Guide to Style]
58 %</cbx&y>
59 %<*dbx>
60 %<*n>
61 %<default>\ProvidesFile{oxnotes.dbx}
62 %<ibid>\ProvidesFile{oxnotes-ibid.dbx}
63 %<note>\ProvidesFile{oxnotes-note.dbx}
64 %<inote>\ProvidesFile{oxnotes-inote.dbx}
65 %<trad1>\ProvidesFile{oxnotes-trad1.dbx}
66 %<trad2>\ProvidesFile{oxnotes-trad2.dbx}
67 %<trad3>\ProvidesFile{oxnotes-trad3.dbx}
68 %</n>
69 %<m>\ProvidesFile{oxnum.dbx}
70 %<a>\ProvidesFile{oxalph.dbx}
71 %<y>\ProvidesFile{oxyear.dbx}
72 [\Version\space Data model for the Oxref family of styles]
73 %</dbx>
74 %<*lbx&en>
75 \ProvidesFile{english-oxref.lbx}
76 [\Version\space Generic English conventions required by the biblatex-oxref styles]
77 %</lbx&en>
78 %<*lbx&gb>
79 \ProvidesFile{british-oxref.lbx}
80 [\Version\space British English conventions required by the biblatex-oxref styles]
81 %</lbx&gb>
82 %<*lbx&us>
83 \ProvidesFile{american-oxref.lbx}
84 [\Version\space American English conventions required by the biblatex-oxref styles]
85 %</lbx&us>
86 %<*lbx&es>
87 \ProvidesFile{spanish-oxref.lbx}
88 [\Version\space Spanish conventions required by the biblatex-oxref styles]
89 %</lbx&es>
90 %<*lbx&pl>
91 \ProvidesFile{polish-oxref.lbx}
92 [\Version\space Polish conventions required by the biblatex-oxref styles]
93 %</lbx&pl>
94 %<*doc&n>
95 \ProvidesFile{oxnotes-doc.tex}
96 [\Version\space Footnote-based biblatex style inspired by the Oxford Guide to Style]
97 %</doc&n>
98 %<*doc&m>
99 \ProvidesFile{oxnum-doc.tex}
100 [\Version\space Numeric biblatex style inspired by the Oxford Guide to Style]
101 %</doc&m>
102 %<*doc&a>
103 \ProvidesFile{oxalph-doc.tex}
104 [\Version\space Alphabetic biblatex style inspired by the Oxford Guide to Style]
105 %</doc&a>
106 %<*doc&y>
107 \ProvidesFile{oxyear-doc.tex}
108 [\Version\space Author-year biblatex style inspired by the Oxford Guide to Style]
109 %</doc&y>
110 %<*readme>
111 # biblatex-oxref: Biblatex styles inspired by the *Oxford Guide to Style*
112
113 This bundle provides four [biblatex] styles that implement (some of) the
114 stipulations and examples provided by the 2014 *New Hart's Rules* and the 2002
115 *Oxford Guide to Style*:
116
117 * `oxnotes` is a style similar to the standard `verbose`,
118 intended for use with footnotes;
119 * `oxnum` is a style similar to the standard `numeric`,
120 intended for use with numeric in-text citations.
121 * `oxalph` is a style similar to the standard `alphabetic`,
122 intended for use with alphabetic in-text citations.
123 * `oxyear` is a style similar to the standard `authoryear`,
124 intended for use with parenthetical in-text citations.
125
126 [biblatex]: http://ctan.org/pkg/biblatex
127 %</readme>
128 %<*bib>
129 @reference{ritter2002ogs,
130 editor = {R. M. Ritter},
131 editortype= {editorcm},
132 title = {The {Oxford} Guide to Style},
133 date = {2002},
134 publisher = {Oxford University Press},
135 location = {Oxford, UK}}
136 @reference{waddingham2014nhr,
137 editor = {Anne Waddingham},
138 title = {New {Hart's} Rules},
139 subtitle = {The {Oxford} Guide to Style},
140 date = {2014},
141 edition = {2},
142 publisher = {Oxford University Press},
143 location = {Oxford, UK}}
144 @book{law.oxford2012oscola,
145 author = {{Faculty of Law, University of Oxford}},
146 editor = {Donal Nolan and Sandra Meredith},
147 title = {{OSCOLA}},
148 subtitle = {The {Oxford} {University} Standard for Citation of Legal Authorities},
149 date = {2012},
150 edition = {4},
151 publisher = {Hart},
152 location = {Oxford, UK},
153 url = {https://www.law.ox.ac.uk/oscola}}
154 %</bib>
155 %<*internal>
156 \fi
157 \def\nameofplainTeX{plain}
158 \ifx\fmtname\nameofplainTeX\else
159 \expandafter\begingroup
160 \fi
161 %</internal>
162 %<*install>
163 \input docstrip.tex
164 \keepsilent
165 \askforoverwritefalse
166
167 \nopreamble\nopostamble
168
169 \usedir{doc/latex/\jobname}
170 \generate{
171 \file{README.md}{\from{\jobname.dtx}{readme}}
172 \file{\jobname.bib}{\from{\jobname.dtx}{bib}}
173 }
174
175 \preamble
176 ----------------------------------------------------------------
177 biblatex-oxref --- Biblatex styles inspired by the Oxford Guide to Style
178 Author: Alex Ball
179 E-mail: [email protected]
180 License: Released under the LaTeX Project Public License v1.3c or later
181 See: http://www.latex-project.org/lppl.txt
182 ----------------------------------------------------------------
183
184 \endpreamble
185 \postamble
186
187 Copyright (C) 2016–2026 Alex Ball
188 \endpostamble
189
190 \usedir{tex/latex/\jobname}
191 \generate{
192 \file{\jobname.bbx}{\from{\jobname.dtx}{bbx,o}}
193 \file{oxnotes.bbx}{\from{\jobname.dtx}{bbx,n,default}}
194 \file{oxnotes-ibid.bbx}{\from{\jobname.dtx}{bbx,n,ibid}}
195 \file{oxnotes-note.bbx}{\from{\jobname.dtx}{bbx,n,note}}
196 \file{oxnotes-inote.bbx}{\from{\jobname.dtx}{bbx,n,inote}}
197 \file{oxnotes-trad1.bbx}{\from{\jobname.dtx}{bbx,n,trad1}}
198 \file{oxnotes-trad2.bbx}{\from{\jobname.dtx}{bbx,n,trad2}}
199 \file{oxnotes-trad3.bbx}{\from{\jobname.dtx}{bbx,n,trad3}}
200 \file{oxnum.bbx}{\from{\jobname.dtx}{bbx,m}}
201 \file{oxalph.bbx}{\from{\jobname.dtx}{bbx,a}}
202 \file{oxyear.bbx}{\from{\jobname.dtx}{bbx,y}}
203 \file{oxnotes.cbx}{\from{\jobname.dtx}{cbx,n,default}}
204 \file{oxnotes-ibid.cbx}{\from{\jobname.dtx}{cbx,n,ibid}}
205 \file{oxnotes-note.cbx}{\from{\jobname.dtx}{cbx,n,note}}
206 \file{oxnotes-inote.cbx}{\from{\jobname.dtx}{cbx,n,inote}}
207 \file{oxnotes-trad1.cbx}{\from{\jobname.dtx}{cbx,n,trad1}}
208 \file{oxnotes-trad2.cbx}{\from{\jobname.dtx}{cbx,n,trad2}}
209 \file{oxnotes-trad3.cbx}{\from{\jobname.dtx}{cbx,n,trad3}}
210 \file{oxnum.cbx}{\from{\jobname.dtx}{cbx,m}}
211 \file{oxalph.cbx}{\from{\jobname.dtx}{cbx,a}}
212 \file{oxyear.cbx}{\from{\jobname.dtx}{cbx,y}}
213 \file{oxnotes.dbx}{\from{\jobname.dtx}{dbx,n,default}}
214 \file{oxnotes-ibid.dbx}{\from{\jobname.dtx}{dbx,n,ibid}}
215 \file{oxnotes-note.dbx}{\from{\jobname.dtx}{dbx,n,note}}
216 \file{oxnotes-inote.dbx}{\from{\jobname.dtx}{dbx,n,inote}}
217 \file{oxnotes-trad1.dbx}{\from{\jobname.dtx}{dbx,n,trad1}}
218 \file{oxnotes-trad2.dbx}{\from{\jobname.dtx}{dbx,n,trad2}}
219 \file{oxnotes-trad3.dbx}{\from{\jobname.dtx}{dbx,n,trad3}}
220 \file{oxnum.dbx}{\from{\jobname.dtx}{dbx,m}}
221 \file{oxalph.dbx}{\from{\jobname.dtx}{dbx,a}}
222 \file{oxyear.dbx}{\from{\jobname.dtx}{dbx,y}}
223 \file{american-\jobname.lbx}{\from{\jobname.dtx}{lbx,us}}
224 \file{british-\jobname.lbx}{\from{\jobname.dtx}{lbx,gb}}
225 \file{english-\jobname.lbx}{\from{\jobname.dtx}{lbx,en}}
226 \file{spanish-\jobname.lbx}{\from{\jobname.dtx}{lbx,es}}
227 \file{polish-\jobname.lbx}{\from{\jobname.dtx}{lbx,pl}}
228 \file{oxnotes-doc.tex}{\from{\jobname.dtx}{doc,n}}
229 \file{oxnum-doc.tex}{\from{\jobname.dtx}{doc,m}}
230 \file{oxalph-doc.tex}{\from{\jobname.dtx}{doc,a}}
231 \file{oxyear-doc.tex}{\from{\jobname.dtx}{doc,y}}
232 }
233 %</install>
234 %<install>\endbatchfile
235 %<*internal>
236 \usedir{source/latex/\jobname}
237 \generate{
238 \file{\jobname.ins}{\from{\jobname.dtx}{install}}
239 }
240 \ifx\fmtname\nameofplainTeX
241 \expandafter\endbatchfile
242 \else
243 \expandafter\endgroup
244 \fi
245 %</internal>
246 %<*driver>
247 \ProvidesFile{oxref.dtx}
248 [\Version\space Biblatex styles inspired by the Oxford Guide to Style]
249 \PassOptionsToPackage{style=oxnotes}{biblatex}
250 %</driver>
251 %<doc&n>\PassOptionsToPackage{style=oxnotes,scnames,varissuedate,anon}{biblatex}
252 %<doc&m>\PassOptionsToPackage{style=oxnum,scnames,varissuedate,anon,backref=true}{biblatex}
253 %<doc&a>\PassOptionsToPackage{style=oxalph,varissuedate,anon}{biblatex}
254 %<doc&y>\PassOptionsToPackage{style=oxyear,varissuedate,anon}{biblatex}
255 %<*driver|doc>
256 \documentclass[extrafontsizes,11pt,a4paper,oneside]{memoir}
257 \setlrmarginsandblock{3cm}{3cm}{*}
258 \setulmarginsandblock{2.5cm}{2.5cm}{*}
259 \checkandfixthelayout
260 % Document divisions
261 \chapterstyle{ell}
262 \renewcommand{\prechapterprecis}{%
263 \vspace*{\prechapterprecisshift}%
264 \begin{flushright}\precisfont
265 }
266 \renewcommand{\postchapterprecis}{\end{flushright}}
267 \hangsecnum
268 \setsecheadstyle{\Large\bfseries\raggedright}
269 \setsubsecheadstyle{\large\bfseries\scshape\raggedright}
270 \setsecnumdepth{subsection}
271 % Pagination and headers
272 \nouppercaseheads
273 \makeoddhead{myheadings}{\textsc{\leftmark}}{}{\thepage}
274 \makepsmarks{myheadings}{%
275 \def\chaptermark##1{\markboth{##1}{##1}}%
276 \def\sectionmark##1{\markright{##1}}%
277 }
278 \pagestyle{myheadings}
279 \aliaspagestyle{title}{empty}
280 % Paragraphs and lists
281 \setlength{\parindent}{0pt}\nonzeroparskip
282 \firmlists
283
284 \usepackage[british]{babel}
285 \usepackage[mono=false,defaultfeatures={SmallCapsFeatures={Letters=SmallCaps,Renderer=Basic,Ligatures=NoCommon}}]{libertine}
286 \usepackage{fontawesome}[2015/07/07]
287 \newcommand{\booksym}{\makebox[1em][c]{\faicon{book}}}
288 \newcommand{\cogsym}{\makebox[1em][c]{\faicon{cog}}}
289 \makeatletter
290 \@ifpackageloaded{fontspec}{%
291 \setmonofont[Scale=MatchLowercase,StylisticSet=1,AutoFakeSlant]{Inconsolatazi4}
292 }{%
293 \usepackage[utf8]{inputenc}
294 \usepackage[varl]{zi4}
295 }
296 \makeatother
297
298 \usepackage{xcolor}
299 \definecolor{Green}{rgb}{0,.5,0}
300 \colorlet{ok}{Green}
301 \colorlet{todo}{red}
302 \colorlet{hacked}{orange}
303 \colorlet{manual}{purple}
304
305 \usepackage{iftex}
306 \ifluatex
307 % Fix spacing in tcolorbox
308 \usepackage{luacolor}
309 \fi
310
311 \usepackage{tcolorbox}
312 \tcbuselibrary{skins,documentation,breakable,minted}
313 \colorlet{Option}{violet}
314 \colorlet{Command}{red!75!black}
315 \colorlet{Environment}{blue!75!black}
316 \colorlet{Value}{olive!75!black}
317 \colorlet{Color}{cyan!75!black}
318 \tcbset
319 { enhanced
320 , listing engine=minted
321 , minted options=
322 { breaklines
323 , fontsize=\footnotesize
324 %<*!doc>
325 , linenos
326 , numbersep=20pt
327 , firstnumber=last
328 %</!doc>
329 }
330 , index format=pgf
331 , color command=Command
332 , color environment=Environment
333 , color key=Option
334 , color value=Value
335 , color color=Color
336 }
337 \renewcommand{\theFancyVerbLine}{\footnotesize\itshape\color{gray}\arabic{FancyVerbLine}}
338 \let\tcbcs=\cs
339 \renewcommand*{\cs}[1]{\textcolor{Command}{\tcbcs{#1}}}
340 \def\sqbrackets#1{%
341 \texttt{\textcolor{Option}{[}#1\textcolor{Option}{]}}}
342 \def\brackets#1{%
343 \texttt{\textcolor{Environment}{\char`\{}#1\textcolor{Environment}{\char`\}}}}
344 \def\marg#1{%
345 \textcolor{Environment}{\ttfamily\char`\{}\meta{#1}\textcolor{Environment}{\ttfamily\char`\}}}
346 \newcommand*{\env}[1]{\textcolor{Environment}{\ttfamily #1}}
347 \newcommand*{\key}[1]{\textcolor{Option}{\ttfamily #1}}
348 \newcommand*{\val}[1]{\textcolor{Value}{\ttfamily #1}}
349 \makeatletter
350 \newcommand{\resetmintedformat}{%
351 % Comments
352 \expandafter\def\csname PYGdefault@tok@c\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc####1{\textcolor{gray}{####1}}}
353 % Command sequences
354 \expandafter\def\csname PYGdefault@tok@k\endcsname{\def\PYGdefault@tc####1{\textcolor{Command}{####1}}}
355 % Optional arguments
356 \expandafter\def\csname PYGdefault@tok@na\endcsname{\def\PYGdefault@tc####1{\textcolor{Option}{####1}}}
357 % Braces
358 \expandafter\def\csname PYGdefault@tok@nb\endcsname{\def\PYGdefault@tc####1{\textcolor{Environment}{####1}}}
359 }
360 \apptocmd{\minted@checkstyle}{\resetmintedformat}{}{}
361 \makeatother
362
363 \RecustomVerbatimEnvironment
364 {Verbatim}{Verbatim}
365 {commentchar=\%}
366
367 \usepackage{xpatch,csquotes,multicol}
368
369 \usepackage
370 [backend=biber%
371 ,hyperref=false%
372 %,isbn=false%
373 ]{biblatex}
374 \addbibresource{oxref.bib}
375 \setcounter{biburllcpenalty}{9000}
376 \setcounter{biburlucpenalty}{8000}
377 \setcounter{biburlnumpenalty}{7000}
378 \DeclareBibliographyCategory{hidden}
379 \makeatletter
380 \DeclareCiteCommand{\fullcite}
381 {\usebibmacro{prenote}}
382 {\usedriver
383 {\defcounter{maxnames}{\blx@maxbibnames}}
384 {\thefield{entrytype}}}
385 {\multicitedelim}
386 {\usebibmacro{postnote}\finentrypunct}
387 \makeatother
388 % \xpretobibmacro{finentry}{%
389 % \ifboolexpr{ test {\ifcitation} and }{%
390 % \finentrypunct
391 % }{}%
392 % }{}{}
393 %<*doc>
394 % Shorthands useful for oxyear make overlong labels for oxnum/oxalph,
395 % so we remove them.
396 \DeclareSourcemap{%
397 \maps[datatype=bibtex]{%
398 \map[overwrite=true]{%
399 %<a> \pertype{legislation}
400 %<a> \pertype{legal}
401 %<n|y> \pernottype{legslation}
402 %<n|y> \pernottype{legal}
403 \step[fieldset=shorthand, null=true]
404 }%
405 }%
406 }
407 %</doc>
408
409 %<*!doc>
410 \usepackage[tightLists=false]{markdown}
411 \markdownSetup{rendererPrototypes={%
412 link = {\href{#3}{#1}},%
413 }}
414
415 %</!doc>
416 \hypersetup{pdfborder={0 0 0},pdfencoding=unicode}
417 \usepackage[noabbrev,capitalize,nameinlink]{cleveref}
418 \crefname{page}{page}{pages}
419
420 \NewDocumentCommand{\pkg}{om}{%
421 \IfNoValueTF{#1}
422 {\lowercase{\href{http://www.ctan.org/pkg/#2}}{\textsf{#2}}}
423 {\lowercase{\href{http://www.ctan.org/pkg/#1-#2}}{\textsf{#2}}}%
424 }
425 \newcommand*{\lit}[1]{\textsf{#1}}
426 \newcommand*{\code}[1]{\texttt{#1}}
427 \newcommand*{\aside}[1]{\textcolor{violet}{[\textsc{tip:} #1]}}
428 \newcommand{\tip}[1]{\hangfrom{\makebox[2em][c]{\faLightbulbO}}#1\par}
429 \newcommand{\info}[1]{\hangfrom{\makebox[2em][c]{\faInfoCircle}}#1\par}
430 \newcommand{\hack}[1]{\hangfrom{\makebox[2em][c]{\faWrench}}#1\par}
431
432 % For debugging; userd is either ‘todo’, ‘hacked’, ‘manual’
433 \makeatletter
434 \def\CiteStatus{todo}
435 \newcommand{\dbgcolor}[2]{%
436 \bgroup
437 \blx@citecmdinit
438 \blx@citeinit
439 \def\blx@precode{}%
440 \def\blx@postcode{}%
441 \def\blx@loopcode{%
442 \iffieldundef{userd}
443 {\xdef\CiteStatus{ok}}
444 {\xdef\CiteStatus{\abx@field@userd}}}%
445 \blx@citeloop{#1}%
446 \textcolor{\CiteStatus}{#2}%
447 \egroup
448 }
449 \makeatother
450 % bibexbox displays a sample reference:
451 % (colour)<source reference>[citation postnote]{bib key}[additional TCB options]
452 % Put hand-coded reference in the environment upper part.
453 % Put a bib entry (wrapped in a Verbatim environment) in the environment lower part.
454 \NewTColorBox{bibexbox}{D(){ok}d<>omo}%
455 {bicolor
456 ,colframe = #1
457 ,colback = #1!5!white
458 ,colbacklower = white
459 ,fontlower = \footnotesize
460 ,before upper = {\hangfrom{\booksym\space}\biburlsetup}
461 ,IfNoValueTF={#3}%
462 {after upper = {\par\hangfrom{\cogsym\space}\fullcite{#4}}
463 }%
464 {after upper = {\par\hangfrom{\cogsym\space}\fullcite[#3]{#4}}
465 ,title = {\texttt{\string\fullcite[#3]\{#4\}}}
466 }
467 ,IfNoValueTF={#2}{}%
468 {overlay = {
469 \node[anchor=south east,text=teal] at (frame.south east) {#2};
470 }
471 }
472 ,phantomlabel={ex:#4}
473 ,IfNoValueTF={#5}{}{#5}
474 }
475 \NewTotalTColorBox{\spec}{m}%
476 {enhanced
477 ,sharp corners = west
478 ,colframe = teal
479 ,colback = teal!5!white
480 ,toprule = 0pt
481 ,bottomrule = 0pt
482 ,rightrule = 0pt
483 }{#1}
484 % egcite displays a sample citation:
485 % (colour)[title]{hand-coded citation text}[additional TCB options]
486 % Put the citation command in the environment.
487 \NewTCBListing{egcite}{D(){ok} o m !o}%
488 {colframe = #1
489 ,colback = #1!5!white
490 ,listing side text
491 ,lefthand width = 14em
492 ,IfNoValueTF={#2}{}{title = #2}
493 ,before lower = {\raggedright\ifblank{#3}{}{\hangfrom{\booksym\space}#3\par}\hangfrom{\cogsym\space}}
494 ,IfNoValueTF={#4}{}{#4}}
495 % egcite* uses upper and lower portions
496 \NewTCBListing{egcite*}{D(){ok} o m !o}%
497 {colframe = #1
498 ,colback = #1!5!white
499 ,IfNoValueTF={#2}{}{title = #2}
500 ,before lower = {\raggedright\ifblank{#3}{}{\hangfrom{\booksym\space}#3\par}\hangfrom{\cogsym\space}}
501 ,IfNoValueTF={#4}{}{#4}}
502
503 \frenchspacing
504
505 \usepackage[british]{isodate}
506 %</driver|doc>
507 %<*doc>
508 \usepackage{readprov}
509 \GetFileInfo{\jobname.tex}
510 %</doc>
511 %<*driver>
512
513 % For typesetting the implementation
514 \makeatletter
515 \let\docdate\@undefined
516 \let\theglossary\@undefined
517 \let\endtheglossary\@undefined
518 \makeatother
519 \usepackage{doc}
520 \makeatletter
521 \renewenvironment{theglossary}{%
522 \bgroup
523 \glossary@prologue
524 \GlossaryParms \let\item\@idxitem \ignorespaces
525 }{%
526 \egroup
527 }
528 \renewenvironment{macro}[1]{%
529 \def\MyName{#1}%
530 \index{\MyName@\tcbIndexPrintComC {\MyName}|(emph}%
531 }{%
532 \ifdef{\MyName}{}{%
533 \errmessage{You have closed a macro environment you have not opened on \the\inputlineno.}%
534 }
535 \index{\MyName@\tcbIndexPrintComC {\MyName}|)}%
536 }
537 \renewenvironment{environment}[1]{%
538 \def\MyName{#1}%
539 \index{\MyName@\tcbIndexPrintEnvCA {\MyName}|(emph}%
540 \index{Environments!\MyName@\tcbIndexPrintEnvC {\MyName}|(emph}%
541 }{%
542 \ifdef{\MyName}{}{%
543 \errmessage{You have closed an environment environment you have not opened on \the\inputlineno.}%
544 }
545 \index{Environments!\MyName@\tcbIndexPrintEnvC {\MyName}|)}%
546 \index{\MyName@\tcbIndexPrintEnvCA {\MyName}|)}%
547 }
548 \newenvironment{optionkey}[1]{%
549 \def\MyName{#1}%
550 \index{\MyName@\tcbIndexPrintKeyCA {\MyName}|(emph}%
551 \index{Keys!\MyName@\tcbIndexPrintKeyC {\MyName}|(emph}%
552 }{%
553 \ifdef{\MyName}{}{%
554 \errmessage{You have closed an optionkey environment you have not opened on \the\inputlineno.}%
555 }
556 \index{Keys!\MyName@\tcbIndexPrintKeyC {\MyName}|)}%
557 \index{\MyName@\tcbIndexPrintKeyCA {\MyName}|)}%
558 }
559 \newenvironment{optionvalue}[1]{%
560 \def\MyName{#1}%
561 \index{\MyName@\tcbIndexPrintValCA {\MyName}|(emph}%
562 \index{Values!\MyName@\tcbIndexPrintValC {\MyName}|(emph}%
563 }{%
564 \ifdef{\MyName}{}{%
565 \errmessage{You have closed an optionvalue environment you have not opened on \the\inputlineno.}%
566 }
567 \index{Values!\MyName@\tcbIndexPrintValC {\MyName}|)}%
568 \index{\MyName@\tcbIndexPrintValCA {\MyName}|)}%
569 }
570 \let\PrintMacroName\@gobble
571 \let\PrintEnvName\@gobble
572 \renewenvironment{tcb@manual@entry}{\begin{list}{}{%
573 \setlength{\topsep}{0pt}
574 \setlength{\partopsep}{0pt}
575 \setlength{\leftmargin}{\kvtcb@doc@left}%
576 \setlength{\itemindent}{0pt}%
577 \setlength{\itemsep}{0pt}%
578 \setlength{\parsep}{0pt}%
579 \setlength{\rightmargin}{\kvtcb@doc@right}%
580 }\item}{\end{list}}
581 \makeatother
582 \MakeShortVerb{\|}
583
584 % This bit inspired by ydoc
585 \makeatletter
586 \newwrite\ydocwrite
587 \def\ydocfname{\jobname.listing}
588 \def\ydoc@catcodes{%
589 \let\do\@makeother
590 \dospecials
591 \catcode`\\=\active
592 \catcode`\^^M=\active
593 \catcode`\ =\active
594 }
595 \def\macrocode{%
596 \begingroup
597 \ydoc@catcodes
598 \macro@code
599 }
600 \def\endmacrocode{}
601 \begingroup
602 \endlinechar\m@ne
603 \@firstofone{%
604 \catcode`\|=0\relax
605 \catcode`\(=1\relax
606 \catcode`\)=2\relax
607 \catcode`\*=14\relax
608 \catcode`\{=12\relax
609 \catcode`\}=12\relax
610 \catcode`\ =12\relax
611 \catcode`\%=12\relax
612 \catcode`\\=\active
613 \catcode`\^^M=\active
614 \catcode`\ =\active
615 }*
616 |gdef|macro@code#1^^M% \end{macrocode}(*
617 |endgroup|expandafter|macro@@code|expandafter(|ydoc@removeline#1|noexpand|lastlinemacro)*
618 )*
619 |gdef|ydoc@removeline#1^^M(|noexpand|firstlinemacro)*
620 |gdef|ydoc@defspecialmacros(*
621 |def^^M(|noexpand|newlinemacro)*
622 |def (|noexpand|spacemacro)*
623 |def\(|noexpand|bslashmacro)*
624 )*
625 |gdef|ydoc@defrevspecialmacros(*
626 |def|newlinemacro(|noexpand^^M)*
627 |def|spacemacro(|noexpand )*
628 |def|bslashmacro(|noexpand\)*
629 )*
630 |endgroup
631 \def\macro@@code#1{%
632 {\ydoc@defspecialmacros
633 \xdef\themacrocode{#1}}%
634 \PrintMacroCode
635 \end{macrocode}%
636 }
637 \def\PrintMacroCode{%
638 \begingroup
639 \let\firstlinemacro\empty
640 \let\lastlinemacro\empty
641 \def\newlinemacro{^^J}%
642 \let\bslashmacro\bslash
643 \let\spacemacro\space
644 \immediate\openout\ydocwrite=\ydocfname\relax
645 \immediate\write\ydocwrite{\themacrocode}%
646 \immediate\closeout\ydocwrite
647 \let\input\@input
648 \tcbinputlisting{breakable,listing only,docexample,listing file=\ydocfname}%
649 \endgroup
650 }
651 \makeatother
652 \AtBeginDocument{%
653 \hypersetup{linkcolor=black}%
654 }
655
656 \GetFileInfo{\jobname.dtx}
657 \title{OXREF -- Biblatex styles inspired by the \emph{Oxford Guide to Style}}
658 %</driver>
659 %<doc&n>\title{OXNOTES -- A notes-based style for Biblatex}
660 %<doc&m>\title{OXNUM -- A numeric style for Biblatex}
661 %<doc&a>\title{OXALPH -- An alphabetic style for Biblatex}
662 %<doc&y>\title{OXYEAR -- An author–year style for Biblatex}
663 %<*driver|doc>
664
665 \newcounter{elementcount}
666 \newcommand{\commaorandlist}[1]{%
667 % Counting up
668 \renewcommand*{\do}[1]{\stepcounter{elementcount}}%
669 \dolistloop{#1}%
670 \ifnumgreater{\value{elementcount}}{2}{%
671 \def\thisfinaland{,\space and\space}%
672 }{%
673 \def\thisfinaland{\space and\space}%
674 }%
675 % Counting back down
676 \renewcommand*{\do}[1]{%
677 \ifnumgreater{\value{elementcount}}{2}{% antipenultimate or earlier
678 ##1,\space
679 }{%
680 \ifnumequal{\value{elementcount}}{2}{% penultimate
681 ##1\thisfinaland
682 }{% last
683 ##1%
684 }%
685 }%
686 \addtocounter{elementcount}{-1}%
687 }%
688 \dolistloop{#1}}
689
690 \author{Alex Ball}
691 \listadd\thetranslators{Bruno Maltras}
692 \listadd\thetranslators{Sebastian Wasiuta}
693 \date{\printdateTeX{\filedate}}
694 \begin{document}
695 \thispagestyle{empty}
696 \begin{adjustwidth}{.2\textwidth}{0pt}
697 \sffamily\setlength{\parindent}{0pt}%
698 \LARGE\textsc{oxref bundle}
699
700 \vspace{\stretch{1}}
701 \LARGE\thetitle
702
703 \bigskip
704 \Large\theauthor\par
705 \normalsize with translations by \commaorandlist\thetranslators
706
707 \bigskip
708 \Large\thedate
709
710 \bigskip
711 \Large\fileversion
712 \end{adjustwidth}
713
714 \vspace{\stretch{3}}
715 \noindent
716 \hspace*{.1\textwidth}\raisebox{0pt}[0pt][0pt]{\rule{\normalrulethickness}{\textheight}}
717
718 \newpage
719 \begin{KeepFromToc}
720 \tableofcontents
721 \end{KeepFromToc}
722
723 %</driver|doc>
724 %<*driver>
725 \chapter{Introduction}
726
727 This document provides the documented sources for the \pkg[biblatex]{oxref}
728 biblography styles:
729 \begin{itemize}
730 \item
731 \textsf{oxnotes}: a style similar to the standard \textsf{verbose}
732 and its variants, intended for use with footnotes;
733 \item
734 \textsf{oxnum}: a style similar to the standard \textsf{numeric},
735 intended for use with numeric in-text citation labels;
736 \item
737 \textsf{oxalph}: a style similar to the standard \textsf{alphabetic},
738 intended for use with alphabetic in-text citation labels;
739 \item
740 \textsf{oxyear}: a style similar to the standard \textsf{authoryear},
741 intended for use with parenthetical in-text citations.
742 \end{itemize}
743
744 \section{Quick start}
745
746 The styles are self-contained, so you can load them with \pkg{biblatex}:
747
748 \begin{multicols}{2}
749 \begin{tcblisting}{listing only}
750 \usepackage[style=oxnotes]{biblatex}
751 \end{tcblisting}
752
753 \addtocounter{FancyVerbLine}{-1}%
754 \begin{tcblisting}{listing only}
755 \usepackage[style=oxnum]{biblatex}
756 \end{tcblisting}
757
758 \addtocounter{FancyVerbLine}{-1}%
759 \begin{tcblisting}{listing only}
760 \usepackage[style=oxalph]{biblatex}
761 \end{tcblisting}
762
763 \addtocounter{FancyVerbLine}{-1}%
764 \begin{tcblisting}{listing only}
765 \usepackage[style=oxyear]{biblatex}
766 \end{tcblisting}
767 \end{multicols}
768
769 For further information, including some additional options you can set,
770 please refer to the separate documentation files
771 \href{./oxnotes-doc.pdf}{\texttt{oxnotes-doc.pdf}},
772 \href{./oxnum-doc.pdf}{\texttt{oxnum-doc.pdf}},
773 \href{./oxalph-doc.pdf}{\texttt{oxalph-doc.pdf}},
774 and
775 \href{./oxyear-doc.pdf}{\texttt{oxyear-doc.pdf}}
776 respectively.
777
778 \sloppy
779 \begin{markdown*}{hybrid=true}
780 %</driver>
781 %<*driver|readme>
782
783 ## Installation
784
785 ### Dependencies
786
787 To compile the documentation you will need to have the [minted] package working,
788 which in turn relies on Python 2.6+ and Pygments. See the documentation of that
789 package for details.
790
791 ### Managed way
792
793 The latest stable release of the biblatex-oxref bundle has been packaged for
794 TeX Live and MiKTeX. If you are running TeX Live and have `tlmgr` installed, you
795 can install the bundle simply by running `tlmgr install biblatex-oxref`. If you
796 are running MiKTeX, you can install the bundle by running
797 `mpm --install=biblatex-oxref`. Both `tlmgr` and `mpm` have GUI versions that
798 you might find friendlier.
799
800 ### Automated way
801
802 A makefile is provided which you can use with the Make utility on
803 UNIX-like systems:
804
805 * Running `make source` generates the derived files
806 - README.md
807 - oxref.bbx, oxnotes.bbx, oxnotes-ibid.bbx, oxnotes-note.bbx,
808 oxnotes-inote.bbx, oxnotes-trad1.bbx, oxnotes-trad2.bbx,
809 oxnotes-trad3.bbx, oxyear.bbx, oxnum.bbx, oxalph.bbx
810 - oxnotes.cbx, oxnotes-ibid.cbx, oxnotes-note.cbx, oxnotes-inote.cbx,
811 oxnotes-trad1.cbx, oxnotes-trad2.cbx, oxnotes-trad3.cbx, oxyear.cbx,
812 oxnum.cbx, oxalph.cbx
813 - american-oxref.lbx, british-oxref.lbx, english-oxref.lbx,
814 spanish-oxref.lbx, polish.lbx
815 - oxnotes.dbx, oxnotes-ibid.dbx, oxnotes-note.dbx, oxnotes-inote.dbx,
816 oxnotes-trad1.dbx, oxnotes-trad2.dbx, oxnotes-trad3.dbx, oxyear.dbx,
817 oxnum.dbx, oxalph.dbx
818 - oxref.bib
819 - oxref.ins
820 - oxnotes-doc.tex, oxyear-doc.tex, oxnum-doc.tex, oxalph-doc.tex
821
822 * Running `make` generates the above files and also oxref.pdf,
823 oxnotes-doc.pdf, oxyear-doc.pdf, oxnum-doc.pdf and oxalph-doc.pdf.
824
825 * Running `make inst` installs the files in the user's TeX tree.
826 You can undo this with `make uninst`.
827
828 * Running `make install` installs the files in the local TeX tree.
829 You can undo this with `make uninstall`.
830
831 * Running `make clean` removes auxiliary files from the working directory.
832
833 * Running `make distclean` removes the generated files from the working
834 directory as well.
835
836 ### Manual way
837
838 To install the bundle from scratch, follow these instructions. If you have
839 downloaded the zip file from the [Releases] page on GitHub, you can skip the
840 first two steps.
841
842 1. Run `luatex oxref.dtx` to generate the source files. (You can safely skip
843 this step if you are confident about step 2.)
844
845 2. Compile oxref.dtx, oxnotes-doc.tex, oxyear-doc.tex, and oxnum-doc.tex with
846 LuaLaTeX and Biber to generate the documentation. You will need to enable
847 shell escape so that [minted] can typeset the listings.
848
849 3. Move the files to your TeX tree as follows:
850 - `source/latex/biblatex-oxref`:
851 oxref.dtx,
852 (oxref.ins)
853 - `tex/latex/biblatex-oxref`:
854 american-oxref.lbx,
855 british-oxref.lbx,
856 english-oxref.lbx,
857 spanish-oxref.lbx,
858 polish-oxref.lbx,
859 oxalph.bbx,
860 oxalph.cbx,
861 oxalph.dbx,
862 oxnotes.bbx,
863 oxnotes.cbx,
864 oxnotes.dbx,
865 oxnotes-ibid.bbx,
866 oxnotes-ibid.cbx,
867 oxnotes-ibid.dbx,
868 oxnotes-inote.bbx,
869 oxnotes-inote.cbx,
870 oxnotes-inote.dbx,
871 oxnotes-note.bbx,
872 oxnotes-note.cbx,
873 oxnotes-note.dbx,
874 oxnotes-trad1.bbx,
875 oxnotes-trad1.cbx,
876 oxnotes-trad1.dbx,
877 oxnotes-trad2.bbx,
878 oxnotes-trad2.cbx,
879 oxnotes-trad2.dbx,
880 oxnotes-trad3.bbx,
881 oxnotes-trad3.cbx,
882 oxnotes-trad3.dbx,
883 oxnum.bbx,
884 oxnum.cbx,
885 oxnum.dbx,
886 oxref.bbx,
887 oxyear.bbx,
888 oxyear.cbx,
889 oxyear.dbx
890 - `doc/latex/biblatex-oxref`:
891 README.md,
892 oxalph-doc.pdf,
893 oxalph-doc.tex,
894 oxnotes-doc.pdf,
895 oxnotes-doc.tex,
896 oxnum-doc.pdf,
897 oxnum-doc.tex,
898 oxref.bib,
899 oxref.pdf,
900 oxyear-doc.pdf,
901 oxyear-doc.tex
902
903 4. You may then have to update your installation's file name database
904 before TeX and friends can see the files.
905
906 [Releases]: https://github.com/alex-ball/biblatex-oxref/releases
907 [minted]: http://ctan.org/pkg/minted
908
909 ## Licence
910
911 Copyright 2016–2026 Alex Ball.
912
913 This work consists of the documented LaTeX file oxref.dtx and a Makefile.
914
915 The text files contained in this work may be distributed and/or modified
916 under the conditions of the [LaTeX Project Public License (LPPL)][lppl],
917 either version 1.3c of this license or (at your option) any later
918 version.
919
920 This work is ‘maintained’ (as per LPPL maintenance status) by [Alex Ball][me].
921
922 [lppl]: http://www.latex-project.org/lppl.txt "LaTeX Project Public License (LPPL)"
923 [me]: https://alexball.me.uk/ "Alex Ball"
924
925 %</driver|readme>
926 %<*driver>
927 \end{markdown*}
928
929 \fussy
930 \iffalse % syntax highlighting \fix
931 %</driver>
932 %<*doc|bib>
933 %<*n|m|a|y>
934 \chapter{Introduction}
935
936 \section{Loading the style}\label{sec:loading}
937
938 The style is self-contained, so you can load it with \pkg{biblatex}:
939 \begin{tcblisting}{listing only}
940 %<n>\usepackage[style=oxnotes]{biblatex}
941 %<m>\usepackage[style=oxnum]{biblatex}
942 %<a>\usepackage[style=oxalph]{biblatex}
943 %<y>\usepackage[style=oxyear]{biblatex}
944 \end{tcblisting}
945
946 The style has some options additional to the regular \pkg{biblatex} ones:
947
948 \begin{docKey}{anon}{=\val{literal}|\val{long}|\val{short}}{default \val{short}, initially \val{literal}}
949 Affects what happens if the author name matches the value of \cs{oxrefanon}.
950 By default, this is \enquote{Anonymous}, but you could change it a different word (such as \enquote{Anonimo}) instead.
951 \begin{itemize}
952 \item\docValue{literal}
953 means no special handling is used.
954 \item\docValue{long}
955 will print the unabbreviated localization string \code{anon} (\enquote{Anonymous}) instead of the author name
956 %<y> in citations and the bibliography.
957 %<m|a> in the bibliography.
958 %<n> in the bibliography, but neither are printed in citations.
959 \item\docValue{short}
960 will print the abbreviated localization string \code{anon} (\enquote{Anon.\@}) instead of the author name
961 %<y> in citations and the bibliography.
962 %<m|a> in the bibliography.
963 %<n> in the bibliography, but neither are printed in citations.
964 \end{itemize}
965 \end{docKey}
966
967 \begin{docKey}{bookseries}{=\val{in}|\val{out}}{default \val{in}, initially \val{in}}
968 Puts the series information for a book \docValue{in}side or \docValue{out}side the parenthetical publication block.
969 \end{docKey}
970
971 \begin{docKey}{court-plain}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}}
972 Prints courts of decision without parentheses.
973 \end{docKey}
974
975 \begin{docKey}{dashed}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}}
976 In the biblography, replaces recurring author\slash editor names with a dash.
977 \end{docKey}
978
979 \begin{docKey}{ecli}{=\val{yes}|\val{only}|\val{no}}{default \val{yes}, initially \val{yes}}
980 Determines when ECLI numbers for EU legal cases are printed (if provided).
981 \begin{itemize}
982 \item\docValue{yes}
983 prints the ECLI number in addition to the official report.
984 \item\docValue{only}
985 prints the ECLI number instead of the official report.
986 \item\docValue{no}
987 only prints the ECLI number if the case is otherwise unreported.
988 \end{itemize}
989 \end{docKey}
990
991 \begin{docKey}{isourls}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}}
992 Surrounds URLs with angle brackets.
993 \end{docKey}
994
995 \begin{docKey}{issuedate-plain}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}}
996 Removes the parentheses around the date of a periodical without a volume number.
997 This can also be set on a per-type and per-entry basis.
998 (This option was previously called \key{varissuedate}.)
999 \end{docKey}
1000
1001 \begin{docKey}{issuestyle}{=\val{slash}|\val{colon}|\val{comma}|\val{parens}}{default \val{slash}, initially \val{slash}}
1002 Affects how journal volumes and numbers are printed.
1003 \begin{itemize}
1004 \item\docValue{slash}
1005 separates the two with a solidus, e.g. \enquote{23/2}.
1006 \item\docValue{colon}
1007 separates the two with a colon and space, e.g. \enquote{23: 2}.
1008 %<a|y> It is intended for use with \textsf{oxnotes}\slash\textsf{oxnum} and not recommended for this style.
1009 \item\docValue{comma}
1010 separates the two with a comma and space, e.g. \enquote{23, 2}.
1011 \item\docValue{parens}
1012 sets off the issue number in parentheses, e.g. \enquote{23 (2)}.
1013 %<n|m> It is intended for use with \textsf{oxalph}\slash\textsf{oxyear} and not recommended for this style.
1014 \end{itemize}
1015 \end{docKey}
1016
1017 %<*a|y>
1018 \begin{docKey}{mergedate}{=\val{maximum}|\val{compact}|\val{basic}|\val{minimum}|\val{year}|\val{false}}{default \val{year}, initially \val{year}}
1019 Affects how the date at the start of the references relates to the date in the \enquote{normal} position.
1020 The default value of \val{year} is intended for use with the default setting of \key{labeldate}\texttt{=}\val{year}.
1021 If you set \key{labeldate} to something else, you will probably want to set this option to \val{compact} or \val{maximum}. It can also be set on a per-type basis.
1022 \end{docKey}
1023 %</a|y>
1024
1025 \begin{docKey}{nolocation}{}{no value, initially unset}
1026 Replaces missing locations with \enquote{n.p.} or the localized equivalent in books, collections, reference works, proceedings, and similar entry types. Once set, this option cannot be overridden.
1027 Alternatively, it may be set on a per-entry basis.
1028 \end{docKey}
1029
1030 %<*a|y>
1031 \begin{docKey}{nonodate}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}}
1032 Suppresses the printing of the \code{nodate} localization string when an entry is missing a recognizable date. It can also be set on a per-type and per-entry basis. It is automatically set to \val{true} for entries with a \code{sortyear}, on the assumption that the date has been given in a non-date field (e.g.\@ the number of a standard).
1033 \end{docKey}
1034 %</a|y>
1035
1036 \begin{docKey}{nopublisher}{}{no value, initially unset}
1037 Removes publisher name from all entries. Once set, this option cannot be overridden.
1038 \end{docKey}
1039
1040 \begin{docKey}{norelatedin}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}}
1041 Suppresses the printing of the \code{in} localization string in circumstances where it would appear directly following a related string such as \enquote{originally published as}. It can also be set on a per-type and per-entry basis. The effects of this key are not well tested, so do please get in touch (see below) if you encounter problems with it.
1042 \end{docKey}
1043
1044 \begin{docKey}{relationpunct}{=\val{period}|\val{comma}|\val{semicolon}|\val{colon}|\val{space}}{default \val{semicolon}, initially \val{semicolon}}
1045 Sets the punctuation that precedes the \code{relatedtype} localization string.
1046 An additional space is assumed unless the value is \val{space}.
1047 This can also be set on a per-type and per-entry basis.
1048 Note that the general and per-type settings are ignored for some values of \code{relatedtype},
1049 but the per-entry setting is always effective.
1050 \end{docKey}
1051
1052 %<*n|m>
1053 \begin{docKey}{scnames}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}}
1054 Prints initial author or editor names in bibliography entries in small capitals.
1055 \end{docKey}
1056 %</n|m>
1057
1058 \begin{docKey}{thesis}{=\val{in}|\val{out}|\val{plain}}{default \val{out}, initially \val{out}}
1059 Puts the thesis type \docValue{in}side or \docValue{out}side the parenthetical publication block,
1060 while \docValue{plain} removes the parentheses entirely.
1061 \end{docKey}
1062
1063 \begin{docKey}{timefirst}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}}
1064 Prints the time (if provided) before the date instead of after it.
1065 This can also be set on a per-type and per-entry basis.
1066 \end{docKey}
1067
1068 \begin{docKey}{usenametitles}{=\val{true}|\val{false}}{default \val{true}, initially \val{true}}
1069 Controls whether titular prefixes such as Revd, Dr, Mrs, Sir, and so on are printed.
1070 (See \cref{sec:nametitles} for how to supply titles as part of a name.)
1071 This can also be set on a per-type and per-entry basis.
1072 \end{docKey}
1073
1074 \pkg[biblatex]{Oxref} makes use of Biber-specific techniques to solve some of the challenges presented by Oxford style.
1075 It will not stop you from using Bib\TeX\ instead but, if you do, only simple and standard entries will work.
1076 In particular, manuscripts, legal references and anything involving related entries will be adversely affected.
1077
1078 \section{How to use this document}
1079
1080 Bibliographical items are given throughout this document, and serve three purposes:
1081
1082 \begin{itemize}
1083 \item
1084 To demonstrate which of the variations discussed by the
1085 \emph{Oxford Guide to Style} and \emph{New Hart's Rules} have been chosen
1086 in this style.
1087 \item
1088 To help me, as package author, check that the style is working as intended.
1089 \item
1090 To show you, as document author, how to use the style to get the effect you want.
1091 \end{itemize}
1092
1093 Examples that follow standard \textsf{biblatex} semantics, and are therefore
1094 (mostly) portable to other styles, are in green:
1095
1096 \begin{tcolorbox}%
1097 [bicolor
1098 ,colframe = ok
1099 ,colback = ok!5!white
1100 ,colbacklower = white
1101 ,fontlower = \footnotesize\ttfamily
1102 ,overlay = {\node[anchor=south east,text=teal] at (frame.south east) {Source};}
1103 ]
1104 \hangfrom{\booksym\space} Reference text as it should look.\par
1105 \hangfrom{\cogsym\space} Reference text as generated by \textsf{biblatex}.
1106 \tcblower
1107 Code used in bibliography file.
1108 \end{tcolorbox}
1109
1110 Examples that have been \enquote{hacked} in some way, and are therefore not portable
1111 to other styles, are in amber:
1112
1113 \begin{tcolorbox}%
1114 [bicolor
1115 ,colframe = hacked
1116 ,colback = hacked!5!white
1117 ,colbacklower = white
1118 ,fontlower = \footnotesize\ttfamily
1119 ,overlay = {\node[anchor=south east,text=teal] at (frame.south east) {Source};}
1120 ]
1121 \hangfrom{\booksym\space} Reference text as it should look.\par
1122 \hangfrom{\cogsym\space} Reference text as generated by \textsf{biblatex}.
1123 \tcblower
1124 Code used in bibliography file.
1125 \end{tcolorbox}
1126
1127 Where a source is provided, it refers to a section from one of the reference works below:
1128
1129 \begin{description}
1130 \item[OGS]
1131 \fullcite{ritter2002ogs}
1132
1133 \item[NHR]
1134 \fullcite{waddingham2014nhr}
1135
1136 \item[OSCOLA]
1137 \fullcite{law.oxford2012oscola}
1138 \end{description}
1139
1140 Where the source is starred (*), this indicates the example is not quite how it appears in the book,
1141 usually because the original is demonstrating an option that is not the \pkg[biblatex]{oxref} default.
1142 %<*a|y>
1143 Where the source is marked with a dagger (\textdagger),
1144 this indicates that the example has been coverted from an \textsf{oxnotes}-style one,
1145 since the guides provide relatively few for author-year references.
1146 %</a|y>
1147
1148 \section{Design philosophy}
1149
1150 The stipulations given by the \emph{Oxford Guide to Style} regarding citations and references
1151 amount not so much to a consistent style as a body of advice for creating one.
1152 Unlike the style manuals published by the American Psychological Association,
1153 the Modern Language Association, and the University of Chicago to name but three,
1154 the emphasis of the Oxford guide is to describe good practice rather than prescribe a particular style.
1155 This means that when it comes to \pkg[biblatex]{oxref}, there are decisions to be made
1156 as to which variations to support by default, which to support as options,
1157 and which to ignore quietly.
1158
1159 The situation is complicated further by the nature of the available versions.
1160 The 2002 guide remains the most comprehensive in terms of rules, principles and examples.
1161 The succeeding versions, under the title \emph{New Hart's Rules},
1162 update the aspects of the 2002 guide that now seem somewhat dated,
1163 such as its handling of URLs and DOIs,
1164 and have more of an eye on machine processing of bibliographies.
1165 They do, however, introduce additional variations with less of a steer on what is preferred,
1166 and are considerably shorter with fewer examples.
1167
1168 The approach of \pkg[biblatex]{oxref} is to follow the 2014 \emph{New Hart's Rules} as much as possible,
1169 but where variations are given without strong preference, or where guidance is lacking,
1170 to follow the preferences of the 2002 guide.
1171 Where the practices of the humanities and the sciences are contrasted,
1172 the former are followed for \textsf{oxnotes}\slash\textsf{oxnum}
1173 and the latter for \textsf{oxalph}\slash\textsf{oxyear}.
1174 Where neither version gives explicit guidance on citing a resource supported by \textsf{biblatex},
1175 \pkg[biblatex]{oxref} extrapolates from what is provided, guided by standard \textsf{biblatex}
1176 and other major referencing styles.
1177
1178 Where it is practical to do so,
1179 ways and means of achieving the variations defined by the two guides are provided,
1180 but by no means all of them will be supported.
1181
1182 \section{Technical documentation}
1183
1184 For information on installing the styles, and for the documented source code,
1185 see the separate documentation file \href{./oxref.pdf}{\texttt{oxref.pdf}}
1186
1187 \section{Stability}
1188
1189 The \pkg[biblatex]{oxref} family of styles is currently at \fileversion.
1190
1191 I have no plans to change the default (expected) behaviour of the styles,
1192 and will do my best to avoid backwards-incompatible changes, though
1193 alternative behaviour may be added. If changes are introduced that alter
1194 the advertised output, this will be signalled by a change in major
1195 version number.
1196
1197 Please report any bugs you discover on the
1198 \href{https://github.com/alex-ball/biblatex-oxref/issues}{GitHub issue tracker}.%
1199 \footnote{Issue tracker for \pkg[biblatex]{oxref}:
1200 \url{https://github.com/alex-ball/biblatex-oxref/issues}}
1201 You are also welcome to leave your thoughts there on how the styles could
1202 be improved, especially for the cases not covered by the two style manuals.
1203
1204 \chapter{Citations and common formatting}\label{sec:citing}
1205
1206 %<*n>
1207 The \textsf{oxnotes} bibliography style is intended for use with a footnote or endnote citation style,
1208 and indeed loads a standard \textsf{biblatex} one.
1209 While the note text generated by the style is very similar to that which appears in the bibliography,
1210 there is a difference in how author names are printed.
1211 %</n>
1212 %<*m>
1213 The \textsf{oxnum} bibliography style is intended for use with a numeric citation style,
1214 and indeed loads a tweaked version of a standard \textsf{biblatex} one.
1215 %</m>
1216 %<*a>
1217 The \textsf{oxalph} bibliography style is intended for use with an alphabetic citation style,
1218 and indeed loads a tweaked version of a standard \textsf{biblatex} one.
1219 %</a>
1220 %<*y>
1221 The \textsf{oxyear} bibliography style is intended for use with an author–year citation style,
1222 and indeed loads a tweaked version of a standard \textsf{biblatex} one.
1223 %</y>
1224
1225 \section{Test citations}
1226
1227 %<*n>
1228 Following the advice of \emph{New Hart's Rules}, \textsf{oxnotes} loads by default a tweaked version of the standard \textsf{verbose} citation style, in which repeated citations are abbreviated to the author surname and a short title.
1229
1230 %</n>
1231 %</n|m|a|y>
1232 %<*bib>
1233 @book{faith1997epg,
1234 author = {R. J. Faith},
1235 title = {The {English} Peasantry and the Growth of Lordship},
1236 shorttitle = {{English} Peasantry},
1237 date = {1997}}
1238 @book{knowles.hadcock1953mrh,
1239 author = {D. Knowles and R. N. Hadcock},
1240 title = {Medieval Religious Houses},
1241 subtitle = {England and Wales},
1242 date = {1953}}
1243 @book{kershaw1973bp,
1244 author = {I. Kershaw},
1245 title = {Bolton Priory},
1246 date = {1973}}
1247 @article{cobban,
1248 author = {Cobban},
1249 title = {Colleges and halls}}
1250 %</bib>
1251 %<*n|m|a|y>
1252 %<*n>
1253 \begin{egcite}{}
1254 Test\footcite{faith1997epg}
1255 Test\footcite[49-50]{faith1997epg}
1256 \end{egcite}
1257 \begin{egcite}{}
1258 \cites[80 (Westminster), 66
1259 (Glastonbury), 149 (Osney), 128
1260 (Bolton)]{knowles.hadcock1953mrh}%
1261 [186]{kershaw1973bp}[609]{cobban}
1262 \end{egcite}
1263 \addtocategory{hidden}{cobban}
1264
1265 Both the \emph{Oxford Guide to Style} and \emph{New Hart's Rules} describe an alternative system that uses the abbreviations \enquote{ibid.\@}, \enquote{op.\@ cit.\@}, \enquote{loc.\@ cit.\@}, and \enquote{id.\@} and friends, though with underwhelming enthusiasm. If you would like to use these abbreviations, you can use the \textsf{oxnotes-trad1} citation style instead (and remember to use the \code{gender} field). As with the standard styles, a bibliographic style alias has been provided so you can just do this:
1266
1267 \begin{tcblisting}{listing only}
1268 \usepackage[style=oxnotes-trad1]{biblatex}
1269 \end{tcblisting}
1270
1271 If you are particularly keen to use the other variants that \pkg{biblatex} provides, then parallel \textsf{oxnotes} variants have been provided for your convenience: \textsf{oxnotes-ibid}, \textsf{oxnotes-note}, \textsf{oxnotes-inote}, \textsf{oxnotes-trad2}, and \textsf{oxnotes-trad3}.
1272
1273 %</n>
1274 %<*m|a>
1275 Both the \emph{Oxford Guide to Style} and \emph{New Hart's Rules} describe a system that uses simple numbers as citation labels, almost as if they were endnotes. This system does not support page references, unlike the citation labels familiar to \LaTeX\ users. In the absence of a better idea, therefore, this style treats citation labels rather like author–year parenthetical citations and adopts the conventions from \textsf{oxyear}. Pages are set off with a colon, and multiple works are separated with a semicolon.
1276
1277 \begin{egcite}%
1278 %<m>{Test [\citefield{hankinson1988mmm}{labelnumber}: 93, 96; \citefield{hankinson1989gba}{labelnumber}: 72]}
1279 %<a>{Test [\citefield{hankinson1988mmm}{labelalpha}: 93, 96; \citefield{hankinson1989gba}{labelalpha}: 72]}
1280 Test \parencites%
1281 [93, 96]{hankinson1988mmm}%
1282 [72]{hankinson1989gba}
1283 \end{egcite}
1284 %</m|a>
1285 %<*y>
1286 The \emph{Oxford Guide to Style} consistently promotes an author–date citation scheme which uses parentheses, within which there is only a space between the name and date.
1287 If there is no date, the replacement text is separated from the name by a comma.
1288
1289 \begin{egcite}{(Anon.\@ 1956), (Marx 1867), (Clarke, n.d.).}
1290 \parencite{anon1956lu},
1291 \parencite{marx1867ccp},
1292 \parencite{clarkeNDeci}.
1293 \end{egcite}
1294
1295 Pages are set off with a colon, and multiple works are separated with a semicolon.
1296
1297 \begin{egcite}{Hankinson (1988: 93, 96; 1989: 72)}
1298 \textcites%
1299 [93, 96]{hankinson1988mmm}%
1300 [72]{hankinson1989gba}
1301 \end{egcite}
1302
1303 Up to two author names are given, after which \enquote{et al.} is used.
1304
1305 \begin{egcite}{(Barnes and Griffin 1989; Brady et al. 1994)}
1306 \parencite{barnes.griffin1989pte,%
1307 brady.etal1994hehsa}
1308 \end{egcite}
1309
1310 If different authors have the same surname, they are distinguished by their initial.
1311
1312 %</y>
1313 %</n|m|a|y>
1314 %<*bib>
1315 @inbook{smithFCct,
1316 author = {P. Smith},
1317 title = {The Case of {Tigray}},
1318 bookauthor = {P. Smith},
1319 booktitle = {Gender and Famine},
1320 volume = {2},
1321 pages = {76-94},
1322 location = {London},
1323 pubstate = {forthcoming}}
1324 %</bib>
1325 %<*n|m|a|y>
1326 %<*y>
1327 \nocite{smithFCct}
1328 \begin{egcite}{(P. Smith, forthcoming \emph{a}; T. Smith 1988)}
1329 \parencite{smithFCgaf,smith1988fag}
1330 \end{egcite}
1331
1332 If a short author label is provided, it is used in place of the full author.
1333
1334 \begin{egcite}{(WHO 1986)}
1335 \parencite{who1986nde}
1336 \end{egcite}
1337
1338 \emph{New Hart's Rules} is mostly consistent with this, but has some variations where the author and date are separated by a comma, and where multiple references are also separated by commas.
1339 %</y>
1340
1341 \section{Missing or inferred attribution}
1342
1343 \subsection{Missing attribution}
1344 %<*n>
1345 Where works have no attribution, both the \emph{Oxford Guide to Style} and \emph{New Hart's Rules} suggest printing them without further adornment in notes, but listing them under \enquote{Anonymous} (or \enquote{Anon.\@} in the latter case) in the bibliography.
1346 %</n>
1347 %<*y>
1348 The \emph{Oxford Guide to Style} prefers anonymous works to have \enquote{Anonymous} in place of the author name, while \emph{New Hart's Rules} suggests using \enquote{Anon.\@} or a short title.
1349 %</y>
1350
1351 \tip{\pkg[biblatex]{Oxref} will not automatically generate anonymous labels for you, but if you use the \key{anon} option (see \cref{sec:loading}), you can transform an author name of \enquote{Anonymous} (or whatever \cs{oxrefanon} is set to) in your .bib file to either the long or short localization string \code{anon}.
1352 %<n> Doing this will automatically suppress the printing of the anonymous author in notes.
1353 }
1354
1355 %<*n>
1356 \begin{egcite}{}
1357 \cite{anon1822san}.
1358 \textcite{anon1956lu}.
1359 \end{egcite}
1360
1361 %</n>
1362 \begin{bibexbox}
1363 %<n|m><OGS \S15.2.1>
1364 %<a|y><OGS \S15.2.1\textdagger>
1365 {anon1822san}
1366 %<n|m>\textsc{Anon.}, \emph{Stories after Nature} (London: Allman, 1822).
1367 %<a|y>Anon.\@ (1822), \emph{Stories after Nature} (London: Allman).
1368 \toggletrue{blx@bibliography}
1369 \tcblower
1370 \begin{Verbatim}
1371 %</n|m|a|y>
1372 @book{anon1822san,
1373 author = {Anonymous},
1374 title = {Stories after Nature},
1375 location = {London},
1376 publisher = {Allman},
1377 date = {1822}}
1378 %<*n|m|a|y>
1379 \end{Verbatim}
1380 \end{bibexbox}
1381
1382 \begin{bibexbox}
1383 %<n|m><OGS \S15.2.1>
1384 %<a|y><OGS \S15.2.1\textdagger>
1385 {anon1956lu}
1386 %<n|m>\textsc{Anon.}, \emph{Liber usualis} (Tournai: Desclée, 1956).
1387 %<a|y>Anon.\@ (1956), \emph{Liber usualis} (Tournai: Desclée).
1388 \toggletrue{blx@bibliography}
1389 \tcblower
1390 \begin{Verbatim}
1391 %</n|m|a|y>
1392 @book{anon1956lu,
1393 author = {Anonymous},
1394 title = {Liber usualis},
1395 location = {Tournai},
1396 publisher = {Desclée},
1397 year = {1956}}
1398 %<*n|m|a|y>
1399 \end{Verbatim}
1400 \end{bibexbox}
1401
1402 %<*m|a>
1403 \begin{egcite}{}
1404 \textcite{anon1822san,anon1956lu}
1405 \end{egcite}
1406 %</m|a>
1407 %<*y>
1408 \begin{egcite}{(Anon.\@ 1822; 1956), Anon.\@ (1956)}
1409 \parencite{anon1822san,anon1956lu},
1410 \textcite{anon1956lu}
1411 \end{egcite}
1412 %</y>
1413 %<!n>
1414
1415 \subsection{Pseudepigraphy}
1416 Some older works are known to have been written pseudepigraphically, that is, falsely attributed to a more famous author. The way of indicating this in Oxford style, if desired, is
1417 %<n>to add the prefix \enquote{Pseudo-} before the name in notes, and
1418 to put \enquote{(Ps.-)} after the name in the bibliography.
1419
1420 \tip{With \pkg[biblatex]{oxref}, you can achieve this by annotating the name with the keyword \code{pseudo}.
1421 %<n>Since this mechanism is aimed at ancient texts, it has only been designed to work with single-part names
1422 %<n>(i.e. either a single word, or a whole name wrapped in braces).
1423 }
1424
1425 %<*n|m|a>
1426 \begin{egcite}{}
1427 \textcite{boethius1976dds}
1428 \end{egcite}
1429 %</n|m|a>
1430 %<*y>
1431 \begin{egcite}{}
1432 \parencite{boethius1976dds}
1433 \end{egcite}
1434 %</y>
1435
1436 \begin{bibexbox}
1437 %<n|m><OGS \S15.2.1>
1438 %<a|y><OGS \S15.2.1\textdagger>
1439 {boethius1976dds}
1440 %<n|m>\textsc{Boethius} (\textsc{Ps.-}), \emph{De disciplina scolarium: Édition critique, introduction et notes}, ed. Olga Weijers (Leiden, 1976).
1441 %<a|y>Boethius (Ps.-) (1976), \emph{De disciplina scolarium: Édition critique, introduction et notes}, ed.\@ O. Weijers (Leiden).
1442 \toggletrue{blx@bibliography}
1443 \tcblower
1444 \begin{Verbatim}
1445 %</n|m|a|y>
1446 @book{boethius1976dds,
1447 author = {Boethius},
1448 author+an = {1=pseudo},
1449 title = {De disciplina scolarium},
1450 subtitle = {Édition critique, introduction et notes},
1451 editor = {Olga Weijers},
1452 location = {Leiden},
1453 date = {1976}}
1454 %<*n|m|a|y>
1455 \end{Verbatim}
1456 \end{bibexbox}
1457
1458
1459 \subsection{Inferred attribution}
1460
1461 If the attribution is missing from the work but may be inferred from other sources,
1462 Oxford style is to give the attribution in square brackets.
1463
1464 \tip{With \pkg[biblatex]{oxref}, you can achieve this by annotating the whole name field
1465 (usually \code{author} or \code{editor}) with the keyword \code{inferred}.
1466 You can also annotate names individually within the list, if only some of them should be taken as inferred.}
1467
1468 \begin{bibexbox}
1469 %<n|m><OGS \S15.2.1>
1470 %<a|y><OGS \S15.2.1\textdagger>
1471 {balfour1768pe}[]
1472 %<n|m>[James Balfour], \emph{Philosophical Essays} (Edinburgh, 1768).
1473 %<a|y>[Balfour, J.] (1768), \emph{Philosophical Essays} (Edinburgh).
1474 \tcblower
1475 \begin{Verbatim}
1476 %</n|m|a|y>
1477 @book{balfour1768pe,
1478 author = {James Balfour},
1479 author+an = {=inferred},
1480 title = {Philosophical Essays},
1481 location = {Edinburgh},
1482 date = {1768}}
1483 %<*n|m|a|y>
1484 \end{Verbatim}
1485 \end{bibexbox}
1486
1487 \tip{You can also use the syntax from \textsf{biblatex-realauthor}.
1488 If you do not specify the \code{author}, then \code{realauthor} is treated as an alias for \code{author} annotated with the keyword \code{inferred}.
1489 The equivalent is true for \code{realeditor}.
1490 Note, however, that \pkg[biblatex]{oxref} does not recognize the \key{userealauthor} and \key{userealeditor} options.}
1491
1492 \subsection{Pseudonyms}
1493
1494 If an author publishes under a pen name, and you want to link the names in the bibliography,
1495 the name as given in the work should be given first, immediately followed by the other name
1496 in parentheses (\emph{Oxford Guide to Style}) or brackets (\emph{New Hart's Rules}).
1497
1498 \tip{If you don't mind the second name being printed as-is,
1499 the canonical place to include it is the \code{nameaddon} field.}
1500
1501 \begin{bibexbox}
1502 %<n|m><NHR \S18.2.2>
1503 %<a|y><NHR \S18.2.2\textdagger>
1504 {dodgson1896sl}
1505 %<n|m>C. L. Dodgson [Lewis Carroll], \emph{Symbolic Logic} (Oxford, 1896).
1506 %<a|y>Dodgson, C. L. [Lewis Carroll] (1896), \emph{Symbolic Logic} (Oxford).
1507 \tcblower
1508 \begin{Verbatim}
1509 %</n|m|a|y>
1510 @book{dodgson1896sl,
1511 author = {C. L. Dodgson},
1512 nameaddon = {Lewis Carroll},
1513 title = {Symbolic Logic},
1514 location = {Oxford},
1515 date = {1896}}
1516 %<*n|m|a|y>
1517 \end{Verbatim}
1518 \end{bibexbox}
1519
1520 \tip{You can switch to using parentheses for name addons by changing the \code{nameaddon} field format.}
1521
1522 \begin{tcblisting}{listing only}
1523 \DeclareFieldFormat{nameaddon}{\mkbibparens{#1}}
1524 \end{tcblisting}
1525
1526 \tip{If you do want the second name to be normalized, or you are dealing with a list of names,
1527 you can use the (non-standard) \code{authoraddon} and \code{editoraddon} fields. The addon
1528 name will be printed after the corresponding name in the regular name list, using the
1529 \code{nameaddon} field format, but only if it is different.}
1530
1531 \begin{bibexbox}
1532 %<n|m><NHR \S18.2.2>
1533 %<a|y><NHR \S18.2.2\textdagger>
1534 {lauder1965lss}
1535 %<n|m>Afferbeck Lauder [Alistair Morrison], \emph{Let Stalk Strine} (Sydney, 1965).
1536 %<a|y>Lauder, A. [Morrison, A.] (1965), \emph{Let Stalk Strine} (Sydney).
1537 \tcblower
1538 \begin{Verbatim}
1539 %</n|m|a|y>
1540 @book{lauder1965lss,
1541 author = {Afferbeck Lauder},
1542 authoraddon = {Alistair Morrison},
1543 title = {Let Stalk Strine},
1544 location = {Sydney},
1545 date = {1965}}
1546 %<*n|m|a|y>
1547 \end{Verbatim}
1548 \end{bibexbox}
1549
1550 \tip{Again, you can also use the syntax from \textsf{biblatex-realauthor}.
1551 If you specify the \code{author}, then \code{realauthor} is treated as an alias for \code{authoraddon}.
1552 The equivalent is true for \code{realeditor}.}
1553
1554 \section{Name variants}
1555
1556 In cases where an author changes the name under which they publish (e.g.\ due to changes of marital status), both the \emph{Oxford Guide to Style} and \emph{New Hart's Rules} suggest putting the later form of the name first, followed by parentheses containing an equals sign and the earier form of the name.
1557 %<n>This is only supposed to to printed in the bibliography, not in notes.
1558
1559 \tip{To trigger this formatting, annotate the relevant name in \code{authoraddon} or \code{editoraddon} with the keyword \code{variant}.}
1560
1561 %<*n>
1562 \begin{egcite*}{}
1563 \cite{joukovsky1967gdd}
1564 \end{egcite*}
1565 %</n>
1566 %<*m|a>
1567 \begin{egcite}{}
1568 \textcite{joukovsky1967gdd}
1569 \end{egcite}
1570 %</m|a>
1571 %<*y>
1572 \begin{egcite}{}
1573 \parencite{joukovsky1967gdd}
1574 \end{egcite}
1575 %</y>
1576
1577 \begin{bibexbox}
1578 %<n|m><OGS \S15.17.4>
1579 %<a|y><OGS \S15.17.4\textdagger>
1580 {joukovsky1967gdd}
1581 %<n|m>\textsc{Joukovsky}, \textsc{F.} (= \textsc{Joukovsky-Micha}, \textsc{F.}), \enquote{La Guerre des dieux et des géants chez les poètes francais du XVI\textsuperscript{e} siècle (1500–1585)}, \emph{Bibliothèque d'Humanisme et Renaissance}, 29 (1967), 55–92.
1582 %<a|y>Joukovsky, F. (= Joukovsky-Micha, F.) (1967), \enquote{La Guerre des dieux et des géants chez les poètes francais du XVI\textsuperscript{e} siècle (1500–1585)}, \emph{Bibliothèque d'Humanisme et Renaissance}, 29: 55–92.
1583 \toggletrue{blx@bibliography}
1584 \tcblower
1585 \begin{Verbatim}
1586 %</n|m|a|y>
1587 @article{joukovsky1967gdd,
1588 author = {F. Joukovsky},
1589 authoraddon = {F. Joukovsky-Micha},
1590 authoraddon+an = {1=variant},
1591 title = {La Guerre des dieux et des géants chez les poètes francais du XVI\textsuperscript{e}
1592 siècle (1500--1585)},
1593 journaltitle = {Bibliothèque d'Humanisme et Renaissance},
1594 volume = {29},
1595 date = {1967},
1596 langid = {french},
1597 pages = {55-92}}
1598 %<*n|m|a|y>
1599 \end{Verbatim}
1600 \end{bibexbox}
1601
1602
1603 \section{Author-translators and author-revisers}
1604
1605 If the contribution of the translators or revisers is so great they could be joint authors, Oxford style is to print them immediately after the actual author. The motivation comes from textbooks like this one:
1606
1607 %<*n>
1608 \begin{egcite*}{}
1609 \textcite{kuehner.blass1890ef}
1610 \end{egcite*}
1611 %</n>
1612 %<*m|a>
1613 \begin{egcite}{}
1614 \textcite{kuehner.blass1890ef}
1615 \end{egcite}
1616 %</m|a>
1617 %<*y>
1618 \begin{egcite}{}
1619 \parencite{kuehner.blass1890ef}
1620 \end{egcite}
1621 %</y>
1622
1623 \begin{bibexbox}
1624 {kuehner.blass1890ef}
1625 %<n|m>\textsc{Kühner}, \textsc{Raphael}, rev. \textsc{Blass}, \textsc{Friedrich}, \emph{Ausführliche grammatik der griechischen sprache}, i: \emph{Elementar- und Formenlehre} (Hannover: Hahnsche Buchhandlung, 1890–2).
1626 %<a|y>Kühner, R., rev. Blass, F. (1890–2), \emph{Ausführliche grammatik der griechischen sprache}, i: \emph{Elementar- und Formenlehre} (Hannover: Hahnsche Buchhandlung).
1627 \toggletrue{blx@bibliography}
1628 \tcblower
1629 \begin{Verbatim}
1630 %</n|m|a|y>
1631 @mvbook{kuehner.blass1890ef,
1632 author = {Raphael Kühner},
1633 editor = {Friedrich Blass},
1634 editor+an = {=jointauthor},
1635 editortype = {reviser},
1636 shortauthor = {Kühner--Blass},
1637 title = {Elementar- und Formenlehre},
1638 maintitle = {Ausführliche grammatik der griechischen sprache},
1639 volume = {1},
1640 location = {Hannover},
1641 publisher = {Hahnsche Buchhandlung},
1642 date = {1890/1892}}
1643 %<*n|m|a|y>
1644 \end{Verbatim}
1645 \end{bibexbox}
1646
1647 \tip{Annotate \emph{either} the \code{editor} \emph{or} \code{translator} field with the keyword \code{jointauthor} to promote the name to the joint author position (you cannot do it for both). Internally, what this does is move the names to the \pkg[biblatex]{oxref}-specific \code{jointauthor} field; you can use this and \code{jointauthortype} directly if you like, at the cost of portability to other styles. Note that you have to supply a suitable \code{shortauthor} value yourself; \pkg[biblatex]{oxref} does not calculate it for you.}
1648
1649 \section{Titular prefixes}\label{sec:nametitles}
1650
1651 Generally speaking, using titular prefixes like Revd, Dr, Mrs, Sir, and so on as part of an author's name is unnecessary,
1652 but there are occasions when removing them can cause problems, so with \pkg[biblatex]{oxref} you can supply them if you need to.
1653 I have not added special rules for recognizing such titles, so if you want to include one you have to label each part of the name explicitly, as in the following example (the keyword for the titular prefix is \code{title}).
1654
1655 \begin{bibexbox}
1656 %<n|m><NHR \S18.2.2*>
1657 %<a|y><NHR \S18.2.2*\textdagger>
1658 {wood1861el}
1659 %<n|m>Mrs Henry Wood, \emph{East Lynne}, 3 vols. (London, 1861).
1660 %<a|y>Wood, Mrs H. (1861), \emph{East Lynne}, 3 vols. (London).
1661 \tcblower
1662 \begin{Verbatim}
1663 %</n|m|a|y>
1664 @mvbook{wood1861el,
1665 author = {title=Mrs, given=Henry, family=Wood},
1666 title = {East Lynne},
1667 volumes = {3},
1668 location = {London},
1669 date = {1861}}
1670 %<*n|m|a|y>
1671 \end{Verbatim}
1672 \end{bibexbox}
1673
1674 You can switch the display of titular prefixes on or off using the \key{usenametitles} option.
1675 This can be set globally or on a per-type or per-entry basis.
1676
1677 \section{Works in foreign languages}
1678
1679 If you used a work in a different language from the one in which you are currently writing,
1680 you might want to recommend a good translation into the latter language.
1681
1682 \tip{Add the translation in \code{related}, and set \code{relatedtype} to \code{translationas}.
1683 The localized bibstring reflects the current localization language:
1684 \enquote{English translation}, \enquote{traducido espa\~nol}, and so on.}
1685
1686 \begin{bibexbox}
1687 %<n|m><NHR \S18.2.5*>
1688 %<a|y><NHR \S18.2.5*\textdagger>
1689 {tschichold1955tg}
1690 %<n|m>J. Tschichold, \emph{Typographische Gestaltung} (Basle, 1955); Eng. trans. as \emph{Asymmetric Typography} (London, 1967).
1691 %<a|y>Tschichold, J. (1955), \emph{Typographische Gestaltung} (Basle); Eng. trans. as \emph{Asymmetric Typography} (London, 1967).
1692 \tcblower
1693 \begin{Verbatim}
1694 %</n|m|a|y>
1695 @book{tschichold1955tg,
1696 author = {J. Tschichold},
1697 title = {Typographische Gestaltung},
1698 location = {Basle},
1699 date = {1955},
1700 related = {tschichold1967tg},
1701 relatedtype = {translationas}}
1702 @book{tschichold1967tg,
1703 title = {Asymmetric Typography},
1704 location = {London},
1705 date = {1967}}
1706 %<*n|m|a|y>
1707 \end{Verbatim}
1708 \end{bibexbox}
1709
1710 \tip{To specify the translator up front, or to recommend a translation into a third language,
1711 set the \code{relatedtype} to \code{bytranslator} instead.}
1712
1713 \begin{bibexbox}
1714 %<n|m><NHR \S18.2.14>
1715 %<a|y><NHR \S18.2.14\textdagger>
1716 {sarrau1975ta}
1717 %<n|m>José Sarrau, \emph{Tapas y aperitivos} (Madrid, 1975); trans. Francesca Piemonte Slesinger as \emph{Tapas and Appetizers} (New York, 1987).
1718 %<a|y>Sarrau, J. (1975), \emph{Tapas y aperitivos} (Madrid); trans. F. P. Slesinger as \emph{Tapas and Appetizers} (New York, 1987).
1719 \tcblower
1720 \begin{Verbatim}
1721 %</n|m|a|y>
1722 @book{sarrau1975ta,
1723 author = {José Sarrau},
1724 title = {Tapas y aperitivos},
1725 location = {Madrid},
1726 date = {1975},
1727 related = {sarrau1987ta},
1728 relatedtype = {bytranslator}}
1729 @book{sarrau1987ta,
1730 author = {José Sarrau},
1731 translator = {Francesca Piemonte Slesinger},
1732 title = {Tapas and Appetizers},
1733 location = {New York},
1734 date = {1987}}
1735 %<*n|m|a|y>
1736 \end{Verbatim}
1737 \end{bibexbox}
1738
1739
1740 If you used the translation, you might want to give the original publication as well.
1741
1742 \tip{Add the original in \code{related}, and set \code{relatedtype} to \code{translationof}.}
1743
1744 \begin{bibexbox}
1745 %<n|m><NHR \S18.2.5>
1746 %<a|y><NHR \S18.2.5\textdagger>
1747 {metz1938hyb}
1748 %<n|m>R. Metz, \emph{A Hundred Years of British Philosophy}, ed. J. H. Muirhead, trans. J. W. Harvey (1938) [Ger. orig., \emph{Die philosophischen Strömungen der Gegenwart in Grossbritannien} (1935)]
1749 %<a|y>Metz, R. (1938), \emph{A Hundred Years of British Philosophy}, ed. J. H. Muirhead, trans. J. W. Harvey [Ger. orig., \emph{Die philosophischen Strömungen der Gegenwart in Grossbritannien} (1935)]
1750 \tcblower
1751 \begin{Verbatim}
1752 %</n|m|a|y>
1753 @book{metz1938hyb,
1754 author = {R. Metz},
1755 title = {A Hundred Years of British Philosophy},
1756 editor = {J. H. Muirhead},
1757 translator = {J. W. Harvey},
1758 date = {1938},
1759 related = {metz1935psg},
1760 relatedtype = {translationof}}
1761 @book{metz1935psg,
1762 title = {Die philosophischen Strömungen der Gegenwart in Grossbritannien},
1763 date = {1935},
1764 language = {german}}
1765 %<*n|m|a|y>
1766 \end{Verbatim}
1767 \end{bibexbox}
1768
1769 It is often helpful to provide an informative translation of foreign language titles.
1770
1771 \tip{Put the translation in \code{titleaddon}.}
1772
1773 \begin{bibexbox}
1774 %<n|m><NHR \S18.2.5>
1775 %<a|y><NHR \S18.2.5\textdagger>
1776 {nissan1965hnm}
1777 %<n|m>Nissan Motor Corporation, \emph{Nissan Jidosha 30nen shi} [A 30-year history of Nissan Motors] (1965).
1778 %<a|y>Nissan Motor Corporation (1965), \emph{Nissan Jidosha 30nen shi} [A 30-year history of Nissan Motors].
1779 \tcblower
1780 \begin{Verbatim}
1781 %</n|m|a|y>
1782 @book{nissan1965hnm,
1783 author = {{Nissan Motor Corporation}},
1784 title = {Nissan Jidosha 30nen shi},
1785 titleaddon = {A 30-year history of Nissan Motors},
1786 date = {1965}}
1787 %<*n|m|a|y>
1788 \end{Verbatim}
1789 \end{bibexbox}
1790
1791
1792 Conversely, it might be helpful to provide the English original of a translated title.
1793
1794 \begin{bibexbox}
1795 %<n|m><OGS \S15.2.1>
1796 %<a|y><OGS \S15.2.1\textdagger>
1797 {milne1938pb}
1798 %<n|m>A. A. Milne, \emph{Pu der Bär} [Ger. trans. of \emph{Winnie the Pooh}] (Potsdam: Williams, 1938).
1799 %<a|y>Milne, A. A. (1938), \emph{Pu der Bär} [Ger. trans. of \emph{Winnie the Pooh}] (Potsdam: Williams).
1800 \tcblower
1801 \begin{Verbatim}
1802 %</n|m|a|y>
1803 @book{milne1938pb,
1804 author = {A. A. Milne},
1805 title = {Pu der Bär},
1806 language = {german},
1807 origtitle = {Winnie the Pooh},
1808 location = {Potsdam},
1809 publisher = {Williams},
1810 date = {1938}}
1811 %<*n|m|a|y>
1812 \end{Verbatim}
1813 \end{bibexbox}
1814
1815 \section{Missing place of publication}
1816
1817 For periodicals, grey literature, audiovisual and online material, the lack of a place of publication is not surprising; indeed it may be expected. For books, however, it may be remarkable and deserve marking in the bibliography with \enquote{n.p.\@} (for \enquote{no place}).
1818
1819 \tip{To have \pkg[biblatex]{oxref} automatically insert \enquote{n.p.\@} or the localized equivalent for books, collections, reference works, proceedings and similar entry types, use the \key{nolocation} bibliography option.}
1820
1821 \tip{To have \pkg[biblatex]{oxref} automatically insert \enquote{n.p.\@} or the localized equivalent for only a specific entry, use the \key{nolocation} entry option instead.
1822 The advantage of doing this over simply giving \enquote{n.p.\@} as the publisher is that it hides it from other styles that do not follow the same convention.}
1823
1824 \begin{bibexbox}
1825 %<n|m><NHR \S18.2.9>
1826 %<a|y><NHR \S18.2.9\textdagger>
1827 {padua1961p}
1828 %<n|m>Marchetto of Padua, \emph{Pomerium}, ed. Guiseppe Vecchi (n.p., 1961).
1829 %<a|y>Marchetto of Padua (1961), \emph{Pomerium}, ed. G. Vecchi (n.p.).
1830 \tcblower
1831 \begin{Verbatim}
1832 %</n|m|a|y>
1833 @book{padua1961p,
1834 author = {{Marchetto of Padua}},
1835 title = {Pomerium},
1836 editor = {Guiseppe Vecchi},
1837 date = {1961},
1838 options = {nolocation}}
1839 %<*n|m|a|y>
1840 \end{Verbatim}
1841 \end{bibexbox}
1842
1843 \section{Missing or inferred date of publication}
1844
1845 If the date is missing from a work, you can sometimes make an educated guess
1846 what it should be. It is usual practice to enclose such guesses in square
1847 brackets.
1848
1849 \tip{With \pkg[biblatex]{oxref}, you can achieve this by annotating the
1850 \code{date}, \code{origdate}, or \code{eventdate} field with the keyword
1851 \code{inferred}.}
1852
1853 \begin{tcblisting}{listing only}
1854 date+an = {=inferred},
1855 \end{tcblisting}
1856 %<*a|y>
1857
1858 Otherwise, if you don't supply a suitable date, it will be replaced with the
1859 localization string \code{nodate}. If you don't want this behaviour, you can
1860 suppress it with the \key{nonodate} option, which can be set globally or on a
1861 per-type or per-entry basis.
1862 %</a|y>
1863
1864 \section{URL formatting}
1865
1866 In line with the instructions in \emph{New Hart's Rules} \S18.8.3, \pkg[biblatex]{oxref}
1867 adjusts the standard \pkg{biblatex} settings for stretching and breaking URLs.
1868 The main differences are as follows:
1869
1870 \begin{itemize}
1871 \item Low-penalty breaks are \emph{after} slashes and colons
1872 (these are affected by \code{biburlbigbreakpenalty} and \cs{biburlbigskip}).
1873 \item Higher-penalty breaks are \emph{after} percents
1874 (these are affected by \code{biburlbreakpenalty} and \cs{biburlbigskip}).
1875 \item Higher-penalty breaks are also \emph{before} all other \textsc{ascii} punctuation.
1876 These can be tuned separately using the counter \code{biburlpunctpenalty}
1877 (default \code{200}, matching \code{biburlbreakpenalty}) and length \cs{biburlpunctskip}
1878 (default \code{0mu} \code{plus} \code{1mu}, one-third as stretchy as the default
1879 \cs{biburlbigskip}).
1880 \end{itemize}
1881
1882 The settings for numbers, lowercase letters, and uppercase letters remain unchanged.
1883
1884 \chapter{Articles and periodicals}\label{sec:article}
1885 \chapterprecis{article, periodical, suppperiodical, review}
1886
1887
1888 \section{Articles in periodicals with volumes/numbers}
1889
1890 The \emph{Oxford Guide to Style} consistently prefers volume and part numbers to be written like \enquote{23/2}, but also discusses formats such as \enquote{23: 2} and \enquote{23 (2)}. \emph{New Hart's Rules} adds \enquote{23, 2} as a further possibility. The latter two are better suited to \textsf{oxalph}\slash\textsf{oxyear} which use a colon to demarcate the page numbers. These variations are implemented as the option \key{issuestyle}; see \autoref{sec:loading} for details.
1891
1892 %<n|m>\spec{Author, \enquote{Title}, \emph{JournalTitle}, Vol/Number (Year), Pages.}
1893 %<a|y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, Vol/Number: Pages.}
1894
1895 %</n|m|a|y>
1896 %<*n|m>
1897 \begin{bibexbox}<OGS \S15.4.1>
1898 {goldblatt1973dmm}
1899 Robert Goldblatt, \enquote{Diodorean Modality in Minkowski Space-Time}, \emph{Studia Logica}, 39/3 (1973), 219–36.
1900 \tcblower
1901 \begin{Verbatim}
1902 %</n|m>
1903 %<*n|m|bib>
1904 @article{goldblatt1973dmm,
1905 author = {Robert Goldblatt},
1906 title = {Diodorean Modality in Minkowski Space-Time},
1907 journaltitle = {Studia Logica},
1908 volume = {39},
1909 number = {3},
1910 date = {1973},
1911 pages = {219-236}}
1912 %</n|m|bib>
1913 %<*n|m>
1914 \end{Verbatim}
1915 \end{bibexbox}
1916
1917 %</n|m>
1918 %<*a|y>
1919 \begin{bibexbox}<OGS \S15.19.2>
1920 {hollingsworth1957dsb}
1921 Hollingsworth, T. H. (1957), \enquote{A Demographic Study of the British Ducal Families}, \emph{Population Studies}, 11/1: 4–26.
1922 \tcblower
1923 \begin{Verbatim}
1924 %</a|y>
1925 %<*a|y|bib>
1926 @article{hollingsworth1957dsb,
1927 author = {T. H. Hollingsworth},
1928 date = {1957},
1929 title = {A Demographic Study of the British Ducal Families},
1930 journaltitle = {Population Studies},
1931 volume = {11},
1932 number = {1},
1933 pages = {4-26}}
1934 %</a|y|bib>
1935 %<*a|y>
1936 \end{Verbatim}
1937 \end{bibexbox}
1938
1939 %</a|y>
1940 %<*n|m>
1941 % Internal quotes, subtitle, no number
1942 \begin{bibexbox}<OGS \S15.4.1>
1943 {inalcik1992csm}
1944 Halil Inalcik, \enquote{Comments on \enquote{Sultanism}: Max Weber's Typification of the Ottoman Polity}, \emph{Princeton Papers in Near Eastern Studies}, 1 (1992), 49–72.
1945 \tcblower
1946 \begin{Verbatim}
1947 %</n|m>
1948 %<*n|m|bib>
1949 @article{inalcik1992csm,
1950 author = {Halil Inalcik},
1951 title = {Comments on \enquote{Sultanism}},
1952 subtitle = {Max Weber's Typification of the Ottoman Polity},
1953 journaltitle = {Princeton Papers in Near Eastern Studies},
1954 volume = {1},
1955 date = {1992},
1956 pages = {49-72}}
1957 %</n|m|bib>
1958 %<*n|m>
1959 \end{Verbatim}
1960 \end{bibexbox}
1961
1962 %</n|m>
1963 %<*a|y>
1964 % Subtitle
1965 \begin{bibexbox}<NHR \S17.3.2*>
1966 {unwin1994sce}
1967 Unwin, T. (1994), \enquote{Structural Change in Estonian Agriculture: From Command Economy to Privatisation}, \emph{Geography}, 79/3: 246–61.
1968 \tcblower
1969 \begin{Verbatim}
1970 %</a|y>
1971 %<*a|y|bib>
1972 @article{unwin1994sce,
1973 author = {Tim Unwin},
1974 date = {1994},
1975 title = {Structural Change in Estonian Agriculture},
1976 subtitle = {From Command Economy to Privatisation},
1977 journaltitle = {Geography},
1978 volume = {79},
1979 number = {3},
1980 pages = {246-261}}
1981 %</a|y|bib>
1982 %<*a|y>
1983 \end{Verbatim}
1984 \end{bibexbox}
1985 %</a|y>
1986 %<*n|m|a|y>
1987
1988 % Many authors, 'von' part, no number
1989 \begin{bibexbox}
1990 %<n|m><OGS \S15.2.1>
1991 %<a|y><OGS \S15.2.1\textdagger>
1992 {vaucouleurs1975nmn}
1993 %<n|m>Gerald de Vaucouleurs et al., \enquote{The New Martian Nomenclature of the International Astronomical Union}, \emph{Icarus}, 26 (1975), 85–98.
1994 %<a|y>Vaucouleurs, G. de, et al. (1975), \enquote{The New Martian Nomenclature of the International Astronomical Union}, \emph{Icarus}, 26: 85–98.
1995 \tcblower
1996 \begin{Verbatim}
1997 %</n|m|a|y>
1998 @article{vaucouleurs1975nmn,
1999 author = {Gerald de Vaucouleurs and J. Blunck and M. Davies and A. Dollfus and I. Koval and
2000 G. Kuiper and H. Masursky and S. Miyamoto and V Moroz and Carl Sagan},
2001 title = {The New {Martian} Nomenclature of the {International} {Astronomical} {Union}},
2002 journaltitle = {Icarus},
2003 volume = {26},
2004 date = {1975},
2005 pages = {85-98}}
2006 %<*n|m|a|y>
2007 \end{Verbatim}
2008 \end{bibexbox}
2009
2010 % DOI
2011 \begin{bibexbox}
2012 %<n|m><NHR \S18.8.5>
2013 %<a|y><NHR \S18.8.5\textdagger>
2014 {druin2002rcd}
2015 %<n|m>A. Druin, \enquote{The Role of Children in the Design of New Technology}, \emph{Behaviour \& Information Technology}, 21/1 (2002), 1–25. doi: \nolinkurl{10.1080/01449290110108659}
2016 %<a|y>Druin, A. (2002), \enquote{The Role of Children in the Design of New Technology}, \emph{Behaviour \& Information Technology}, 21/1: 1–25. doi: \nolinkurl{10.1080/01449290110108659}
2017 \tcblower
2018 \begin{Verbatim}
2019 %</n|m|a|y>
2020 @article{druin2002rcd,
2021 author = {A. Druin},
2022 title = {The Role of Children in the Design of New Technology},
2023 journaltitle = {Behaviour \& Information Technology},
2024 volume = {21},
2025 number = {1},
2026 date = {2002},
2027 pages = {1-25},
2028 doi = {10.1080/01449290110108659}}
2029 %<*n|m|a|y>
2030 \end{Verbatim}
2031 \end{bibexbox}
2032
2033 % Journal title is abbreviated, no following comma
2034 %</n|m|a|y>
2035 %<*n|m>
2036 \begin{bibexbox}<OGS \S15.4.1>
2037 {lindars1965eir}
2038 B. Lindars, \enquote{Ezechiel and Individual Responsibility}, \emph{VT} 15 (1965), 452–67.
2039 \tcblower
2040 \begin{Verbatim}
2041 %</n|m>
2042 %<*n|m|bib>
2043 @article{lindars1965eir,
2044 author = {B. Lindars},
2045 title = {Ezechiel and Individual Responsibility},
2046 journaltitle = {VT},
2047 volume = {15},
2048 date = {1965},
2049 pages = {452-467}}
2050 %</n|m|bib>
2051 %<*n|m>
2052 \end{Verbatim}
2053 \end{bibexbox}
2054 %</n|m>
2055 %<*n|m|a|y>
2056
2057 If the last\slash only word of the journal title is abbreviated
2058 (indicated by point or capital letter), it does not need a comma after it.
2059 \pkg[biblatex]{Oxref} will try to detect this and adjust the punctuation accordingly;
2060 the list of characters that it uses is set with \cs{DeclareAbbrEndChars}.
2061 The default setting is this:
2062
2063 \begin{tcblisting}{listing only}
2064 \DeclareAbbrEndChars{A\^{A}BCDEFG\u{G}HI\^{I}JKLMNO\"{O}\^{O}PQRSTU\"{U}\^{U}VWXYZ.}
2065 \end{tcblisting}
2066
2067 There is also a starred version of the command that appends to this list:
2068
2069 \begin{tcblisting}{listing only}
2070 \DeclareAbbrEndChars*{\c{C}\.{I}\c{S}}
2071 \end{tcblisting}
2072
2073 \hack{To override this mechanism for a single entry, you can suppress the comma by adding \cs{nopunct} to the end of the journal (sub)title, or restore it by adding a pair of braces.}
2074
2075 % Electronic identifier instead of a page range
2076 \begin{bibexbox}(hacked)
2077 %<n|m><NHR \S18.8.5*>
2078 %<a|y><NHR \S18.8.5*\textdagger>
2079 {li.etal2013flh}
2080 %<n|m>Shu Li et al., \enquote{Forever Love: The Hitherto Earliest Record of Copulating Insects from the Middle Jurassic of China}, \emph{PLoS ONE}, 8/11 (2013), e78188. doi: \nolinkurl{10.1371/journal.pone.0078188}
2081 %<a|y>Li, S., et al. (2013), \enquote{Forever Love: The Hitherto Earliest Record of Copulating Insects from the Middle Jurassic of China}, \emph{PLoS ONE}, 8/11, e78188. doi: \nolinkurl{10.1371/journal.pone.0078188}
2082 \tcblower
2083 \begin{Verbatim}
2084 %</n|m|a|y>
2085 @article{li.etal2013flh,
2086 author = {Shu Li and Chungkun Shih and Chen Wang and Hong Pang and Dong Ren},
2087 title = {Forever Love},
2088 subtitle = {The Hitherto Earliest Record of Copulating Insects from the Middle Jurassic of China},
2089 journaltitle = {{PLoS ONE}},
2090 volume = {8},
2091 number = {11},
2092 date = {2013},
2093 eid = {e78188},
2094 doi = {10.1371/journal.pone.0078188}}
2095 %<*n|m|a|y>
2096 \end{Verbatim}
2097 \end{bibexbox}
2098
2099 % Unsigned, with month as issue name
2100 \begin{bibexbox}
2101 %<n|m><OGS \S15.4.1*>
2102 %<a|y><OGS \S15.4.1*\textdagger>
2103 {jsr1990spt}
2104 %<n|m>\enquote{Solar Photon Thruster}, \emph{Journal of Spacecraft and Rockets}, 28/4 (July–Aug. 1990), 411–6.
2105 %<a|y>\enquote{Solar Photon Thruster} (1990), \emph{Journal of Spacecraft and Rockets}, 28/4 (July–Aug.): 411–6.
2106 \tcblower
2107 \begin{Verbatim}
2108 %</n|m|a|y>
2109 @article{jsr1990spt,
2110 title = {Solar Photon Thruster},
2111 journaltitle = {Journal of Spacecraft and Rockets},
2112 volume = {28},
2113 number = {4},
2114 date = {1990-07/1990-08},
2115 pages = {411-416}}
2116 %<*n|m|a|y>
2117 \end{Verbatim}
2118 \end{bibexbox}
2119
2120
2121 \section{Articles in periodicals with series}
2122
2123 %<n|m>\spec{Author, \enquote{Title}, \emph{JournalTitle}, nth \lit{ser}., Vol/Number (Year), Pages.}
2124 %<a|y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, nth \lit{ser}., Vol/Number: Pages.}
2125
2126 \begin{bibexbox}
2127 %<n|m><NHR \S18.3.3>
2128 %<a|y><NHR \S18.3.3\textdagger>
2129 {moody1953mdb}
2130 %<n|m>T. W. Moody, \enquote{Michael Davitt and the British Labour Movement, 1882–1906}, \emph{Transactions of the Royal Historical Society}, 5th ser., 3 (1953), 53–76.
2131 %<a|y>Moody, T. W. (1953), \enquote{Michael Davitt and the British Labour Movement, 1882–1906}, \emph{Transactions of the Royal Historical Society}, 5th ser., 3: 53–76.
2132 \tcblower
2133 \begin{Verbatim}
2134 %</n|m|a|y>
2135 @article{moody1953mdb,
2136 author = {T. W. Moody},
2137 title = {Michael Davitt and the British Labour Movement, 1882--1906},
2138 journaltitle = {Transactions of the Royal Historical Society},
2139 series = {5},
2140 volume = {3},
2141 date = {1953},
2142 pages = {53-76}}
2143 %<*n|m|a|y>
2144 \end{Verbatim}
2145 \end{bibexbox}
2146
2147 %<n|m>\spec{Author, \enquote{Title}, \emph{JournalTitle}, \textsc{ns} Vol/Number (Year), Pages.}
2148 %<a|y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, \textsc{ns} Vol/Number, Pages.}
2149
2150 %</n|m|a|y>
2151 %<*n|m>
2152 \begin{bibexbox}<OGS \S15.4.3>
2153 {barnes1971has}
2154 J. Barnes, \enquote{Homonymy in Aristotle and Speusippus}, \emph{Classical Quarterly}, \textsc{ns} 21 (1971), 65–80.
2155 \tcblower
2156 \begin{Verbatim}
2157 %</n|m>
2158 %<*n|m|bib>
2159 @article{barnes1971has,
2160 author = {J. Barnes},
2161 title = {Homonymy in Aristotle and Speusippus},
2162 journaltitle = {Classical Quarterly},
2163 series = {newseries},
2164 volume = {21},
2165 date = {1971},
2166 pages = {65-80}}
2167 %</n|m|bib>
2168 %<*n|m>
2169 \end{Verbatim}
2170 \end{bibexbox}
2171
2172 %</n|m>
2173 %<*a|y>
2174 \begin{bibexbox}<OGS \S15.19.2*>
2175 {hankinson1989gba}
2176 Hankinson, R. J. (1989), \enquote{Galen and the Best of All Possible Worlds}, \emph{CQ}, \textsc{ns} 39: 43–76.
2177 \tcblower
2178 \begin{Verbatim}
2179 %</a|y>
2180 %<*a|y|bib>
2181 @article{hankinson1989gba,
2182 author = {R. J. Hankinson},
2183 date = {1989},
2184 title = {Galen and the Best of All Possible Worlds},
2185 journaltitle = {CQ},
2186 series = {newseries},
2187 volume = {39},
2188 pages = {43-76}}
2189 %</a|y|bib>
2190 %<*a|y>
2191 \end{Verbatim}
2192 \end{bibexbox}
2193 %</a|y>
2194 %<*n|m|a|y>
2195
2196
2197 \section{Articles in issues identified by date alone}
2198
2199 %<n|m>\spec{Author, \enquote{Title}, \emph{JournalTitle}, Day Month Year, Pages.}
2200 %<a|y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, Day Month: Pages.}
2201
2202 %</n|m|a|y>
2203 %<*n|m>
2204 % No author
2205 \begin{bibexbox}<OGS \S15.4.1>
2206 {bw1984wen}
2207 \enquote{Who's Excellent Now?}, \emph{Business Week}, 5 Nov. 1984, 76–86.
2208 \tcblower
2209 \begin{Verbatim}
2210 %</n|m>
2211 %<*n|m|bib>
2212 @article{bw1984wen,
2213 title = {Who's Excellent Now?},
2214 journaltitle = {Business Week},
2215 date = {1984-11-05},
2216 pages = {76-86}}
2217 %</n|m|bib>
2218 %<*n|m>
2219 \end{Verbatim}
2220 \end{bibexbox}
2221
2222 % No pages
2223 \begin{bibexbox}<OGS \S15.4.1>
2224 {lee1995ehf}
2225 Alan Lee, \enquote{England Haunted by Familiar Failings}, \emph{The Times}, 23 June 1995.
2226 \tcblower
2227 \begin{Verbatim}
2228 %</n|m>
2229 %<*n|m|bib>
2230 @article{lee1995ehf,
2231 author = {Alan Lee},
2232 title = {England Haunted by Familiar Failings},
2233 journaltitle = {The Times},
2234 date = {1995-06-23}}
2235 %</n|m|bib>
2236 %<*n|m>
2237 \end{Verbatim}
2238 \end{bibexbox}
2239
2240 %</n|m>
2241 %<*a|y>
2242 \begin{bibexbox}<OGS \S15.19.2*>
2243 {marx1842kaa}
2244 Marx, K. (1842), \enquote{Der Kommunismus und die Augsburger \enquote{Allgemeine Zeitung}}, \emph{Rheinische Zeitung}, 16 Oct.: 1–2.
2245 \tcblower
2246 \begin{Verbatim}
2247 %</a|y>
2248 %<*a|y|bib>
2249 @article{marx1842kaa,
2250 author = {Karl Marx},
2251 title = {Der Kommunismus und die Augsburger \enquote{Allgemeine Zeitung}},
2252 journaltitle = {Rheinische Zeitung},
2253 date = {1842-10-16},
2254 pages = {1-2}}
2255 %</a|y|bib>
2256 %<*a|y>
2257 \end{Verbatim}
2258 \end{bibexbox}
2259
2260 \info{The above example as it appears in the \emph{Oxford Guide to Style} is both incomplete and wildly inaccurate.
2261 I have completed and corrected it as best I can ascertain.}
2262
2263 % No pages
2264 \begin{bibexbox}<OGS \S15.19.2>
2265 {who1983nsb}
2266 WHO (World Health Organization) (1983), \enquote{Nutrition: Sex Bias of Nutritional Status of Children 0–4 Years}, \emph{Weekly Epidemiologial Record}, 20 May.
2267 \tcblower
2268 \begin{Verbatim}
2269 %</a|y>
2270 %<*a|y|bib>
2271 @article{who1983nsb,
2272 shortauthor = {WHO},
2273 author = {{World Health Organization}},
2274 date = {1983-05-20},
2275 title = {Nutrition},
2276 subtitle = {Sex Bias of Nutritional Status of Children 0--4 Years},
2277 journaltitle = {Weekly Epidemiologial Record}}
2278 %</a|y|bib>
2279 %<*a|y>
2280 \end{Verbatim}
2281 \end{bibexbox}
2282
2283 %</a|y>
2284 %<*n|m|a|y>
2285
2286 % Year as volume number
2287 \begin{bibexbox}
2288 %<n|m><OGS \S15.3>
2289 %<a|y><OGS \S15.3\textdagger>
2290 {boyce1957pgi}
2291 %<n|m>M. Boyce, \enquote{The Parthian \emph{Gsn} and Iranian Minstrel Tradition}, \emph{Journal of the Royal Asiatic Society}, 1957, 10–45.
2292 %<a|y>Boyce, M. (1957), \enquote{The Parthian \emph{Gsn} and Iranian Minstrel Tradition}, \emph{Journal of the Royal Asiatic Society}: 10–45.
2293 \tcblower
2294 \begin{Verbatim}
2295 %</n|m|a|y>
2296 @article{boyce1957pgi,
2297 author = {M. Boyce},
2298 title = {The Parthian \emph{Gsn} and Iranian Minstrel Tradition},
2299 journaltitle = {Journal of the Royal Asiatic Society},
2300 date = {1957},
2301 pages = {10-45}}
2302 %<*n|m|a|y>
2303 \end{Verbatim}
2304 \end{bibexbox}
2305
2306 \section{Works published as an issue}
2307
2308 These examples illustrate where a book is also published as a whole
2309 issue of a periodical, and show how you may reference both at once.
2310 You can either add the periodical details to a book entry
2311 or add the book details to a periodical entry.
2312
2313 %<n|m>\spec{Author, \emph{Title} = \emph{JournalTitle}, Vol/Number (Location: Publisher, Year), pages.}
2314 %<a|y>\spec{Author (Year), \emph{Title} = \emph{JournalTitle}, Vol/Number (Location: Publisher), pages.}
2315
2316 \tip{Use \code{equals} as the \code{relatedtype}.}
2317
2318 \begin{bibexbox}
2319 %<n|m><OGS \S15.4.1>
2320 %<a|y><OGS \S15.4.1\textdagger>
2321 {bec1976isc}
2322 %<n|m>C. Bec (ed.), \emph{Italie 1500–1550: Une situation de crise?} = \emph{Annales de l'Université Jean Moulin}, 1975/2 (Langues étrangères, 2; Lyon, 1976), 99–109.
2323 %<a|y>Bec, C. (1976) (ed.), \emph{Italie 1500–1550: Une situation de crise?} = \emph{Annales de l'Université Jean Moulin}, 1975/2 (Langues étrangères, 2; Lyon), 99–109.
2324 \tcblower
2325 \begin{Verbatim}
2326 %</n|m|a|y>
2327 @collection{bec1976isc,
2328 editor = {C. Bec},
2329 title = {Italie 1500--1550},
2330 subtitle = {Une situation de crise?},
2331 related = {aujm1975.2},
2332 relatedtype = {equals},
2333 series = {Langues étrangères},
2334 number = {2},
2335 location = {Lyon},
2336 date = {1976},
2337 pages = {99-109}}
2338 @periodical{aujm1975.2,
2339 title = {Annales de l'Université Jean Moulin},
2340 volume = {1975},
2341 number = {2}}
2342 %<*n|m|a|y>
2343 \end{Verbatim}
2344 \end{bibexbox}
2345
2346 %<n|m>\spec{Author, \emph{Title} = \emph{JournalTitle}, Vol/Number (Year).}
2347 %<a|y>\spec{Author (Year), \emph{Title} = \emph{JournalTitle}, Vol/Number.}
2348
2349 \tip{Use \code{issuetitle} instead of \code{title} to get the right formatting.}
2350
2351 \begin{bibexbox}
2352 %<n|m><OGS \S15.4.1>
2353 %<a|y><OGS \S15.4.1\textdagger>
2354 {trisoglio1973gnq}
2355 %<n|m>F. Trisoglio, \emph{Gregorio di Nazianzo in un quarentennio di recherche (1925–1965)} = \emph{Rivista Iasalliana}, 40 (1973).
2356 %<a|y>Trisoglio, F. (1973), \emph{Gregorio di Nazianzo in un quarentennio di recherche (1925–1965)} = \emph{Rivista Iasalliana}, 40.
2357 \tcblower
2358 \begin{Verbatim}
2359 %</n|m|a|y>
2360 @article{trisoglio1973gnq,
2361 author = {F. Trisoglio},
2362 issuetitle = {Gregorio di Nazianzo in un quarentennio di recherche (1925--1965)},
2363 journaltitle = {Rivista Iasalliana},
2364 volume = {40},
2365 date = {1973}}
2366 %<*n|m|a|y>
2367 \end{Verbatim}
2368 \end{bibexbox}
2369
2370
2371 \section{Articles in an issue that is a supplement to another issue}
2372
2373 \DeclareNumChars*{S}
2374
2375 %<n|m>\spec{Author, \enquote{Title}, \emph{JournalTitle}, Vol/Number (Year); \lit{Supplement to} \emph{MainJournalTitle} Vol/Number, Pages.}
2376 %<a|y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, Vol/Number; \lit{Supplement to} \emph{MainJournalTitle} Vol/Number: Pages.}
2377
2378 \tip{To get this format, use a separate entry for the parent issue, reference it in the \code{related} field, and use the key \code{suppto} as the \code{relatedtype}.}
2379
2380 \begin{bibexbox}
2381 %<n|m><OGS \S15.4.1>
2382 %<a|y><OGS \S15.4.1\textdagger>
2383 {zhentao.etal1989ars}
2384 %<n|m>X. Zhentao, K. K. C. Yau, and F. R. Stephenson, \enquote{Astronomical Records on the Shang Dynasty Oracle Bones}, \emph{Archaeoastronomy}, 14 (1989); Supplement to \emph{Journal for the History of Astronomy}, 20, pp. S61–S72.
2385 %<a|y>Zhentao, X., Yau, K. K. C., and Stephenson, F. R. (1989), \enquote{Astronomical Records on the Shang Dynasty Oracle Bones}, \emph{Archaeoastronomy}, 14; Supplement to \emph{Journal for the History of Astronomy}, 20: pp. S61–S72.
2386 \tcblower
2387 \begin{Verbatim}
2388 %</n|m|a|y>
2389 @article{zhentao.etal1989ars,
2390 author = {X. Zhentao and K. K. C. Yau and F. R. Stephenson},
2391 title = {Astronomical Records on the Shang Dynasty Oracle Bones},
2392 journaltitle = {Archaeoastronomy},
2393 volume = {14},
2394 date = {1989},
2395 related = {jha1989},
2396 relatedtype = {suppto},
2397 pages = {S61-S72},
2398 bookpagination = {page}}
2399 @periodical{jha1989,
2400 title = {Journal for the History of Astronomy},
2401 volume = {20}}
2402 %<*n|m|a|y>
2403 \end{Verbatim}
2404 \end{bibexbox}
2405
2406 \tip{Use \code{bookpagination} to force the display of \enquote{pp.} (since the number format is odd), and \cs{DeclareNumChars*}\brackets{S} to ensure that \code{S61} is recognized as a number.}%
2407
2408
2409 \section{Articles that span multiple issues}
2410
2411 \tip{Use the key \code{serialarticle} as the \code{relatedtype}.}
2412
2413 %</n|m|a|y>
2414 %<*a|y>
2415 \begin{bibexbox}<NHR \S 17.3*>
2416 {stookey1974ssp}
2417 Stookey, R. W. (1974), \enquote{Social Structure and Politics in the Yemen Arab Republic}, \emph{Middle East Journal}, 28/3: 248–60; 28/4: 409–19.
2418 \tcblower
2419 \begin{Verbatim}
2420 %</a|y>
2421 %<*a|y|bib>
2422 @article{stookey1974ssp,
2423 author = {R. W. Stookey},
2424 date = {1974},
2425 title = {Social Structure and Politics in the Yemen Arab Republic},
2426 journaltitle = {Middle East Journal},
2427 volume = {28},
2428 number = {3},
2429 pages = {248-260},
2430 related = {stookey1974ssp2},
2431 relatedtype = {serialarticle}}
2432 @article{stookey1974ssp2,
2433 crossref = {stookey1974ssp},
2434 options = {dataonly},
2435 volume = {28},
2436 number = {4},
2437 pages = {409-419}}
2438 %</a|y|bib>
2439 %<*a|y>
2440 \end{Verbatim}
2441 \end{bibexbox}
2442 %</a|y>
2443
2444 %<*n|m|a|y>
2445
2446 \section{Accepted journal articles, pre-publication}
2447
2448 %<n|m>\spec{Author, \enquote{Title}, \lit{to be published in} \emph{JournalTitle}, Year.}
2449 %<a|y>\spec{Author (Year), \enquote{Title}, \lit{to be published in} \emph{JournalTitle}.}
2450
2451 \begin{bibexbox}
2452 {briscoe2008esp}
2453 (not in book)
2454 \tcblower
2455 \begin{Verbatim}
2456 %</n|m|a|y>
2457 @article{briscoe2008esp,
2458 author = {Robert Briscoe},
2459 title = {Egocentric Spatial Representation in Action and Perception},
2460 journaltitle = {Philosophy and Phenomenological Research},
2461 url = {http://cogprints.org/5780/1/ECSRAP.F07.pdf},
2462 pubstate = {inpress}}
2463 %<*n|m|a|y>
2464 \end{Verbatim}
2465 \end{bibexbox}
2466
2467 \section{Editorials and other regular features}
2468
2469 Strictly speaking, when a work is headed \enquote{Editorial} or \enquote{Letter to the Editor}
2470 in a periodical, this is a descriptor rather than a title.
2471
2472 \tip{If a piece has a true title, the descriptor goes in the \code{note} field.
2473 If it doesn't, the descriptor goes in the \code{title} field; annotate the field with the keyword \code{descriptor} to remove the quote marks.
2474 Alternatively, use the (non-standard) \code{descriptor} field for the descriptor in all cases, and \pkg[biblatex]{oxref} will take care of this for you.}
2475
2476 \begin{bibexbox}
2477 {ball2015ed}
2478 (not in book)
2479 \tcblower
2480 \begin{Verbatim}
2481 %</n|m|a|y>
2482 @suppperiodical{ball2015ed,
2483 author = {Alexander Ball},
2484 title = {Editorial},
2485 title+an = {=descriptor},
2486 date = {2015},
2487 journaltitle = {International Journal of Digital Curation},
2488 volume = {10},
2489 number = {1},
2490 pages = {i-v},
2491 doi = {10.2218/ijdc.v10i1.376}}
2492 %<*n|m|a|y>
2493 \end{Verbatim}
2494 \end{bibexbox}
2495
2496 \begin{bibexbox}
2497 {jccm2006ed}
2498 (not in book)
2499 \tcblower
2500 \begin{Verbatim}
2501 %</n|m|a|y>
2502 @suppperiodical{jccm2006ed,
2503 title = {\enquote{What a Disaster} and Why Does This Question Matter?},
2504 date = {2006},
2505 note = {Editorial},
2506 journaltitle = {Journal of Contingencies and Crisis Management},
2507 volume = {14},
2508 pages = {1-2}}
2509 %<*n|m|a|y>
2510 \end{Verbatim}
2511 \end{bibexbox}
2512
2513 \section{Reviews}
2514
2515 %<n|m>\spec{Author, \enquote{Title}, \lit{review of} ReviewedWork, \lit{in} \emph{JournalTitle}, Vol/Number (Year), Pages.}
2516 %<a|y>\spec{Author (Year), \enquote{Title}, \lit{review of} ReviewedWork, \lit{in} \emph{JournalTitle}, Vol/Number: Pages.}
2517
2518 \tip{To get this format, use a separate entry for the reviewed item, reference it in the \enquote{related} field, and use the key \enquote{reviewof} as the \enquote{relatedtype}.}
2519
2520 \begin{bibexbox}
2521 %<n|m><OGS \S15.4.4>
2522 %<a|y><OGS \S15.4.4\textdagger>
2523 {dean1995rpb}
2524 %<n|m>J. Dean, review of Philippe Basiron, \emph{My Early Life} (Bourges, 1994), in \emph{Res facta}, 17 (1995), 56–9.
2525 %<a|y>Dean, J. (1995), review of P. Basiron (1994), \emph{My Early Life} (Bourges), in \emph{Res facta}, 17: 56–9.
2526 \tcblower
2527 \begin{Verbatim}
2528 %</n|m|a|y>
2529 @review{dean1995rpb,
2530 author = {J. Dean},
2531 related = {basiron1994mel},
2532 relatedtype = {reviewof},
2533 journaltitle = {Res facta},
2534 volume = {17},
2535 date = {1995},
2536 pages = {56-59}}
2537 @book{basiron1994mel,
2538 author = {Philippe Basiron},
2539 title = {My Early Life},
2540 location = {Bourges},
2541 date = {1994}}
2542 %<*n|m|a|y>
2543 \end{Verbatim}
2544 \end{bibexbox}
2545
2546 \begin{bibexbox}
2547 %<n|m><OGS \S15.4.4>
2548 %<a|y><OGS \S15.4.4\textdagger>
2549 {jocelyn1989pav}
2550 %<n|m>H. D. Jocelyn, \enquote{Probus and Virgil}, review of Maria Luisa Delvigo, \emph{Testo virgiliano e tradizione indiretta} (Pisa, 1987), in \emph{CR}, \textsc{ns} 39 (1989), 27–8.
2551 %<a|y>Jocelyn, H. D. (1989), \enquote{Probus and Virgil}, review of M. L. Delvigo (1987), \emph{Testo virgiliano e tradizione indiretta} (Pisa), in \emph{CR}, \textsc{ns} 39: 27–8.
2552 \tcblower
2553 \begin{Verbatim}
2554 %</n|m|a|y>
2555 @review{jocelyn1989pav,
2556 author = {H. D. Jocelyn},
2557 title = {Probus and Virgil},
2558 related = {delvigo1987tvt},
2559 relatedtype = {reviewof},
2560 journaltitle = {CR},
2561 series = {newseries},
2562 volume = {39},
2563 date = {1989},
2564 pages = {27-28}}
2565 @book{delvigo1987tvt,
2566 author = {Maria Luisa Delvigo},
2567 title = {Testo virgiliano e tradizione indiretta},
2568 location = {Pisa},
2569 date = {1987}}
2570 %<*n|m|a|y>
2571 \end{Verbatim}
2572 \end{bibexbox}
2573
2574
2575 \chapter{Books}\label{sec:book}
2576 \chapterprecis{book, mvbook, collection, mvcollection, reference, mvreference}
2577
2578 \section{Monographs}
2579
2580 Biblatex defines \code{book} as a monograph, written either by a single author, or by several authors who have joint responsibility for the entire work. An editor in this context has a modest role selecting or annotating the content, and therefore in Oxford style is given after the title even if the author is not given.
2581
2582 \subsection{Basic form}
2583
2584 %<n|m>\spec{Author, \emph{Title} (Location: Publisher, Year).}
2585 %<a|y>\spec{Author (Year), \emph{Title} (Location: Publisher).}
2586
2587 %</n|m|a|y>
2588 %<*n|m>
2589 \begin{bibexbox}<OGS \S15.2.1>
2590 {eliot1977m}
2591 George Eliot, \emph{Middlemarch} (New York: W. W. Norton, 1977).
2592 \tcblower
2593 \begin{Verbatim}
2594 %</n|m>
2595 %<*n|m|bib>
2596 @book{eliot1977m,
2597 author = {George Eliot},
2598 title = {Middlemarch},
2599 location = {New York},
2600 publisher = {W. W. Norton},
2601 date = {1977}}
2602 %</n|m|bib>
2603 %<*n|m>
2604 \end{Verbatim}
2605 \end{bibexbox}
2606
2607 \begin{bibexbox}<OGS \S15.2.2>
2608 {benvenuti1986op}
2609 Antonia Tissoni Benvenuti, \emph{L'\emph{Orfeo} del Poliziano} (Padua: Editrice Antenore, 1986).
2610 \tcblower
2611 \begin{Verbatim}
2612 %</n|m>
2613 %<*n|m|bib>
2614 @book{benvenuti1986op,
2615 author = {Antonia Tissoni Benvenuti},
2616 title = {L'\emph{Orfeo} del Poliziano},
2617 location = {Padua},
2618 publisher = {Editrice Antenore},
2619 date = {1986}}
2620 %</n|m|bib>
2621 %<*n|m>
2622 \end{Verbatim}
2623 \end{bibexbox}
2624
2625 \begin{bibexbox}<OGS \S15.2.2>
2626 {oconor1977sjf}
2627 Roderick O'Conor, \emph{A Sentimental Journal through \enquote{Finnegan's Wake}, with a Map of the Liffey} (Dublin: HCE Press, 1977).
2628 \tcblower
2629 \begin{Verbatim}
2630 %</n|m>
2631 %<*n|m|bib>
2632 @book{oconor1977sjf,
2633 author = {Roderick O'Conor},
2634 title = {A Sentimental Journal through \enquote{Finnegan's Wake}, with a Map of the {Liffey}},
2635 location = {Dublin},
2636 publisher = {HCE Press},
2637 date = {1977}}
2638 %</n|m|bib>
2639 %<*n|m>
2640 \end{Verbatim}
2641 \end{bibexbox}
2642
2643 %</n|m>
2644 %<*a|y>
2645 \begin{bibexbox}<NHR \S18.5>
2646 {lyons1981lli}
2647 %<a>Lyons, J. (1981),
2648 %<y>Lyons, J. (1981\emph{a}),
2649 \emph{Language and Linguistics: An Introduction} (Cambridge: Cambridge University Press).
2650 \tcblower
2651 \begin{Verbatim}
2652 %</a|y>
2653 %<*a|y|bib>
2654 @book{lyons1981lli,
2655 author = {John Lyons},
2656 date = {1981},
2657 title = {Language and Linguistics},
2658 subtitle = {An Introduction},
2659 location = {Cambridge},
2660 publisher = {Cambridge University Press}}
2661 %</a|y|bib>
2662 %<*a|y>
2663 \end{Verbatim}
2664 \end{bibexbox}
2665
2666 \begin{bibexbox}<NHR \S18.5>
2667 {lyons1981lmc}
2668 %<a>Lyons, J. (1981),
2669 %<y>Lyons, J. (1981\emph{b}),
2670 \emph{Language, Meaning and Context} (London: Fontana Paperbacks).
2671 \tcblower
2672 \begin{Verbatim}
2673 %</a|y>
2674 %<*a|y|bib>
2675 @book{lyons1981lmc,
2676 author = {John Lyons},
2677 date = {1981},
2678 title = {Language, Meaning and Context},
2679 location = {London},
2680 publisher = {Fontana Paperbacks}}
2681 %</a|y|bib>
2682 %<*a|y>
2683 \end{Verbatim}
2684 \end{bibexbox}
2685
2686 %</a|y>
2687 %<*n|m|a|y>
2688
2689 \subsection{No publisher}
2690
2691 %<n|m>\spec{Author, \emph{Title} (Location, Year).}
2692 %<a|y>\spec{Author (Year), \emph{Title} (Location).}
2693
2694 %</n|m|a|y>
2695 %<*n|m>
2696 \begin{bibexbox}<NHR \S18.1.3>
2697 {rogers1986tmp}
2698 C.~D.~Rogers, \emph{Tracing Missing Persons} (Manchester, 1986).
2699 \tcblower
2700 \begin{Verbatim}
2701 %</n|m>
2702 %<*n|m|bib>
2703 @book{rogers1986tmp,
2704 author = {C. D. Rogers},
2705 title = {Tracing Missing Persons},
2706 location = {Manchester},
2707 date = {1986}}
2708 %</n|m|bib>
2709 %<*n|m>
2710 \end{Verbatim}
2711 \end{bibexbox}
2712
2713 %</n|m>
2714 %<*a|y>
2715 \begin{bibexbox}<OGS \S15.19.2>
2716 {smith1988fag}
2717 Smith, T. (1988), \emph{Famine and Gender} (New Haven, Conn.).
2718 \tcblower
2719 \begin{Verbatim}
2720 %</a|y>
2721 %<*a|y|bib>
2722 @book{smith1988fag,
2723 author = {Smith, T.},
2724 title = {Famine and Gender},
2725 date = {1988},
2726 location = {New Haven, Conn.}}
2727 %</a|y|bib>
2728 %<*a|y>
2729 \end{Verbatim}
2730 \end{bibexbox}
2731
2732 %</a|y>
2733 %<*n|m|a|y>
2734
2735 \subsection{Edited book}
2736
2737 %<n|m>\spec{Author, \emph{Title}, \lit{ed.} Editor(s) (Location: Publisher, Year).}
2738 %<a|y>\spec{Author (Year), \emph{Title}, \lit{ed.} Editor(s) (Location: Publisher).}
2739
2740 %<n|m>\spec{\emph{Title}, \lit{ed.} Editor(s) (Location: Publisher, Year).}
2741 %<a|y>\spec{\emph{Title} (Year), \lit{ed.} Editor(s) (Location: Publisher).}
2742
2743 \begin{bibexbox}
2744 %<n|m><OGS \S15.2.1>
2745 %<a|y><OGS \S15.2.1\textdagger>
2746 {boas.botschuyver1952dc}
2747 %<n|m>\emph{Distichia Catonis}, ed. Marcus Boas and Henricus Johannes Botschuyver (Amsterdam, 1952).
2748 %<a|y>\emph{Distichia Catonis} (1952), ed. M. Boas and H. J. Botschuyver (Amsterdam).
2749 \tcblower
2750 \begin{Verbatim}
2751 %</n|m|a|y>
2752 @book{boas.botschuyver1952dc,
2753 title = {Distichia Catonis},
2754 editor = {Marcus Boas and Henricus Johannes Botschuyver},
2755 location = {Amsterdam},
2756 date = {1952}}
2757 %<*n|m|a|y>
2758 \end{Verbatim}
2759 \end{bibexbox}
2760
2761 \section{Collections}
2762
2763 Biblatex defines \code{collection} as a book made up of multiple self-contained contributions from distinct authors. There is no overall author: use the regular \code{book} entry type for collections of a single author’s work. The editor in this case has a more active role and therefore comes before the title.
2764
2765 %<n|m>\spec{Editor (\lit{ed.}), \emph{Title} (Location: Publisher, Year).}
2766 %<a|y>\spec{Editor (Year) (\lit{ed.}), \emph{Title} (Location: Publisher).}
2767
2768 %</n|m|a|y>
2769 %<*n|m>
2770 \begin{bibexbox}<OGS \S15.2.1>
2771 {stewart.etal1994mb}
2772 Rosemary Stewart et al. (eds.), \emph{Managing in Britain} (London, 1994).
2773 \tcblower
2774 \begin{Verbatim}
2775 %</n|m>
2776 %<*n|m|bib>
2777 @collection{stewart.etal1994mb,
2778 editor = {Rosemary Stewart and Jean-Louis Barsoux and Alfred Kieser and Hans-Dieter Ganter
2779 and Peter Walgenbach},
2780 title = {Managing in {Britain}},
2781 location = {London},
2782 date = {1994}}
2783 %</n|m|bib>
2784 %<*n|m>
2785 \end{Verbatim}
2786 \end{bibexbox}
2787
2788 %</n|m>
2789 %<*a|y>
2790 \begin{bibexbox}<OGS \S15.19.2>
2791 {barnes.griffin1989pte}
2792 Barnes, J., and Griffin, M. T. (1989) (eds.), \emph{Philosophia Togata: Essays on Philosophy and Roman Society} (Oxford).
2793 \tcblower
2794 \begin{Verbatim}
2795 %</a|y>
2796 %<*a|y|bib>
2797 @collection{barnes.griffin1989pte,
2798 editor = {Jonathan Barnes and Miriam T. Griffin},
2799 date = {1989},
2800 title = {Philosophia Togata},
2801 subtitle = {Essays on Philosophy and Roman Society},
2802 location = {Oxford}}
2803 %</a|y|bib>
2804 %<*a|y>
2805 \end{Verbatim}
2806 \end{bibexbox}
2807
2808 %</a|y>
2809 %<*n|m|a|y>%
2810
2811 %</n|m|a|y>
2812 %<*a|y>
2813 \begin{bibexbox}<OGS \S15.19.2>
2814 {hankinson1988mmm}
2815 Hankinson, R. J. (1988) (ed.), \emph{Method, Medicine, and Metaphysics} (Edmonton, Alta.).
2816 \tcblower
2817 \begin{Verbatim}
2818 %</a|y>
2819 %<*a|y|bib>
2820 @collection{hankinson1988mmm,
2821 editor = {R. J. Hankinson},
2822 date = {1988},
2823 title = {Method, Medicine, and Metaphysics},
2824 location = {Edmonton, Alta.}}
2825 %</a|y|bib>
2826 %<*a|y>
2827 \end{Verbatim}
2828 \end{bibexbox}
2829
2830 %</a|y>
2831 %<*n|m|a|y>
2832
2833 \section{Reference works}
2834
2835 Biblatex uses \code{reference} for encyclopaedias and dictionaries, which are typically made up of many small contributions by distinct authors and compiled by an editorial board whose membership might change between successive editions. From a database perspective, reference works are like collections in that they have no single author (a reference work written by a single author should use the \code{book} entry type instead).
2836
2837 \tip{The \emph{Oxford Guide to Style} considers the titles of reference works to be more important and memorable than those of the editor, and so lists the title first, but \emph{New Hart's Rules} doesn't. \pkg[biblatex]{Oxref} takes the former approach, but you can switch to the latter by setting the \key{useeditor} option back to true for this type.}
2838
2839 \begin{tcblisting}{listing only}
2840 \ExecuteBibliographyOptions[reference,mvreference]{useeditor=true}
2841 \end{tcblisting}
2842
2843 %<n|m>\spec{\emph{Title}, \lit{ed.} Editor(s) (Location: Publisher, Year).}
2844 %<a|y>\spec{\emph{Title} (Year), \lit{ed.} Editor(s) (Location: Publisher).}
2845
2846 \begin{bibexbox}
2847 %<n|m><OGS \S15.2.1>
2848 %<a|y><OGS \S15.2.1\textdagger>
2849 {fortenbaugh.etal1991tes}
2850 %<n|m>\emph{Theophrastus of Eresus: Sources for his Life, Writings, Thought, and Influence}, ed. William W. Fortenbaugh et al., 2 vols. (Philosophia Antiqua, 54; Leiden, 1991).
2851 %<a|y>\emph{Theophrastus of Eresus: Sources for his Life, Writings, Thought, and Influence} (1991), ed. W. W. Fortenbaugh et al., 2 vols. (Philosophia Antiqua, 54; Leiden).
2852 \tcblower
2853 \begin{Verbatim}
2854 %</n|m|a|y>
2855 @mvreference{fortenbaugh.etal1991tes,
2856 title = {{Theophrastus} of {Eresus}},
2857 subtitle = {Sources for his Life, Writings, Thought, and Influence},
2858 editor = {William W. Fortenbaugh and Pamela M Huby and Robert W. Sharples and Dimitri Gutas
2859 and others},
2860 volumes = {2},
2861 series = {Philosophia Antiqua},
2862 number = {54},
2863 location = {Leiden},
2864 date = {1991}}
2865 %<*n|m|a|y>
2866 \end{Verbatim}
2867 \end{bibexbox}
2868
2869
2870 \section{Multi-volume works}
2871
2872 Biblatex provides additional entry types for multi-volume works: \code{mvbook}, \code{mvcollection} and \code{mvreference} respectively. These can be used to cite all the volumes at once, or just one volume from the set.
2873
2874 \subsection{All volumes}
2875
2876 Where all volumes were published consistently, the following form is used:
2877
2878 %<n|m>\spec{Author, \emph{Title}, n \lit{vols.} (Location: Publisher, Year), VolNo. Pages.}
2879 %<a|y>\spec{Author (Year), \emph{Title}, n \lit{vols.} (Location: Publisher), VolNo. Pages.}
2880
2881 %<*n>
2882 \begin{egcite}{\dots(Brussels, 1867–88), ii. 367–8}
2883 \cite[ii.~\mkcomprange{367-368}]%
2884 {straeten1867lmp}
2885 \end{egcite}
2886 %</n>
2887 %<*m|a|y>
2888 \begin{egcite}{}
2889 \parencite[ii.~\mkcomprange{367-368}]%
2890 {straeten1867lmp}
2891 \end{egcite}
2892 %</m|a|y>
2893
2894 \begin{bibexbox}
2895 %<n|m><OGS \S15.2.6>
2896 %<a|y><OGS \S15.2.6\textdagger>
2897 {straeten1867lmp}%
2898 %<n|m>Edmond Vander Straeten, \emph{La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle}, 8 vols. (Brussels, 1867–88).
2899 %<a|y>Vander Straeten, E. (1867–88), \emph{La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle}, 8 vols. (Brussels).
2900 \tcblower
2901 \begin{Verbatim}
2902 %</n|m|a|y>
2903 @mvbook{straeten1867lmp,
2904 author = {Edmond {Vander Straeten}},
2905 title = {La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle},
2906 volumes = {8},
2907 location = {Brussels},
2908 date = {1867/1888}}
2909 %<*n|m|a|y>
2910 \end{Verbatim}
2911 \end{bibexbox}
2912
2913 Where the publisher changed between volumes, the following form is used:
2914
2915 %<n|m>\spec{Author, \emph{Title}, VolNo, n \lit{vols.} (Location: Publisher and Location: Publisher, Year–Year).}
2916 %<a|y>\spec{Author (Year–Year), \emph{Title}, VolNo, n \lit{vols.} (Location: Publisher and Location: Publisher).}
2917
2918 \begin{bibexbox}
2919 %<n|m><OGS \S15.2.6*>
2920 %<a|y><OGS \S15.2.6*\textdagger>
2921 {ritter1838hap}
2922 %<n|m>Heinrich Ritter, \emph{The History of Ancient Philosophy}, trans. Alexander J. W. Morrison, 4~vols. (Oxford: Talboys and London: Bohn, 1838–46).
2923 %<a|y>Ritter, H. (1838–46), \emph{The History of Ancient Philosophy}, trans. A. J. W. Morrison, 4~vols. (Oxford: Talboys and London: Bohn).
2924 \tcblower
2925 \begin{Verbatim}
2926 %</n|m|a|y>
2927 @mvbook{ritter1838hap,
2928 author = {Heinrich Ritter},
2929 title = {The History of Ancient Philosophy},
2930 translator = {Alexander J. W. Morrison},
2931 volumes = {4},
2932 location = {Oxford and London},
2933 publisher = {Talboys and Bohn},
2934 date = {1838/1846}}
2935 %<*n|m|a|y>
2936 \end{Verbatim}
2937 \end{bibexbox}
2938
2939 \info{In the \emph{Oxford Style Manual}, the translator in the above reference
2940 is in parentheses; this occurs in one other reference (\S15.2.2, Lawrence 1992),
2941 but in many more does not (\S15.2.15, Bischoff 1990; \S15.8, Auden 1990;
2942 all in \S13.11.1). I am therefore choosing to ignore this unnecessary
2943 complication.}
2944
2945 \tip{You can alternatively use the standard \textsf{biblatex} relation type \code{multivolume}.
2946 %<n|m>Note that when you do so, the overall date is removed, so be sure that individual volume dates are provided.
2947 }
2948
2949 \begin{bibexbox}
2950 %<n|m><OGS \S15.2.6*>
2951 %<a|y><OGS \S15.2.6*\textdagger>
2952 {ritter1838hap:mv}
2953 %<n|m>Heinrich Ritter, \emph{The History of Ancient Philosophy}, trans. Alexander J. W. Morrison, 4~vols., i–iii (Oxford: Talboys, 1838–9), iv (London: Bohn, 1846).
2954 %<a|y>Ritter, H. (1838–46), \emph{The History of Ancient Philosophy}, trans. A. J. W. Morrison, 4~vols., i–iii (Oxford: Talboys, 1838–9), iv (London: Bohn, 1846).
2955 \tcblower
2956 \begin{Verbatim}
2957 %</n|m|a|y>
2958 @mvbook{ritter1838hap:mv,
2959 author = {Heinrich Ritter},
2960 title = {The History of Ancient Philosophy},
2961 translator = {Alexander J. W. Morrison},
2962 volumes = {4},
2963 date = {1838/1846},
2964 related = {ritter1838hap1-3,ritter1838hap4},
2965 relatedtype = {multivolume}}
2966 @book{ritter1838hap1-3,
2967 volume = {1-3},
2968 location = {Oxford},
2969 publisher = {Talboys},
2970 date = {1838/1839}}
2971 @book{ritter1838hap4,
2972 volume = {4},
2973 location = {London},
2974 publisher = {Bohn},
2975 date = {1846}}
2976 %<*n|m|a|y>
2977 \end{Verbatim}
2978 \end{bibexbox}
2979
2980 \subsection{One volume from several}
2981
2982 Where the volumes are merely numbered, the following form is used:
2983
2984 %<n|m>\spec{Author, \emph{Title}, VolNo (Location: Publisher, Year), Pages.}
2985 %<a|y>\spec{Author (Year), \emph{Title}, VolNo (Location: Publisher), Pages.}
2986
2987 \tip{To get this format, do not use \code{maintitle}: put the title of the whole work in \code{title}.}
2988
2989 %</n|m|a|y>
2990 %<*n>
2991 \begin{egcite}{\dots ii (Brussels, 1867–88), 367–8}
2992 \cite[367–368]{straeten1867lmp.ii}
2993 \end{egcite}
2994 %</n>
2995 %<*m>
2996 \begin{egcite}{}
2997 \cite[367–368]{straeten1867lmp.ii}
2998 \end{egcite}
2999 %</m>
3000 %<*n|m>
3001
3002 \begin{bibexbox}<OGS \S15.2.6>
3003 {straeten1867lmp.ii}
3004 Edmond Vander Straeten, \emph{La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle}, ii (Brussels, 1867–88).
3005 \tcblower
3006 \begin{Verbatim}
3007 %</n|m>
3008 %<*n|m|bib>
3009 @mvbook{straeten1867lmp.ii,
3010 author = {Edmond {Vander Straeten}},
3011 title = {La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle},
3012 volume = {2},
3013 location = {Brussels},
3014 date = {1867/1888}}
3015 %</n|m|bib>
3016 %<*n|m>
3017 \end{Verbatim}
3018 \end{bibexbox}
3019 %</n|m>
3020 %<*a|y>
3021 \begin{bibexbox}<OGS \S15.19.2>
3022 {annas1983osa}
3023 Annas, J. (1983) (ed.), \emph{Oxford Studies in Ancient Philosophy}, i (Oxford).
3024 \tcblower
3025 \begin{Verbatim}
3026 %</a|y>
3027 %<*a|y|bib>
3028 @mvcollection{annas1983osa,
3029 editor = {Annas, Julia},
3030 date = {1983},
3031 title = {Oxford Studies in Ancient Philosophy},
3032 volume = {1},
3033 location = {Oxford}}
3034 %</a|y|bib>
3035 %<*a|y>
3036 \end{Verbatim}
3037 \end{bibexbox}
3038 %</a|y>
3039 %<*n|m|a|y>
3040
3041 Where the volumes each have their own (sub)title,
3042 and they were all published at once (more or less),
3043 the following form is used:
3044
3045 %<n|m>\spec{Author, \emph{Title}, VolNo: \emph{VolTitle} (Location: Publisher, Year), Pages.}
3046 %<a|y>\spec{Author (Year), \emph{Title}, VolNo: \emph{VolTitle} (Location: Publisher), Pages.}
3047
3048 \tip{To get this format, use \code{title} for the volume title and \code{maintitle} for the whole work.}
3049
3050 \begin{bibexbox}
3051 %<n|m><OGS \S15.2.2>
3052 %<a|y><OGS \S15.2.2\textdagger>
3053 {brady.etal1994hehsa}
3054 %<n|m>Thomas A. Brady, Jr., Heiko A. Oberman, and James D. Tracy (eds.), \emph{Handbook of European History, 1400–1600: Late Middle Ages, Renaissance and Reformation}, i: \emph{Structures and Assertions} (Leiden: E. J. Brill, 1994).
3055 %<a|y>Brady, Jr., T. A., Oberman, H. A., and Tracy, J. D. (1994) (eds.), \emph{Handbook of European History, 1400–1600: Late Middle Ages, Renaissance and Reformation}, i: \emph{Structures and Assertions} (Leiden: E. J. Brill).
3056 \tcblower
3057 \begin{Verbatim}
3058 %</n|m|a|y>
3059 @mvcollection{brady.etal1994hehsa,
3060 editor = {Brady, Jr., Thomas A. and Heiko A. Oberman and James D. Tracy},
3061 maintitle = {Handbook of European History, 1400–1600},
3062 mainsubtitle = {{Late} {Middle} {Ages,} {Renaissance} and {Reformation}},
3063 volume = {1},
3064 title = {Structures and Assertions},
3065 location = {Leiden},
3066 publisher = {E. J. Brill},
3067 date = {1994}}
3068 %<*n|m|a|y>
3069 \end{Verbatim}
3070 \end{bibexbox}
3071
3072 %<*n>
3073 \begin{egcite}{\dots (Cambridge: CUP, 1932), 42–56}
3074 \cite[42-56]{ward.waller1932che}
3075 \end{egcite}
3076 %</n>
3077 %<*m|a|y>
3078 \begin{egcite}{}
3079 \parencite[42-56]%
3080 {ward.waller1932che}
3081 \end{egcite}
3082 %</m|a|y>
3083
3084 \begin{bibexbox}
3085 %<n|m><OGS \S15.2.6>
3086 %<a|y><OGS \S15.2.6\textdagger>
3087 {ward.waller1932che}
3088 %<n|m>A. W. Ward and A. E. Waller (eds.), \emph{The Cambridge History of English Literature}, xii: \emph{The Nineteenth Century} (Cambridge: CUP, 1932).
3089 %<a|y>Ward, A. W., and Waller, A. E. (1932) (eds.), \emph{The Cambridge History of English Literature}, xii: \emph{The Nineteenth Century} (Cambridge: CUP).
3090 \tcblower
3091 \begin{Verbatim}
3092 %</n|m|a|y>
3093 @mvcollection{ward.waller1932che,
3094 editor = {A. W. Ward and A. E. Waller},
3095 maintitle = {The Cambridge History of English Literature},
3096 volume = {12},
3097 title = {The Nineteenth Century},
3098 location = {Cambridge},
3099 publisher = {CUP},
3100 date = {1932}}
3101 %<*n|m|a|y>
3102 \end{Verbatim}
3103 \end{bibexbox}
3104
3105 Where the volumes each have their own (sub)title,
3106 and there are many volumes spanning years and possibly publishers,
3107 the following form is used:
3108
3109 %<n|m>\spec{Author, \emph{VolTitle}, [\lit{vol.} VolNo \lit{of} Title] (Location: Publisher, Year), Pages.}
3110 %<a|y>\spec{Author (Year), \emph{VolTitle}, [\lit{vol.} VolNo \lit{of} Title] (Location: Publisher), Pages.}
3111
3112 \tip{To get this format, use \code{book} instead of \code{mvbook}.}
3113
3114 \begin{bibexbox}
3115 %<n|m><NHR \S18.2.7>
3116 %<a|y><NHR \S18.2.7\textdagger>
3117 {fischer1989asf}
3118 %<n|m>David Hackett Fischer, \emph{Albion's Seed: Four British Folkways in America}, [vol.\@ i of \emph{America: A Cultural History}] (New York: Oxford University Press, 1989).
3119 %<a|y>Fischer, D. H. (1989), \emph{Albion's Seed: Four British Folkways in America}, [vol.\@ i of \emph{America: A Cultural History}] (New York: Oxford University Press).
3120 \tcblower
3121 \begin{Verbatim}
3122 %</n|m|a|y>
3123 @book{fischer1989asf,
3124 author = {David Hackett Fischer},
3125 title = {Albion's Seed},
3126 subtitle = {Four British Folkways in America},
3127 volume = {1},
3128 maintitle = {America},
3129 mainsubtitle = {A Cultural History},
3130 location = {New York},
3131 publisher = {Oxford University Press},
3132 date = {1989}}
3133 %<*n|m|a|y>
3134 \end{Verbatim}
3135 \end{bibexbox}
3136
3137 \section{Additions, translations, and revisions}
3138
3139 Where works have significant introductions, forewords, afterwords, illustrations, etc.\@ this may be noted as follows:
3140
3141 %<n|m>\spec{Author, \emph{Title}, \lit{with an} Addition \lit{by} Contributor (Location: Publisher, Year).}
3142 %<a|y>\spec{Author (Year), \emph{Title}, \lit{with an} Addition \lit{by} Contributor (Location: Publisher).}
3143
3144 \begin{bibexbox}
3145 %<n|m><OGS \S15.2.1>
3146 %<a|y><OGS \S15.2.1\textdagger>
3147 {twain1971cyk}
3148 %<n|m>Mark Twain, \emph{A Connecticut Yankee at King Arthur's Court}, with an introduction by Justin Kaplan (Harmondsworth: Penguin, 1971).
3149 %<a|y>Twain, M. (1971), \emph{A Connecticut Yankee at King Arthur's Court}, with an introduction by J. Kaplan (Harmondsworth: Penguin).
3150 \tcblower
3151 \begin{Verbatim}
3152 %</n|m|a|y>
3153 @book{twain1971cyk,
3154 author = {Mark Twain},
3155 title = {A {Connecticut} Yankee at {King} {Arthur's} Court},
3156 introduction = {Justin Kaplan},
3157 location = {Harmondsworth},
3158 publisher = {Penguin},
3159 date = {1971}}
3160 %<*n|m|a|y>
3161 \end{Verbatim}
3162 \end{bibexbox}
3163
3164 Translators are credited as follows:
3165
3166 %<n|m>\spec{Author, \emph{Title}, \lit{trans.} Translator(s) (Location: Publisher, Year).}
3167 %<a|y>\spec{Author (Year), \emph{Title}, \lit{trans.} Translator(s) (Location: Publisher).}
3168
3169 \begin{bibexbox}
3170 %<n|m><NHR \S18.2.14>
3171 %<a|y><NHR \S18.2.14\textdagger>
3172 {bischoff1990lpa}
3173 %<n|m>Bernhard Bischoff, \emph{Latin Palaeography: Antiquity and the Middle Ages}, trans. Dáibhi Ó~Cróinín and David Ganz (Cambridge, 1990).
3174 %<a|y>Bischoff, B. (1990), \emph{Latin Palaeography: Antiquity and the Middle Ages}, trans. D. Ó~Cróinín and D. Ganz (Cambridge).
3175 \tcblower
3176 \begin{Verbatim}
3177 %</n|m|a|y>
3178 @book{bischoff1990lpa,
3179 author = {Bernhard Bischoff},
3180 title = {Latin Palaeography},
3181 subtitle = {Antiquity and the Middle Ages},
3182 translator = {Dáibhi Ó~Cróinín and David Ganz},
3183 location = {Cambridge},
3184 date = {1990}}
3185 %<*n|m|a|y>
3186 \end{Verbatim}
3187 \end{bibexbox}
3188
3189 %<n|m>\spec{Author, \emph{Title}, \lit{trans.\@ with} Addition Translator(s) (Location: Publisher, Year).}
3190 %<a|y>\spec{Author (Year), \emph{Title}, \lit{trans.\@ with} Addition Translator(s) (Location: Publisher).}
3191
3192 \begin{bibexbox}
3193 %<n|m><NHR \S18.2.14>
3194 %<a|y><NHR \S18.2.14\textdagger>
3195 {martorell1984tlb}
3196 %<n|m>Joanat Martorell, \emph{Tirant lo Blanc}, trans. with foreword David H. Rosenthal (London, 1984).
3197 %<a|y>Martorell, J. (1984), \emph{Tirant lo Blanc}, trans. with foreword D. H. Rosenthal (London).
3198 \tcblower
3199 \begin{Verbatim}
3200 %</n|m|a|y>
3201 @book{martorell1984tlb,
3202 author = {Joanat Martorell},
3203 title = {Tirant lo Blanc},
3204 translator = {David H. Rosenthal},
3205 foreword = {David H. Rosenthal},
3206 location = {London},
3207 date = {1984}}
3208 %<*n|m|a|y>
3209 \end{Verbatim}
3210 \end{bibexbox}
3211
3212
3213 \section{Editions}
3214
3215 \subsection{Later edition only}
3216
3217 Where the author\slash editor is common to both, the following form is used:
3218
3219 %<n|m>\spec{Author, \emph{Title} (nth \lit{edn.}, Location: Publisher, Year).}
3220 %<a|y>\spec{Author (Year), \emph{Title} (nth \lit{edn.}, Location: Publisher).}
3221
3222 \tip{This is the format used by the entry type \code{book}}
3223
3224 %</n|m|a|y>
3225 %<*n>
3226 \begin{egcite}{\dots (3rd edn., 1990), 419–21}
3227 \cite[419-421]{baker1990iel}
3228 \end{egcite}
3229 %</n>
3230 %<*n|m>
3231
3232 \begin{bibexbox}<OGS \S15.2.3>
3233 {baker1990iel}
3234 J. H. Baker, \emph{An Introduction to English Legal History} (3rd edn., 1990).
3235 \tcblower
3236 \begin{Verbatim}
3237 %</n|m>
3238 %<*n|m|bib>
3239 @book{baker1990iel,
3240 author = {J. H. Baker},
3241 title = {An Introduction to {English} Legal History},
3242 edition = {3},
3243 date = {1990}}
3244 %</n|m|bib>
3245 %<*n|m>
3246 \end{Verbatim}
3247 \end{bibexbox}
3248
3249 %</n|m>
3250 %<*a|y>
3251 \begin{bibexbox}<NHR \S17.3.2*>
3252 {maitland2001mvr}
3253 Maitland, G. (2001), \emph{Maitland's Vertebral Manipulation} (6th edn., Oxford: Butterworth–Heinemann).
3254 \tcblower
3255 \begin{Verbatim}
3256 %</a|y>
3257 %<*a|y|bib>
3258 @book{maitland2001mvr,
3259 author = {G. Maitland},
3260 title = {Maitland's Vertebral Manipulation},
3261 edition = {6},
3262 publisher = {Butterworth--Heinemann},
3263 location = {Oxford},
3264 date = {2001}}
3265 %</a|y|bib>
3266 %<*a|y>
3267 \end{Verbatim}
3268 \end{bibexbox}
3269
3270 %</a|y>
3271 %<*n|m|a|y>
3272 \begin{bibexbox}
3273 %<n|m><NHR \S18.8.5>
3274 %<a|y><NHR \S18.8.5\textdagger>
3275 {beckford1823v}
3276 %<n|m>William Beckford, \emph{Vathek} (4th edn., London, 1823) [online facsimile], \url{http://beckford.c18.net/wbvathek1823.html}, accessed 5 Nov. 2013.
3277 %<a|y>Beckford, W. (1823), \emph{Vathek} (4th edn., London) [online facsimile], \url{http://beckford.c18.net/wbvathek1823.html}, accessed 5 Nov. 2013.
3278 \tcblower
3279 \begin{Verbatim}
3280 %</n|m|a|y>
3281 @book{beckford1823v,
3282 author = {William Beckford},
3283 title = {Vathek},
3284 edition = {4},
3285 location = {London},
3286 date = {1823},
3287 howpublished = {online facsimile},
3288 url = {http://beckford.c18.net/wbvathek1823.html},
3289 urldate = {2013-11-05}}
3290 %<*n|m|a|y>
3291 \end{Verbatim}
3292 \end{bibexbox}
3293
3294 Where the editor has changed, the following form is used:
3295
3296 %<n|m>\spec{\emph{Title}, nth \lit{edn.}, \lit{ed.} Editor (Location: Publisher, Year).}
3297 %<a|y>\spec{\emph{Title} (Year), nth \lit{edn.}, \lit{ed.} Editor (Location: Publisher).}
3298
3299 \tip{This format is used by entry type \code{reference}}
3300
3301 \begin{bibexbox}
3302 %<n|m><OGS \S15.2.3>
3303 %<a|y><OGS \S15.2.3\textdagger>
3304 {knowles1999odq}
3305 %<n|m>\emph{The Oxford Dictionary of Quotations}, 5th edn., ed. Elizabeth Knowles (Oxford, 1999).
3306 %<a|y>\emph{The Oxford Dictionary of Quotations} (1999), 5th edn., ed. E. Knowles (Oxford).
3307 \tcblower
3308 \begin{Verbatim}
3309 %</n|m|a|y>
3310 @reference{knowles1999odq,
3311 title = {The {Oxford} Dictionary of Quotations},
3312 edition = {5},
3313 editor = {Elizabeth Knowles},
3314 publisher = {Oxford},
3315 date = {1999}}
3316 %<*n|m|a|y>
3317 \end{Verbatim}
3318 \end{bibexbox}
3319
3320 \subsection{Both first and later edition}
3321
3322 %<n|m>\spec{Author, \emph{Title} (Year; nth \lit{edn.}, Location: Publisher, Year).}
3323 %<a|y>\spec{Author (Year), \emph{Title} (Year; nth \lit{edn.}, Location: Publisher).}
3324
3325 \tip{Use the \code{orig} fields for the earlier edition.}
3326
3327 %</n|m|a|y>
3328 %<*n|m>
3329 \begin{bibexbox}<OGS \S15.2.3>
3330 {denniston1934gp}
3331 J. D. Denniston, \emph{The Greek Particles} (1934; 2nd edn., Oxford, 1954).
3332 \tcblower
3333 \begin{Verbatim}
3334 %</n|m>
3335 %<*n|m|bib>
3336 @book{denniston1934gp,
3337 author = {J. D. Denniston},
3338 title = {The Greek Particles},
3339 origdate = {1934},
3340 edition = {2},
3341 location = {Oxford},
3342 date = {1954}}
3343 %</n|m|bib>
3344 %<*n|m>
3345 \end{Verbatim}
3346 \end{bibexbox}
3347
3348 \tip{Use the localization key \code{revised} as the edition to get \enquote{revised edition}. Use the localization key \code{revisedenlarged} as the edition to get \enquote{revised and enlarged edition}}
3349
3350 \begin{bibexbox}<OGS \S15.2.1>
3351 {gibbon1686dfs}[]
3352 [John Gibbon], \emph{Day-Fatality: Or Some Observations on Days Lucky and Unlucky} (London, 1678; rev.~edn., 1686).
3353 \tcblower
3354 \begin{Verbatim}
3355 %</n|m>
3356 %<*n|m|bib>
3357 @book{gibbon1686dfs,
3358 author = {John Gibbon},
3359 author+an = {=inferred},
3360 title = {Day-Fatality},
3361 subtitle = {Or Some Observations on Days Lucky and Unlucky},
3362 edition = {revised},
3363 origlocation = {London},
3364 origdate = {1678},
3365 date = {1686}}
3366 %</n|m|bib>
3367 %<*n|m>
3368 \end{Verbatim}
3369 \end{bibexbox}
3370
3371 \info{In the \emph{Oxford Guide to Style}, there is no comma after \enquote{rev. edn.} in the above reference; this may be an error.}
3372 %</n|m>
3373 %<*a|y>
3374 \begin{bibexbox}<OGS \S15.19.2>
3375 {marx1867ccp}
3376 Marx, K. (1867), \emph{Capital: A Critique of Political Economy}, i, trans. B. Fowkes (New York, 1977).
3377 \tcblower
3378 \begin{Verbatim}
3379 %</a|y>
3380 %<*a|y|bib>
3381 @mvbook{marx1867ccp,
3382 author = {K. Marx},
3383 origdate = {1867},
3384 title = {Capital},
3385 subtitle = {A Critique of Political Economy},
3386 volume = {1},
3387 translator = {B. Fowkes},
3388 location = {New York},
3389 date = {1977}}
3390 %</a|y|bib>
3391 %<*a|y>
3392 \end{Verbatim}
3393 \end{bibexbox}
3394
3395 %</a|y>
3396 %<*n|m|a|y>
3397
3398 \subsection{Republications}
3399
3400 If the publication has not been revised, but has been re-typeset by a different publisher,
3401 the \emph{Oxford Guide to Style} suggests putting the original date in a note at the end,
3402 after rather than within the publication block%
3403 %<n|m>.
3404 %<a|y>, but this does not affect the author–date style since the original date is at the head of the reference anyway.
3405
3406 %<n|m>\spec{Author, \emph{Title} (Location: Publisher, Year) (\lit{originally pub.} Year).}
3407 %<a|y>\spec{Author (OrigYear), \emph{Title} (Location: Publisher).}
3408
3409 %<*n|m>
3410 \tip{This format is triggered if you specify an original date but do not specify the original publisher or location, nor the edition of the later publication.}
3411 \info{In the \emph{Oxford Guide to Style}, the following example has the string \enquote{first pub.\@} in place of the more common \enquote{originally pub.\@};
3412 to use this phrase in all entries, use the regular \pkg{biblatex} command to reset the string:}
3413 \begin{tcblisting}{listing only,left skip=2em}
3414 \DefineBibliographyStrings{english}{origpubin={first pub\adddot}}
3415 \end{tcblisting}
3416 %</n|m>
3417
3418 \begin{bibexbox}
3419 %<n|m><OGS \S15.2.3*>
3420 %<a|y><OGS \S15.2.3\textdagger>
3421 {bettelheim1976uem}
3422 %<n|m>Bruno Bettelheim, \emph{The Uses of Enchantment: The Meaning and Importance of Fairy Tales} (Harmondsworth: Penguin Books, 1988) (originally pub. 1976).
3423 %<a|y>Bettelheim, B. (1976), \emph{The Uses of Enchantment: The Meaning and Importance of Fairy Tales} (Harmondsworth: Penguin Books, 1988).
3424 \tcblower
3425 \begin{Verbatim}
3426 %</n|m|a|y>
3427 @book{bettelheim1976uem,
3428 author = {Bruno Bettelheim},
3429 title = {The Uses of Enchantment},
3430 subtitle = {The Meaning and Importance of Fairy Tales},
3431 location = {Harmondsworth},
3432 publisher = {Penguin Books},
3433 date = {1988},
3434 origdate = {1976}}
3435 %<*n|m|a|y>
3436 \end{Verbatim}
3437 \end{bibexbox}
3438
3439 \subsection{Reprints}
3440
3441 %<n|m>\spec{Author, \emph{Title} (Location: Publisher, Year; \lit{repr.} Location: Publisher, Year).}
3442 %<a|y>\spec{Author (Year–Year), \emph{Title} (Location: Publisher; \lit{repr.} Location: Publisher).}
3443
3444 \tip{Use localization key \code{reprint} as the edition. For a revised reprint, use \code{revisedreprint}.}
3445
3446 \begin{bibexbox}
3447 %<n|m><OGS \S15.2.4>
3448 %<a|y><OGS \S15.2.4\textdagger>
3449 {adam.tannery1897odd}
3450 %<n|m>C. Adam and D. Tannery (eds.), \emph{Œuvres de Descartes} (Paris: Cerf, 1897–1913; repr. Paris: J. Vrin, CNRS, 1964–76).
3451 %<a|y>Adam, C., and Tannery, D. (1897–1913) (eds.), \emph{Œuvres de Descartes} (Paris: Cerf; repr. Paris: J. Vrin, CNRS, 1964–76).
3452 \tcblower
3453 \begin{Verbatim}
3454 %</n|m|a|y>
3455 @collection{adam.tannery1897odd,
3456 editor = {C. Adam and D. Tannery},
3457 title = {Å’uvres de Descartes},
3458 origlocation = {Paris},
3459 origpublisher = {Cerf},
3460 origdate = {1897/1913},
3461 edition = {reprint},
3462 location = {Paris},
3463 publisher = {J. Vrin, CNRS},
3464 date = {1964/1976}}
3465 %<*n|m|a|y>
3466 \end{Verbatim}
3467 \end{bibexbox}
3468
3469 \begin{bibexbox}
3470 %<n|m><OGS \S15.2.4>
3471 %<a|y><OGS \S15.2.4\textdagger>
3472 {southern1991sap}
3473 %<n|m>R. W. Southern, \emph{Saint Anselm: A Portrait in a Landscape} (rev. repr., Cambridge: Cambridge University Press, 1991).
3474 %<a|y>Southern, R. W. (1991), \emph{Saint Anselm: A Portrait in a Landscape} (rev. repr., Cambridge: Cambridge University Press).
3475 \tcblower
3476 \begin{Verbatim}
3477 %</n|m|a|y>
3478 @book{southern1991sap,
3479 author = {R. W. Southern},
3480 title = {Saint Anselm},
3481 subtitle = {A Portrait in a Landscape},
3482 edition = {revisedreprint},
3483 location = {Cambridge},
3484 publisher = {Cambridge University Press},
3485 date = {1991}}
3486 %<*n|m|a|y>
3487 \end{Verbatim}
3488 \end{bibexbox}
3489
3490 %<n|m>\spec{Author, \emph{Title} (Location: Publisher, Year; \lit{facs. edn.}, Location: Publisher, Year).}
3491 %<a|y>\spec{Author (Year–Year), \emph{Title} (Location: Publisher; \lit{facs. edn.}, Location: Publisher).}
3492
3493 \tip{Use localization key \code{facsimile} as the edition.}
3494
3495 \begin{bibexbox}
3496 %<n|m><OGS \S15.2.4>
3497 %<a|y><OGS \S15.2.4\textdagger>
3498 {allen1594kkk}
3499 %<n|m>E. Allen, \emph{A Knack to Know a Knave} (London, 1594; facs. edn., Oxford: Malone Society Reprints, 1963).
3500 %<a|y>Allen, E. (1594), \emph{A Knack to Know a Knave} (London; facs. edn., Oxford: Malone Society Reprints, 1963).
3501 \tcblower
3502 \begin{Verbatim}
3503 %</n|m|a|y>
3504 @book{allen1594kkk,
3505 author = {E. Allen},
3506 title = {A Knack to Know a Knave},
3507 origlocation = {London},
3508 origdate = {1594},
3509 edition = {facsimile},
3510 location = {Oxford},
3511 publisher = {Malone Society Reprints},
3512 date = {1963}}
3513 %<*n|m|a|y>
3514 \end{Verbatim}
3515 \end{bibexbox}
3516
3517 \subsection{Title changes}
3518
3519 \emph{New Hart's Rules} recommends giving the original publication details first,
3520 then the new title and its details after a semicolon.
3521
3522 \tip{The standard \code{relatedtype} value \code{reprintas} is supported.}
3523
3524 \begin{bibexbox}
3525 %<n|m><NHR \S18.2.13>
3526 %<a|y><NHR \S18.2.13\textdagger>
3527 {hare1949wwb}
3528 %<n|m>Cyril Hare, \emph{When the Wind Blows} (London, 1949); repr. as \emph{The Wind Blows Death} (London, 1987).
3529 %<a|y>Hare, C. (1949), \emph{When the Wind Blows} (London); repr. as \emph{The Wind Blows Death} (London, 1987).
3530 \tcblower
3531 \begin{Verbatim}
3532 %</n|m|a|y>
3533 @book{hare1949wwb,
3534 author = {Cyril Hare},
3535 title = {When the Wind Blows},
3536 location = {London},
3537 date = {1949},
3538 related = {hare1987wbd},
3539 relatedtype = {reprintas}}
3540 @book{hare1987wbd,
3541 author = {Cyril Hare},
3542 title = {The Wind Blows Death},
3543 location = {London},
3544 date = {1987}}
3545 %<*n|m|a|y>
3546 \end{Verbatim}
3547 \end{bibexbox}
3548
3549 \tip{A more generalized version of this relation is available.
3550 If you set the \code{relatedtype} to the \pkg[biblatex]{oxref}-specific keyword \code{editedas},
3551 the edition and any editorial contributions will be printed in the linking text.}
3552
3553 \begin{bibexbox}
3554 %<n|m><NHR \S18.2.12*>
3555 %<a|y><NHR \S18.2.128\textdagger>
3556 {berkenhout1769onh}
3557 %<n|m>John Berkenhout, \emph{Outlines of the Natural History of Great Britain}, 3 vols. (London, 1769–72); rev. edn., as \emph{A Synopsis of the Natural History of Great Britain}, 2 vols. (London, 1789).
3558 %<a|y>Berkenhout, J. (1769–72), \emph{Outlines of the Natural History of Great Britain}, 3 vols. (London); rev. edn., as \emph{A Synopsis of the Natural History of Great Britain}, 2 vols. (London, 1789).
3559 \tcblower
3560 \begin{Verbatim}
3561 %</n|m|a|y>
3562 @mvbook{berkenhout1769onh,
3563 author = {John Berkenhout},
3564 title = {Outlines of the Natural History of Great Britain},
3565 volumes = {3},
3566 location = {London},
3567 date = {1769/1772},
3568 related = {berkenhout1789snh},
3569 relatedtype = {editedas}}
3570 @mvbook{berkenhout1789snh,
3571 author = {John Berkenhout},
3572 title = {A Synopsis of the Natural History of Great Britain},
3573 volumes = {2},
3574 edition = {revised},
3575 location = {London},
3576 date = {1789}}
3577 %<*n|m|a|y>
3578 \end{Verbatim}
3579 \end{bibexbox}
3580
3581 \begin{bibexbox}
3582 %<n|m><NHR \S18.2.13>
3583 %<a|y><NHR \S18.2.13\textdagger>
3584 {lower1665dtw}
3585 %<n|m>Richard Lower, \emph{Diatribæ Thomæ Willisii Doct. Med. \& Profess. Oxon. De febribus Vindicatio adversus Edmundum De Meara Ormoniensem Hibernum M.D.} (London, 1665); facs. edn. with introduction, ed. and trans. Kenneth Dewhurst, as \emph{Richard Lower's \enquote{Vindicatio}: A Defence of the Experimental Method} (Oxford, 1983).
3586 %<a|y>Lower, R. (1665), \emph{Diatribæ Thomæ Willisii Doct. Med. \& Profess. Oxon. De febribus Vindicatio adversus Edmundum De Meara Ormoniensem Hibernum M.D.} (London); facs. edn. with introduction, ed. and trans. K. Dewhurst, as \emph{Richard Lower's \enquote{Vindicatio}: A Defence of the Experimental Method} (Oxford, 1983).
3587 \tcblower
3588 \begin{Verbatim}
3589 %</n|m|a|y>
3590 @book{lower1665dtw,
3591 author = {Richard Lower},
3592 title = {Diatribæ Thomæ Willisii Doct. Med. \& Profess. Oxon. De febribus Vindicatio adversus
3593 Edmundum De Meara Ormoniensem Hibernum M.D.},
3594 location = {London},
3595 date = {1665},
3596 related = {dewhurst1983rlv},
3597 relatedtype = {editedas}}
3598 @book{dewhurst1983rlv,
3599 author = {Richard Lower},
3600 introduction = {Kenneth Dewhurst},
3601 editor = {Kenneth Dewhurst},
3602 translator = {Kenneth Dewhurst},
3603 title = {Richard Lower's \enquote{Vindicatio}},
3604 subtitle = {A Defence of the Experimental Method},
3605 edition = {facsimile},
3606 location = {Oxford},
3607 date = {1983}}
3608 %<*n|m|a|y>
3609 \end{Verbatim}
3610 \end{bibexbox}
3611
3612
3613 \subsection{Co-publications\slash co-editions}
3614
3615 %</n|m|a|y>
3616 %<*y>
3617 The \emph{Oxford Guide to Style} provides a special format for expressing works that are co-published by several publishers at once. \textsf{Oxnotes} implements it using the \code{relatedtype} keyword \code{copub}. Since it is not suitable for author–year citation styles, no effort is made to make it work for \textsf{oxyear}; you should cite the edition you used, and either ignore the other or mention it in an \code{addendum}.
3618
3619 %</y>
3620 %<*n>
3621 If the same book has been co-published by multiple publishers at approximately the same time,
3622 you can express this by putting multiple sets of details in the publication block.
3623 You should not do this, however, if you might want to switch to using the \textsf{oxyear} style at some point,
3624 since it does not really work for author–year styles.
3625
3626 \spec{Author, \emph{Title} (Location: Publisher, Year; Location: Publisher, Year).}
3627
3628 \tip{Put each publication in the bib file separately. In the one you plan to cite, put the keys of the others in \code{related} and give \code{copub} as the \code{relatedtype}.}
3629
3630 \begin{bibexbox}
3631 <OGS \S15.2.5>{holfordstrevens1988ag1}
3632 L. A. Holford-Strevens, \emph{Aulus Gellius} (London: Duckworth, 1988; Chapel Hill: University of North Carolina Press, 1989).
3633 \tcblower
3634 \begin{Verbatim}
3635 %</n>
3636 %<*n|bib>
3637 @book{holfordstrevens1988ag1,
3638 author = {L. A. Holford-Strevens},
3639 title = {Aulus Gellius},
3640 location = {London},
3641 publisher = {Duckworth},
3642 date = {1988},
3643 related = {holfordstrevens1988ag2},
3644 relatedtype = {copub}}
3645 @book{holfordstrevens1988ag2,
3646 location = {Chapel Hill},
3647 publisher = {University of North Carolina Press},
3648 date = {1989}}
3649 %</n|bib>
3650 %<*n>
3651 \end{Verbatim}
3652 \end{bibexbox}
3653
3654 %</n>
3655 %<*n|m|a|y>
3656 If the work is published under two different titles, it is a good idea to
3657 provide both to make it easier to locate.
3658
3659 \tip{Use a generic relation and specify the country details in the \code{relatedstring}.}
3660
3661 \begin{bibexbox}
3662 %<n|m><OGS \S15.2.5>
3663 %<a|y><OGS \S15.2.5\textdagger>
3664 {salinger1953ns}
3665 %<n|m>J. D. Salinger, \emph{Nine Stories} (Boston: Little, Brown, 1953), published in the UK as \emph{For Esmé—With Love and Squalor, and Other Stories} (London: Hamish Hamilton, 1953).
3666 %<a|y>Salinger, J. D. (1953), \emph{Nine Stories} (Boston: Little, Brown), published in the UK as \emph{For Esmé—With Love and Squalor, and Other Stories} (London: Hamish Hamilton, 1953).
3667 \tcblower
3668 \begin{Verbatim}
3669 %</n|m|a|y>
3670 @book{salinger1953ns,
3671 author = {J. D. Salinger},
3672 title = {Nine Stories},
3673 location = {Boston},
3674 publisher = {Little, Brown},
3675 date = {1953},
3676 related = {salinger1953few},
3677 relatedstring = {published in the UK as},
3678 options = {relationpunct=comma}}
3679 @book{salinger1953few,
3680 title = {For {Esmé}---With Love and Squalor, and Other Stories},
3681 location = {London},
3682 publisher = {Hamish Hamilton},
3683 date = {1953}}
3684 %<*n|m|a|y>
3685 \end{Verbatim}
3686 \end{bibexbox}
3687
3688
3689 \section{Works from a series}
3690
3691 %<n|m>\spec{Author, \emph{Title} (Series; Location: Publisher, Year).}
3692 %<a|y>\spec{Author (Year), \emph{Title} (Series; Location: Publisher).}
3693 %<n|m>\spec{Author, \emph{Title} (Series, Number; Location: Publisher, Year).}
3694 %<a|y>\spec{Author (Year), \emph{Title} (Series, Number; Location: Publisher).}
3695
3696 %</n|m|a|y>
3697 %<*n|m>
3698 \begin{bibexbox}<OGS \S15.2.7>
3699 {garlandia1972dmm}
3700 Johannes de Garlandia, \emph{De mensurabili musica}, ed. Erich Reimer, 2 vols. (Beihefte zum Archiv für Musikwissenschaft, 10–11; Wiesbaden, 1972).
3701 \tcblower
3702 \begin{Verbatim}
3703 %</n|m>
3704 %<*n|m|bib>
3705 @mvbook{garlandia1972dmm,
3706 author = {Johannes de Garlandia},
3707 title = {De mensurabili musica},
3708 editor = {Erich Reimer},
3709 volumes = {2},
3710 series = {Beihefte zum Archiv für Musikwissenschaft},
3711 number = {10--11},
3712 publisher = {Wiesbaden},
3713 date = {1972}}
3714 %</n|m|bib>
3715 %<*n|m>
3716 \end{Verbatim}
3717 \end{bibexbox}
3718
3719 %</n|m>
3720 %<*a|y>
3721 \begin{bibexbox}<OGS \S15.19.2>
3722 {barnes1982ari}
3723 Barnes, J. (1982), \emph{Aristotle} (Past Masters; Oxford).
3724 \tcblower
3725 \begin{Verbatim}
3726 %</a|y>
3727 %<*a|y|bib>
3728 @book{barnes1982ari,
3729 author = {Jonathan Barnes},
3730 date = {1982},
3731 title = {Aristotle},
3732 series = {Past Masters},
3733 location = {Oxford}}
3734 %</a|y|bib>
3735 %<*a|y>
3736 \end{Verbatim}
3737 \end{bibexbox}
3738
3739 %</a|y>
3740 %<*n|m|a|y>
3741
3742 %<n|m>\spec{Author, \emph{Title} (nth \lit{ser.}, Year).}
3743 %<a|y>\spec{Author (Year), \emph{Title} (nth \lit{ser.}).}
3744
3745 \section{Pre-publication book}
3746
3747 %<n|m>\spec{Author, \emph{Title} (Location: Publisher, \lit{forthcoming}).}
3748 %<a|y>\spec{Author (\lit{forthcoming}), \emph{Title} (Location: Publisher).}
3749
3750 %</n|m|a|y>
3751 %<*a|y>
3752 \begin{bibexbox}<OGS \S15.19.2>
3753 {smithFCgaf}
3754 %<a>Smith, P. (forthcoming),
3755 %<y>Smith, P. (forthcoming \emph{a}),
3756 \emph{Gender and Famine}, 2 vols. (London).
3757 \tcblower
3758 \begin{Verbatim}
3759 %</a|y>
3760 %<*a|y|bib>
3761 @mvbook{smithFCgaf,
3762 author = {P. Smith},
3763 title = {Gender and Famine},
3764 volumes = {2},
3765 location = {London},
3766 pubstate = {forthcoming}}
3767 %</a|y|bib>
3768 %<*a|y>
3769 \end{Verbatim}
3770 \end{bibexbox}
3771
3772 %</a|y>
3773 %<*n|m|a|y>
3774
3775 \chapter{Works within books}\label{sec:inbook}
3776 \chapterprecis{inbook, bookinbook, suppbook, incollection, suppcollection, inreference}
3777
3778 \section{Works in collections of a single author's works}
3779
3780 The \code{inbook} entry type is intended for books that consist of several self-contained works by the same author, for citing one of these works.
3781
3782 %<n|m>\spec{Author, \enquote{Title}, \lit{in id.}, \emph{BookTitle}, \lit{ed.} Editor(s) (Location: Publisher, Year), Pages.}
3783 %<a|y>\spec{Author (Year), \enquote{Title}, \lit{in id.}, \emph{BookTitle}, \lit{ed.} Editor(s) (Location: Publisher), Pages.}
3784
3785 \tip{If you provide \code{bookauthor}, and it is the same as the \code{author}, the second instance of the name will replaced by \enquote{id.}\slash \enquote{ead.}\slash \enquote{eid.}\slash \enquote{eaed.} Use the \code{gender} field to select which is used.}
3786
3787 \begin{bibexbox}
3788 %<n|m><OGS \S15.2.11*>
3789 %<a|y><OGS \S15.2.11*\textdagger>
3790 {kristeller1979thm}
3791 %<n|m>Paul Oskar Kristeller, \enquote{The Aristotelian Tradition}, in id., \emph{Renaissance Thought and Its Sources}, ed. Michael Mooney (New York: Columbia University Press, 1979).
3792 %<a|y>Kristeller, P. O. (1979), \enquote{The Aristotelian Tradition}, in id., \emph{Renaissance Thought and Its Sources}, ed. M. Mooney (New York: Columbia University Press).
3793 \tcblower
3794 \begin{Verbatim}
3795 %</n|m|a|y>
3796 @inbook{kristeller1979thm,
3797 author = {Paul Oskar Kristeller},
3798 gender = {sm},
3799 title = {The Aristotelian Tradition},
3800 bookauthor = {Paul Oskar Kristeller},
3801 booktitle = {Renaissance Thought and Its Sources},
3802 editor = {Michael Mooney},
3803 location = {New York},
3804 publisher = {Columbia University Press},
3805 date = {1979}}
3806 %<*n|m|a|y>
3807 \end{Verbatim}
3808 \end{bibexbox}
3809
3810 %<n|m>\spec{Author, \enquote{Title}, \lit{in} \emph{BookTitle}, \lit{ed.} Editor(s) (Location: Publisher, Year), Pages.}
3811 %<a|y>\spec{Author (Year), \enquote{Title}, \lit{in} \emph{BookTitle}, \lit{ed.} Editor(s) (Location: Publisher), Pages.}
3812
3813 \begin{bibexbox}
3814 %<n|m><NHR \S18.2.6*>
3815 %<a|y><NHR \S18.2.6*\textdagger>
3816 {ashton1991d}
3817 %<n|m>John Ashton, \enquote{Dualism}, in \emph{Understanding the Fourth Gospel} (Oxford, 1991), 205–37.
3818 %<a|y>Ashton, J. (1991), \enquote{Dualism}, in \emph{Understanding the Fourth Gospel} (Oxford), 205–37.
3819 \tcblower
3820 \begin{Verbatim}
3821 %</n|m|a|y>
3822 @inbook{ashton1991d,
3823 author = {John Ashton},
3824 title = {Dualism},
3825 booktitle = {Understanding the Fourth Gospel},
3826 location = {Oxford},
3827 date = {1991},
3828 pages = {205-237}}
3829 %<*n|m|a|y>
3830 \end{Verbatim}
3831 \end{bibexbox}
3832
3833 \section{Works in collections}
3834
3835 The \code{incollection} entry type is intended for citing one of a collection of self-contained works by different authors.
3836
3837 \subsection{Works in a mixed collection}
3838
3839 %<n|m>\spec{Author, \enquote{Title}, \lit{in} Editors (\lit{eds.}), \emph{BookTitle} (Location: Publisher, Year), Pages.}
3840 %<a|y>\spec{Author (Year), \enquote{Title}, \lit{in} Editors (\lit{eds.}), \emph{BookTitle} (Location: Publisher), Pages.}
3841
3842 %</n|m|a|y>
3843 %<*n|m>
3844 \begin{bibexbox}<OGS \S15.3>
3845 {shearman1993vsf}
3846 John Shearman, \enquote{The Vatican Stanze: Functions and Decoration}, in George Holmes (ed.), \emph{Art and Politics in Renaissance Italy: British Academy Lectures} (Oxford: Clarendon Press, 1993), 185–240.
3847 \tcblower
3848 \begin{Verbatim}
3849 %</n|m>
3850 %<*n|m|bib>
3851 @incollection{shearman1993vsf,
3852 author = {John Shearman},
3853 title = {The Vatican Stanze},
3854 subtitle = {Functions and Decoration},
3855 editor = {George Holmes},
3856 booktitle = {Art and Politics in Renaissance Italy},
3857 booksubtitle = {British Academy Lectures},
3858 location = {Oxford},
3859 publisher = {Clarendon Press},
3860 date = {1993},
3861 pages = {185-240}}
3862 %</n|m|bib>
3863 %<*n|m>
3864 \end{Verbatim}
3865 \end{bibexbox}
3866
3867 %</n|m>
3868 %<*a|y>
3869 \begin{bibexbox}<NHR \S17.3.2>
3870 {magarey1988ect}
3871 Magarey, M. E. (1988), \enquote{Examination of the Cervical and Thoracic Spine}, in R. Grant (ed.), \emph{Physical Therapy of the Cervical and Thoracic Spine} (New York: Churchill Livingstone), 81–109.
3872 \tcblower
3873 \begin{Verbatim}
3874 %</a|y>
3875 %<*a|y|bib>
3876 @incollection{magarey1988ect,
3877 author = {M. E. Magarey},
3878 date = {1988},
3879 title = {Examination of the Cervical and Thoracic Spine},
3880 editor = {R. Grant},
3881 booktitle = {Physical Therapy of the Cervical and Thoracic Spine},
3882 location = {New York},
3883 publisher = {Churchill Livingstone},
3884 pages = {81-109}}
3885 %</a|y|bib>
3886 %<*a|y>
3887 \end{Verbatim}
3888 \end{bibexbox}
3889
3890 \begin{bibexbox}<NHR \S17.3.2*>
3891 {jessop1997gcc}
3892 Jessop, B. (1997), \enquote{The Governance of Complexity and Complexity of Governance}, in A. Amin and J. Hausner (eds.), \emph{Beyond Markets and Hierarchy} (Aldershot: Edward Elgar).
3893 \tcblower
3894 \begin{Verbatim}
3895 %</a|y>
3896 %<*a|y|bib>
3897 @incollection{jessop1997gcc,
3898 author = {Bob Jessop},
3899 date = {1997},
3900 title = {The Governance of Complexity and Complexity of Governance},
3901 editor = {Ash Amin and Jerzy Hausner},
3902 booktitle = {Beyond Markets and Hierarchy},
3903 location = {Aldershot},
3904 publisher = {Edward Elgar}}
3905 %</a|y|bib>
3906 %<*a|y>
3907 \end{Verbatim}
3908 \end{bibexbox}
3909
3910 %</a|y>
3911 %<*n|m|a|y>
3912
3913 \subsection{Works by the editor in a mixed collection}
3914
3915 %<n|m>\spec{Author, \enquote{Title}, \lit{in id.} (\lit{ed.}), \emph{BookTitle} (Location: Publisher, Year), Pages.}
3916 %<a|y>\spec{Author (Year), \enquote{Title}, \lit{in id.} (\lit{ed.}), \emph{BookTitle} (Location: Publisher), Pages.}
3917
3918 \tip{If you provide the same values for \code{author} and \code{editor}, the editor name will replaced by \enquote{id.}\slash \enquote{ead.}\slash \enquote{eid.}\slash \enquote{eaed.} Use the \code{gender} field to select which is used.}
3919
3920 \begin{bibexbox}
3921 %<n|m><OGS \S15.3>
3922 %<a|y><OGS \S15.3\textdagger>
3923 {todd1974dhp}
3924 %<n|m>W. B. Todd, \enquote{David Hume: A Preliminary Bibliography}, in id. (ed.), \emph{Hume and the Enlightenment: Essays Presented to Ernest Campbell Mossner} (Edinburgh: Edinburgh University Press, 1974).
3925 %<a|y>Todd, W. B. (1974), \enquote{David Hume: A Preliminary Bibliography}, in id. (ed.), \emph{Hume and the Enlightenment: Essays Presented to Ernest Campbell Mossner} (Edinburgh: Edinburgh University Press).
3926 \tcblower
3927 \begin{Verbatim}
3928 %</n|m|a|y>
3929 @incollection{todd1974dhp,
3930 author = {W. B. Todd},
3931 gender = {sm},
3932 title = {David Hume},
3933 subtitle = {A Preliminary Bibliography},
3934 editor = {W. B. Todd},
3935 booktitle = {Hume and the Enlightenment},
3936 booksubtitle = {Essays Presented to Ernest Campbell Mossner},
3937 location = {Edinburgh},
3938 publisher = {Edinburgh University Press},
3939 date = {1974}}
3940 %<*n|m|a|y>
3941 \end{Verbatim}
3942 \end{bibexbox}
3943
3944
3945 \section{Anthologies of independently published works}
3946
3947 Biblatex provides the \code{bookinbook} entry type for citing a part of an anthology that has previously been published as a book in its own right. The main difference from \code{inbook} is how the original publication information is handled.
3948
3949 \subsection{Later version more accessible}
3950
3951 \tip{Use \code{origdate} to give the date of original publication.}
3952
3953 \begin{bibexbox}
3954 %<n|m><OGS \S15.3*>
3955 %<a|y><OGS \S15.3*\textdagger>
3956 {frege1892osr}
3957 %<n|m>G. Frege, \enquote{On Sense and Reference}, in id., \emph{Philosophical Writings}, ed. and trans. P. T. Geach and M. Black (Oxford: Blackwell, 1952) (originally pub. 1892).
3958 %<a|y>Frege, G. (1892), \enquote{On Sense and Reference}, in id., \emph{Philosophical Writings}, ed. and trans. P. T. Geach and M. Black (Oxford: Blackwell, 1952).
3959 \tcblower
3960 \begin{Verbatim}
3961 %</n|m|a|y>
3962 @bookinbook{frege1892osr,
3963 author = {G. Frege},
3964 gender = {sm},
3965 title = {On Sense and Reference},
3966 bookauthor = {G. Frege},
3967 booktitle = {Philosophical Writings},
3968 translator = {P. T. Geach and M. Black},
3969 editor = {P. T. Geach and M. Black},
3970 location = {Oxford},
3971 publisher = {Blackwell},
3972 date = {1952},
3973 origdate = {1892}}
3974 %<*n|m|a|y>
3975 \end{Verbatim}
3976 \end{bibexbox}
3977
3978 \info{In the \emph{Oxford Guide to Style}, the above example has the string \enquote{trans.\@ and ed.\@} in place of \enquote{ed.\@ and trans.\@};
3979 to use this phrase in all entries, use the regular \pkg{biblatex} command to reset the string:}
3980 \begin{tcblisting}{listing only,left skip=2em}
3981 \DefineBibliographyStrings{english}{byeditortr={trans\adddotspace and ed\adddot}}
3982 \end{tcblisting}
3983
3984 \subsection{Both versions equally accessible}
3985
3986 \tip{Put the key of the original work in \code{related}, and in \code{relatedtype} use the keyword \code{reprintfrom}.}
3987
3988 \begin{bibexbox}
3989 %<n|m><OGS \S15.3>
3990 %<a|y><OGS \S15.3\textdagger>
3991 {owen1986pi}
3992 %<n|m>G. E. L. Owen, \enquote{Philosophical Invective}, in id., \emph{Logic, Science and Dialectic}, ed. M. Nussbaum (Ithaca, NY: Cornell University Press, 1986), 347–64. From \emph{Oxford Studies in Ancient Philosophy}, 1 (1983), 1–25.
3993 %<a|y>Owen, G. E. L. (1986), \enquote{Philosophical Invective}, in id., \emph{Logic, Science and Dialectic}, ed. M. Nussbaum (Ithaca, NY: Cornell University Press), 347–64. From \emph{Oxford Studies in Ancient Philosophy}, 1 (1983): 1–25.
3994 \tcblower
3995 \begin{Verbatim}
3996 %</n|m|a|y>
3997 @bookinbook{owen1986pi,
3998 author = {G. E. L. Owen},
3999 gender = {sm},
4000 title = {Philosophical Invective},
4001 booktitle = {Logic, Science and Dialectic},
4002 bookauthor = {G. E. L. Owen},
4003 editor = {M. Nussbaum},
4004 location = {Ithaca, NY},
4005 publisher = {Cornell University Press},
4006 date = {1986},
4007 pages = {347-364},
4008 related = {owen1983pi},
4009 relatedtype = {reprintfrom}}
4010 @article{owen1983pi,
4011 author = {G. E. L. Owen},
4012 title = {Philosophical Invective},
4013 journaltitle = {Oxford Studies in Ancient Philosophy},
4014 volume = {1},
4015 date = {1983},
4016 pages = {1-25}}
4017 %<*n|m|a|y>
4018 \end{Verbatim}
4019 \end{bibexbox}
4020
4021 \section{Articles in yearbooks and works of reference}
4022
4023 Yearbooks may be treated either as collections or periodicals; the distinction boils down to whether you want to print the location and publisher.
4024
4025 The \emph{Oxford Guide to Style} suggests citing entries in dictionaries and encyclopaedias using a postnote like \code{[s.v.\@ `Tawdry']}, but for online works gives a format rather similar to yearbooks, that is, without \enquote{in}.
4026
4027 \tip{To omit the \enquote{in} before the book title, either use the \code{inreference} entry type without specifying an editor, or use the \code{incollection} type with an \code{entrysubtype} of \code{yearbook}.}
4028
4029 \begin{bibexbox}
4030 %<n|m><OGS \S15.3>
4031 %<a|y><OGS \S15.3\textdagger>
4032 {dahlhaus1971mmf}
4033 %<n|m>Carl Dahlhaus, \enquote{Miszellen zur Musiktheorie des 15.\@ Jahrhunderts}, \emph{Jahrbuch des Staatlichen Instituts für Musikforschung Preußischer Kulturbesitz, 1970} (Berlin, 1971), 21–33.
4034 %<a|y>Dahlhaus, C. (1971), \enquote{Miszellen zur Musiktheorie des 15.\@ Jahrhunderts}, \emph{Jahrbuch des Staatlichen Instituts für Musikforschung Preußischer Kulturbesitz, 1970} (Berlin), 21–33.
4035 \tcblower
4036 \begin{Verbatim}
4037 %</n|m|a|y>
4038 @inreference{dahlhaus1971mmf,
4039 author = {Carl Dahlhaus},
4040 title = {Miszellen zur Musiktheorie des 15.\@ Jahrhunderts},
4041 booktitle = {Jahrbuch des Staatlichen Instituts für Musikforschung Preußischer Kulturbesitz,
4042 1970},
4043 location = {Berlin},
4044 date = {1971},
4045 pages = {21-33}}
4046 %<*n|m|a|y>
4047 \end{Verbatim}
4048 \end{bibexbox}
4049
4050
4051 \section{Supplementary works in books and collections}
4052
4053 If the work is headed \enquote{Introduction}, \enquote{Foreword}, \enquote{Afterword}, or similar,
4054 this is technically a descriptor rather than a title.
4055
4056 \tip{If the work has a true title, the descriptor goes in the \code{note} field.
4057 If it doesn't, the descriptor goes in the \code{title} field; annotate the field with the keyword \code{descriptor} to correct the formatting.
4058 Alternatively, use the (non-standard) \code{descriptor} field for the descriptor in all cases, and \pkg[biblatex]{oxref} will take care of this for you.}
4059
4060 \begin{bibexbox}
4061 %<n|m><NHR \S18.2.6*>
4062 %<a|y><NHR \S18.2.6*\textdagger>
4063 {gill1987intro}
4064 %<n|m>Roma Gill, introduction in \emph{The Complete Works of Christopher Marlow}, i (Oxford, 1987; repr.\@ 2001).
4065 %<a|y>Gill, R. (1987), introduction in \emph{The Complete Works of Christopher Marlow}, i (Oxford; repr.\@ 2001).
4066 \tcblower
4067 \begin{Verbatim}
4068 %</n|m|a|y>
4069 @suppbook{gill1987intro,
4070 author = {Roma Gill},
4071 title = {introduction},
4072 title+an = {=descriptor},
4073 booktitle = {The Complete Works of Christopher Marlow},
4074 volume = {1},
4075 origlocation = {Oxford},
4076 origdate = {1987},
4077 edition = {reprint},
4078 date = {2001}}
4079 %<*n|m|a|y>
4080 \end{Verbatim}
4081 \end{bibexbox}
4082
4083 \begin{bibexbox}
4084 {atwan2000fw}
4085 (not in book)
4086 \tcblower
4087 \begin{Verbatim}
4088 %</n|m|a|y>
4089 @suppcollection{atwan2000fw,
4090 author = {Robert Atwan},
4091 title = {foreword},
4092 title+an = {=descriptor},
4093 address = {Boston},
4094 booktitle = {The Best American Essays of the Century},
4095 date = {2000},
4096 editor = {Joyce Carol Oates and Robert Atwan},
4097 publisher = {Houghton},
4098 pages = {x-xvi}}
4099 %<*n|m|a|y>
4100 \end{Verbatim}
4101 \end{bibexbox}
4102
4103 It is quite rare for such items to have a true title in addition, so previous
4104 versions of \pkg[biblatex]{oxref} treated all titles of \texttt{suppbook}
4105 entries as descriptors.
4106
4107 \tip{To restore the previous behaviour, include the following code:}
4108
4109 \begin{tcblisting}{listing only}
4110 \DeclareFieldFormat[suppbook]{title}{#1}
4111 \end{tcblisting}
4112
4113 \chapter{Works presented at meetings}\label{sec:proceedings}
4114 \chapterprecis{proceedings, mvproceedings, inproceedings, unpublished}
4115
4116 \section{Single volume proceedings}
4117
4118 The \code{proceedings} entry type is intended for a set of conference papers that have been collected together into a single volume.
4119
4120 %<n|m>\spec{\emph{Title}, \lit{ed.} Editor (Location: Publisher, Year).}
4121 %<a|y>\spec{\emph{Title} (Year), \lit{ed.} Editor (Location: Publisher).}
4122
4123 \begin{bibexbox}
4124 %<n|m><OGS \S15.2.12>
4125 %<a|y><OGS \S15.2.12\textdagger>
4126 {icp1975pic}
4127 %<n|m>\emph{Proceedings of the XIV International Congress of Papyrologists: Oxford, 24–31 July 1974} (London, 1975).
4128 %<a|y>\emph{Proceedings of the XIV International Congress of Papyrologists: Oxford, 24–31 July 1974} (1975) (London).
4129 \tcblower
4130 \begin{Verbatim}
4131 %</n|m|a|y>
4132 @proceedings{icp1975pic,
4133 title = {Proceedings of the {XIV} {International} {Congress} of {Papyrologists}},
4134 subtitle = {{Oxford}, 24--31 {July} 1974},
4135 location = {London},
4136 date = {1975}}
4137 %<*n|m|a|y>
4138 \end{Verbatim}
4139 \end{bibexbox}
4140
4141 \info{The \code{organization} is automatically converted into an \code{author}.}
4142
4143 %<*n>
4144 \begin{egcite}{\dots Imperial College Bookstall, 1922), 1.52–3}
4145 \cite[1.52-3]{iau1922tia}
4146 \end{egcite}
4147 %</n>
4148 %<*m|a>
4149 \begin{egcite}{}
4150 \textcite[1.52-3]{iau1922tia}
4151 \end{egcite}
4152 %</m|a>
4153 %<*y>
4154 \begin{egcite}{}
4155 \parencite[1.52-3]{iau1922tia}
4156 \end{egcite}
4157 %</y>
4158
4159 \begin{bibexbox}
4160 %<n|m><OGS \S15.2.13>
4161 %<a|y><OGS \S15.2.13\textdagger>
4162 {iau1922tia}
4163 %<n|m>International Astronomical Union, \emph{Transactions of the International Astronomical Union, Rome}, 12–20 May 1922 (London: Imperial College Bookstall, 1922).
4164 %<a|y>International Astronomical Union (1922), \emph{Transactions of the International Astronomical Union, Rome}, 12–20 May 1922 (London: Imperial College Bookstall).
4165 \tcblower
4166 \begin{Verbatim}
4167 %</n|m|a|y>
4168 @proceedings{iau1922tia,
4169 organization = {{International Astronomical Union}},
4170 title = {Transactions of the {International} {Astronomical} {Union}, {Rome}},
4171 eventdate = {1922-05-12/1922-05-20},
4172 location = {London},
4173 publisher = {Imperial College Bookstall},
4174 date = {1922}}
4175 %<*n|m|a|y>
4176 \end{Verbatim}
4177 \end{bibexbox}
4178
4179 Sometimes the title of the proceedings does not relate to the conference; in which case the following form might be used:
4180
4181 %<n|m>\spec{\emph{Title}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher, Year).}
4182 %<a|y>\spec{\emph{Title} (Year), EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher).}
4183
4184 \begin{bibexbox}
4185 {ecdl2009}
4186 (not in book)
4187 \tcblower
4188 \begin{Verbatim}
4189 %</n|m|a|y>
4190 @proceedings{ecdl2009,
4191 editor = {Maristella Agosti and José Borbinha and Sarantos Kapidakis and Christos
4192 Papatheodorou and Giannis Tsakonas},
4193 title = {Research and Advanced Technology for Digital Libraries},
4194 eventtitle = {13th European Conference, ECDL 2009},
4195 venue = {Corfu, Greece},
4196 eventdate = {2009-09-27/2009-10-02},
4197 series = {Lecture Notes in Computer Science},
4198 number = {5714},
4199 location = {Berlin},
4200 publisher = {Springer},
4201 date = {2009}}
4202 %<*n|m|a|y>
4203 \end{Verbatim}
4204 \end{bibexbox}
4205
4206 \section{Multi-volume proceedings}
4207
4208 \textsf{Biblatex} provides \code{mvproceedings} for multi-volume proceedings.
4209 The examples here are a combination of Oxford style for proceedings and multi-volume books.
4210
4211 \subsection{All volumes}
4212
4213 %<n|m>\spec{\emph{Title}, EventTitle, Venue, ConfDate, \lit{ed.} Editor, n \lit{vols.} (Series, Number; Location: Publisher, Year).}
4214 %<a|y>\spec{\emph{Title} (Year), EventTitle, Venue, ConfDate, \lit{ed.} Editor, n \lit{vols.} (Series, Number; Location: Publisher).}
4215
4216 \begin{bibexbox}
4217 {iced2009}
4218 (not in book)
4219 \tcblower
4220 \begin{Verbatim}
4221 %</n|m|a|y>
4222 @mvproceedings{iced2009,
4223 title = {Proceedings of the 17th International Conference on Engineering Design (ICED ’09)},
4224 volumes = {10},
4225 editor = {Margareta Norell Bergendahl and Martin Grimheden and Larry Leifer},
4226 venue = {Stanford, CA},
4227 eventdate = {2009-08-24/2009-08-27},
4228 location = {Glasgow},
4229 publisher = {Design Society},
4230 date = {2009},
4231 isbn = {978-1-904670-12-4}}
4232 %<*n|m|a|y>
4233 \end{Verbatim}
4234 \end{bibexbox}
4235
4236 \subsection{One volume}
4237
4238 %<n|m>\spec{\emph{Title}, VolNo: \emph{VolTitle}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher, Year).}
4239 %<a|y>\spec{\emph{VolTitle} (Year), VolNo \lit{of} \emph{Title}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher).}
4240
4241 \begin{bibexbox}
4242 {iced2009dik}
4243 (not in book)
4244 \tcblower
4245 \begin{Verbatim}
4246 %</n|m|a|y>
4247 @mvproceedings{iced2009dik,
4248 maintitle = {Proceedings of the 17th International Conference on Engineering Design (ICED ’09)},
4249 title = {Design Information and Knowledge},
4250 volume = {8},
4251 editor = {Margareta Norell Bergendahl and Martin Grimheden and Larry Leifer},
4252 venue = {Stanford, CA},
4253 eventdate = {2009-08-24/2009-08-27},
4254 location = {Glasgow},
4255 publisher = {Design Society},
4256 date = {2009},
4257 isbn = {978-1-904670-12-4}}
4258 %<*n|m|a|y>
4259 \end{Verbatim}
4260 \end{bibexbox}
4261
4262 \section{Published conference paper}
4263
4264 The \code{inproceedings} entry type is intended for a conference paper published as part of a proceedings volume. For papers that have not been collected into a proceedings volume, or presentation slide sets, use the \code{unpublished} entry type instead (see below).
4265
4266 %<n|m>\spec{Author, \enquote{Title}, \lit{in} \emph{BookTitle}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher, Year).}
4267 %<a|y>\spec{Author (Year), \enquote{Title}, \lit{in} \emph{BookTitle}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher).}
4268
4269 \begin{bibexbox}
4270 {tonkin.strelnikov2009iem}
4271 (not in book)
4272 \tcblower
4273 \begin{Verbatim}
4274 %</n|m|a|y>
4275 @inproceedings{tonkin.strelnikov2009iem,
4276 author = {Emma Tonkin and Alexey Strelnikov},
4277 title = {Information Environment Metadata Schema Registry},
4278 editor = {Maristella Agosti and José Borbinha and Sarantos Kapidakis and Christos Papatheodorou and Giannis Tsakonas},
4279 booktitle = {Research and Advanced Technology for Digital Libraries},
4280 eventtitle = {13th European Conference, ECDL 2009},
4281 venue = {Corfu, Greece},
4282 eventdate = {2009-09-27/2009-10-02},
4283 series = {Lecture Notes in Computer Science},
4284 number = {5714},
4285 location = {Berlin},
4286 publisher = {Springer},
4287 date = {2009},
4288 pages = {487-488},
4289 isbn = {978-3-642-04345-1},
4290 issn = {0302-9743}}
4291 %<*n|m|a|y>
4292 \end{Verbatim}
4293 \end{bibexbox}
4294
4295 %<n|m>\spec{Author, \enquote{Title}, \lit{in} \emph{BookTitle}, EventTitle, Venue, ConfDate, \lit{ed.} Editor, n \lit{vols.} (Series, Number; Location: Publisher, Year), VolNo. Pages.}
4296 %<a|y>\spec{Author (Year), \enquote{Title}, \lit{in} \emph{BookTitle}, EventTitle, Venue, ConfDate, \lit{ed.} Editor, n \lit{vols.} (Series, Number; Location: Publisher), VolNo. Pages.}
4297
4298 \begin{bibexbox}
4299 {ding.etal2009sfc}
4300 (not in book)
4301 \tcblower
4302 \begin{Verbatim}
4303 %</n|m|a|y>
4304 @inproceedings{ding.etal2009sfc,
4305 author = {Lian Ding and Alex Ball and Manjula Patel and Jason Matthews and Glen Mullineux},
4306 title = {Strategies for the Collaborative Use of CAD Product Models},
4307 maintitle = {Proceedings of the 17th International Conference on Engineering Design (ICED ’09)},
4308 booktitle = {Design Information and Knowledge},
4309 volume = {8},
4310 editor = {Margareta Norell Bergendahl and Martin Grimheden and Larry Leifer},
4311 venue = {Stanford, CA},
4312 eventdate = {2009-08-24/2009-08-27},
4313 location = {Glasgow},
4314 publisher = {Design Society},
4315 date = {2009},
4316 pages = {123-134},
4317 isbn = {978-1-904670-12-4},
4318 url = {http://opus.bath.ac.uk/14285}}
4319 %<*n|m|a|y>
4320 \end{Verbatim}
4321 \end{bibexbox}
4322
4323 \section{Published orations, addresses, lectures, and speeches}
4324
4325 %<n|m>\spec{Author, \emph{Title}, Type, Venue, Date (Location: Publisher, Year).}
4326 %<a|y>\spec{Author (Year), \emph{Title}, Type, Venue, Date (Location: Publisher).}
4327
4328 \begin{bibexbox}
4329 %<n|m><OGS \S15.6>
4330 %<a|y><OGS \S15.6\textdagger>
4331 {gombrich1957as}
4332 %<n|m>E. H. Gombrich, \emph{Art and Scholarship}, Inaugural Lecture, University College London, 14 Feb. 1957 (London: H. K. Lewis, 1957).
4333 %<a|y>Gombrich, E. H. (1957), \emph{Art and Scholarship}, Inaugural Lecture, University College London, 14 Feb. 1957 (London: H. K. Lewis).
4334 \tcblower
4335 \begin{Verbatim}
4336 %</n|m|a|y>
4337 @proceedings{gombrich1957as,
4338 author = {E. H. Gombrich},
4339 title = {Art and Scholarship},
4340 eventtitle = {Inaugural Lecture},
4341 venue = {University College London},
4342 eventdate = {1957-02-14},
4343 location = {London},
4344 publisher = {H. K. Lewis},
4345 date = {1957}}
4346 %<*n|m|a|y>
4347 \end{Verbatim}
4348 \end{bibexbox}
4349
4350 \tip{Use the \texttt{eventtitle} field to indicate the type of the oration.}
4351
4352 \section{Unpublished conference paper}
4353
4354 %<n|m>\spec{Author, \enquote{Title}, \lit{paper given at the} ConfTitle, Venue, EventDate.}
4355 %<a|y>\spec{Author (Year), \enquote{Title}, \lit{paper given at the} ConfTitle, Venue, EventDate.}
4356
4357 %</n|m|a|y>
4358 %<*n|m>
4359 \begin{bibexbox}<OGS \S15.6>
4360 {holfordstrevens1999hlm}
4361 Leofranc Holford-Strevens, \enquote{Humanism and the Language of Music Theory Treatises}, paper given at the 65th Annual Meeting of the American Musicological Society, Kansas City, MO, 4–7 Nov. 1999.
4362 \tcblower
4363 \begin{Verbatim}
4364 %</n|m>
4365 %<*n|m|bib>
4366 @unpublished{holfordstrevens1999hlm,
4367 author = {Leofranc Holford-Strevens},
4368 title = {Humanism and the Language of Music Theory Treatises},
4369 howpublished = {paper given at the 65th Annual Meeting of the American Musicological Society},
4370 location = {Kansas City, MO},
4371 date = {1999-11-04/1999-11-07}}
4372 %</n|m|bib>
4373 %<*n|m>
4374 \end{Verbatim}
4375 \end{bibexbox}
4376
4377 %</n|m>
4378 %<*a|y>
4379 \begin{bibexbox}<OGS \S15.19.2>
4380 {mason.etal1984nns}
4381 Mason, J. B., Habicht, J. P., and Tabatabai, H. (1984), \enquote{Notes on Nutritional Surveillance}, paper delivered to the WHO conference.
4382 \tcblower
4383 \begin{Verbatim}
4384 %</a|y>
4385 %<*a|y|bib>
4386 @unpublished{mason.etal1984nns,
4387 author = {J. B. Mason, and J. P. Habicht and H. Tabatabai},
4388 date = {1984},
4389 title = {Notes on Nutritional Surveillance},
4390 howpublished = {paper delivered to the WHO conference}}
4391 %</a|y|bib>
4392 %<*a|y>
4393 \end{Verbatim}
4394 \end{bibexbox}
4395
4396 %</a|y>
4397 %<*n|m|a|y>
4398
4399 \section{Unpublished orations, addresses, lectures, and speeches}
4400
4401 %<n|m>\spec{Author, \enquote{Title}, Description.}
4402 %<a|y>\spec{Author (Year), \enquote{Title}, Description.}
4403
4404 %</n|m|a|y>
4405 %<*a|y>
4406 \begin{bibexbox}<OGS \S15.19.2>
4407 {pritchard.pritchard1990ard}
4408 Pritchard, E., and Pritchard, J. (1990), \enquote{A Reply to Drèze}, unpub.\@ paper.
4409 \tcblower
4410 \begin{Verbatim}
4411 %</a|y>
4412 %<*a|y|bib>
4413 @unpublished{pritchard.pritchard1990ard,
4414 author = {E. Pritchard and J. Pritchard},
4415 date = {1990},
4416 title = {A Reply to Drèze},
4417 howpublished = {unpub.\@ paper}}
4418 %</a|y|bib>
4419 %<*a|y>
4420 \end{Verbatim}
4421 \end{bibexbox}
4422
4423 %</a|y>
4424 %<*n|m|a|y>
4425
4426
4427 \chapter{Grey literature}\label{sec:report}
4428 \chapterprecis{booklet, manual, patent, report, thesis, standard}
4429
4430 \section{One-off reports}
4431
4432 %<n|m>\spec{Author, \emph{Title} (Location: Institution, Year).}
4433 %<a|y>\spec{Author (Year), \emph{Title} (Location: Institution).}
4434
4435 \begin{bibexbox}
4436 %<n|m><OGS \S15.2.13>
4437 %<a|y><OGS \S15.2.13\textdagger>
4438 {botswana1980hdr}
4439 %<n|m>Government of Botswana, \emph{A Human Drought Relief Programme for Botswana} (Gabarone: Ministry of Local Government and Lands, 1980).
4440 %<a|y>Government of Botswana (1980), \emph{A Human Drought Relief Programme for Botswana} (Gabarone: Ministry of Local Government and Lands).
4441 \tcblower
4442 \begin{Verbatim}
4443 %</n|m|a|y>
4444 @report{botswana1980hdr,
4445 author = {{Government of Botswana}},
4446 title = {A Human Drought Relief Programme for Botswana},
4447 location = {Gabarone},
4448 institution = {Ministry of Local Government and Lands},
4449 date = {1980}}
4450 %<*n|m|a|y>
4451 \end{Verbatim}
4452 \end{bibexbox}
4453
4454 \tip{If the report does not specify an author, give the publishing institution in the \texttt{author} field.
4455 Some examples in the \emph{Oxford Guide to Style} repeat the institution in the publisher slot
4456 (i.e.\@ the \texttt{institution} field) and some do not.}
4457
4458 %</n|m|a|y>
4459 %<*n|m>
4460 \begin{bibexbox}<OGS \S15.2.13>
4461 {pac1988upt}
4462 Penal Affairs Consortium, \emph{An Unsuitable Place for Treatment: Diverting Mentally Disordered Offenders from Custody} (London, 1988).
4463 \tcblower
4464 \begin{Verbatim}
4465 %</n|m>
4466 %<*n|m|bib>
4467 @report{pac1988upt,
4468 author = {{Penal Affairs Consortium}},
4469 title = {An Unsuitable Place for Treatment},
4470 subtitle = {Diverting Mentally Disordered Offenders from Custody},
4471 location = {London},
4472 date = {1988}}
4473 %</n|m|bib>
4474 %<*n|m>
4475 \end{Verbatim}
4476 \end{bibexbox}
4477
4478 \begin{bibexbox}<NHR \S18.8.5>
4479 {unesco2012unw}
4480 UNESCO, \emph{The United Nations World Water Development Report 4}, vol. 1: \emph{Managing Water under Uncertainty and Risk} (Paris: UNESCO, 2012), \url{http://unesdoc.unesco.org/images/0021/002156/215644e.pdf}, accessed 9 Nov. 2013.
4481 \tcblower
4482 \begin{Verbatim}
4483 %</n|m>
4484 %<*n|m|bib>
4485 @report{unesco2012unw,
4486 author = {UNESCO},
4487 maintitle = {The United Nations World Water Development Report 4},
4488 volume = {1},
4489 title = {Managing Water under Uncertainty and Risk},
4490 location = {Paris},
4491 institution = {UNESCO},
4492 date = {2012},
4493 url = {http://unesdoc.unesco.org/images/0021/002156/215644e.pdf},
4494 urldate = {2013-11-09}}
4495 %</n|m|bib>
4496 %<*n|m>
4497 \end{Verbatim}
4498 \end{bibexbox}
4499
4500 %</n|m>
4501 %<*a|y>
4502 \begin{bibexbox}<OGS \S15.9.1>
4503 {who1986nde}
4504 WHO (World Health Organization) (1986), \emph{Nutrition and Development in East Africa} (Geneva: WHO)
4505 \tcblower
4506 \begin{Verbatim}
4507 %</a|y>
4508 %<*a|y|bib>
4509 @report{who1986nde,
4510 author = {{World Health Organization}},
4511 shortauthor = {WHO},
4512 title = {Nutrition and Development in {East Africa}},
4513 date = {1986},
4514 location = {Geneva},
4515 institution = {WHO}}
4516 %</a|y|bib>
4517 %<*a|y>
4518 \end{Verbatim}
4519 \end{bibexbox}
4520
4521 \begin{bibexbox}<NHR \S17.3.2*>
4522 {cnnr2008tut}
4523 CNNR/GMH (Comisión Nacional de Reparación y Reconciliación y Grupo de Memoria Historica) (2008), \emph{Trujilla: Una Tragedia que no Cesa} [\emph{Trujilla: A Tragedy Without End}] (Bogotá, Columbia: CNRR).
4524 \tcblower
4525 \begin{Verbatim}
4526 %</a|y>
4527 %<*a|y|bib>
4528 @report{cnnr2008tut,
4529 shortauthor = {CNNR/GMH},
4530 author = {{Comisión Nacional de Reparación y Reconciliación y Grupo de Memoria Historica}},
4531 date = {2008},
4532 title = {Trujilla},
4533 subtitle = {Una Tragedia que no Cesa},
4534 titleaddon = {\printtext[title]{{Trujilla:} {A} Tragedy Without End}},
4535 location = {Bogotá, Columbia},
4536 institution = {CNRR}}
4537 %</a|y|bib>
4538 %<*a|y>
4539 \end{Verbatim}
4540 \end{bibexbox}
4541
4542 %</a|y>
4543 %<*n|m|a|y>
4544
4545 \section{Reports with a type or series}
4546
4547 \tip{The number of a report will only be printed if you also supply a type or
4548 series, or both. The difference between the two is that the series will be
4549 separated from the (type and) number by a comma, while only a space
4550 separates the type and number. In addition, if you supply a series but no
4551 type, the number will be prefixed by `No.\@' or the localized equivalent.}
4552
4553 %<n|m>\spec{Author, \emph{Title}, Series, Type Number (Location: Institution, Year).}
4554 %<a|y>\spec{Author (Year), \emph{Title}, Series, Type Number (Location: Institution).}
4555
4556 %</n|m|a|y>
4557 %<*a|y>
4558 \begin{bibexbox}<OGS \S15.19.2>
4559 {opcs1979amt}
4560 %<a>Office of Population Censuses and Surveys (1979),
4561 %<y>Office of Population Censuses and Surveys (1979\emph{a}),
4562 \emph{Area Mortality Tables: The Registrar-General's Decennial Supplement for England and Wales 1969–1973}, Series DS, No.~3 (London)
4563 \tcblower
4564 \begin{Verbatim}
4565 %</a|y>
4566 %<*a|y|bib>
4567 @report{opcs1979amt,
4568 author = {{Office of Population Censuses and Surveys}},
4569 date = {1979},
4570 title = {Area Mortality Tables},
4571 subtitle = {The Registrar-General's Decennial Supplement for England and Wales 1969–1973},
4572 series = {Series DS},
4573 number = {3},
4574 location = {London}}
4575 %</a|y|bib>
4576 %<*a|y>
4577 \end{Verbatim}
4578 \end{bibexbox}
4579
4580 \begin{bibexbox}<OGS \S15.19.2>
4581 {opcs1979pnc}
4582 %<a>Office of Population Censuses and Surveys (1979),
4583 %<y>Office of Population Censuses and Surveys (1979\emph{b}),
4584 \emph{Projections of the New Commonwealth and Pakistani Population}, OPCS Monitor PP2 79/1 (London)
4585 \tcblower
4586 \begin{Verbatim}
4587 %</a|y>
4588 %<*a|y|bib>
4589 @report{opcs1979pnc,
4590 author = {{Office of Population Censuses and Surveys}},
4591 date = {1979},
4592 title = {Projections of the {New Commonwealth} and {Pakistani} Population},
4593 type = {OPCS Monitor},
4594 number = {PP2 79/1},
4595 location = {London}}
4596 %</a|y|bib>
4597 %<*a|y>
4598 \end{Verbatim}
4599 \end{bibexbox}
4600
4601 \tip{If the name of the series consists of the institution name and a type, it may make more sense to give the institution name in \code{series} rather than \code{institution}.}
4602
4603 \begin{bibexbox}(hacked)<NHR \S17.3.2*>
4604 {rosenblatt.etal1988cap}
4605 Rosenblatt, J., et al. (1988), \emph{The Common Agricultural Policy of the European Community}, International Monetary Fund, occasional paper 62 (Nov.)
4606 \tcblower
4607 \begin{Verbatim}
4608 %</a|y>
4609 %<*a|y|bib>
4610 @report{rosenblatt.etal1988cap,
4611 author = {Julius Rosenblatt and others},
4612 title = {The {Common Agricultural Policy} of the {European Community}},
4613 date = {1988-11},
4614 series = {International Monetary Fund},
4615 type = {occasional paper},
4616 number = {62}}
4617 %</a|y|bib>
4618 %<*a|y>
4619 \end{Verbatim}
4620 \end{bibexbox}
4621
4622 %</a|y>
4623 %<*n|m|a|y>%
4624
4625 \section{Jointly published reports}
4626
4627 It is more common with reports than with books for a work to be branded
4628 jointly by several issuing organizations. Neither the \emph{Oxford Guide to
4629 Style} nor \emph{New Hart's Rules} give explicit guidance on this, but I
4630 suggest handling it by giving corresponding lists as the \code{location}
4631 and \code{institution}:
4632
4633 \begin{tcblisting}{listing only}
4634 location = {Place 1 and Place 2 and Place 3},
4635 institution = {Organization 1 and Organization 2 and Organization 3},
4636 \end{tcblisting}
4637
4638 This will be printed as follows:
4639
4640 \begin{tcolorbox}
4641 (Place 1: Organization 1, Place 2: Organization 2, and Place 3: Organization 3)
4642 \end{tcolorbox}
4643
4644 \section{Theses}
4645
4646 %<n|m>\spec{Author, \enquote{Title}, Type (Institution, Year).}
4647 %<a|y>\spec{Author (Year), \enquote{Title}, Type (Institution).}
4648
4649 \begin{bibexbox}
4650 %<n|m><OGS \S15.5.1>
4651 %<a|y><OGS \S15.5.1\textdagger>
4652 {blackburn1970tlp}
4653 %<n|m>Bonnie J. Blackburn, \enquote{The Lupus Problem}, Ph.D. diss. (University of Chicago, 1970).
4654 %<a|y>Blackburn, B. J. (1970), \enquote{The Lupus Problem}, Ph.D. diss. (University of Chicago).
4655 \tcblower
4656 \begin{Verbatim}
4657 %</n|m|a|y>
4658 @thesis{blackburn1970tlp,
4659 author = {Bonnie J. Blackburn},
4660 title = {The Lupus Problem},
4661 type = {Ph.D. diss.},
4662 institution = {University of Chicago},
4663 date = {1970}}
4664 %<*n|m|a|y>
4665 \end{Verbatim}
4666 \end{bibexbox}
4667
4668 The following forms are also supported; to use them, pass the \key{thesis} option:
4669
4670 \begin{itemize}
4671 \item \key{thesis}\texttt{=}\val{in}\par
4672 %<n|m>\spec{Author, \enquote{Title} (Type, Institution, Year).}
4673 %<a|y>\spec{Author (Year), \enquote{Title} (Type, Institution).}
4674 \item \key{thesis}\texttt{=}\val{plain}\par
4675 %<n|m>\spec{Author, \enquote{Title}, Type, Institution, Year.}
4676 %<a|y>\spec{Author (Year), \enquote{Title}, Type, Institution.}
4677 \end{itemize}
4678
4679 \section{Booklets, leaflets, and other formal but unpublished texts}
4680
4681 There are no obvious examples of this kind of material in the \emph{Oxford Guide
4682 to Style} or \emph{New Hart's Rules}. I welcome suggestions for how to make the
4683 generated references more Oxford-like.
4684
4685 \begin{bibexbox}
4686 {msbh1921fvd}
4687 (not in book)
4688 \tcblower
4689 \begin{Verbatim}
4690 %</n|m|a|y>
4691 @booklet{msbh1921fvd,
4692 title = {The Facts about Venereal Diseases},
4693 date = {1921},
4694 howpublished = {distributed by the Missouri State Board of Health, Division of Venereal Diseases},
4695 location = {Jefferson City, MO}}
4696 %<*n|m|a|y>
4697 \end{Verbatim}
4698 \end{bibexbox}
4699
4700 \begin{bibexbox}
4701 {lloyds2015m}
4702 (not in book)
4703 \tcblower
4704 \begin{Verbatim}
4705 %</n|m|a|y>
4706 @booklet{lloyds2015m,
4707 author = {{Lloyds TSB Bank plc}},
4708 title = {Mortgages},
4709 date = {2015},
4710 howpublished = {obtained in Paisley branch}}
4711 %<*n|m|a|y>
4712 \end{Verbatim}
4713 \end{bibexbox}
4714
4715 \section{Patents}
4716
4717 There are no examples of patents in the \emph{Oxford Guide to Style} or
4718 \emph{New Hart's Rules}. I welcome suggestions for how to make the
4719 generated references more Oxford-like.
4720
4721 Following the conventions from \pkg{biblatex-chicago}, use \texttt{origdate} for
4722 the date the patent was filed (or the application was published), and
4723 \texttt{date} for the date the patent was finally issued or published.
4724
4725 \tip{You can override the default date descriptions with the (non-standard)
4726 \code{origdatetype} and \code{datetype} fields.}
4727
4728 \begin{bibexbox}
4729 {petroff.stapelbroek1980bib}
4730 (not in book)
4731 \tcblower
4732 \begin{Verbatim}
4733 %</n|m|a|y>
4734 @patent{petroff.stapelbroek1980bib,
4735 author = {Petroff, M.~D. and Stapelbroek, M.~G.},
4736 title = {Blocked impurity band detectors},
4737 date = {1986-02-04},
4738 origdate = {1980-10-23},
4739 type = {patentus},
4740 number = {4,586,960},
4741 location = {Washington, DC},
4742 publisher = {U.S. Patent and Trademark Office}}
4743 %<*n|m|a|y>
4744 \end{Verbatim}
4745 \end{bibexbox}
4746
4747 \begin{bibexbox}
4748 {arduengo.etal2001pmi}
4749 (not in book)
4750 \tcblower
4751 \begin{Verbatim}
4752 %</n|m|a|y>
4753 @patent{arduengo.etal2001pmi,
4754 author = {Arduengo, III, Anthony J. and Gentry, Jr., Frederick P.
4755 and Taverkere, Prakash~K. and Simmons, III, Howard E.},
4756 title = {Process for manufacture of imidazoles},
4757 year = {2001},
4758 type = {patentus},
4759 holder = {{E.~I. DuPont}},
4760 number = {6177575}}
4761 %<*n|m|a|y>
4762 \end{Verbatim}
4763 \end{bibexbox}
4764
4765 \begin{bibexbox}
4766 {pm1981opa}
4767 (not in book)
4768 \tcblower
4769 \begin{Verbatim}
4770 %</n|m|a|y>
4771 @patent{pm1981opa,
4772 author = {{Phillipp Morris Inc.}},
4773 title = {Optical perforating apparatus and system},
4774 origdate = {1981-01-07},
4775 date = {1985-05-15},
4776 type = {patenteu},
4777 number = {EP0021165}}
4778 %<*n|m|a|y>
4779 \end{Verbatim}
4780 \end{bibexbox}
4781
4782 \begin{bibexbox}
4783 {hideki1992qmc}
4784 (not in book)
4785 \tcblower
4786 \begin{Verbatim}
4787 %</n|m|a|y>
4788 @patent{hideki1992qmc,
4789 author = {U. Hideki},
4790 title = {Quadrature Modulation Circuit},
4791 type = {patentjp},
4792 number = {152932/92},
4793 date = {1992-05-20}}
4794 %<*n|m|a|y>
4795 \end{Verbatim}
4796 \end{bibexbox}
4797
4798 \section{Standards}
4799
4800 There are no examples of technical standards in the \emph{Oxford Guide
4801 to Style} or \emph{New Hart's Rules}. I welcome suggestions for how to make the
4802 generated references more Oxford-like.
4803
4804 The particular quirk with standards entries is that the number is promoted to
4805 the head of the reference if an author is not specified (or \key{useauthor} is
4806 \val{false}). If this happens, the number is copied to \code{sortkey} so the
4807 entry appears in the right place in the reference list, unless you get there
4808 first with your own value of \code{sortkey}. You may want to do this if, for
4809 example, you want \enquote{ISO 1000} to come after \enquote{ISO 999}.
4810
4811 \tip{You are encouraged to put the standards body in \code{organization}, but
4812 you can use \code{publisher} instead.}
4813
4814 \tip{The examples don't demonstrate it, but you can use the \code{version} field
4815 for the version of the standard.}
4816
4817 \begin{bibexbox}
4818 {bs5605:1990}
4819 (not in book)
4820 \tcblower
4821 \begin{Verbatim}
4822 %</n|m|a|y>
4823 @standard{bs5605:1990,
4824 sortyear = {1990},
4825 title = {Recommendations for citing and referencing published material},
4826 number = {BS~5605:1990},
4827 %<!n&!m&!y> shorthand = {BS5605},
4828 organization = {British Standards Institute}}
4829 %<*n|m|a|y>
4830 \end{Verbatim}
4831 \end{bibexbox}
4832
4833 %<*y>
4834 \begin{egcite}{}
4835 \cite{bs5605:1990}
4836 \end{egcite}
4837 %</y>
4838
4839 \begin{bibexbox}
4840 {w3c2017html5.2}
4841 (not in book)
4842 \tcblower
4843 \begin{Verbatim}
4844 %</n|m|a|y>
4845 @standard{w3c2017html5.2,
4846 title = {{HTML} 5.2},
4847 editor = {Steve Faulkner and Arron Eicholz and Travis Leithead and
4848 Alex Danilo and Sangwhan Moon},
4849 date = {2017-12-14},
4850 type = {W3C Recommendation},
4851 organization = {World Wide Web Consortium},
4852 url = {https://www.w3.org/TR/html52/},
4853 urldate = {2018-02-17}}
4854 %<*n|m|a|y>
4855 \end{Verbatim}
4856 \end{bibexbox}
4857
4858 \begin{bibexbox}
4859 {ietf.rfc1155}
4860 (not in book)
4861 \tcblower
4862 \begin{Verbatim}
4863 %</n|m|a|y>
4864 @standard{ietf.rfc1155,
4865 author = {M. T. Rose and K. McCloghrie},
4866 title = {Structure and identification of management information for {TCP/IP}-based internets},
4867 date = {1990-05},
4868 organization = {Internet Engineering Task Force},
4869 series = {Request for Comments},
4870 type = {Internet Standard},
4871 number = {RFC~1155/STD~16},
4872 doi = {10.17487/RFC1155}}
4873 %<*n|m|a|y>
4874 \end{Verbatim}
4875 \end{bibexbox}
4876
4877
4878 \chapter{Audiovisual materials}\label{sec:audiovideo}
4879 \chapterprecis{artwork, audio, inaudio, image, movie, music, inmusic, performance, video}
4880
4881 There are typically many contributors to an audiovisual work, and the priority given to each role is fluid. \pkg[biblatex]{Oxref} uses \code{author} for contributors that should go at the head of the reference, and \code{editor} for others. As well as the normal ones you can use the author\slash editor types \code{performer}, \code{conductor}, \code{director} and \code{reader}.
4882
4883 \section{Audio recordings}
4884
4885 The basic structure of audio recording entries is as follows:
4886
4887 %<n|m>\spec{Composer, \emph{Title}, Artist, RecordingDate (RecordingCompany Type Number, PublicationDate) [Medium].}
4888 %<a|y>\spec{Composer (RecordingYear), \emph{Title}, Artist, RecordingDate (RecordingCompany Type Number, PublicationDate) [Medium].}
4889
4890 If the composer's name is not of interest, it may be omitted or replaced by the artist's name.
4891 %<y>In the absence of examples to the contrary, \textsf{oxyear} uses the year of recording at the head of the reference if available, otherwise it uses the year of publication.
4892
4893 \tip{Use \code{origdate} to specify the date of recording. If you want it to be introduced by something other than the localized string \enquote{recorded}, use the (non-standard) \code{origdatetype} field%
4894 %<y>, though this will be suppressed if only the year is given%
4895 .}
4896
4897 The \emph{Oxford Guide to Style} offers several ways of expressing the recording company:
4898
4899 \begin{itemize}
4900 \item
4901 a simple label name – e.g.\@ \enquote{Columbia}, \enquote{Hyperion}, \enquote{Archiv} – followed immediately by the type or number
4902 \item
4903 a label name separated from the number by a comma, e.g.\@ \enquote{Valois,}
4904 \enquote{EMI Electrola,} \enquote{EMI Blues Series,}
4905 \item
4906 a compiling organization, semicolon, publishing company, no comma, e.g.\@ \enquote{Smithsonian Institution; Columbia}
4907 \item
4908 a publishing company, colon, label name, comma, e.g.\@ \enquote{Decca Record Company, Ltd.: Éditions de l'Oiseau-lyre,}
4909 \item
4910 a publishing company, comma, location, comma, e.g.\@ \enquote{Christophorus-Verlag Herder, Freiburg im Breisgau,}
4911 \end{itemize}
4912
4913 \emph{New Hart's Rules} sticks firmly with the first of these, so \pkg[biblatex]{oxref} makes this the easiest choice but provides workarounds to allow you to achieve most of the others if you really need to.
4914
4915 \tip{To get the normal format, put the label name in \code{publisher}, the type of release (e.g.\@ compact disc, audio cassette) in \code{type}, and the catalogue number in \code{number}. In the examples from \emph{New Hart's Rules}, the type is uniformly omitted.}
4916
4917 \tip{To put a comma between the label and the type\slash number, put the label name in \code{series} instead.}
4918
4919 \tip{If you provide both a \code{publisher} and a \code{series}, they will be separated by \cs{recordseriespunct}, which is initially set to \cs{addcomma}\cs{space}. You could set it to \cs{addcolon}\cs{space} instead to match the example.}
4920
4921 \tip{If the compiling organization is distinct from the publisher, put the former in \code{origpublisher}; it will be separated from the publisher by a semicolon.}
4922
4923 \tip{Contrary to the OGS example, but in common with other entry types, the location if provided will be printed before the publisher, separated from it by a colon. (This is why a comma is the default for \cs{recordseriespunct}.) In the absence of a publisher it will be followed by a comma.}
4924
4925 \begin{bibexbox}
4926 %<n|m><NHR \S18.7.2*>
4927 %<a|y><NHR \S18.7.2*\textdagger>
4928 {carter1991fsq}
4929 %<n|m>Elliott Carter, \emph{The Four String Quartets}, Juilliard String Quartet (Sony S2K 47229, 1991).
4930 %<a|y>Carter, E. (1991), \emph{The Four String Quartets}, Juilliard String Quartet (Sony S2K 47229).
4931 \tcblower
4932 \begin{Verbatim}
4933 %</n|m|a|y>
4934 @music{carter1991fsq,
4935 author = {Elliott Carter},
4936 title = {The Four String Quartets},
4937 editor = {{Juilliard String Quartet}},
4938 editortype = {performer},
4939 publisher = {Sony},
4940 number = {S2K 47229},
4941 date = {1991}}
4942 %<*n|m|a|y>
4943 \end{Verbatim}
4944 \end{bibexbox}
4945
4946 \begin{bibexbox}
4947 %<n|m><OGS \S15.14.1>
4948 %<a|y><OGS \S15.14.1\textdagger>
4949 {hillier1989p}
4950 %<n|m>Paul Hillier, \emph{Proensa} (ECM Records compact disc ECM 1368, 1989).
4951 %<a|y>Hillier, P. (1989), \emph{Proensa} (ECM Records compact disc ECM 1368).
4952 \tcblower
4953 \begin{Verbatim}
4954 %</n|m|a|y>
4955 @music{hillier1989p,
4956 author = {Paul Hillier},
4957 title = {Proensa},
4958 publisher = {ECM Records},
4959 type = {compact disc},
4960 number = {ECM 1368},
4961 date = {1989}}
4962 %<*n|m|a|y>
4963 \end{Verbatim}
4964 \end{bibexbox}
4965
4966 \begin{bibexbox}
4967 %<n|m><OGS \S15.14.1>
4968 %<a|y><OGS \S15.14.1\textdagger>
4969 {couperin1970pdc}
4970 %<n|m>Francois Couperin, \emph{Pièces de clavecin: Huit préludes de L'Art de toucher le clavecin. Livre I. Troisième et quatrième ordres}, Huguette Dreyfus (Valois, MB 797, 1970).
4971 %<a|y>Couperin, F. (1970), \emph{Pièces de clavecin: Huit préludes de L'Art de toucher le clavecin. Livre I. Troisième et quatrième ordres}, H. Dreyfus (Valois, MB 797).
4972 \tcblower
4973 \begin{Verbatim}
4974 %</n|m|a|y>
4975 @music{couperin1970pdc,
4976 author = {Francois Couperin},
4977 title = {Pièces de clavecin},
4978 subtitle = {Huit préludes de L'Art de toucher le clavecin. Livre I. Troisième et quatrième
4979 ordres},
4980 editor = {Huguette Dreyfus},
4981 editortype = {performer},
4982 series = {Valois},
4983 number = {MB 797},
4984 date = {1970}}
4985 %<*n|m|a|y>
4986 \end{Verbatim}
4987 \end{bibexbox}
4988
4989 \begin{bibexbox}
4990 %<n|m><OGS \S15.14.1>
4991 %<a|y><OGS \S15.14.1\textdagger>
4992 {pageNDmn}
4993 %<n|m>\emph{The Mirror of Narcissus: Songs by Guillaume de Machaut}, Gothic Voices, dir. Christopher Page (Hyperion compact disc CDA 66087).
4994 %<a|y>\emph{The Mirror of Narcissus: Songs by Guillaume de Machaut} (n.d.), Gothic Voices, dir. C. Page (Hyperion compact disc CDA 66087).
4995 \tcblower
4996 \begin{Verbatim}
4997 %</n|m|a|y>
4998 @music{pageNDmn,
4999 title = {The Mirror of Narcissus},
5000 subtitle = {Songs by Guillaume de Machaut},
5001 editor = {{Gothic Voices}},
5002 editortype = {performer},
5003 editora = {Christopher Page},
5004 editoratype = {director},
5005 publisher = {Hyperion},
5006 type = {compact disc},
5007 number = {CDA 66087}}
5008 %<*n|m|a|y>
5009 \end{Verbatim}
5010 \end{bibexbox}
5011
5012 \tip{To describe the medium in a separate note, use the \texttt{howpublished} field.}
5013
5014 \begin{bibexbox}
5015 %<n|m><NHR \S18.7.2>
5016 %<a|y><NHR \S18.7.2\textdagger>
5017 {hopkinsNDcar}
5018 %<n|m>Lightnin' Hopkins, \emph{The Complete Aladdin Recordings} (EMI Blues Series, CDP-7-96843-2) [2-vol.\@ CD set].
5019 %<a|y>Lightnin' Hopkins (n.d.), \emph{The Complete Aladdin Recordings} (EMI Blues Series, CDP-7-96843-2) [2-vol.\@ CD set].
5020 \tcblower
5021 \begin{Verbatim}
5022 %</n|m|a|y>
5023 @music{hopkinsNDcar,
5024 author = {{Lightnin’ Hopkins}},
5025 title = {The Complete Aladdin Recordings},
5026 series = {EMI Blues Series},
5027 number = {CDP-7-96843-2},
5028 howpublished = {2-vol.\@ CD set}}
5029 %<*n|m|a|y>
5030 \end{Verbatim}
5031 \end{bibexbox}
5032
5033 \tip{To describe the medium as part of the publication statement, use the \texttt{type} field.}
5034
5035 \begin{bibexbox}
5036 %<n|m><OGS \S15.14.1>
5037 %<a|y><OGS \S15.14.1\textdagger>
5038 {lewis1981lww}
5039 %<n|m>C. S. Lewis, \emph{The Lion, the Witch, and the Wardrobe}, read by Sir Michael Hordern (2 audio cassettes, TO1611, 1981).
5040 %<a|y>Lewis, C. S. (1981), \emph{The Lion, the Witch, and the Wardrobe}, read by Sir M. Hordern (2 audio cassettes, TO1611).
5041 \tcblower
5042 \begin{Verbatim}
5043 %</n|m|a|y>
5044 @audio{lewis1981lww,
5045 author = {C. S. Lewis},
5046 title = {The Lion, the Witch, and the Wardrobe},
5047 editor = {title=Sir, given=Michael, family=Hordern},
5048 editortype = {reader},
5049 type = {2 audio cassettes},
5050 number = {TO1611},
5051 date = {1981}}
5052 %<*n|m|a|y>
5053 \end{Verbatim}
5054 \end{bibexbox}
5055
5056 \subsection{Combination releases}
5057
5058 Sometimes publishers will put several works on a single release without giving it an overall title.
5059
5060 \tip{Put the subsequent composer\slash title combinations in new entries, and relate them with a \code{relatedtype} of \code{includes}.}
5061
5062 \begin{bibexbox}
5063 %<n|m><NHR \S18.7.2*>
5064 %<a|y><NHR \S18.7.2*\textdagger>
5065 {dutilleux1987as}
5066 %<n|m>Henri Dutilleux, \emph{L'Arbre des songes}, and Peter Maxwell Davies, \emph{Concerto for Violin and Orchestra}, Royal Philharmonic Orchestra, cond. André Previn, violin Isaac Stern (CBS MK 42449, 1987).
5067 %<a|y>Dutilleux, H. (1987), \emph{L'Arbre des songes}, and Maxwell Davies, P., \emph{Concerto for Violin and Orchestra}, Royal Philharmonic Orchestra, cond. A. Previn, violin I. Stern (CBS MK 42449).
5068 \tcblower
5069 \begin{Verbatim}
5070 %</n|m|a|y>
5071 @audio{dutilleux1987as,
5072 author = {Henri Dutilleux},
5073 title = {L'Arbre des songes},
5074 related = {maxwelldavies1987},
5075 relatedtype = {includes},
5076 editor = {{Royal Philharmonic Orchestra}},
5077 editortype = {performer},
5078 editora = {André Previn},
5079 editoratype = {conductor},
5080 editorb = {Isaac Stern},
5081 editorbtype = {violin},
5082 publisher = {CBS},
5083 number = {MK 42449},
5084 date = {1987}}
5085 @audio{maxwelldavies1987,
5086 author = {Maxwell Davies, Peter},
5087 title = {Concerto for Violin and Orchestra},
5088 date = {1987}}
5089 %<*n|m|a|y>
5090 \end{Verbatim}
5091 \end{bibexbox}
5092
5093 \hack{Only the primary work will show up in citations; the subsequent ones will not.
5094 If this is not what you want, you will need to use \code{shortauthor}\slash\code{shorttitle} or \code{shorthand}, or build up the citation manually with \cs{citeauthor} and the like.}
5095
5096 \info{Depending on the thrust of your document, you could remove the complication by shifting the composers into the title and putting the performers in the author position.}
5097
5098 \info{If you are only interested in one of the works in the release, you might be better off using the \code{inaudio} entry type instead (see below).}
5099
5100
5101 \subsection{Tracks from an album}
5102
5103 \tip{Use the non-standard entry types \code{inaudio} or \code{inmusic} to reference a single work within an album. Use \code{booktitle} (somewhat loosely) for the album title.}
5104
5105 \begin{bibexbox}
5106 %<n|m><NHR \S18.7.2*>
5107 %<a|y><NHR \S18.7.2*\textdagger>
5108 {davis1997sw}
5109 %<n|m>Miles Davis et al., \enquote{So What}, in \emph{Kind of Blue}, rec. 1959 (Columbia CK 64935, 1997) [CD].
5110 %<a|y>Davis, M., et al. (1959), \enquote{So What}, in \emph{Kind of Blue} (Columbia CK 64935, 1997) [CD].
5111 \tcblower
5112 \begin{Verbatim}
5113 %</n|m|a|y>
5114 @inaudio{davis1997sw,
5115 author = {Miles Davis and others},
5116 title = {So What},
5117 booktitle = {Kind of Blue},
5118 origdate = {1959},
5119 origdatetype = {rec\adddot},
5120 publisher = {Columbia},
5121 number = {CK 64935},
5122 date = {1997},
5123 howpublished = {CD}}
5124 %<*n|m|a|y>
5125 \end{Verbatim}
5126 \end{bibexbox}
5127
5128 \info{Note the use of \code{origdate} for the date of recording in this example.}
5129
5130
5131 \section{Video recordings}
5132
5133 %<n|m>\spec{\emph{Title} (Publisher, Number, Year).}
5134 %<a|y>\spec{\emph{Title} (Year) (Publisher, Number).}
5135
5136 \begin{bibexbox}
5137 %<n|m><OGS \S15.14.2>
5138 %<a|y><OGS \S15.14.2\textdagger>
5139 {bbc1987ava}
5140 %<n|m>\emph{The Ashes: Victory in Australia} (BBCV 4040, 1987).
5141 %<a|y>\emph{The Ashes: Victory in Australia} (1987) (BBCV 4040).
5142 \tcblower
5143 \begin{Verbatim}
5144 %</n|m|a|y>
5145 @video{bbc1987ava,
5146 title = {The {Ashes}},
5147 subtitle = {Victory in {Australia}},
5148 publisher = {BBCV},
5149 number = {4040},
5150 date = {1987}}
5151 %<*n|m|a|y>
5152 \end{Verbatim}
5153 \end{bibexbox}
5154
5155 %<n|m>\spec{\enquote{EpisodeTitle}, \emph{SeriesTitle} \lit{series} (Publisher, Number, Year).}
5156 %<a|y>\spec{\enquote{EpisodeTitle} (Year), \emph{SeriesTitle} \lit{series} (Publisher, Number).}
5157
5158 \tip{For an episode in a series, set the \code{entrysubtype} to \code{episode} and put the series name in \code{maintitle}.}
5159
5160 \begin{bibexbox}
5161 %<n|m><OGS \S15.14.2>
5162 %<a|y><OGS \S15.14.2\textdagger>
5163 {britt1986pho}
5164 %<n|m>\enquote{Percy and Harold and Other Stories}, \emph{Thomas the Tank Engine and Friends \textup{series}} (Britt Allcroft 5-014861-100224, 1986).
5165 %<a|y>\enquote{Percy and Harold and Other Stories} (1986), \emph{Thomas the Tank Engine and Friends \textup{series}} (Britt Allcroft 5-014861-100224).
5166 \tcblower
5167 \begin{Verbatim}
5168 %</n|m|a|y>
5169 @video{britt1986pho,
5170 entrysubtype = {episode},
5171 title = {{Percy} and {Harold} and Other Stories},
5172 maintitle = {Thomas the Tank Engine and Friends \textup{series}},
5173 publisher = {Britt Allcroft},
5174 number = {5-014861-100224},
5175 date = {1986}}
5176 %<*n|m|a|y>
5177 \end{Verbatim}
5178 \end{bibexbox}
5179
5180 %<n|m>\spec{Director (\lit{dir.}), \emph{Title} (Publisher, Number, Year).}
5181 %<a|y>\spec{Director (Year) (\lit{dir.}), \emph{Title} (Publisher, Number).}
5182
5183 \tip{Use the \texttt{author} field to place a credit at the head of the reference.}
5184
5185 \begin{bibexbox}
5186 %<n|m><OGS \S15.14.2>
5187 %<a|y><OGS \S15.14.2\textdagger>
5188 {chaplin1936mt}
5189 %<n|m>Charles Chaplin (dir.), \emph{Modern Times} (United Artists, 1936).
5190 %<a|y>Chaplin, C. (1936) (dir.), \emph{Modern Times} (United Artists).
5191 \tcblower
5192 \begin{Verbatim}
5193 %</n|m|a|y>
5194 @movie{chaplin1936mt,
5195 author = {Charles Chaplin},
5196 authortype = {director},
5197 title = {Modern Times},
5198 publisher = {United Artists},
5199 date = {1936}}
5200 %<*n|m|a|y>
5201 \end{Verbatim}
5202 \end{bibexbox}
5203
5204 %<n|m>\spec{\emph{Title}, \lit{dir.} Director (Publisher, Number, Year).}
5205 %<a|y>\spec{\emph{Title} (Year), \lit{dir.} Director (Publisher, Number).}
5206
5207 \tip{Use the \texttt{editor} field to place a credit after the title.}
5208
5209 \begin{bibexbox}
5210 %<n|m><OGS \S15.14.2>
5211 %<a|y><OGS \S15.14.2\textdagger>
5212 {reiner1983tst}
5213 %<n|m>\emph{This is Spinal Tap: A Rockumentary by Marti Di Bergi}, dir.\@ Rob Reiner (Embassy Pictures, 1983).
5214 %<a|y>\emph{This is Spinal Tap: A Rockumentary by Marti Di Bergi} (1983), dir.\@ R. Reiner (Embassy Pictures).
5215 \tcblower
5216 \begin{Verbatim}
5217 %</n|m|a|y>
5218 @movie{reiner1983tst,
5219 title = {This is {Spinal} {Tap}},
5220 subtitle = {A Rockumentary by {Marti} {Di} {Bergi}},
5221 editor = {Rob Reiner},
5222 editortype = {director},
5223 publisher = {Embassy Pictures},
5224 date = {1983}}
5225 %<*n|m|a|y>
5226 \end{Verbatim}
5227 \end{bibexbox}
5228
5229 %<n|m>\spec{\emph{Title} (Publisher, Number, Year), Credit.}
5230 %<a|y>\spec{\emph{Title} (Year) (Publisher, Number), Credit.}
5231
5232 \tip{You can place up to four credits in the editor position, more if any of them correspond to the built-in editor types like \texttt{commentator} or \texttt{translator}.
5233 If you do supply a lot of credits, the \emph{Oxford Guide to Style} recommends you shift them to the end of the reference.
5234 You can do this with the \key{endeditor} option.}
5235
5236
5237 \begin{bibexbox}
5238 %<n|m><OGS \S15.14.2*>
5239 %<a|y><OGS \S15.14.2*\textdagger>
5240 {kaurismaki1989lcg}
5241 %<n|m>\emph{Leningrad Cowboys Go America} (Villealfa Filmproductions, 1989), dir.\@ and screenplay by Aki Kaurismäki, story by Sakke Järvenpää, Aki Kaurismäki, and Mato Valtonen.
5242 %<a|y>\emph{Leningrad Cowboys Go America} (1989) (Villealfa Filmproductions), dir.\@ and screenplay by A. Kaurismäki, story by S. Järvenpää, A. Kaurismäki, and M. Valtonen.
5243 \tcblower
5244 \begin{Verbatim}
5245 %</n|m|a|y>
5246 @movie{kaurismaki1989lcg,
5247 title = {Leningrad Cowboys Go America},
5248 publisher = {Villealfa Filmproductions},
5249 date = {1989},
5250 editortype = {dir.\@ and screenplay by},
5251 editor = {Aki Kaurismäki},
5252 editoratype = {story by},
5253 editora = {Sakke Järvenpää and Aki Kaurismäki and Mato Valtonen},
5254 options = {endeditor}}
5255 %<*n|m|a|y>
5256 \end{Verbatim}
5257 \end{bibexbox}
5258
5259 \tip{For an online video, set the \code{entrysubtype} to \code{clip}.}
5260
5261 \begin{bibexbox}
5262 %<n|m><NHR \S18.8.5>
5263 %<a|y><NHR \S18.8.5\textdagger>
5264 {bbc2013iim}
5265 %<n|m>BBC News, \enquote{Inside India's Mars Mission HQ} [video] (5 Nov. 2013), \url{http://www.bbc.co.uk/news/world-24826253}, accessed 5 Nov. 2013.
5266 %<a|y>BBC News (2013), \enquote{Inside India's Mars Mission HQ} [video] (5 Nov.), \url{http://www.bbc.co.uk/news/world-24826253}, accessed 5 Nov. 2013.
5267 \tcblower
5268 \begin{Verbatim}
5269 %</n|m|a|y>
5270 @video{bbc2013iim,
5271 entrysubtype = {clip},
5272 author = {{BBC News}},
5273 title = {Inside India's Mars Mission HQ},
5274 date = {2013-11-05},
5275 url = {http://www.bbc.co.uk/news/world-24826253},
5276 urldate = {2013-11-05}}
5277 %<*n|m|a|y>
5278 \end{Verbatim}
5279 \end{bibexbox}
5280
5281 \begin{bibexbox}
5282 %<n|m><NHR \S18.8.5>
5283 %<a|y><NHR \S18.8.5\textdagger>
5284 {rubinstein1956rpc}
5285 %<n|m>Arthur Rubinstein, \enquote{Rachmaninoff Piano Concerto No. 2, Op. 18, I Moderato, Allegro (Fritz Reiner)} [video], YouTube (recorded 9 Jan. 1956, uploaded 8 Nov. 2011), \url{http://www.youtube.com/watch?v=0Vv0Sy9FJrc&list=PLDB11C4F39E09047F}, accessed 9 Nov. 2013.
5286 %<a|y>Rubinstein, A. (1956), \enquote{Rachmaninoff Piano Concerto No. 2, Op. 18, I Moderato, Allegro (Fritz Reiner)} [video], YouTube (recorded 9 Jan., uploaded 8 Nov. 2011), \url{http://www.youtube.com/watch?v=0Vv0Sy9FJrc&list=PLDB11C4F39E09047F}, accessed 9 Nov. 2013.
5287 \tcblower
5288 \begin{Verbatim}
5289 %</n|m|a|y>
5290 @video{rubinstein1956rpc,
5291 entrysubtype = {clip},
5292 author = {Arthur Rubinstein},
5293 title = {Rachmaninoff Piano Concerto No. 2, Op. 18, I Moderato, Allegro (Fritz Reiner)},
5294 organization = {YouTube},
5295 origdate = {1956-01-09},
5296 date = {2011-11-08},
5297 datetype = {uploaded},
5298 url = {http://www.youtube.com/watch?v=0Vv0Sy9FJrc&list=PLDB11C4F39E09047F},
5299 urldate = {2013-11-09}}
5300 %<*n|m|a|y>
5301 \end{Verbatim}
5302 \end{bibexbox}
5303
5304 \tip{Use \texttt{origdate} and, if necessary, the (non-standard) \texttt{origdatetype} field to specify the date of recording or original broadcast. Use the (non-standard) \texttt{datetype} field to clarify the event represented by the publication date.}
5305
5306 \section{Broadcasts}\label{sec:broadcasts}
5307
5308 The \emph{Oxford Guide to Style} prints all information about the transmission, including the date, bare. \emph{New Hart's Rules} tends to put the transmittion date in parentheses, perhaps because (\emph{a}) broadcast is a type of publication, (\emph{b}) episodes in some very long-running series are identified by date alone, and (\emph{c}) it may be important to know which broadcast is referenced since the edits might be different. \pkg[biblatex]{Oxref} sides with the latter.
5309
5310 %<n|m>\spec{\emph{Title}, Channel (Location, Date, Time).}
5311 %<a|y>\spec{\emph{Title} (Year), Channel (Location, Day Month, Time).}
5312
5313 \tip{Put the channel in the \code{organization} field.}
5314
5315 \begin{bibexbox}
5316 %<n|m><OGS \S15.14.3*>
5317 %<a|y><OGS \S15.14.3*\textdagger>
5318 {canal2001ch}
5319 %<n|m>\emph{Un Cœur in Hiver}, Canal+ (Paris, 15 May 2001, 11.40 p.m.).
5320 %<a|y>\emph{Un Cœur in Hiver} (2001), Canal+ (Paris, 15 May, 11.40 p.m.).
5321 \tcblower
5322 \begin{Verbatim}
5323 %</n|m|a|y>
5324 @video{canal2001ch,
5325 title = {Un Cœur in Hiver},
5326 organization = {Canal+},
5327 location = {Paris},
5328 date = {2001-05-15T23:40:00+02:00}}
5329 %<*n|m|a|y>
5330 \end{Verbatim}
5331 \end{bibexbox}
5332
5333 %<n|m>\spec{\enquote{EpisodeTitle}, \emph{SeriesTitle}, \lit{Episode} EpisodeNumber, Channel, Date.}
5334 %<a|y>\spec{\enquote{EpisodeTitle} (Year), \emph{SeriesTitle}, \lit{Episode} EpisodeNumber, Channel, Day Month.}
5335
5336 \tip{If the episode has a true title, the episide descriptor (e.g. \enquote{Episode 1}) goes in the \code{note} field.
5337 If it doesn't, the episode descriptor goes in the \code{title} field; annotate the field with the keyword \code{descriptor} to remove the quote marks.
5338 Alternatively, use the (non-standard) \code{descriptor} field for the episode descriptor in all cases, and \pkg[biblatex]{oxref} will take care of this for you.}
5339
5340 \begin{bibexbox}
5341 %<n|m><NHR \S18.8.5>
5342 %<a|y><NHR \S18.8.5\textdagger>
5343 {berger1972ws}
5344 %<n|m>John Berger, Episode 1, \emph{Ways of Seeing}, BBC (1972), \url{https://www.youtube.com/watch?v=0pDE4VX_9Kk}, accessed 9 Nov. 2013.
5345 %<a|y>Berger, J. (1972), Episode 1, \emph{Ways of Seeing}, BBC, \url{https://www.youtube.com/watch?v=0pDE4VX_9Kk}, accessed 9 Nov. 2013.
5346 \tcblower
5347 \begin{Verbatim}
5348 %</n|m|a|y>
5349 @video{berger1972ws,
5350 entrysubtype = {episode},
5351 author = {John Berger},
5352 title = {Episode 1},
5353 title+an = {=descriptor},
5354 maintitle = {Ways of Seeing},
5355 organization = {BBC},
5356 date = {1972},
5357 url = {https://www.youtube.com/watch?v=0pDE4VX_9Kk},
5358 urldate = {2013-11-09}}
5359 %<*n|m|a|y>
5360 \end{Verbatim}
5361 \end{bibexbox}
5362
5363
5364 \section{Podcasts, video podcasts and webcasts}
5365
5366 \tip{Set the \code{entrysubtype} to \code{podcast} for a podcast.}
5367
5368 \begin{bibexbox}
5369 %<n|m><NHR \S18.7.3>
5370 %<a|y><NHR \S18.7.3\textdagger>
5371 {weldon2010did}
5372 %<n|m>Fay Weldon, interview with Kirsty Young, \emph{Desert Island Discs Archive} [podcast], BBC Radio 4 (9 May 2010), \url{http://www.bbc.co.uk/podcasts/series/dida05/all}.
5373 %<a|y>Weldon, F. (2010), interview with Kirsty Young, \emph{Desert Island Discs Archive} [podcast], BBC Radio 4 (9 May), \url{http://www.bbc.co.uk/podcasts/series/dida05/all}.
5374 \tcblower
5375 \begin{Verbatim}
5376 %</n|m|a|y>
5377 @audio{weldon2010did,
5378 entrysubtype = {podcast},
5379 author = {Fay Weldon},
5380 descriptor = {interview with {Kirsty Young}},
5381 maintitle = {Desert Island Discs Archive},
5382 organization = {BBC Radio 4},
5383 date = {2010-05-09},
5384 url = {http://www.bbc.co.uk/podcasts/series/dida05/all}}
5385 %<*n|m|a|y>
5386 \end{Verbatim}
5387 \end{bibexbox}
5388
5389 \begin{bibexbox}
5390 %<n|m><NHR \S18.8.5*>
5391 %<a|y><NHR \S18.8.5*\textdagger>
5392 {perry2013ifm}
5393 %<n|m>Grayson Perry, \enquote{I Found Myself in the Art World} [podcast], Reith Lecture, BBC Radio 4 (5 Nov. 2013), \url{http://downloads.bbc.co.uk/podcasts/radio4/reith/reith_20131105-0940b.mp3}, accessed 5 Nov. 2013.
5394 %<a|y>Perry, G. (2013), \enquote{I Found Myself in the Art World} [podcast], Reith Lecture, BBC Radio 4 (5 Nov.), \url{http://downloads.bbc.co.uk/podcasts/radio4/reith/reith_20131105-0940b.mp3}, accessed 5 Nov. 2013.
5395 \tcblower
5396 \begin{Verbatim}
5397 %</n|m|a|y>
5398 @audio{perry2013ifm,
5399 entrysubtype = {podcast},
5400 author = {Grayson Perry},
5401 title = {I Found Myself in the Art World},
5402 note = {Reith Lecture},
5403 date = {2013-11-05},
5404 organization = {BBC Radio 4},
5405 url = {http://downloads.bbc.co.uk/podcasts/radio4/reith/reith_20131105-0940b.mp3},
5406 urldate = {2013-11-05}}
5407 %<*n|m|a|y>
5408 \end{Verbatim}
5409 \end{bibexbox}
5410
5411 \info{I am not sure why \emph{New Hart's Rules} places the channel after the date in the above case; it is probably a mistake or an odd variation, so I have adjusted it for consistency.}
5412
5413 \tip{As for other online videos, set the \code{entrysubtype} to \code{clip} for a video podcast.}
5414
5415 \begin{bibexbox}
5416 %<n|m><NHR \S18.8.5*>
5417 %<a|y><NHR \S18.8.5*\textdagger>
5418 {nicholson2011qsm}
5419 %<n|m>Christie Nicholson, \enquote{A Quirk of Speech May Become a New Vocal Style} [video], \emph{Scientific American} (17 Dec. 2011), \url{http://www.scientificamerican.com/podcast/episode.cfm?id=a-quirk-of-speech-may-become-a-new-11-12-17}, accessed 4 Nov. 2013.
5420 %<a|y>Nicholson, C. (2011), \enquote{A Quirk of Speech May Become a New Vocal Style} [video], \emph{Scientific American} (17 Dec.), \url{http://www.scientificamerican.com/podcast/episode.cfm?id=a-quirk-of-speech-may-become-a-new-11-12-17}, accessed 4 Nov. 2013.
5421 \tcblower
5422 \begin{Verbatim}
5423 %</n|m|a|y>
5424 @video{nicholson2011qsm,
5425 entrysubtype = {clip},
5426 author = {Christie Nicholson},
5427 title = {A Quirk of Speech May Become a New Vocal Style},
5428 organization = {\emph{Scientific American}},
5429 date = {2011-12-17},
5430 url = {http://www.scientificamerican.com/podcast/episode.cfm?id=a-quirk-of-speech-may-become-a-new-11-12-17},
5431 urldate = {2013-11-04}}
5432 %<*n|m|a|y>
5433 \end{Verbatim}
5434 \end{bibexbox}
5435
5436 \info{The above is actually an episode of the audio podcast \emph{60-Second Mind} (which would be the \code{maintitle}).
5437 \emph{Scientific American} is in this instance the \code{organization} that is hosting it, but because it is also the name of a journal, it has been manually formatted to match.}
5438
5439 \tip{Perhaps a better way of achieiving consistency in this case would be to treat it like an article, and clarify the medium (i.e.\@ video, erroneously) using the \texttt{titleaddon} field.}
5440
5441 \tip{Set the \code{entrysubtype} to \code{webcast} for a webcast.}
5442
5443 \begin{bibexbox}
5444 %<n|m><NHR \S18.8.5*>
5445 %<a|y><NHR \S18.8.5*\textdagger>
5446 {yousafzai2013mwa}
5447 %<n|m>Malala Yousafzai, \enquote{Making a Wish for Action on Global Education: Malala Yousafzai Addresses Youth Assembly at UN on her 16th Birthday, 12 July 2013} [webcast], UN Web TV (12 July 2013), \url{http://webtv.un.org/search/malala-yousafzai-un-youth-assembly/2542094251001?term=malala}, accessed 15 Feb. 2015.
5448 %<a|y>Yousafzai, M. (2013), \enquote{Making a Wish for Action on Global Education: Malala Yousafzai Addresses Youth Assembly at UN on her 16th Birthday, 12 July 2013} [webcast], UN Web TV (12 July), \url{http://webtv.un.org/search/malala-yousafzai-un-youth-assembly/2542094251001?term=malala}, accessed 15 Feb. 2015.
5449 \tcblower
5450 \begin{Verbatim}
5451 %</n|m|a|y>
5452 @video{yousafzai2013mwa,
5453 entrysubtype = {webcast},
5454 author = {Malala Yousafzai},
5455 title = {Making a Wish for Action on Global Education},
5456 subtitle = {Malala Yousafzai Addresses Youth Assembly at UN on her 16th Birthday, 12 July 2013},
5457 organization = {UN Web TV},
5458 date = {2013-07-12},
5459 url = {http://webtv.un.org/search/malala-yousafzai-un-youth-assembly/2542094251001?term=malala},
5460 urldate = {2015-02-15}}
5461 %<*n|m|a|y>
5462 \end{Verbatim}
5463 \end{bibexbox}
5464
5465
5466 \section{Images and works of art}
5467
5468 \tip{If you need the type of image or artwork to appear in square brackets,
5469 put it in \code{titleaddon}. Otherwise, put it in \code{type}.}
5470
5471 \tip{Use \code{institution} (a list) or \code{venue} (a literal) for the
5472 organization, museum, gallery or building physically hosting the image, and
5473 \code{location} for where it is.}
5474
5475 \begin{bibexbox}
5476 %<n|m><NHR \S18.8.5>
5477 %<a|y><NHR \S18.8.5\textdagger>
5478 {clarkeNDeci}
5479 %<n|m>M. Clarke, \enquote{Exports of Coal to the IFS} [poster], Manchester Art Gallery, \url{http://www.machestergalleries.org/the-collections/search-the-collection/display.php?EMUSESSID=70bd7f1a388d79a82f52ea9aae713ef2&irn=4128}, accessed 5 Nov. 2013.
5480 %<a|y>Clarke, M. (n.d.), \enquote{Exports of Coal to the IFS} [poster], Manchester Art Gallery, \url{http://www.machestergalleries.org/the-collections/search-the-collection/display.php?EMUSESSID=70bd7f1a388d79a82f52ea9aae713ef2&irn=4128}, accessed 5 Nov. 2013.
5481 \tcblower
5482 \begin{Verbatim}
5483 %</n|m|a|y>
5484 @image{clarkeNDeci,
5485 author = {M. Clarke},
5486 title = {Exports of Coal to the IFS},
5487 titleaddon = {poster},
5488 institution = {Manchester Art Gallery},
5489 url = {http://www.machestergalleries.org/the-collections/search-the-collection/display.php?EMUSESSID=70bd7f1a388d79a82f52ea9aae713ef2&irn=4128},
5490 urldate = {2013-11-05}}
5491 %<*n|m|a|y>
5492 \end{Verbatim}
5493 \end{bibexbox}
5494
5495 \tip{Use \code{organization} for the website or online location of the image.}
5496
5497 \begin{bibexbox}
5498 %<n|m><NHR \S18.8.5>
5499 %<a|y><NHR \S18.8.5\textdagger>
5500 {ibwNDcgs}
5501 %<n|m>\enquote{Christ the Good Shepherd}, stained glass window, Church of St Erfyl, Llanerfyl, Powys, Imaging the Bible in Wales Database, \url{http://imagingthebible.llgc.org.uk/object/1884}, accessed 10 Nov. 2013.
5502 %<a|y>\enquote{Christ the Good Shepherd} (n.d.), stained glass window, Church of St Erfyl, Llanerfyl, Powys, Imaging the Bible in Wales Database, \url{http://imagingthebible.llgc.org.uk/object/1884}, accessed 10 Nov. 2013.
5503 \tcblower
5504 \begin{Verbatim}
5505 %</n|m|a|y>
5506 @image{ibwNDcgs,
5507 title = {Christ the Good Shepherd},
5508 type = {stained glass window},
5509 venue = {Church of St Erfyl},
5510 location = {Llanerfyl, Powys},
5511 organization = {Imaging the Bible in Wales Database},
5512 url = {http://imagingthebible.llgc.org.uk/object/1884},
5513 urldate = {2013-11-10}}
5514 %<*n|m|a|y>
5515 \end{Verbatim}
5516 \end{bibexbox}
5517
5518 \begin{bibexbox}
5519 {davinci1480mr}
5520 (not in book)
5521 \tcblower
5522 \begin{Verbatim}
5523 %</n|m|a|y>
5524 @artwork{davinci1480mr,
5525 author = {given=Leonardo, family=da Vinci},
5526 title = {Madonna of the Rocks},
5527 type = {oil on canvas},
5528 note = {78 x 48.5 in\adddot},
5529 year = {1480s},
5530 date+an = {=inferred},
5531 institution = {Louvre},
5532 location = {Paris}}
5533 %<*n|m|a|y>
5534 \end{Verbatim}
5535 \end{bibexbox}
5536
5537 \begin{bibexbox}
5538 {gormley1998an}
5539 (not in book)
5540 \tcblower
5541 \begin{Verbatim}
5542 %</n|m|a|y>
5543 @artwork{gormley1998an,
5544 author = {Anthony Gormley},
5545 title = {Angel of the {North}},
5546 date = {1998},
5547 type = {sculpture},
5548 location = {Low Fell, Gateshead}}
5549 %<*n|m|a|y>
5550 \end{Verbatim}
5551 \end{bibexbox}
5552
5553 \begin{bibexbox}
5554 {rodin1882k}
5555 (not in book)
5556 \tcblower
5557 \begin{Verbatim}
5558 %</n|m|a|y>
5559 @artwork{rodin1882k,
5560 author = {Auguste Rodin},
5561 title = {The Kiss},
5562 date = {1882},
5563 type = {marble},
5564 institution = {Musée Rodin},
5565 location = {Paris}}
5566 %<*n|m|a|y>
5567 \end{Verbatim}
5568 \end{bibexbox}
5569
5570 \section{Performances}
5571
5572 \tip{Use \code{origdate} for the date when the play, ballet, opera, or whatever
5573 was written or premièred, and \code{date} for the date of the performance you
5574 are referencing. You can specify what these dates signify with the
5575 (non-standard) \code{origdatetype} and \code{datetype} fields. You can also
5576 use \code{eventdate} in place of \code{date}, but then you won't be able to
5577 specify the type.}
5578
5579 \tip{As for recordings, you can use the \code{author} and \code{editor} fields
5580 to provide various credits. As for artworks, use \code{venue} and
5581 \code{location} for where the performance occurred, and \code{organization}
5582 for a website or organization hosting a recording of the performance online.}
5583
5584 \begin{bibexbox}
5585 {ashton1937wb}
5586 (not in book)
5587 \tcblower
5588 \begin{Verbatim}
5589 %</n|m|a|y>
5590 @performance{ashton1937wb,
5591 author = {Frederick Ashton},
5592 origdate = {1937},
5593 title = {A Wedding Bouquet},
5594 venue = {Royal Opera House},
5595 location = {London},
5596 date = {2004-10-22}}
5597 %<*n|m|a|y>
5598 \end{Verbatim}
5599 \end{bibexbox}
5600
5601 \begin{bibexbox}
5602 {lord2007dc}
5603 (not in book)
5604 \tcblower
5605 \begin{Verbatim}
5606 %</n|m|a|y>
5607 @performance{lord2007dc,
5608 author = {Jon Lord},
5609 date = {2007-10-20},
5610 title = {Durham Concerto},
5611 editor = {{Liverpool Philharmonic Orchestra}},
5612 editortype = {performer},
5613 editora = {Mischa Damev},
5614 editoratype = {conductor},
5615 venue = {Durham Cathedral},
5616 location = {Durham}}
5617 %<*n|m|a|y>
5618 \end{Verbatim}
5619 \end{bibexbox}
5620
5621 \begin{bibexbox}
5622 {judge1995mnd}
5623 (not in book)
5624 \tcblower
5625 \begin{Verbatim}
5626 %</n|m|a|y>
5627 @performance{judge1995mnd,
5628 options = {useauthor=false,useeditor=false},
5629 author = {William Shakespeare},
5630 title = {A Midsummer Night's Dream},
5631 editor = {Ian Judge},
5632 editortype = {director},
5633 date = {1995-02-26},
5634 venue = {Theatre Royal},
5635 location = {Newcastle upon Tyne}}
5636 %<*n|m|a|y>
5637 \end{Verbatim}
5638 \end{bibexbox}
5639
5640 \chapter{Digital media}\label{sec:electronic}
5641 \chapterprecis{online, software, dataset}
5642
5643 In Section 18.8.5 of \emph{New Hart's Rules}, some publication dates are printed in parentheses and some are left bare.
5644 In theory, the difference should be that parentheses indicate \enquote{proper} publication (bare dates are when the resource was created or issued). In practice, it seems to be random. I have therefore decided to ignore the variation and leave all such dates in parentheses.
5645
5646 \section{Website articles}
5647
5648 Standard \textsf{biblatex} only provides for one title for online resources, which is fine for whole websites but not if you want to cite one page or article within a website.
5649
5650 \tip{If the piece is unsigned, put the site name in the \code{author} field.}
5651
5652 \begin{bibexbox}
5653 %<n|m><NHR \S18.8.5>
5654 %<a|y><NHR \S18.8.5\textdagger>
5655 {bbc2013cgh}
5656 %<n|m>BBC News, \enquote{Colchester General Hospital: Police Probe Cancer Treatment} (5 Nov. 2013), \url{http://www.bbc.co.uk/news/uk-england-essex-24819973}, accessed 5 Nov. 2013.
5657 %<a|y>BBC News (2013), \enquote{Colchester General Hospital: Police Probe Cancer Treatment} (5 Nov.), \url{http://www.bbc.co.uk/news/uk-england-essex-24819973}, accessed 5 Nov. 2013.
5658 \tcblower
5659 \begin{Verbatim}
5660 %</n|m|a|y>
5661 @online{bbc2013cgh,
5662 author = {{BBC News}},
5663 title = {Colchester General Hospital},
5664 subtitle = {Police Probe Cancer Treatment},
5665 date = {2013-11-05},
5666 url = {http://www.bbc.co.uk/news/uk-england-essex-24819973},
5667 urldate = {2013-11-05}}
5668 %<*n|m|a|y>
5669 \end{Verbatim}
5670 \end{bibexbox}
5671
5672 \tip{If the piece is signed, put the site name in the \code{organization} field.
5673 The rationale is that \textsf{biblatex} uses this for the organization hosting the site,
5674 and it can get a bit blurry between that and the name of the site itself.}
5675
5676 \begin{bibexbox}
5677 %<n|m><NHR \S18.8.5>
5678 %<a|y><NHR \S18.8.5\textdagger>
5679 {hooper2013lfs}
5680 %<n|m>Richard Hooper, \enquote{Lebanon's Forgotten Space Programme}, BBC News Magazine (14 Nov. 2013), \url{http://www.bbc.co.uk/news/magazine-24735423}, accessed 14 Nov. 2013.
5681 %<a|y>Hooper, R. (2013), \enquote{Lebanon's Forgotten Space Programme}, BBC News Magazine (14 Nov.), \url{http://www.bbc.co.uk/news/magazine-24735423}, accessed 14 Nov. 2013.
5682 \tcblower
5683 \begin{Verbatim}
5684 %</n|m|a|y>
5685 @online{hooper2013lfs,
5686 author = {Richard Hooper},
5687 title = {Lebanon's Forgotten Space Programme},
5688 organization = {BBC News Magazine},
5689 date = {2013-11-14},
5690 url = {http://www.bbc.co.uk/news/magazine-24735423},
5691 urldate = {2013-11-14}}
5692 %<*n|m|a|y>
5693 \end{Verbatim}
5694 \end{bibexbox}
5695
5696 \begin{bibexbox}
5697 %<n|m><NHR \S18.8.5>
5698 %<a|y><NHR \S18.8.5\textdagger>
5699 {tan2013wdt}
5700 %<n|m>Siu-Lan Tan, \enquote{Why does this Baby Cry when her Mother Sings?} [including video], OUPblog (5 Nov. 2013), \url{http://blog.oup.com/2013/11/why-does-this-baby-cry-when-her-mother-sings-viral-video/}, accessed 9 Nov. 2013.
5701 %<a|y>Tan, S.-L. (2013), \enquote{Why does this Baby Cry when her Mother Sings?} [including video], OUPblog (5 Nov.), \url{http://blog.oup.com/2013/11/why-does-this-baby-cry-when-her-mother-sings-viral-video/}, accessed 9 Nov. 2013.
5702 \tcblower
5703 \begin{Verbatim}
5704 %</n|m|a|y>
5705 @online{tan2013wdt,
5706 author = {Siu-Lan Tan},
5707 title = {Why does this Baby Cry when her Mother Sings?},
5708 titleaddon = {including video},
5709 organization = {OUPblog},
5710 date = {2013-11-05},
5711 url = {http://blog.oup.com/2013/11/why-does-this-baby-cry-when-her-mother-sings-viral-video/},
5712 urldate = {2013-11-09}}
5713 %<*n|m|a|y>
5714 \end{Verbatim}
5715 \end{bibexbox}
5716
5717 \begin{bibexbox}
5718 %<n|m><NHR \S18.8.5>
5719 %<a|y><NHR \S18.8.5\textdagger>
5720 {allaby2013fll}
5721 %<n|m>Michael Allaby, \enquote{Feathers and Lava Lamps}, Oxford Reference (2013), \url{http://www.oxfordreference.com/page/featherslavalamps}, accessed 9 Nov. 2013.
5722 %<a|y>Allaby, M. (2013), \enquote{Feathers and Lava Lamps}, Oxford Reference, \url{http://www.oxfordreference.com/page/featherslavalamps}, accessed 9 Nov. 2013.
5723 \tcblower
5724 \begin{Verbatim}
5725 %</n|m|a|y>
5726 @online{allaby2013fll,
5727 author = {Michael Allaby},
5728 title = {Feathers and Lava Lamps},
5729 organization = {Oxford Reference},
5730 date = {2013},
5731 url = {http://www.oxfordreference.com/page/featherslavalamps},
5732 urldate = {2013-11-09}}
5733 %<*n|m|a|y>
5734 \end{Verbatim}
5735 \end{bibexbox}
5736
5737 \tip{If the site looks more like a traditional journal (e.g.\@ with an ISSN), use the \code{article} entry type instead of \code{online}.}
5738
5739 \begin{bibexbox}
5740 %<n|m><NHR \S18.8.5>
5741 %<a|y><NHR \S18.8.5\textdagger>
5742 {mcewen2013tte}
5743 %<n|m>Stephen McEwen, \enquote{Tan Twan Eng Interview: \enquote{I Have No Alternative but to Write in English}}, \emph{The Spectator} (20 May 2013), \url{http://blogs.spectator.co.uk/books/2013/05/tan-twang-eng-interview-i-have-no-alternative-but-to-write-in-english/}, accessed 9 Nov. 2013.
5744 %<a|y>McEwen, S. (2013), \enquote{Tan Twan Eng Interview: \enquote{I Have No Alternative but to Write in English}}, \emph{The Spectator} (20 May), \url{http://blogs.spectator.co.uk/books/2013/05/tan-twang-eng-interview-i-have-no-alternative-but-to-write-in-english/}, accessed 9 Nov. 2013.
5745 \tcblower
5746 \begin{Verbatim}
5747 %</n|m|a|y>
5748 @article{mcewen2013tte,
5749 author = {Stephen McEwen},
5750 title = {Tan Twan Eng Interview: \enquote{I Have No Alternative but to Write in English}},
5751 journaltitle = {The Spectator},
5752 date = {2013-05-20},
5753 options = {varissuedate=false},
5754 url = {http://blogs.spectator.co.uk/books/2013/05/tan-twang-eng-interview-i-have-no-alternative-but-to-write-in-english/},
5755 urldate = {2013-11-09}}
5756 %<*n|m|a|y>
5757 \end{Verbatim}
5758 \end{bibexbox}
5759
5760
5761 \section{Online reference article}
5762
5763 \begin{bibexbox}
5764 %<n|m><NHR \S18.8.5>
5765 %<a|y><NHR \S18.8.5\textdagger>
5766 {eb2013gp}
5767 %<n|m>\enquote{Gunpowder Plot}, \emph{Encyclopaedia Britannica}, \url{http://www.britannica.com/EBchecked/topic/249505/Gunpowder-Plot}, accessed 5 Nov. 2013.
5768 %<a|y>\enquote{Gunpowder Plot} (n.d.), \emph{Encyclopaedia Britannica}, \url{http://www.britannica.com/EBchecked/topic/249505/Gunpowder-Plot}, accessed 5 Nov. 2013.
5769 \tcblower
5770 \begin{Verbatim}
5771 %</n|m|a|y>
5772 @online{eb2013gp,
5773 title = {Gunpowder Plot},
5774 maintitle = {Encyclopaedia Britannica},
5775 url = {http://www.britannica.com/EBchecked/topic/249505/Gunpowder-Plot},
5776 urldate = {2013-11-05}}
5777 %<*n|m|a|y>
5778 \end{Verbatim}
5779 \end{bibexbox}
5780
5781 \tip{Unlike standard \textsf{biblatex}, \pkg[biblatex]{oxref} supports \code{maintitle} for online entries and prints the result in italics. For more portability, you could either hard-code the italics into the \code{organization} field or use the \code{article} entry type.}
5782
5783 \info{It is not made explicit why \emph{Encyclopaedia Britannica} is in italics and \emph{Wikipedia} is not.
5784 It might be historical or customary, because \emph{Encyclopaedia Britannica} was established as a print publication and \emph{Wikipedia} has only been online;
5785 it might be because \emph{Encyclopaedia Britannica} is a Latin title;
5786 it might reflect an opinion on the two resources;
5787 or it may just be illustrative of variant practice.}
5788
5789 \begin{bibexbox}
5790 %<n|m><NHR \S18.8.5>
5791 %<a|y><NHR \S18.8.5\textdagger>
5792 {wp2013oup}
5793 %<n|m>\enquote{Oxford University Press}, Wikipedia (last modified 5 Nov. 2013), \url{http://en.wikipedia.org/wiki/Oxford_University_Press}, accessed 5 Nov. 2013.
5794 %<a|y>\enquote{Oxford University Press} (2013), Wikipedia (last modified 5 Nov.), \url{http://en.wikipedia.org/wiki/Oxford_University_Press}, accessed 5 Nov. 2013.
5795 \tcblower
5796 \begin{Verbatim}
5797 %</n|m|a|y>
5798 @online{wp2013oup,
5799 title = {Oxford University Press},
5800 organization = {Wikipedia},
5801 date = {2013-11-05},
5802 datetype = {modified},
5803 url = {http://en.wikipedia.org/wiki/Oxford_University_Press},
5804 urldate = {2013-11-05}}
5805 %<*n|m|a|y>
5806 \end{Verbatim}
5807 \end{bibexbox}
5808
5809 \tip{Use the (non-standard) \texttt{datetype} field to clarify the event represented by the main date.}
5810
5811
5812 \section{Social media}
5813
5814 \begin{bibexbox}
5815 %<n|m><NHR \S18.8.5>
5816 %<a|y><NHR \S18.8.5\textdagger>
5817 {obama2013tvd}
5818 %<n|m>Barack Obama, \enquote{Tomorrow is Veterans Day} [Facebook post] (10 Nov. 2013), \url{https://www.facebook.com/barackobama/photos/a.53081056748.66806.6815841748/10151936988101749/}, accessed 13 Nov. 2013.
5819 %<a|y>Obama, B. (2013), \enquote{Tomorrow is Veterans Day} [Facebook post] (10 Nov.), \url{https://www.facebook.com/barackobama/photos/a.53081056748.66806.6815841748/10151936988101749/}, accessed 13 Nov. 2013.
5820 \tcblower
5821 \begin{Verbatim}
5822 %</n|m|a|y>
5823 @online{obama2013tvd,
5824 entrysubtype = {facebook},
5825 author = {Barack Obama},
5826 title = {Tomorrow is Veterans Day},
5827 date = {2013-11-10},
5828 url = {https://www.facebook.com/barackobama/photos/a.53081056748.66806.6815841748/10151936988101749/},
5829 urldate = {2013-11-13}}
5830 %<*n|m|a|y>
5831 \end{Verbatim}
5832 \end{bibexbox}
5833
5834 \begin{bibexbox}
5835 %<n|m><NHR \S18.8.5>
5836 %<a|y><NHR \S18.8.5\textdagger>
5837 {harvey2013tfm}
5838 %<n|m>John Harvey, \enquote{\enquote{These are a Few of My Favourite Things}, No.~28} [Facebook post] (13 Nov. 2013), \url{https://www.facebook.com/photo.php?fbid=229786530530896&set=a.108896335953250.15125.100004986510149&type=1&theatre}, accessed 13 Nov. 2013.
5839 %<a|y>Harvey, J. (2013), \enquote{\enquote{These are a Few of My Favourite Things}, No.~28} [Facebook post] (13 Nov.), \url{https://www.facebook.com/photo.php?fbid=229786530530896&set=a.108896335953250.15125.100004986510149&type=1&theatre}, accessed 13 Nov. 2013.
5840 \tcblower
5841 \begin{Verbatim}
5842 %</n|m|a|y>
5843 @online{harvey2013tfm,
5844 entrysubtype = {facebook},
5845 author = {John Harvey},
5846 title = {\enquote{These are a Few of My Favourite Things}, No.~28},
5847 date = {2013-11-13},
5848 url = {https://www.facebook.com/photo.php?fbid=229786530530896&set=a.108896335953250.15125.100004986510149&type=1&theatre},
5849 urldate = {2013-11-13}}
5850 %<*n|m|a|y>
5851 \end{Verbatim}
5852 \end{bibexbox}
5853
5854 \begin{bibexbox}
5855 %<n|m><NHR \S18.8.5*>
5856 %<a|y><NHR \S18.8.5*\textdagger>
5857 {globe2013otd}
5858 %<n|m>Shakespeare's Globe, \enquote{On this day in 1611 first production of The Tempest was performed by King's Men at Whitehall Palace before James I} [Twitter post] (5.48~a.m., 1~Nov. 2013), \url{https://twitter.com/The_Globe/status/396257422928400385}, accessed 5 Nov. 2013.
5859 %<a|y>Shakespeare's Globe (2013), \enquote{On this day in 1611 first production of The Tempest was performed by King's Men at Whitehall Palace before James I} [Twitter post] (5.48~a.m., 1~Nov.), \url{https://twitter.com/The_Globe/status/396257422928400385}, accessed 5 Nov. 2013.
5860 \tcblower
5861 \begin{Verbatim}
5862 %</n|m|a|y>
5863 @online{globe2013otd,
5864 entrysubtype = {tweet},
5865 author = {{Shakespeare's Globe}},
5866 title = {On this day in 1611 first production of The Tempest was performed by King's Men at Whitehall Palace before James I},
5867 date = {2013-11-01T05:48:00},
5868 options = {timefirst},
5869 url = {https://twitter.com/The_Globe/status/396257422928400385},
5870 urldate = {2013-11-05}}
5871 %<*n|m|a|y>
5872 \end{Verbatim}
5873 \end{bibexbox}
5874
5875 \tip{If it feels odd putting the entire content of a tweet in your reference, \emph{New Hart's Rules} suggests using a descriptor like \enquote{Twitter post} instead of the title. As described in \cref{sec:broadcasts}, you can do this either by annotating the title field with the keyword \code{descriptor} or by using the (non-standard) \code{descriptor} field in place of \code{title}.}
5876
5877 \begin{bibexbox}
5878 {oup2015tweet}
5879 (not in book)
5880 \tcblower
5881 \begin{Verbatim}
5882 %</n|m|a|y>
5883 @online{oup2015tweet,
5884 author = {{Oxford University Press}},
5885 shortauthor = {OUP},
5886 descriptor = {Twitter post},
5887 date = {2015-11-16T01:07:00},
5888 url = {https://twitter.com/OxUniPress/status/666180787251843072},
5889 urldate = {2015-12-25}}
5890 %<*n|m|a|y>
5891 \end{Verbatim}
5892 \end{bibexbox}
5893
5894 \section{Software}
5895
5896 \begin{bibexbox}
5897 %<n|m><NHR \S18.8.5>
5898 %<a|y><NHR \S18.8.5\textdagger>
5899 {simoga1.1d6}
5900 %<n|m>Simoga, \emph{Device 6} (version 1.1) [mobile application for iPhone and iPad], downloaded 9 Nov. 2013.
5901 %<a|y>Simoga (n.d.), \emph{Device 6} (version 1.1) [mobile application for iPhone and iPad], downloaded 9 Nov. 2013.
5902 \tcblower
5903 \begin{Verbatim}
5904 %</n|m|a|y>
5905 @software{simoga1.1d6,
5906 author = {Simoga},
5907 title = {Device 6},
5908 version = {1.1},
5909 titleaddon = {mobile application for iPhone and iPad},
5910 urldate = {2013-11-09}}
5911 %<*n|m|a|y>
5912 \end{Verbatim}
5913 \end{bibexbox}
5914
5915 \begin{bibexbox}
5916 %<n|m><NHR \S18.8.5>
5917 %<a|y><NHR \S18.8.5\textdagger>
5918 {eliot1.1.1twl}
5919 %<n|m>T. S. Eliot, \emph{The Waste Land} (version 1.1.1) [mobile application for iPad] (London: Touch Press, 2013), downloaded 9 Nov. 2013.
5920 %<a|y>Eliot, T. S. (2013), \emph{The Waste Land} (version 1.1.1) [mobile application for iPad] (London: Touch Press), downloaded 9 Nov. 2013.
5921 \tcblower
5922 \begin{Verbatim}
5923 %</n|m|a|y>
5924 @software{eliot1.1.1twl,
5925 author = {T. S. Eliot},
5926 title = {The Waste Land},
5927 version = {1.1.1},
5928 titleaddon = {mobile application for iPad},
5929 location = {London},
5930 publisher = {Touch Press},
5931 date = {2013},
5932 urldate = {2013-11-09}}
5933 %<*n|m|a|y>
5934 \end{Verbatim}
5935 \end{bibexbox}
5936
5937
5938 \section{Database}
5939
5940 \begin{bibexbox}
5941 %<n|m><NHR \S18.8.5>
5942 %<a|y><NHR \S18.8.5\textdagger>
5943 {un2011wpp}
5944 %<n|m>United Nations, \emph{World Population Prospects: The 2010 Revision} [CD-ROM] (New York: United Nations Department of Economic and Social Affairs, Population Division, 2011).
5945 %<a|y>United Nations (2011), \emph{World Population Prospects: The 2010 Revision} [CD-ROM] (New York: United Nations Department of Economic and Social Affairs, Population Division).
5946 \tcblower
5947 \begin{Verbatim}
5948 %</n|m|a|y>
5949 @dataset{un2011wpp,
5950 author = {{United Nations}},
5951 title = {World Population Prospects},
5952 subtitle = {The 2010 Revision},
5953 titleaddon = {CD-ROM},
5954 location = {New York},
5955 publisher = {{United Nations Department of Economic and Social Affairs, Population Division}},
5956 date = {2011}}
5957 %<*n|m|a|y>
5958 \end{Verbatim}
5959 \end{bibexbox}
5960
5961
5962 \chapter{Legal references}\label{sec:legal}
5963 \chapterprecis{commentary, jurisdiction, legal, legislation}
5964
5965 \pkg[biblatex]{Oxref} provides only a basic level of support for legal references, in case you need to use some in a mainly non-legal text.
5966 For a more thorough and robust treatment, intended for a specialist readership, I recommend you use the \pkg{oscola} style instead.
5967
5968 Since there is a family resemblence between the \emph{Oxford Guide to Style\slash New Hart's Rules}
5969 and the \emph{Oxford Standard for the Citation of Legal Authorities},
5970 \pkg[biblatex]{oxref} largely mimics \pkg{oscola} and its data model, though there are some small formatting differences.
5971 What you should \emph{not} expect from \pkg[biblatex]{oxref} are facilities for compiling specialist indices of sources,
5972 or anything special regarding the handling of postnotes.
5973
5974 \pkg[biblatex]{Oxref} follows \pkg{oscola} in stripping out abbreviation dots from most fields using regular expressions,
5975 but if you want to retain a dot that it strips, you can do so by writing it \verb|{.}|, \cs{adddot} or \cs{addotspace}.
5976
5977 %<y>Since legal references are usually cited using footnotes, how \textsf{oxyear} should behave is not well defined. As a result, I have not configured it to do anything fancy: the full reference will be formatted just the same as with \textsf{oxnotes}, and citations will typically be title–year using parentheses in the usual way. I am open to suggestions for how to handle things better.
5978
5979 \section{Cases}
5980
5981 \subsection{Reported cases}
5982
5983 Use the \code{jurisdiction} entry type for citing cases.
5984
5985 \tip{Use the \code{keywords} field to specify the jurisdiction. The following are recognized:
5986 \begin{itemize}
5987 \item\val{gb}
5988 United Kingdom
5989 \item\val{en}:
5990 England (default)
5991 \item\val{cy}:
5992 Wales
5993 \item\val{sc}:
5994 Scotland
5995 \item\val{ni}:
5996 Northern Ireland
5997 \item\val{eu}:
5998 European Union (including the EEC, EC, ECSC and EURATOM)
5999 \item\val{echr}:
6000 Organs of the Council of Europe dealing with the European Convention on Human Rights
6001 \item\val{int}:
6002 (Public) international law cases and materials
6003 \item\val{us}:
6004 United States of America
6005 \item\val{ca}:
6006 Canada
6007 \item\val{aus}:
6008 Australia
6009 \item\val{nz}:
6010 New Zealand
6011 \end{itemize}
6012 }
6013
6014 \tip{Scottish cases heard at the House of Lords or the Supreme Court should technically be given the keyword \val{gb}, therefore you can also identify them with the \key{scottish-style} option.}
6015
6016 \tip{Use either the (non-standard) \code{reporter} or \code{journaltitle} field for the (abbreviated) name of the report series. Use the \code{series} field for a numeric sub-series.}
6017
6018 \tip{Several additional pagination types are defined for use with legal citations:
6019 \val{article}, \val{clause}, \val{regulation}, and \val{rule} all work as normal.
6020 The default is a bare number (\val{none}), indicating a page reference, though EU and ECHR cases default to using the \enquote{para} (\val{paragraph}) prefix.
6021 There is also an alternative pagination type for paragraphs, \val{[]}, which prints the number in square brackets instead of giving it a prefix.
6022 }
6023
6024 \tip{If you want to include a parallel citation, you can use the non-standard \code{pardate}, \code{parreporter}, \code{parseries}, \code{parvolume}, and \code{parpages} fields.}
6025
6026 \tip{If you need to, use either the (non-standard) \code{court} or \code{institution} field for the court that decided the case.}
6027
6028 \tip{Use the \code{location} field for the location of the court in American, Australian or Canadian cases.}
6029
6030 %<*n>
6031 \begin{egcite}{\emph{Ridge v Baldwin} [1964] AC 40 at 78–9}
6032 \cite[78-79]{ridge1964}
6033 \end{egcite}
6034 %</n>
6035 %<*m|a>
6036 \begin{egcite}{}
6037 \textcite[78-79]{ridge1964}
6038 \end{egcite}
6039 %</m|a>
6040 %<*y>
6041 \begin{egcite}{(\emph{Ridge v Baldwin} 1964: 78–9)}
6042 \parencite[78-79]{ridge1964}
6043 \end{egcite}
6044 %</y>
6045
6046 \begin{bibexbox}
6047 %<n|m><NHR \S13.4.1>
6048 %<a|y><NHR \S13.4.1\textdagger>
6049 {ridge1964}
6050 %<n|m>\emph{Ridge v Baldwin} [1964] AC 40
6051 %<a|y>\emph{Ridge v Baldwin} [1964] AC 40
6052 \tcblower
6053 \begin{Verbatim}
6054 %</n|m|a|y>
6055 @jurisdiction{ridge1964,
6056 title = {Ridge v. Baldwin},
6057 keywords = {gb},
6058 date = {1964},
6059 journaltitle = {A.C.},
6060 pages = {40}}
6061 %<*n|m|a|y>
6062 \end{Verbatim}
6063 \end{bibexbox}
6064
6065 \tip{Use the \key{year-essential} Boolean entry option to specify whether the year is essential for locating the report, in cases where automatic detection (based on the presence or otherwise of a volume number) fails.
6066 There is a similar \key{paryear-essential} option for the parallel year.}
6067
6068 \begin{bibexbox}
6069 <NHR \S13.4.1>
6070 {lambert2001}
6071 \emph{R v Lambert} [2001] 2 WLR 211 (QBD)
6072 \tcblower
6073 \begin{Verbatim}
6074 %</n|m|a|y>
6075 @jurisdiction{lambert2001,
6076 title = {R v Lambert},
6077 keywords = {gb},
6078 date = {2001},
6079 volume = {2},
6080 journaltitle = {WLR},
6081 pages = {211},
6082 institution = {QBD},
6083 options = {year-essential=true}}
6084 %<*n|m|a|y>
6085 \end{Verbatim}
6086 \end{bibexbox}
6087
6088 \begin{bibexbox}
6089 <NHR \S13.4.1>
6090 {badische1897}
6091 \emph{Badische v Soda-Fabrics} (1897) 14 RPC 919 (HL)
6092 \tcblower
6093 \begin{Verbatim}
6094 %</n|m|a|y>
6095 @jurisdiction{badische1897,
6096 title = {Badische v. Soda-Fabrics},
6097 date = {1897},
6098 journaltitle = {RPC},
6099 volume = {14},
6100 pages = {919},
6101 institution = {HL}}
6102 %<*n|m|a|y>
6103 \end{Verbatim}
6104 \end{bibexbox}
6105
6106 \tip{Use the (non-standard) \code{neutralcite} or \code{number} field for the neutral citation or case number.}
6107
6108 \begin{bibexbox}
6109 <OSCOLA \S2.1.1>
6110 {corr08}
6111 \emph{Corr v IBC Vehicles Ltd} [2008] UKHL 13, [2008] 1 AC 884
6112 \tcblower
6113 \begin{Verbatim}
6114 %</n|m|a|y>
6115 @jurisdiction{corr08,
6116 title = {Corr v. I.B.C. Vehicles Ltd.},
6117 keywords = {gb},
6118 date = {2008},
6119 neutralcite = {[2008] UKHL 13},
6120 journaltitle = {A.C.},
6121 volume = {1},
6122 pages = {884},
6123 options = {year-essential}}
6124 %<*n|m|a|y>
6125 \end{Verbatim}
6126 \end{bibexbox}
6127
6128 \begin{bibexbox}
6129 <NHR \S13.4.1>
6130 {rvg2004}
6131 \emph{R v G} [2003] UKHL 50, [2004] 1 AC 1034
6132 \tcblower
6133 \begin{Verbatim}
6134 %</n|m|a|y>
6135 @jurisdiction{rvg2004,
6136 title = {R. v. G.},
6137 number = {[2003] UKHL 50},
6138 date = {2004},
6139 journaltitle = {A.C.},
6140 volume = {1},
6141 pages = {1034},
6142 options = {year-essential},
6143 pagination = {[]}}
6144 %<*n|m|a|y>
6145 \end{Verbatim}
6146 \end{bibexbox}
6147
6148 %<*n>
6149 \begin{egcite}{}
6150 Test\footcite[13]{rvg2004}
6151 \end{egcite}
6152 %</n>
6153 %<*m|a>
6154 \begin{egcite}{}
6155 \textcite[13]{rvg2004}
6156 \end{egcite}
6157 %</m|a>
6158 %<*y>
6159 \begin{egcite}{}
6160 \parencite[13]{rvg2004}
6161 \end{egcite}
6162 %</y>
6163
6164 %<y>\hack{Note that in the cases above and below, the head of the reference won't match the citation, which may cause confusion. You may wish to hack the in-text citation to fix this.}
6165
6166 \tip{If a report is published a long time after the decision, you can put the decision date in \code{origdate} to clarify the situation.}
6167
6168 \begin{bibexbox}
6169 <NHR \S13.4.3>
6170 {smith2001}
6171 \emph{Smith v Jones} [2001] (1948) 2 All ER 431
6172 \tcblower
6173 \begin{Verbatim}
6174 %</n|m|a|y>
6175 @jurisdiction{smith2001,
6176 title = {Smith v Jones},
6177 date = {2001},
6178 origdate = {1948},
6179 journaltitle = {All ER},
6180 volume = {2},
6181 pages = {431},
6182 options = {year-essential}}
6183 %<*n|m|a|y>
6184 \end{Verbatim}
6185 \end{bibexbox}
6186
6187 Both the \emph{Oxford Guide to Style} and \emph{New Hart's Rules} are inconsistent on whether the court of decision should be printed plain or in parentheses at the end of a reference to a reported case. The default chosen by \pkg[biblatex]{oxref} is to use parentheses as per the \emph{Oxford Standard for the Citation of Legal Authorities}.
6188
6189 \tip{To print the court of decision plain, you can use the \key{court-plain} option. You can set this globally at the style level or on a per-entry basis.}
6190
6191 \begin{bibexbox}
6192 <NHR \S13.4.3>
6193 {bowman1978}
6194 \emph{Bowman v Fussy} [1978] RPC 545, HL
6195 \tcblower
6196 \begin{Verbatim}
6197 %</n|m|a|y>
6198 @jurisdiction{bowman1978,
6199 title = {Bowman v Fussy},
6200 keywords = {gb},
6201 date = {1978},
6202 journaltitle = {RPC},
6203 pages = {545},
6204 institution = {HL},
6205 options = {court-plain}}
6206 %<*n|m|a|y>
6207 \end{Verbatim}
6208 \end{bibexbox}
6209
6210 \begin{bibexbox}
6211 <NHR \S13.4.1>
6212 {hughes1907}
6213 \emph{Hughes v Stewart}, 1907 SC 791
6214 \tcblower
6215 \begin{Verbatim}
6216 %</n|m|a|y>
6217 @jurisdiction{hughes1907,
6218 title = {Hughes v. Stewart},
6219 date = {1907},
6220 reporter = {SC},
6221 pages = {791},
6222 keywords = {sc}}
6223 %<*n|m|a|y>
6224 \end{Verbatim}
6225 \end{bibexbox}
6226
6227 \begin{bibexbox}
6228 <NHR \S13.4.1>
6229 {corcoran1932}
6230 \emph{Corcoran v HM Advocate}, 1932 JC 42
6231 \tcblower
6232 \begin{Verbatim}
6233 %</n|m|a|y>
6234 @jurisdiction{corcoran1932,
6235 title = {Corcoran v. H.M. Advocate},
6236 date = {1932},
6237 reporter = {JC},
6238 pages = {42},
6239 keywords = {sc}}
6240 %<*n|m|a|y>
6241 \end{Verbatim}
6242 \end{bibexbox}
6243
6244 \begin{bibexbox}
6245 <OSCOLA \S2.2*>
6246 {hislop42}
6247 \emph{Hislop v Durham} (1842) 4 D 1168
6248 \tcblower
6249 \begin{Verbatim}
6250 %</n|m|a|y>
6251 @jurisdiction{hislop42,
6252 title = {Hislop v. Durham},
6253 date = {1842},
6254 volume = {4},
6255 reporter = {D},
6256 pages = {1168},
6257 keywords = {sc}}
6258 %<*n|m|a|y>
6259 \end{Verbatim}
6260 \end{bibexbox}
6261
6262 \begin{bibexbox}
6263 <OSCOLA \S2.2*>
6264 {crofters02}
6265 \emph{Crofters Commission v Scottish Ministers}, 2002 SLT (Land Ct) 19
6266 \tcblower
6267 \begin{Verbatim}
6268 %</n|m|a|y>
6269 @jurisdiction{crofters02,
6270 title = {Crofters Commission v. Scottish Ministers},
6271 date = {2002},
6272 reporter = {SLT},
6273 series = {(Land Ct)},
6274 pages = {19},
6275 keywords = {sc}}
6276 %<*n|m|a|y>
6277 \end{Verbatim}
6278 \end{bibexbox}
6279
6280 \subsection{Unreported cases}
6281
6282 \tip{For cases reported in newspapers, set the \code{entrysubtype} to \code{newspaper}.}
6283
6284 \begin{bibexbox}
6285 <NHR \S13.4.2*>
6286 {powick1993}
6287 \emph{Powick v Malvern Wells Water Co}, The Times, 28 Sept.\@ 1993
6288 \tcblower
6289 \begin{Verbatim}
6290 %</n|m|a|y>
6291 @jurisdiction{powick1993,
6292 entrysubtype = {newspaper},
6293 title = {Powick v. Malvern Wells Water Co},
6294 date = {1993-09-28},
6295 journaltitle = {The Times}}
6296 %<*n|m|a|y>
6297 \end{Verbatim}
6298 \end{bibexbox}
6299
6300 \begin{bibexbox}
6301 <NHR \S13.4.2*>
6302 {marianishi1965}
6303 \emph{R v Marianishi, ex p London Borough of Camden} (CA, 13 Apr.\@ 1965)
6304 \tcblower
6305 \begin{Verbatim}
6306 %</n|m|a|y>
6307 @jurisdiction{marianishi1965,
6308 title = {R v Marianishi, ex p London Borough of Camden},
6309 date = {1965-04-13},
6310 institution = {C.A.}}
6311 %<*n|m|a|y>
6312 \end{Verbatim}
6313 \end{bibexbox}
6314
6315 \tip{Unreported cases with a \code{neutralcite} or \code{number} do not show the date after the \code{institution}.}
6316
6317 \begin{bibexbox}
6318 <OSCOLA \S2.1.4>
6319 {calvert02}
6320 \emph{Calvert v Gardiner} [2002] EWHC 1394 (QB)
6321 \tcblower
6322 \begin{Verbatim}
6323 %</n|m|a|y>
6324 @jurisdiction{calvert02,
6325 title = {Calvert v. Gardiner},
6326 neutralcite = {[2002] EWHC 1394},
6327 institution = {QB},
6328 date = {2002-01-01}}
6329 %<*n|m|a|y>
6330 \end{Verbatim}
6331 \end{bibexbox}
6332
6333 \subsection{European cases}
6334
6335 \tip{You can record the European Case Law Identifier for a case using the \code{ecli} field.
6336 The \key{ecli} option determines under what circumstances the identifier is printed.}
6337
6338 \tip{European cases still get sorted by title, even if the entry begins with the case number.
6339 Use \code{sorttitle} if you would rather they were sorted under \enquote{Case} or \enquote{Joined Cases}.}
6340
6341 \tip{The number will be classed as \enquote{Joined Cases} if it contains a comma, a double hyphen (\code{--}),
6342 or the string \cs{oxrefand}, which defaults to \enquote{\code{\textvisiblespace and\textvisiblespace}}.}
6343
6344 \tip{For ECR cases, you can use either \code{number} or the non-standard \code{casenumber} field
6345 for the case number.}
6346
6347 \begin{bibexbox}
6348 <OGS \S13.4.4>
6349 {C118/07}
6350 Case C–118/07 \emph{Commission of the European Communities v Finland} [2002] ECR I–10889
6351 \tcblower
6352 \begin{Verbatim}
6353 %</n|m|a|y>
6354 @jurisdiction{C118/07,
6355 keywords = {eu},
6356 title = {Commission of the European Communities v. Finland},
6357 sorttitle = {Case C0118/0007},
6358 number = {C\textendash118/07},
6359 journaltitle = {ECR},
6360 volume = {I},
6361 pages = {10889},
6362 date = {2002}}
6363 %<*n|m|a|y>
6364 \end{Verbatim}
6365 \end{bibexbox}
6366
6367 \begin{bibexbox}
6368 <OSCOLA \S2.6.2>
6369 {C430/93}
6370 Joined Cases C-430/93–C-431/93 \emph{Jereon van Schijndel v Stichting Pensioenfonds voor Fysiotherapeuten} [1998] ECR I–4705
6371 \tcblower
6372 \begin{Verbatim}
6373 %</n|m|a|y>
6374 @jurisdiction{C430/93,
6375 keywords = {eu},
6376 title = {Jereon van Schijndel v Stichting Pensioenfonds voor Fysiotherapeuten},
6377 shorttitle = {van Schijndel},
6378 number = {C-430/93--C-431/93},
6379 institution = {ECJ},
6380 journaltitle = {ECR},
6381 volume = {I},
6382 date = {1998},
6383 pages = {4705},
6384 hyphenation = {dutch}}
6385 %<*n|m|a|y>
6386 \end{Verbatim}
6387 \end{bibexbox}
6388
6389 \tip{Indicate Commission Decisions by putting \code{Commission} in the \code{institution} field.
6390 If a decision has a formal decision number, put this in the \code{number} field,
6391 and put the case number in the (non-standard) \code{casenumber} field;
6392 the \enquote{Case} prefix is added automatically in this case.
6393 Alternatively, you can put the case number (including the word \enquote{Case} if needed)
6394 in the \code{userb} field for compatibility with \pkg{oscola},
6395 or in the \code{titleaddon} field for wider portability.}
6396
6397 \begin{bibexbox}
6398 <OGS \S13.2.6>
6399 {alcatel}
6400 \emph{Alcatel/Telettra} (Case IV/M042) [1991] OJ L122/48, [1991] 4 CLMR 391
6401 \tcblower
6402 \begin{Verbatim}
6403 %</n|m|a|y>
6404 @jurisdiction{alcatel,
6405 keywords = {eu},
6406 title = {Alcatel/Telettra},
6407 casenumber = {IV/M042},
6408 institution = {Commission},
6409 date = {1991},
6410 journaltitle = {OJ},
6411 series = {L},
6412 volume = {122},
6413 pages = {48},
6414 pardate = {1991},
6415 parreporter = {CLMR},
6416 parvolume = {4},
6417 parpages = {391},
6418 options = {paryear-essential}}
6419 %<*n|m|a|y>
6420 \end{Verbatim}
6421 \end{bibexbox}
6422
6423 \begin{bibexbox}
6424 <OSCOLA \S2.6.3>
6425 {verkehrsorgani}
6426 \emph{Georg Verkehrsorgani v Ferrovie dello Stato} (Case COMP/37.685) Commission Decision 2004/33/EC [2004] OJ L11/17
6427 \tcblower
6428 \begin{Verbatim}
6429 %</n|m|a|y>
6430 @jurisdiction{verkehrsorgani,
6431 keywords = {eu},
6432 title = {Georg Verkehrsorgani v Ferrovie dello Stato},
6433 userb = {Case COMP\slash 37.685},
6434 number = {2004\slash 33\slash EC},
6435 institution = {commission},
6436 year = {2004},
6437 journaltitle = {OJ},
6438 series = {L},
6439 issue = {11},
6440 pages = {17}}
6441 %<*n|m|a|y>
6442 \end{Verbatim}
6443 \end{bibexbox}
6444
6445 \tip{For ECHR cases, put the application number in the \code{number} field;
6446 unlike \emph{OSCOLA}, \emph{New Hart's Rules} puts parentheses around it.}
6447
6448 \begin{bibexbox}
6449 <NHR \S13.4.5>
6450 {young1982}
6451 \emph{Young, James and Webster v UK} (App no 7601/76) (1982) 4 EHRR 38
6452 \tcblower
6453 \begin{Verbatim}
6454 %</n|m|a|y>
6455 @jurisdiction{young1982,
6456 title = {Young, James and Webster v. UK},
6457 number = {7601/76},
6458 reporter = {EHRR},
6459 volume = {4},
6460 date = {1982},
6461 pages = {38},
6462 keywords = {echr}}
6463 %<*n|m|a|y>
6464 \end{Verbatim}
6465 \end{bibexbox}
6466
6467 \begin{bibexbox}
6468 <OSCOLA \S2.7.1>
6469 {balogh04}
6470 \emph{Balogh v Hungary} (App no 47940/99) (ECtHR, 20 July 2004)
6471 \tcblower
6472 \begin{Verbatim}
6473 %</n|m|a|y>
6474 @jurisdiction{balogh04,
6475 title = {Balogh v. Hungary},
6476 number = {47940/99},
6477 date = {2004-07-20},
6478 institution = {ECtHR},
6479 keywords = {echr}}
6480 %<*n|m|a|y>
6481 \end{Verbatim}
6482 \end{bibexbox}
6483
6484 \tip{Special formatting is triggered if you specify \code{Series A} or \code{ECHR} as the \code{journaltitle} or \code{reporter}.}
6485
6486 \begin{bibexbox}
6487 <NHR \S13.4.5>
6488 {plattform1988}
6489 \emph{Plattform \enquote{Artze für das Leben} v Austria} (App no 10126/82) (1988) Series A no 139
6490 \tcblower
6491 \begin{Verbatim}
6492 %</n|m|a|y>
6493 @jurisdiction{plattform1988,
6494 title = {Plattform \enquote{Artze für das Leben} v. Austria},
6495 number = {10126/82},
6496 reporter = {Series A},
6497 date = {1988},
6498 pages = {139},
6499 keywords = {echr}}
6500 %<*n|m|a|y>
6501 \end{Verbatim}
6502 \end{bibexbox}
6503
6504 \begin{bibexbox}
6505 <NHR \S13.4.5>
6506 {osman1998}
6507 \emph{Osman v UK} (App no 23452/94) ECHR 1998–VIII 3124
6508 \tcblower
6509 \begin{Verbatim}
6510 %</n|m|a|y>
6511 @jurisdiction{osman1998,
6512 title = {Osman v UK},
6513 number = {23452/94},
6514 reporter = {ECHR},
6515 date = {1998},
6516 volume = {8},
6517 pages = {3124},
6518 institution = {ECtHR},
6519 keywords = {echr}}
6520 %<*n|m|a|y>
6521 \end{Verbatim}
6522 \end{bibexbox}
6523
6524 \tip{For the older European Commission of Human Rights, the \code{institution}
6525 should be set to \code{Commission} but the information is effectively discarded
6526 if you give the \code{journltitle} as \code{CD} or \code{DR}.}
6527
6528 \begin{bibexbox}
6529 <OSCOLA \S2.7.2>
6530 {x71}
6531 \emph{X v Netherlands} (1971) 38 CD 9
6532 \tcblower
6533 \begin{Verbatim}
6534 %</n|m|a|y>
6535 @jurisdiction{x71,
6536 title = {X v. Netherlands},
6537 date = {1971},
6538 volume = {38},
6539 journaltitle = {CD},
6540 pages = {9},
6541 institution = {Commission},
6542 keywords = {echr}}
6543 %<*n|m|a|y>
6544 \end{Verbatim}
6545 \end{bibexbox}
6546
6547 \begin{bibexbox}
6548 <OSCOLA \S2.7.2>
6549 {ccsu87}
6550 \emph{Council of Civil Service Unions v UK} (1987) 10 EHRR 269 (Commission Decision)
6551 \tcblower
6552 \begin{Verbatim}
6553 %</n|m|a|y>
6554 @jurisdiction{ccsu87,
6555 title = {Council of Civil Service Unions v. UK},
6556 date = {1987},
6557 volume = {10},
6558 journaltitle = {EHRR},
6559 pages = {269},
6560 institution = {Commission},
6561 keywords = {echr}}
6562 %<*n|m|a|y>
6563 \end{Verbatim}
6564 \end{bibexbox}
6565
6566 \begin{bibexbox}
6567 <OSCOLA \S2.7.2>
6568 {simpson86}
6569 \emph{Simpson v UK} (1989) 64 DR 188
6570 \tcblower
6571 \begin{Verbatim}
6572 %</n|m|a|y>
6573 @jurisdiction{simpson86,
6574 title = {Simpson v. UK},
6575 date = {1989},
6576 volume = {64},
6577 journaltitle = {DR},
6578 pages = {188},
6579 institution = {Commission},
6580 keywords = {echr}}
6581 %<*n|m|a|y>
6582 \end{Verbatim}
6583 \end{bibexbox}
6584
6585 \begin{bibexbox}
6586 <OSCOLA \S2.7.2*>
6587 {p.uk88}
6588 \emph{P v UK} (App no 13473/87) (Commission Decision, 11 July 1988)
6589 \tcblower
6590 \begin{Verbatim}
6591 %</n|m|a|y>
6592 @jurisdiction{p.uk88,
6593 title = {P v. UK},
6594 date = {1988-07-11},
6595 number = {13473/87},
6596 institution = {Commission},
6597 keywords = {echr}}
6598 %<*n|m|a|y>
6599 \end{Verbatim}
6600 \end{bibexbox}
6601
6602 \subsection{Cases from other jurisdictions}
6603
6604 The \emph{Oxford Guide to Style}, \emph{New Hart's Rules}, and \emph{OSCOLA}
6605 provide only limited information on citing cases from other jurisdictions,
6606 deferring to other authorities I can't effectively support in
6607 \pkg[biblatex]{oxref}. The examples in this section demonstrate a few
6608 formats that can nevertheless be achieved.
6609
6610 \subsubsection{Australia}
6611
6612 \begin{bibexbox}
6613 <OSCOLA \S2.8.1>
6614 {waltons88}
6615 \emph{Waltons Stores (Interstate) Ltd v Maher} (1988) 164 CLR 387
6616 \tcblower
6617 \begin{Verbatim}
6618 %</n|m|a|y>
6619 @jurisdiction{waltons88,
6620 title = {Waltons Stores (Interstate) Ltd v Maher},
6621 date = {1988},
6622 volume = {164},
6623 reporter = {C.L.R.},
6624 pages = {387},
6625 keywords = {au}}
6626 %<*n|m|a|y>
6627 \end{Verbatim}
6628 \end{bibexbox}
6629
6630 \begin{bibexbox}
6631 {bakker}
6632 \emph{Bakker v Stewart} [1980] VR 17
6633 \tcblower
6634 \begin{Verbatim}
6635 %</n|m|a|y>
6636 @jurisdiction{bakker,
6637 title = {Bakker v. Stewart},
6638 date = {1980},
6639 reporter = {V.R.},
6640 pages = {17},
6641 keywords = {au}}
6642 %<*n|m|a|y>
6643 \end{Verbatim}
6644 \end{bibexbox}
6645
6646 \subsubsection{Canada}
6647
6648 \info{\emph{New Hart's Rules} prefers to put commas between case titles and bare
6649 numbers, but you can suppress this for Canadian cases with the following command:}
6650 \begin{tcblisting}{listing only,left skip=2em}
6651 \renewcommand*{\cacasetitlepunct}{\addspace}
6652 \end{tcblisting}
6653
6654 \begin{bibexbox}
6655 {clearbrook}
6656 \emph{Clearbrook Ironworks Ltd v Letorneau}, 2006 FCA 42, 46 CPR (4th) 241
6657 \tcblower
6658 \begin{Verbatim}
6659 %</n|m|a|y>
6660 @jurisdiction{clearbrook,
6661 title = {Clearbrook Ironworks Ltd. v. Letorneau},
6662 number = {2006 FCA 42},
6663 volume = {46},
6664 reporter = {C.P.R.},
6665 series = {4th},
6666 pages = {241},
6667 date = {2006},
6668 pagination = {paragraph},
6669 keywords = {ca}}
6670 %<*n|m|a|y>
6671 \end{Verbatim}
6672 \end{bibexbox}
6673
6674 \subsubsection{United States of America}
6675
6676 \info{\emph{New Hart's Rules} prefers to put commas between case titles and bare
6677 numbers, but you can suppress this for American cases with the following command:}
6678 \begin{tcblisting}{listing only,left skip=2em}
6679 \renewcommand*{\uscasetitlepunct}{\addspace}
6680 \end{tcblisting}
6681
6682 \begin{bibexbox}
6683 <NHR \S13.4.1>
6684 {michael1976}
6685 \emph{Michael v Johnson}, 426 US 346 (1976)
6686 \tcblower
6687 \begin{Verbatim}
6688 %</n|m|a|y>
6689 @jurisdiction{michael1976,
6690 title = {Michael v. Johnson},
6691 volume = {426},
6692 reporter = {U.S.},
6693 pages = {346},
6694 date = {1976},
6695 keywords = {us}}
6696 %<*n|m|a|y>
6697 \end{Verbatim}
6698 \end{bibexbox}
6699
6700 \begin{bibexbox}
6701 <OSCOLA \S2.8.1*>
6702 {henningsen60}
6703 \emph{Henningsen v Bloomfield Motors Inc}, 161 A 2d 69 (NJ 1960)
6704 \tcblower
6705 \begin{Verbatim}
6706 %</n|m|a|y>
6707 @jurisdiction{henningsen60,
6708 title = {Henningsen v. Bloomfield Motors Inc.},
6709 volume = {161},
6710 reporter = {A.},
6711 series = {2},
6712 pages = {69},
6713 location = {NJ},
6714 date = {1960},
6715 keywords = {us}}
6716 %<*n|m|a|y>
6717 \end{Verbatim}
6718 \end{bibexbox}
6719
6720 \begin{bibexbox}
6721 <OSCOLA \S2.8.1*>
6722 {roe73}
6723 \emph{Roe v Wade}, 410 US 113, 163–64 (1973)
6724 \tcblower
6725 \begin{Verbatim}
6726 %</n|m|a|y>
6727 @jurisdiction{roe73,
6728 title = {Roe v. Wade},
6729 volume = {410},
6730 reporter = {U.S.},
6731 pages = {113, 163--64},
6732 date = {1973},
6733 keywords = {us}}
6734 %<*n|m|a|y>
6735 \end{Verbatim}
6736 \end{bibexbox}
6737
6738 \begin{bibexbox}
6739 {operadora09}
6740 \emph{Re Operadora DB Mexico SA}, 6:09-cv-383-Orl 022GJK, 2009 WL 2423138 (MD Fla 2009)
6741 \tcblower
6742 \begin{Verbatim}
6743 %</n|m|a|y>
6744 @jurisdiction{operadora09,
6745 title = {Re Operadora D.B. Mexico S.A.},
6746 number = {6:09-cv-383-Orl 022GJK},
6747 eprint = {2009 WL 2423138},
6748 court = {M.D. Fla.},
6749 date = {2009},
6750 keywords = {us}}
6751 %<*n|m|a|y>
6752 \end{Verbatim}
6753 \end{bibexbox}
6754
6755 \subsubsection{International}
6756
6757 \begin{bibexbox}
6758 {corfu}
6759 \emph{Corfu Channel Case (UK v Albania)} (Merits) [1949] ICJ Rep 4
6760 \tcblower
6761 \begin{Verbatim}
6762 %</n|m|a|y>
6763 @jurisdiction{corfu,
6764 title = {Corfu Channel Case},
6765 subtitle = {UK v Albania},
6766 titleaddon = {Merits},
6767 date = {1949},
6768 journaltitle = {ICJ Rep},
6769 pages = {4},
6770 keywords = {int}}
6771 %<*n|m|a|y>
6772 \end{Verbatim}
6773 \end{bibexbox}
6774
6775 \begin{bibexbox}
6776 {nicaragua}
6777 \emph{Land, Island and Maritime Frontier Case (El Salvador/Honduras, Nicaragua intervening)} (Application for Intervention) [1994] ICJ Rep 92
6778 \tcblower
6779 \begin{Verbatim}
6780 %</n|m|a|y>
6781 @jurisdiction{nicaragua,
6782 title = {Land, Island and Maritime Frontier Case},
6783 subtitle = {El Salvador\slash Hon\-duras, Nicaragua intervening},
6784 titleaddon = {Application for Intervention},
6785 date = {1994},
6786 journaltitle = {ICJ Rep},
6787 pages = {92},
6788 keywords = {int}}
6789 %<*n|m|a|y>
6790 \end{Verbatim}
6791 \end{bibexbox}
6792
6793 \begin{bibexbox}
6794 {wall}
6795 \emph{Legal Consequences of the Construction of a Wall} (Advisory Opinion) (2004), \url{http://www.icj-cij.org/icjwww/imwp/imwpframe.htm}, accessed 21 July 2005
6796 \tcblower
6797 \begin{Verbatim}
6798 %</n|m|a|y>
6799 @jurisdiction{wall,
6800 title = {Legal Consequences of the Construction of a Wall},
6801 titleaddon = {Advisory Opinion},
6802 date = {2004},
6803 url = {http://www.icj-cij.org/icjwww/imwp/imwpframe.htm},
6804 urldate = {2005-07-21},
6805 pagination = {[]},
6806 keywords = {int}}
6807 %<*n|m|a|y>
6808 \end{Verbatim}
6809 \end{bibexbox}
6810
6811 \begin{bibexbox}
6812 {chorzow}
6813 \emph{Case Concerning the Factory at Chorzów (Germany v Poland)} (Merits) [1928] PCIJ Rep Series A No 17
6814 \tcblower
6815 \begin{Verbatim}
6816 %</n|m|a|y>
6817 @jurisdiction{chorzow,
6818 title = {Case Concerning the Factory at Chorzów},
6819 indextitle = {Chorzów Factory Case},
6820 subtitle = {Germany v Poland},
6821 titleaddon = {Merits},
6822 journaltitle = {PCIJ Rep},
6823 series = {A},
6824 pages = {17},
6825 date = {1928},
6826 keywords = {int}}
6827 %<*n|m|a|y>
6828 \end{Verbatim}
6829 \end{bibexbox}
6830
6831 \section{Legislation}
6832
6833 Use the \code{legislation} entry type for citing Acts, Bills, Orders, Measures, and the like.
6834
6835 \subsection{UK legislation}
6836
6837 \tip{Specify an \code{entrysubtype} of \code{primary} for primary legislation.
6838 This ensures only the title and year are printed.}
6839
6840 \begin{bibexbox}
6841 <OGS \S13.2.3>
6842 {fwa1891}
6843 Factory and Workshop Act 1891
6844 \tcblower
6845 \begin{Verbatim}
6846 %</n|m|a|y>
6847 @legislation{fwa1891,
6848 entrysubtype = {primary},
6849 title = {Factory and Workshop Act},
6850 shorttitle = {FWA 91},
6851 date = {1891},
6852 pagination = {section},
6853 keywords = {en},
6854 number = {54 \& 55 Vict, c. 75}}
6855 %<*n|m|a|y>
6856 \end{Verbatim}
6857 \end{bibexbox}
6858
6859 \begin{bibexbox}
6860 <OSCOLA \S2.4.6>
6861 {learner08}
6862 Learner Travel (Wales) Measure 2008 (nawm 2)
6863 \tcblower
6864 \begin{Verbatim}
6865 %</n|m|a|y>
6866 @legislation{learner08,
6867 title = {Learner Travel (Wales) Measure},
6868 date = {2008},
6869 number = {nawm 2},
6870 keywords = {cy},
6871 entrysubtype = {primary},
6872 pagination = {section}}
6873 %<*n|m|a|y>
6874 \end{Verbatim}
6875 \end{bibexbox}
6876
6877 \begin{bibexbox}
6878 <OSCOLA \S2.4.5>
6879 {confund}
6880 Consolidated Fund HC Bill (2008–09) [5]
6881 \tcblower
6882 \begin{Verbatim}
6883 %</n|m|a|y>
6884 @legislation{confund,
6885 title = {Consolidated Fund Bill},
6886 date = {2008/2009},
6887 institution = {HC},
6888 number = {5},
6889 keywords = {gb, draft},
6890 entrysubtype = {primary},
6891 pagination = {clause}}
6892 %<*n|m|a|y>
6893 \end{Verbatim}
6894 \end{bibexbox}
6895
6896 \begin{bibexbox}
6897 <OSCOLA \S2.4.5>
6898 {academies}
6899 Academies HL Bill (2010–11) 1
6900 \tcblower
6901 \begin{Verbatim}
6902 %</n|m|a|y>
6903 @legislation{academies,
6904 title = {Academies Bill},
6905 date = {2010/2011},
6906 institution = {HL},
6907 number = {1},
6908 keywords = {gb, draft},
6909 entrysubtype = {primary},
6910 pagination = {clause}}
6911 %<*n|m|a|y>
6912 \end{Verbatim}
6913 \end{bibexbox}
6914
6915 \begin{bibexbox}
6916 <OSCOLA \S2.4.4>
6917 {charitiesnotes}
6918 Explanatory Notes on the Charities Act 2006
6919 \tcblower
6920 \begin{Verbatim}
6921 %</n|m|a|y>
6922 @legal{charitiesnotes,
6923 title = {Explanatory Notes on the Charities Act 2006},
6924 indextitle = {Charities Act 2006, Explanatory Note},
6925 pagination = {paragraph},
6926 entrysubtype = {explanatory note}}
6927 %<*n|m|a|y>
6928 \end{Verbatim}
6929 \end{bibexbox}
6930
6931 \tip{Specify an \code{entrysubtype} of \code{secondary} for secondary legislation.
6932 The number is then printed as well.}
6933
6934 \begin{bibexbox}
6935 <NHR \S13.5.1>
6936 {lap1897}
6937 Local Authority Precepts Order 1897, SR~\&~O 1897/201
6938 \tcblower
6939 \begin{Verbatim}
6940 %</n|m|a|y>
6941 @legislation{lap1897,
6942 entrysubtype = {secondary},
6943 title = {Local Authority Precepts Order},
6944 date = {1897},
6945 number = {SR~\&~O 1897\slash 201},
6946 pagination = {rule}}
6947 %<*n|m|a|y>
6948 \end{Verbatim}
6949 \end{bibexbox}
6950
6951 \begin{bibexbox}
6952 <OSCOLA \S2.5.3>
6953 {eggs}
6954 Eggs and Chicks (England) Regulations 2009, SI 2009/2163
6955 \tcblower
6956 \begin{Verbatim}
6957 %</n|m|a|y>
6958 @legislation{eggs,
6959 entrysubtype = {secondary},
6960 title = {Eggs and Chicks (England) Regulations},
6961 date = {2009},
6962 number = {SI 2009\slash 2163},
6963 pagination = {regulation}}
6964 %<*n|m|a|y>
6965 \end{Verbatim}
6966 \end{bibexbox}
6967
6968 %<*n>
6969 \begin{egcite}{\emph{Eggs and Chicks (England) Regulations}, reg.~7(3)}
6970 \cite[\pno~7(3)]{eggs}
6971 \end{egcite}
6972 %</n>
6973 %<*m|a>
6974 \begin{egcite}{}
6975 \textcite[\pno~7(3)]{eggs}
6976 \end{egcite}
6977 %</m|a>
6978 %<*y>
6979 \begin{egcite}{}
6980 \parencite[\pno~7(3)]{eggs}
6981 \end{egcite}
6982 %</y>
6983
6984 \subsection{European legislation}
6985
6986 As with European cases, European legislation should be given the \val{eu} keyword.
6987 This is currently the only keyword that makes a difference to the formatting.
6988
6989 According to both the \emph{Oxford Guide to Style} and \emph{New Hart's Rules},
6990 you can provide an even sparser reference for primary European legislation.
6991
6992 %<*n>
6993 \begin{egcite}{EC Treaty (Treaty of Rome, as amended), art.~3b}
6994 \cite[\pno~3b]{ECT:Rome}
6995 \end{egcite}
6996 %</n>
6997 %<*m|a>
6998 \begin{egcite}{}
6999 \textcite[\pno~3b]{ECT:Rome}
7000 \end{egcite}
7001 %</m|a>
7002 %<*y>
7003 \begin{egcite}{}
7004 \parencite[\pno~3b]{ECT:Rome}
7005 \end{egcite}
7006 %</y>
7007
7008 \begin{bibexbox}
7009 %<n><OGS \S13.2.7*>
7010 %<y><OGS \S13.2.7*\textdagger>
7011 {ECT:Rome}%
7012 EC Treaty
7013 \tcblower
7014 \begin{Verbatim}
7015 %</n|m|a|y>
7016 @legislation{ECT:Rome,
7017 entrysubtype = {eu-treaty},
7018 title = {EC Treaty},
7019 %<!m|a|y> shorthandintro = {Treaty of Rome, as amended},
7020 %<!m|a> shorthand = {EC Treaty},
7021 pagination = {article},
7022 keywords = {eu}}
7023 %<*n|m|a|y>
7024 \end{Verbatim}
7025 \end{bibexbox}
7026
7027 If this seems scandalously short, you may prefer to provide a full reference (including the relevant entry in the OJ or OJ Spec Ed) for the bibliography and use, say, \cs{citetitle} for citations.
7028
7029 \begin{bibexbox}
7030 <OSCOLA \S2.6.1>
7031 {teu}
7032 Consolidated Version of the Treaty on European Union [2008] OJ C115/13
7033 \tcblower
7034 \begin{Verbatim}
7035 %</n|m|a|y>
7036 @legislation{teu,
7037 entrysubtype = {eu-treaty},
7038 title = {Consolidated Version of the Treaty on European Union},
7039 indextitle = {Treaty on European Union},
7040 date = {2008},
7041 journaltitle = {OJ},
7042 series = {C},
7043 volume = {115},
7044 pages = {13},
7045 pagination = {article},
7046 keywords = {eu}}
7047 %<*n|m|a|y>
7048 \end{Verbatim}
7049 \end{bibexbox}
7050
7051 Secondary legislation should always have a full reference.
7052
7053 \begin{bibexbox}
7054 <NHR \S13.5.2>
7055 {EC:97/1}
7056 Council Directive (EC) 97/1 on banking practice [1997] OJ L234/3
7057 \tcblower
7058 \begin{Verbatim}
7059 %</n|m|a|y>
7060 @legislation{EC:97/1,
7061 title = {Council Directive (EC) 97/1 on banking practice},
7062 date = {1997},
7063 journaltitle = {OJ},
7064 series = {L},
7065 issue = {234},
7066 pages = {3},
7067 pagination = {article},
7068 keywords = {eu}}
7069 %<*n|m|a|y>
7070 \end{Verbatim}
7071 \end{bibexbox}
7072
7073 \begin{bibexbox}
7074 <NHR \S13.5.2>
7075 {EEC:1017/68}
7076 Council Regulation (EEC) 1017/68 applying rules of competition to transport [1968] OJ Spec Ed 302
7077 \tcblower
7078 \begin{Verbatim}
7079 %</n|m|a|y>
7080 @legislation{EEC:1017/68,
7081 title = {Council Regulation (EEC) 1017/68 applying rules of competition to transport},
7082 date = {1968},
7083 journaltitle = {OJ Spec Ed},
7084 pages = {302},
7085 pagination = {article},
7086 keywords = {eu}}
7087 %<*n|m|a|y>
7088 \end{Verbatim}
7089 \end{bibexbox}
7090
7091 \tip{Add amendment notices to the \code{note} field; \pkg[biblatex]{oxref} does not, sadly, provide a clever way of constructing these from their component parts so you have to write them verbatim.}
7092
7093 \begin{bibexbox}
7094 <NHR \S13.5.2>
7095 {ECN:1986}
7096 Commission Notice on agreements of minor importance [1986] OJ C231/2, as amended [1994] OJ C368/20
7097 \tcblower
7098 \begin{Verbatim}
7099 %</n|m|a|y>
7100 @legislation{ECN:1986,
7101 title = {Commission Notice on agreements of minor importance},
7102 date = {1986},
7103 journaltitle = {OJ},
7104 series = {C},
7105 issue = {231},
7106 pages = {2},
7107 note = {as amended [1994] OJ C368/20},
7108 keywords = {eu}}
7109 %<*n|m|a|y>
7110 \end{Verbatim}
7111 \end{bibexbox}
7112
7113
7114 \section{Treaties}
7115
7116 Treaties use the \code{legal} entry type, with \code{piltreaty} as the \code{entrysubtype}.
7117
7118 \tip{Don't use the \code{date} field for treaties; instead, use the \code{execution} field to give a list of dates. Each date should be given in the form \meta{type}=\meta{year-month-day}, where \meta{type} is one of \key{opened}, \key{signed}, \key{adopted}, or \key{inforce}. The dates won't be sorted; they will be printed in the order given.}
7119
7120 \begin{bibexbox}
7121 <NHR \S13.6*>
7122 {refugees}
7123 Convention Relating to the Status of Refugees (adopted 28 July 1951, entered into force 22 Apr.\@ 1954) 189 UNTS 137
7124 \tcblower
7125 \begin{Verbatim}
7126 %</n|m|a|y>
7127 @legal{refugees,
7128 entrysubtype = {piltreaty},
7129 title = {Convention Relating to the Status of Refugees},
7130 %<!m&!a> shorthand = {Refugee Convention},
7131 execution = {adopted=1951-07-28 and inforce=1954-04-22},
7132 pagination = {article},
7133 volume = {189},
7134 journaltitle = {UNTS},
7135 pages = {137}}
7136 %<*n|m|a|y>
7137 \end{Verbatim}
7138 \end{bibexbox}
7139
7140 %<*y>
7141 \tip{Since the lack of a \code{date} field may cause an inaccurate \enquote{n.d.\@} label to be printed, use the \code{shorthand} field to provide a sensible citation label. You could use \cs{citetitle} the first time to ensure the reader can find it in the bibliography. You can also suppress the \enquote{n.d.\@} label by specifying \code{sortyear} or using the \key{nonodate} option.}
7142
7143 \begin{egcite}{(Refugee Convention: art.\@ 24)}
7144 \parencite[24]{refugees}
7145 \end{egcite}
7146
7147 %</y>
7148
7149 \begin{bibexbox}
7150 {echr:treaty}
7151 Convention for the Protection of Human Rights and Fundamental Freedoms (opened for signature 4 Nov.\@ 1950, entered into force 3 Sept.\@ 1953) 213 UNTS 221, as amended by Protocol No 14bis to the Convention for the Protection of Human Rights and Fundamental Freedoms (opened for signature 27 May 2009, entered into force 1 Sept.\@ 2009) CETS No. 204
7152 \tcblower
7153 \begin{Verbatim}
7154 %</n|m|a|y>
7155 @legal{echr:treaty,
7156 entrysubtype = {piltreaty},
7157 title = {Convention for the Protection of Human Rights and Fundamental Freedoms},
7158 execution = {opened=1950-11-04 and inforce=1953-09-03},
7159 volume = {213},
7160 reporter = {UNTS},
7161 pages = {221},
7162 shorthand = {ECHR},
7163 related = {echr:protocol},
7164 relatedtype = {amendedby}}
7165 @legal{echr:protocol,
7166 entrysubtype = {piltreaty},
7167 title = {Protocol No 14bis to the Convention for the Protection of Human Rights
7168 and Fundamental Freedoms},
7169 execution = {opened=2009-05-27 and inforce=2009-09-01},
7170 series = {CETS},
7171 number = {204}}
7172 %<*n|m|a|y>
7173 \end{Verbatim}
7174 \end{bibexbox}
7175
7176 \section{Hansard}
7177
7178 References to Hansard use the \code{legal} entry type, with \code{parliamentary} as the \code{entrysubtype}.
7179
7180 \tip{For debates since 1909, give \code{Hansard} as the \code{title} and put either \code{HC} or \code{HL} in the \code{type} field.}
7181
7182 \tip{Put the column numbers in the \code{pages} field, and put \code{column} in the \code{bookpagination} field.}
7183
7184 \begin{bibexbox}
7185 <NHR \S13.7.3*>
7186 {hc357}
7187 Hansard, HC vol.\@ 357, cols.\@ 234–45 (13 Apr.\@ 1965)
7188 \tcblower
7189 \begin{Verbatim}
7190 %</n|m|a|y>
7191 @legal{hc357,
7192 entrysubtype = {parliamentary},
7193 title = {Hansard},
7194 type = {HC},
7195 volume = {357},
7196 pages = {234-245},
7197 date = {1965-04-13},
7198 bookpagination = {column}}
7199 %<*n|m|a|y>
7200 \end{Verbatim}
7201 \end{bibexbox}
7202
7203 \tip{For debates before 1909, give \code{Parl. Deb.} as the \code{title}.}
7204
7205 \begin{bibexbox}
7206 <NHR \S13.7.3*>
7207 {pd4/24}
7208 Parl.\@ Deb.\@ (series 4) vol.\@ 24, col.\@ 234 (24 Mar.\@ 1895)
7209 \tcblower
7210 \begin{Verbatim}
7211 %</n|m|a|y>
7212 @legal{pd4/24,
7213 entrysubtype = {parliamentary},
7214 title = {Parl\adddotspace Deb\adddot},
7215 series = {4},
7216 volume = {24},
7217 pages = {234},
7218 date = {1895-03-24},
7219 bookpagination = {column}}
7220 %<*n|m|a|y>
7221 \end{Verbatim}
7222 \end{bibexbox}
7223
7224
7225 \section{Legal reports}
7226
7227 Reports of Parliamentary select committees and the Law Commission should be entered using the \code{report} entry type, with the \code{entrysubtype} set to \code{legal}.
7228
7229 \tip{To print the identifying codes within the publication block, put them all in \code{number}; do not specify a \code{type} or \code{series}.}
7230
7231 \begin{bibexbox}
7232 %<n|m><NHR \S13.7.2>
7233 %<a|y><NHR \S13.7.2\textdagger>
7234 {lc2009icl}
7235 %<n|m>Law Commission, \emph{Intoxication and Criminal Liability} (Law Comm No 314, Cm 7526, 2009) para 1.15
7236 %<a|y>Law Commission (2009), \emph{Intoxication and Criminal Liability} (Law Comm No 314, Cm 7526) para 1.15
7237 \tcblower
7238 \begin{Verbatim}
7239 %</n|m|a|y>
7240 @report{lc2009icl,
7241 entrysubtype = {legal},
7242 author = {{Law Commission}},
7243 title = {Intoxication and Criminal Liability},
7244 number = {Law Comm No 314, Cm 7526},
7245 date = {2009},
7246 pages = {1.15},
7247 bookpagination = {paragraph}}
7248 %<*n|m|a|y>
7249 \end{Verbatim}
7250 \end{bibexbox}
7251
7252
7253 \section{Commentaries}
7254
7255 \pkg[biblatex]{Oxref} does not provide any special formatting for legal commentaries;
7256 it provides the \code{commentary} entry type simply as an alias for \code{book}.
7257
7258
7259 \chapter{Specialist materials}\label{sec:special}
7260 \chapterprecis{misc, unpublished, letter, manuscript}
7261
7262 \section{Poems}\label{sec:poem}
7263
7264 \subsection{Short poems}
7265
7266 \tip{Use the \code{incollection} entry type for a poem in a collection.
7267 If it appears in an article or a work that is itself in a collection,
7268 use the \code{misc} entry type for the poem, with a relation of type \code{in} pointing to the containing work.}
7269
7270 \begin{bibexbox}
7271 %<n|m><OGS \S15.8>
7272 %<a|y><OGS \S15.8\textdagger>
7273 {auden1990era}
7274 %<n|m>W. H. Auden, \enquote{Es regnet auf mir in den Schottische Lände} [\emph{sic}], in \enquote{The German Auden: Six Early Poems}, trans. David Constantine, in Katherine Bucknell and Nicholas Jenkins (eds.), \emph{W. H. Auden, \enquote{The Map of All my Youth}: Early Works, Friends, and Influences} (Auden Studies, 1; Oxford, 1990), 1–15 at 6.
7275 %<a|y>Auden, W. H. (n.d.), \enquote{Es regnet auf mir in den Schottische Lände} [\emph{sic}], in \enquote{The German Auden: Six Early Poems}, trans. D. Constantine, in K. Bucknell and N. Jenkins (eds.), \emph{W. H. Auden, \enquote{The Map of All my Youth}: Early Works, Friends, and Influences} (Auden Studies, 1; Oxford, 1990), 1–15 at 6.
7276 \tcblower
7277 \begin{Verbatim}
7278 %</n|m|a|y>
7279 @misc{auden1990era,
7280 author = {W. H. Auden},
7281 title = {Es regnet auf mir in den Schottische Lände},
7282 titleaddon = {\emph{sic}},
7283 related = {constantine1990gas},
7284 relatedtype = {in},
7285 pages = {6}}
7286 @incollection{constantine1990gas,
7287 title = {The {German} {Auden}},
7288 subtitle = {Six Early Poems},
7289 author = {David Constantine},
7290 authortype = {translator},
7291 options = {useauthor=false},
7292 editor = {Katherine Bucknell and Nicholas Jenkins},
7293 booktitle = {W. H. Auden, \enquote{The Map of All my Youth}},
7294 booksubtitle = {Early Works, Friends, and Influences},
7295 series = {Auden Studies},
7296 number = {1},
7297 location = {Oxford},
7298 date = {1990},
7299 pages = {1-15}}
7300 %<*n|m|a|y>
7301 \end{Verbatim}
7302 \end{bibexbox}
7303
7304
7305 \begin{bibexbox}
7306 %<n|m><OGS \S15.8>
7307 %<a|y><OGS \S15.8\textdagger>
7308 {blois1993qff}
7309 %<n|m>William of Blois, \enquote{The Quarrel of the Flea and the Fly} (\emph{Pulicis et musce iurgia}), trans. in Jan M. Ziolkowski, \emph{Talking Animals: Medieval Latin Beast Poetry, 750-1150} (Middle Ages Series, ed. Edward Peters; Philadelphia: University of Pennsylvania Press, 1993), 274–8.
7310 %<a|y>William of Blois (n.d.), \enquote{The Quarrel of the Flea and the Fly} (\emph{Pulicis et musce iurgia}), trans. in Ziolkowski, J. M., \emph{Talking Animals: Medieval Latin Beast Poetry, 750-1150} (Middle Ages Series, ed. E. Peters; Philadelphia: University of Pennsylvania Press, 1993), 274–8.
7311 \tcblower
7312 \begin{Verbatim}
7313 %</n|m|a|y>
7314 @misc{blois1993qff,
7315 author = {{William of Blois}},
7316 title = {The Quarrel of the Flea and the Fly},
7317 origtitle = {Pulicis et musce iurgia},
7318 related = {ziolkowski1993tam},
7319 relatedtype = {in},
7320 relatedstring = {trans.\@ in},
7321 pages = {274-278}}
7322 @book{ziolkowski1993tam,
7323 author = {Jan M. Ziolkowski},
7324 title = {Talking Animals},
7325 subtitle = {Medieval Latin Beast Poetry, 750-1150},
7326 series = {Middle Ages Series},
7327 serieseditor = {Edward Peters},
7328 location = {Philadelphia},
7329 publisher = {University of Pennsylvania Press},
7330 date = {1993}}
7331 %<*n|m|a|y>
7332 \end{Verbatim}
7333 \end{bibexbox}
7334
7335 \subsection{Long poems}
7336
7337 If a poem is divided into cantos, the title is set in italics rather than quoted.
7338
7339 \tip{To achieve this, use the entry type \code{book} if the poem is published on its own,
7340 and \code{bookinbook} with entry subtype \code{poem} if the poem is published in an anthology.}
7341
7342 \tip{To assist with quoting passages, \pkg[biblatex]{oxref} provides the additional pagination types
7343 \code{book}, \code{canto}, and \code{stanza} (\code{line} is already defined),
7344 though in reality you are probably better off doing it by hand.}
7345
7346 %<*n>
7347 \begin{egcite}{\dots 1590–6), bk. ii, canto vi, stanza iii}
7348 \cite[\pno~ii, canto vi, stanza iii]{spenser1965fq}
7349 \end{egcite}
7350 %</n>
7351 %<*m|a>
7352 \begin{egcite}{}
7353 \textcite[\pno~ii, canto vi, stanza iii]{spenser1965fq}
7354 \end{egcite}
7355 %</m|a>
7356 %<*y>
7357 \begin{egcite}{}
7358 \parencite[\pno~ii, canto vi, stanza iii]{spenser1965fq}
7359 \end{egcite}
7360 %</y>
7361
7362 \begin{bibexbox}
7363 %<n|m><OGS \S15.8*>
7364 %<a|y><OGS \S15.8*\textdagger>
7365 {spenser1965fq}%
7366 %<n|m>Edmund Spenser, \emph{The Faerie Queene} (Everyman's Library, 443–4; London: Dent, 1965–6) (originally pub. 1590–6).
7367 %<a|y>Spenser, E. (1590–6), \emph{The Faerie Queene} (Everyman's Library, 443–4; London: Dent, 1965–6).
7368 \tcblower
7369 \begin{Verbatim}
7370 %</n|m|a|y>
7371 @book{spenser1965fq,
7372 author = {Edmund Spenser},
7373 title = {The Faerie Queene},
7374 shorttitle = {Faerie Queene},
7375 series = {Everyman's Library},
7376 number = {443--4},
7377 location = {London},
7378 publisher = {Dent},
7379 date = {1965/1966},
7380 origdate = {1590/1596},
7381 pagination = {book}}
7382 %<*n|m|a|y>
7383 \end{Verbatim}
7384 \end{bibexbox}
7385
7386
7387 \section{Plays}\label{sec:play}
7388
7389 Play titles, like those of epic poems, are set in italics rather than quoted.
7390
7391 \tip{To achieve this, use the entry type \code{book} if the play is published on its own,
7392 and \code{bookinbook} with entry subtype \code{play} if the play is published in an anthology.}
7393
7394 \tip{To assist with quoting passages, \pkg[biblatex]{oxref} provides the additional pagination types
7395 \code{act} and \code{scene} (\code{line} is already defined),
7396 though in reality you are probably better off doing it by hand.}
7397
7398
7399 \section{Manuscripts}\label{sec:ms}
7400
7401 %<*y>
7402 An author–date system like \textsf{oxyear} does not really lend itself to manuscript references,
7403 but support is provided anyway for the sake of completeness.
7404
7405 %</y>
7406 %<n|m>\spec{Author, \enquote{Title}/Descriptor, Date, Archive, Location, Collection Series, Shelfmark, Folios.}
7407 %<a|y>\spec{Author (Year), \enquote{Title}/Descriptor, Date, Archive, Location, Collection Series, Shelfmark, Folios.}
7408
7409 With \pkg[biblatex]{oxref}, you can enter manuscripts in either of two ways. The first uses the \code{unpublished} entry type.
7410
7411 \tip{If the manuscript has a descriptor but no title, put the descriptor in the \code{title} field and annotate the field with the term \enquote{\code{descriptor}}. If you want to supply both a title and a descriptor, put the descriptor in the \code{note} field. Alternatively, you can use the (\pkg[biblatex]{oxref}-specific) \code{descriptor} field, and \pkg[biblatex]{oxref} will handle all this for you.}
7412
7413 \tip{Use \code{author} and \code{date} as normal. Note that the \code{date} will not be printed if both the \code{author} and \code{title}\slash \code{descriptor} fields are left blank.}
7414
7415 \tip{Put the library or archive where the manuscript is kept in the \code{library} field, and the city or place name in the \code{location} field. Note that the \code{library} field is required to switch on the special support for manuscripts.}
7416
7417 \tip{Put the collection name in the \code{series} field and the shelfmark in the \code{number} field.}
7418
7419 \tip{Put the page range studied (or some other subdivision) in the \code{pages} field. You can use \cs{recto} and \cs{verso} for the respective sides of a folio, and you can also specify a \code{pagetotal}.}
7420
7421 \tip{You can use the \code{folio} key in the \code{pagination} and \code{bookpagination} fields.}
7422
7423 \begin{bibexbox}
7424 %<n|m><NHR 18.6.3*>
7425 %<a|y><NHR 18.6.3*\textdagger>
7426 {smithMS23116}
7427 %<n|m>Francis Smith, travel diaries, 1912–7, British Library, Add. MS 23116.
7428 %<a|y>Smith, F. (1912–7), travel diaries, British Library, Add. MS 23116.
7429 \tcblower
7430 \begin{Verbatim}
7431 %</n|m|a|y>
7432 @unpublished{smithMS23116,
7433 author = {Francis Smith},
7434 descriptor = {travel diaries},
7435 date = {1912/1917},
7436 library = {British Library},
7437 series = {Add. MS},
7438 number = {23116}}
7439 %<*n|m|a|y>
7440 \end{Verbatim}
7441 \end{bibexbox}
7442
7443 The second uses the dedicated \code{manuscript} entry type from \textsf{biblatex-manuscripts-philology}.
7444 \pkg[biblatex]{Oxref} does not have all the bells and whistles of that style, but it understands a subset of its data model.
7445
7446 \tip{You can use \code{author}, \code{title}\slash \code{note}\slash \code{descriptor} and \code{date} as described above. (This is a departure from \textsf{biblatex-manuscripts-philology}.)}
7447
7448 \tip{Put the library or archive where the manuscript is kept in the \code{library} field, and the city or place name in the \code{location} field}
7449
7450 \tip{Put the collection name in the \code{collection} field and the shelfmark in the \code{shelfmark} field.}
7451
7452 \tip{If the date is vague (e.g. a century), you can put this in the \code{dating} field. Note that it will only be printed if the \code{date} is missing\slash not printed.}
7453
7454 \tip{Put the page range studied (or some other subdivision) in the \code{pages} field. You can use \cs{recto} and \cs{verso} for the respective sides of a folio, and you can also specify a \code{pagetotal}.}
7455
7456 \tip{You can specify the number of columns (either \code{1} or \code{2}) in the \code{columns} field.}
7457
7458 \tip{You can specify the layer of a palimpsest in the \code{layer} field. Use \code{inf} for the inferior layer and \code{sup} for the superior layer.}
7459
7460 \tip{You can specify the writing support material in the \code{support} field. Three special keys – \code{papyrus}, \code{paper}, and \code{parchment} – are recognized and (potentially) translated, but other values will be printed as-is.}
7461
7462 \begin{bibexbox}
7463 %<n|m><NHR 18.6.2>
7464 %<a|y><NHR 18.6.2\textdagger>
7465 {chaundlerMS288}
7466 %<n|m>Thomas Chaundler, \enquote{Collocutiones}, Balliol College, Oxford, MS288.
7467 %<a|y>Chaundler, T. (n.d.), \enquote{Collocutiones}, Balliol College, Oxford, MS288.
7468 \tcblower
7469 \begin{Verbatim}
7470 %</n|m|a|y>
7471 @manuscript{chaundlerMS288,
7472 author = {Thomas Chaundler},
7473 title = {Collocutiones},
7474 library = {Balliol College},
7475 location = {Oxford},
7476 shelfmark = {MS288}}
7477 %<*n|m|a|y>
7478 \end{Verbatim}
7479 \end{bibexbox}
7480
7481 \begin{bibexbox}
7482 %<n|m><NHR 18.6.2>
7483 %<a|y><NHR 18.6.2\textdagger>
7484 {exchequerE311}
7485 %<n|m>exchequer accounts, Dec. 1798, Cheshire Record Office, E311.
7486 %<a|y>exchequer accounts (1798), Dec., Cheshire Record Office, E311.
7487 \tcblower
7488 \begin{Verbatim}
7489 %</n|m|a|y>
7490 @manuscript{exchequerE311,
7491 descriptor = {exchequer accounts},
7492 date = {1798-12},
7493 library = {Cheshire Record Office},
7494 shelfmark = {E311}}
7495 %<*n|m|a|y>
7496 \end{Verbatim}
7497 \end{bibexbox}
7498
7499 \begin{bibexbox}
7500 %<n|m><NHR 18.6.3>
7501 %<a|y><NHR 18.6.3\textdagger>
7502 {blcBOX19d}
7503 %<n|m>Bearsden Ladies' Club minutes, 12 June 1949, Bearsden and Milngavie District Libraries, box 19/d.
7504 %<a|y>Bearsden Ladies' Club minutes (1949), 12 June, Bearsden and Milngavie District Libraries, box 19/d.
7505 \tcblower
7506 \begin{Verbatim}
7507 %</n|m|a|y>
7508 @manuscript{blcBOX19d,
7509 title = {Bearsden Ladies' Club minutes},
7510 title+an = {=descriptor},
7511 date = {1949-06-12},
7512 library = {Bearsden and Milngavie District Libraries},
7513 shelfmark = {box 19/d}}
7514 %<*n|m|a|y>
7515 \end{Verbatim}
7516 \end{bibexbox}
7517
7518 \begin{bibexbox}
7519 %<n|m><NHR 18.6.5>
7520 %<a|y><NHR 18.6.5\textdagger>
7521 {bodMSrawl-d520}
7522 %<n|m>Bodleian Library, Oxford, MS Rawlinson D. 520, fo. 7.
7523 %<a|y>Bodleian Library (n.d.), Oxford, MS Rawlinson D. 520, fo. 7.
7524 \tcblower
7525 \begin{Verbatim}
7526 %</n|m|a|y>
7527 @manuscript{bodMSrawl-d520,
7528 library = {Bodleian Library},
7529 location = {Oxford},
7530 collection = {MS Rawlinson D.},
7531 shelfmark = {520},
7532 pages = {7},
7533 bookpagination = {folio}}
7534 %<*n|m|a|y>
7535 \end{Verbatim}
7536 \end{bibexbox}
7537
7538 \begin{bibexbox}
7539 {cantabAGM4429}
7540 (not in book)
7541 \tcblower
7542 \begin{Verbatim}
7543 %</n|m|a|y>
7544 @manuscript{cantabAGM4429,
7545 library = {University Library},
7546 location = {Cambridge},
7547 collection = {Add. Greek MS},
7548 shelfmark = {4489},
7549 support = {parchment},
7550 dating = {8th--9th c.},
7551 pagetotal = {16},
7552 columns = {1},
7553 pages = {11\recto-11\verso},
7554 layer = {inf},
7555 bookpagination = {folio}}
7556 %<*n|m|a|y>
7557 \end{Verbatim}
7558 \end{bibexbox}
7559
7560 %<*y>
7561 \begin{egcite}{(Bodleian Library, n.d.; Chaundler, n.d.; exchequer accounts 1798)}
7562 \parencite{chaundlerMS288,%
7563 exchequerE311,%
7564 bodMSrawl-d520}
7565 \end{egcite}
7566 %</y>
7567
7568
7569 \section{Letters}
7570
7571 These examples relate to letters held personally or online. For letters that
7572 form part of archival collections, see the section on manuscripts above.
7573
7574 Note that it is usually acceptable to exclude personal communications from
7575 the reference section, and simply cite them in the text (in which case you may
7576 not need the \pkg{biblatex} machinery).
7577
7578 %<n|m>\spec{Author, \enquote{Title}/Descriptor, Date.}
7579 %<a|y>\spec{Author (Year), \enquote{Title}/Descriptor, Date.}
7580
7581 \begin{bibexbox}
7582 %<n|m><OGS \S15.11.1*>
7583 %<a|y><OGS \S15.11.1*\textdagger>
7584 {anon2001pl}
7585 %<n|m>Personal letter to the author, 2 May 2001.
7586 %<a|y>Personal letter to the author (2001), 2 May.
7587 \tcblower
7588 \begin{Verbatim}
7589 %</n|m|a|y>
7590 @letter{anon2001pl,
7591 title = {Personal letter to the author},
7592 title+an = {=descriptor},
7593 date = {2001-05-02}}
7594 %<*n|m|a|y>
7595 \end{Verbatim}
7596 \end{bibexbox}
7597
7598 In the absence of any explicit rationale governing whether the date is
7599 parenthetical, in \pkg[biblatex]{oxref} the presence of a URL
7600 will trigger the use of parentheses.
7601
7602 %<n|m>\spec{Author, \enquote{Title}/Descriptor [HowPublished], (Date), OnlineAccess.}
7603 %<a|y>\spec{Author (Year), \enquote{Title}/Descriptor [HowPublished], (Date), OnlineAccess.}
7604
7605 \begin{bibexbox}
7606 %<n|m><OGS \S15.15.3*>
7607 %<a|y><OGS \S15.15.3*\textdagger>
7608 {ritter2001rp}%
7609 %<n|m>R. M. Ritter, \enquote{Revised proofs} [email to H. E. Cox], (1 Aug.\@ 2001), \url{[email protected]}, accessed 3 Aug.\@ 2001.
7610 %<a|y>Ritter, R. M. (2001), \enquote{Revised proofs} [email to H. E. Cox], (1 Aug.\@), \url{[email protected]}, accessed 3 Aug.\@ 2001.
7611 \tcblower
7612 \begin{Verbatim}
7613 %</n|m|a|y>
7614 @letter{ritter2001rp,
7615 author = {R. M. Ritter},
7616 title = {Revised proofs},
7617 howpublished = {email to H. E. Cox},
7618 date = {2001-08-01},
7619 url = {[email protected]},
7620 urldate = {2001-08-03}}
7621 %<*n|m|a|y>
7622 \end{Verbatim}
7623 \end{bibexbox}
7624
7625 \defbibnote{preface}{This document uses the \pkg{biblatex} option \key{backref}
7626 to demonstrate how entries can be marked with the page(s) on which they were
7627 cited. The format of the back references comes from \pkg{biblatex} itself
7628 rather than \pkg[biblatex]{oxref}.}
7629
7630 %<n|a|y>\printbibliography[notcategory=hidden]
7631 %<m>\printbibliography[notcategory=hidden,prenote=preface]
7632 %</n|m|a|y>
7633 %</doc|bib>
7634 %<*driver>
7635 \fi
7636 \DocInput{\jobname.dtx}
7637 %</driver>
7638 %<*driver|doc>
7639 \end{document}
7640 %</driver|doc>
7641 %<*bbx>
7642 % \fi
7643 % \chapter{Bibliography styles}
7644 %
7645 % \settocdepth{subsection}
7646 %
7647 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7648 %<*o>
7649 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7650 % \section{Base style: oxref.bbx}
7651 %
7652 % \setcounter{FancyVerbLine}{19}
7653 %
7654 % \subsection{Loading dependencies, setting up languages, applying options}
7655 % \label{sec:setup}
7656 %
7657 % Dependencies:
7658 % \begin{itemize}
7659 % \item
7660 % For ease of maintenance, we will patch some definitions with \pkg{xpatch}
7661 % instead of writing out our own in full.
7662 % \item
7663 % We will manipulate strings with \pkg{xstring}.
7664 % \item
7665 % We will use \pkg{graphicx} for stretching \cs{bibnamedash}es
7666 % \end{itemize}
7667 %
7668 % \begin{macrocode}
7669 \RequirePackage{etoolbox}
7670 \RequirePackage{xpatch}
7671 \RequirePackage{xstring}
7672 \RequirePackage{graphicx}
7673 % \end{macrocode}
7674 %
7675 % Language support may be widened in future, but for now we support British and
7676 % American English. Adapted language files have the following suffix.
7677 %
7678 % \begin{macrocode}
7679 \DeclareLanguageMappingSuffix{-oxref}
7680 % \end{macrocode}
7681 %
7682 % We provide some additional bibliography strings:
7683 %
7684 % \begin{itemize}
7685 % \item roles expressed as functions;
7686 % \end{itemize}
7687 %
7688 % \begin{macrocode}
7689 \NewBibliographyString{%
7690 director, performer, reader, conductor, serieseditor, holder, editorcm,
7691 directors, performers, readers, conductors, serieseditors, holders, editorcms,
7692 % \end{macrocode}
7693 %
7694 % \begin{itemize}
7695 % \item roles expressed as actions;
7696 % \end{itemize}
7697 %
7698 % \begin{macrocode}
7699 bydirector, byperformer, byreader, byconductor, byserieseditor, byholder, byeditorcm,
7700 % \end{macrocode}
7701 %
7702 % \begin{itemize}
7703 % \item publication details;
7704 % \end{itemize}
7705 %
7706 % \begin{macrocode}
7707 facsimile, revised, revisedenlarged, revisedreprint, suppto, equals, original, amendedby,
7708 % \end{macrocode}
7709 %
7710 % \begin{itemize}
7711 % \item publication state;
7712 % \end{itemize}
7713 %
7714 % \begin{macrocode}
7715 inpressin,
7716 % \end{macrocode}
7717 %
7718 % \begin{itemize}
7719 % \item pagination;
7720 % \end{itemize}
7721 %
7722 % \begin{macrocode}
7723 book, books, canto, cantos, stanza, stanzas, act, acts, scene, scenes, folio, folios,
7724 article, articles, clause, clauses, regulation, regulations, rule, rules,
7725 booktotal, booktotals, cantototal, cantototals, stanzatotal, stanzatotals,
7726 acttotal, acttotals, scenetotal, scenetotals, foliototal, foliototals,
7727 articletotal, articletotals, clausetotal, clausetotals, regulationtotal,
7728 regulationtotals, ruletotal, ruletotals,
7729 % \end{macrocode}
7730 %
7731 % \begin{itemize}
7732 % \item types;
7733 % \end{itemize}
7734 %
7735 % \begin{macrocode}
7736 facebook, tweet, podcast, clip, webcast, poster,
7737 % \end{macrocode}
7738 %
7739 % \begin{itemize}
7740 % \item miscellaneous;
7741 % \end{itemize}
7742 %
7743 % \begin{macrocode}
7744 nolocation, modified, recorded, uploaded, filed, issued,
7745 % \end{macrocode}
7746 %
7747 % \begin{itemize}
7748 % \item labels;
7749 % \end{itemize}
7750 %
7751 % \begin{macrocode}
7752 anon, pseudo, urldown,
7753 % \end{macrocode}
7754 %
7755 % \begin{itemize}
7756 % \item country names, patents, and patent requests;
7757 % \end{itemize}
7758 %
7759 % \begin{macrocode}
7760 countryjp, patentjp, patreqjp,
7761 % \end{macrocode}
7762 %
7763 % \begin{itemize}
7764 % \item borrowed from other styles.
7765 % \end{itemize}
7766 %
7767 % \begin{macrocode}
7768 1column, 2column, inflayer, suplayer, paper, papyrus, parchment,
7769 eucase, eujoinedcases, commissiondecision, application,
7770 order, bill, draft, opened, signed, adopted, inforce,
7771 }
7772 % \end{macrocode}
7773 %
7774 % The \cs{blx@ox@langbibstring} utility is used to prefix a bibstring with one
7775 % or more language names, but since this only works in certain languages, by
7776 % default it discards the language names (first argument) and just prints the
7777 % bibstring (second argument). This is overridden in |english-oxref.lbx| and
7778 % friends.
7779 %
7780 % \begin{macrocode}
7781 \def\blx@ox@langbibstring#1#2{\bibstring{#2}}
7782 % \end{macrocode}
7783 %
7784 % We base our styles on the standard on the principle of least surprise
7785 % (and to aid with maintenance in the face of new \pkg{biblatex} versions).
7786 % We set some defaults different to the standard ones, but the author can
7787 % still override them.
7788 %
7789 % \begin{macrocode}
7790 \RequireBibliographyStyle{standard}
7791 \ExecuteBibliographyOptions{urldate=comp,pagetracker,timezeros=false,time=12h,isbn=false}
7792 % \end{macrocode}
7793 %
7794 % Here are the new default punctuation conventions. The new \cs{recordseriespunct}
7795 % is used for audiovisual resources, while \cs{cacasetitlepunct} and
7796 % \cs{uscasetitlepunct} are for punctuation following the case title in Canadian and
7797 % American cases respectively.
7798 %
7799 % \begin{macrocode}
7800 \renewcommand*{\labelnamepunct}{\addcomma\space}
7801 \renewcommand*{\newunitpunct}{\addcomma\space}
7802 \renewcommand*{\subtitlepunct}{\addcolon\space}
7803 \renewcommand*{\intitlepunct}{\nopunct\space}
7804 \renewcommand*{\bibnamedash}{\resizebox{2em}{\height}{\textemdash}\addthinspace}
7805 \newcommand*{\recordseriespunct}{\addcomma\space}
7806 \newcommand*{\cacasetitlepunct}{\addcomma\space}
7807 \newcommand*{\uscasetitlepunct}{\addcomma\space}
7808 \renewcommand*{\relateddelim}{\addsemicolon\space}
7809 \DeclareDelimFormat{revsdnamedelim}{\addcomma}
7810 \DeclareDelimFormat[pair]{revsdnamedelim}{}
7811 \DeclareDelimFormat{authortypedelim}{\addspace}
7812 \DeclareDelimFormat{editortypedelim}{\addspace}
7813 \DeclareDelimFormat{translatortypedelim}{\addspace}
7814 % \end{macrocode}
7815 %
7816 % \subsection{Names}
7817 %
7818 % We declare some new name formats so that authors/editors/others who appear
7819 % mid-reference can be handled differently from those that appear at the
7820 % head of the reference.
7821 %
7822 % \begin{macrocode}
7823 \DeclareNameAlias{bookauthor}{default}
7824 \DeclareNameAlias{bookeditor}{default}
7825 % \end{macrocode}
7826 %
7827 % Traditionally, Oxford style (for the humanities) prints author names in
7828 % small capitals in the bibliography, but in normal case in citations. This is
7829 % falling out of fashion, so we introduce it as an option.
7830 %
7831 % \begin{macrocode}
7832 \newtoggle{blx@ox@scnames}
7833 \DeclareBibliographyOption{scnames}[true]{%
7834 \settoggle{blx@ox@scnames}{#1}
7835 }
7836 % \end{macrocode}
7837 %
7838 % The style manuals prefer to omit titles but accept they may need to be
7839 % included in some circumstances. There are some titles that are only used
7840 % with full names and some that may be used with initials, so we provide an
7841 % option for manually switching them off.
7842 %
7843 % \begin{macrocode}
7844 \newtoggle{blx@ox@nametitle}\toggletrue{blx@ox@nametitle}%
7845 \DeclareBiblatexOption{global,type,entry}{usenametitles}[true]{%
7846 \settoggle{blx@ox@nametitle}{#1}}
7847 % \end{macrocode}
7848 %
7849 % We provide some additional macros for formatting names with titles.
7850 % Here is the one for natural name order.
7851 %
7852 % \begin{macrocode}
7853 \newbibmacro*{name:title-given-family}[5]{%
7854 \usebibmacro{name:delim}{#2#3#1}%
7855 \usebibmacro{name:hook}{#2#3#1}%
7856 \ifdefvoid{#5}{}{\iftoggle{blx@ox@nametitle}{\mkbibnametitle{#5}\isdot\bibnamedelimd}{}}%
7857 \ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot\bibnamedelimd}%
7858 \ifdefvoid{#3}{}{%
7859 \mkbibnameprefix{#3}\isdot
7860 \ifprefchar
7861 {}
7862 {\ifuseprefix{\bibnamedelimc}{\bibnamedelimd}}}%
7863 \mkbibnamefamily{#1}\isdot
7864 \ifdefvoid{#4}{}{\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}\isdot}}
7865 % \end{macrocode}
7866 %
7867 % Here is the one for inverted name order.
7868 %
7869 % \begin{macrocode}
7870 \newbibmacro*{name:family-title-given}[5]{%
7871 \ifuseprefix{%
7872 \usebibmacro{name:delim}{#3#1}%
7873 \usebibmacro{name:hook}{#3#1}%
7874 \ifdefvoid{#3}{}{%
7875 \ifcapital{%
7876 \mkbibnameprefix{\MakeCapital{#3}}\isdot
7877 }{%
7878 \mkbibnameprefix{#3}\isdot}%
7879 \ifprefchar{}{\bibnamedelimc}}%
7880 \mkbibnamefamily{#1}\isdot
7881 \ifdefvoid{#4}{}{\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}\isdot}%
7882 \ifboolexpe{%
7883 (test {\ifdefvoid{#5}} or not togl {blx@ox@nametitle})
7884 and
7885 test {\ifdefvoid{#2}}%
7886 }{}{%
7887 \printdelim{revsdnamepunct}}%
7888 \ifdefvoid{#5}{}{\iftoggle{blx@ox@nametitle}{\bibnamedelimd\mkbibnametitle{#5}\isdot}{}}%
7889 \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{#2}\isdot}%
7890 }{%
7891 \usebibmacro{name:delim}{#1}%
7892 \usebibmacro{name:hook}{#1}%
7893 \mkbibnamefamily{#1}\isdot
7894 \ifdefvoid{#4}{}{\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}\isdot}%
7895 \ifboolexpe{%
7896 (test {\ifdefvoid{#5}} or not togl {blx@ox@nametitle})
7897 and
7898 test {\ifdefvoid{#2}}
7899 and
7900 test {\ifdefvoid{#3}}%
7901 }{}{%
7902 \printdelim{revsdnamepunct}}%
7903 \ifdefvoid{#5}{}{\iftoggle{blx@ox@nametitle}{\bibnamedelimd\mkbibnametitle{#5}\isdot}{}}%
7904 \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{#2}\isdot}%
7905 \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}}}
7906 % \end{macrocode}
7907 %
7908 % Oxford style (for the humanities) is to write author names surname first in
7909 % the bibliography, but in natural order in citations. We implement this, along
7910 % with the case changing option, in the following name format. We also add a
7911 % second hash for checking if names (e.g.\@ |author| and |authoraddon|) are the
7912 % same. We only need |name:revsdelim| on the first item, and only if it will be
7913 % followed by something else.
7914 %
7915 % \begin{macrocode}
7916 \renewbibmacro*{name:revsdelim}{%
7917 \ifboolexpr{
7918 (
7919 test {\ifnumequal{\value{liststop}}{1}}
7920 and
7921 test \ifmorenames
7922 )
7923 or
7924 test {\ifnumequal{\value{liststop}}{2}}
7925 }
7926 {\printdelim{revsdnamedelim}}
7927 {}}
7928 \def\blx@ox@lasthash{}
7929 \DeclareNameFormat{bib-family-given/cite-given-family}{%
7930 \iffieldannotation{inferred}{\ifnumequal{\value{listcount}}{1}{\bibopenbracket}{}}{}%
7931 \ifitemannotation{inferred}{\bibopenbracket}{}%
7932 \ifbibliography{%
7933 \iftoggle{blx@ox@scnames}{%
7934 \renewcommand*{\mkbibnamefamily}[1]{\textsc{##1}}%
7935 \renewcommand*{\mkbibnamegiven}[1]{\textsc{##1}}%
7936 \renewcommand*{\mkbibnameprefix}[1]{\textsc{##1}}%
7937 \renewcommand*{\mkbibnamesuffix}[1]{\textsc{##1}}%
7938 \renewcommand*{\mkbibnametitle}[1]{##1}%
7939 }{}%
7940 \ifgiveninits{%
7941 \usebibmacro{name:family-title-given}%
7942 {\namepartfamily}%
7943 {\namepartgiveni}%
7944 {\namepartprefix}%
7945 {\namepartsuffix}%
7946 {\nameparttitle}%
7947 }{%
7948 \usebibmacro{name:family-title-given}%
7949 {\namepartfamily}%
7950 {\namepartgiven}%
7951 {\namepartprefix}%
7952 {\namepartsuffix}%
7953 {\nameparttitle}%
7954 }%
7955 \savefield{hash}{\blx@ox@lasthash}%
7956 \ifitemannotation{pseudo}{%
7957 \addspace\printtext[parens]{%
7958 \iftoggle{blx@ox@scnames}{%
7959 \textsc{\bibsstring{pseudo}}%
7960 }{%
7961 \bibsstring{pseudo}%
7962 }}%
7963 }{}%
7964 \iftoggle{blx@ox@scnames}{%
7965 \renewcommand*{\mkbibnamefamily}[1]{##1}%
7966 \renewcommand*{\mkbibnamegiven}[1]{##1}%
7967 \renewcommand*{\mkbibnameprefix}[1]{##1}%
7968 \renewcommand*{\mkbibnamesuffix}[1]{##1}%
7969 \renewcommand*{\mkbibnametitle}[1]{##1}%
7970 }{}%
7971 \ifboolexpe{%
7972 test {\ifnumequal{\value{listcount}}{\@ne}}
7973 and
7974 (
7975 test {\ifnumless{\value{listcount}}{\value{liststop}}}
7976 or
7977 test {\ifnumgreater{\value{listtotal}}{\value{maxnames}}}
7978 or
7979 test {\ifandothers{\currentname}}
7980 )
7981 and not
7982 (
7983 test {\ifdefvoid\namepartgiven}
7984 and
7985 test {\ifdefvoid\namepartprefix}
7986 )
7987 }{\usebibmacro{name:revsdelim}}{}%
7988 }{%
7989 % \end{macrocode}
7990 %
7991 % Some implementations of |\lbx@finalnamedelim| do not allow logical tests to
7992 % be included in the argument, so we need to spell out all these alternatives
7993 % longhand.
7994 %
7995 % \begin{macrocode}
7996 \ifgiveninits{%
7997 \ifitemannotation{pseudo}{%
7998 \usebibmacro{name:title-given-family}%
7999 {\biblstring{pseudo}\namepartfamily}%
8000 {\namepartgiveni}%
8001 {\namepartprefix}%
8002 {\namepartsuffix}%
8003 {\nameparttitle}%
8004 }{%
8005 \usebibmacro{name:title-given-family}%
8006 {\namepartfamily}%
8007 {\namepartgiveni}%
8008 {\namepartprefix}%
8009 {\namepartsuffix}%
8010 {\nameparttitle}}%
8011 }{%
8012 \ifitemannotation{pseudo}{%
8013 \usebibmacro{name:title-given-family}%
8014 {\biblstring{pseudo}\namepartfamily}%
8015 {\namepartgiven}%
8016 {\namepartprefix}%
8017 {\namepartsuffix}%
8018 {\nameparttitle}%
8019 }{%
8020 \usebibmacro{name:title-given-family}%
8021 {\namepartfamily}%
8022 {\namepartgiven}%
8023 {\namepartprefix}%
8024 {\namepartsuffix}%
8025 {\nameparttitle}}%
8026 }%
8027 \savefield{hash}{\blx@ox@lasthash}%
8028 }%
8029 \ifitemannotation{inferred}{\bibclosebracket}{}%
8030 \ifitemannotation{variant}{%
8031 \global\settoggle{blx@ox@variantname}{true}%
8032 }{%
8033 \global\settoggle{blx@ox@variantname}{false}}%
8034 \usebibmacro{name:andothers}%
8035 \iffieldannotation{inferred}{%
8036 \ifboolexpr{
8037 test {\ifnumequal{\value{listcount}}{\value{maxnames}}}
8038 or
8039 test {\ifnumequal{\value{listcount}}{\value{listtotal}}}
8040 or (
8041 test {\ifnumequal{\value{listcount}}{\value{minnames}}}
8042 and
8043 test {\ifnumgreater{\value{listtotal}}{\value{maxnames}}}
8044 )
8045 }{\bibclosebracket}{}%
8046 }{}%
8047 }
8048 % \end{macrocode}
8049 %
8050 % We change the regular |given-family| format to include the alternative-name
8051 % hash and use the title-enhanced name format. We also add a toggle for
8052 % triggering special formatting if |authoraddon| or |editoraddon| are annotated
8053 % with |variant|.
8054 %
8055 % \begin{macrocode}
8056 \newtoggle{blx@ox@variantname}
8057 \DeclareNameFormat{given-family}{%
8058 \ifgiveninits
8059 {\usebibmacro{name:title-given-family}
8060 {\namepartfamily}
8061 {\namepartgiveni}
8062 {\namepartprefix}
8063 {\namepartsuffix}
8064 {\nameparttitle}}
8065 {\usebibmacro{name:title-given-family}
8066 {\namepartfamily}
8067 {\namepartgiven}
8068 {\namepartprefix}
8069 {\namepartsuffix}
8070 {\nameparttitle}}%
8071 \savefield{hash}{\blx@ox@lasthash}%
8072 \ifitemannotation{variant}{%
8073 \global\settoggle{blx@ox@variantname}{true}%
8074 }{%
8075 \global\settoggle{blx@ox@variantname}{false}}%
8076 \usebibmacro{name:andothers}}
8077 % \end{macrocode}
8078 %
8079 % We do likewise for the regular |family-given| format. Also, we only want to
8080 % use the |name:revsdelim| on the last name in the list if it will be followed
8081 % by \enquote{et al.}.
8082 %
8083 % \begin{macrocode}
8084 \DeclareNameFormat{family-given}{%
8085 \ifgiveninits
8086 {\usebibmacro{name:family-title-given}
8087 {\namepartfamily}
8088 {\namepartgiveni}
8089 {\namepartprefix}
8090 {\namepartsuffix}
8091 {\nameparttitle}}
8092 {\usebibmacro{name:family-title-given}
8093 {\namepartfamily}
8094 {\namepartgiven}
8095 {\namepartprefix}
8096 {\namepartsuffix}
8097 {\nameparttitle}}%
8098 \savefield{hash}{\blx@ox@lasthash}%
8099 \ifitemannotation{variant}{%
8100 \global\settoggle{blx@ox@variantname}{true}%
8101 }{%
8102 \global\settoggle{blx@ox@variantname}{false}}%
8103 \ifboolexpe{%
8104 (
8105 test {\ifnumless{\value{listcount}}{\value{liststop}}}
8106 or
8107 test {\ifnumgreater{\value{listtotal}}{\value{maxnames}}}
8108 or
8109 test {\ifandothers{\currentname}}
8110 )
8111 and not
8112 (
8113 test {\ifdefvoid\namepartgiven}
8114 and
8115 test {\ifdefvoid\namepartprefix}
8116 )
8117 }{\usebibmacro{name:revsdelim}}{}%
8118 \usebibmacro{name:andothers}}
8119 % \end{macrocode}
8120 %
8121 % There is no comma before numeric suffixes, but there is before textual
8122 % ones (e.g. \enquote{junior}).
8123 %
8124 % \begin{macrocode}
8125 \xpatchbibmacro{name:given-family}%
8126 {\bibnamedelimd\mkbibnamesuffix{#4}}%
8127 {\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}}%
8128 {}{\wlog{WARNING: biblatex-oxref failed to patch name:given-family}}
8129 \xpatchbibmacro{name:family-given}%
8130 {\bibnamedelimd\mkbibnamesuffix{#4}}%
8131 {\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}}%
8132 {}{\wlog{WARNING: biblatex-oxref failed to patch name:family-given}}
8133 % \end{macrocode}
8134 %
8135 % Pseudonyms are printed after the main name, enclosed in parentheses (OGS) or
8136 % brackets (NHR). \pkg{Biblatex} provides the |nameaddon| field for this
8137 % use case, but it is a literal field (it doesn't format the name provided).
8138 %
8139 % \begin{macrocode}
8140 \DeclareFieldFormat{nameaddon}{\mkbibbrackets{#1}}
8141 \DeclareFieldFormat{namevariant}{\mkbibparens{\bibstring{equals}\space #1}}
8142 % \end{macrocode}
8143 %
8144 % We have two use cases for a bibmacro that reimplements the loopcode logic of
8145 % \cs{printnames}, but operates on two name lists simultaneously. One is to
8146 % support the new name fields |authoraddon| and |editoraddon|; the other is to
8147 % pair up names with the short form used in references, as required by
8148 % \textsf{oxyear} below.
8149 %
8150 % We need to do this in a way that doesn't break the patterns used for
8151 % configuring and adapting the punctuation that delimits the list items, so the
8152 % |namepair:delim| macro does the same as |name:delim| but instead of reading
8153 % the current counters, takes two extra arguments (in addition to the current name):
8154 % the number of the current name pair and the total number of name pairs.
8155 % The regular |finallistdelim| delimiter format looks up the value of the
8156 % |liststop| counter, so we need to give it the right value.
8157 %
8158 % \begin{macrocode}
8159 \newbibmacro*{namepair:delim}[3]{%
8160 \ifnumgreater{#2}{\@ne}{%
8161 \ifnumless{#2}{#3}{%
8162 \printdelim{multinamedelim}%
8163 }{%
8164 \ifnumgreater{#3}{\c@maxnames}{%
8165 \c@liststop\c@minnames
8166 }{%
8167 \c@liststop#3}%
8168 \lbx@finalnamedelim{#1}}%
8169 }{}}
8170 % \end{macrocode}
8171 %
8172 % The |namepairs| bibmacro takes two arguments: the data fields holding the main
8173 % name and alternative name respectively. When rendering the names, we use
8174 % saveboxes to extract the hashes, and only print the alternative name if it has
8175 % a different hash. In this case, we also switch to the \enquote{pair}
8176 % delimiter context, where the |revsdnamedelim| (if any) is suppressed.
8177 %
8178 % \begin{macrocode}
8179 \DeclareFieldFormat{expanded}{\mkbibparens{#1}}
8180 \newcounter{namepairs}
8181 \newsavebox{\blx@ox@namebox}
8182 \newsavebox{\blx@ox@altnamebox}
8183 \newtoggle{blx@ox@thispairvariant}%
8184 \newbibmacro*{namepairs}[2]{%
8185 \setcounter{namepairs}{0}%
8186 \savebibmacro{name:andothers}%
8187 \renewbibmacro*{name:andothers}{}%
8188 \whileboolexpr{%
8189 test {\ifnumless{\value{namepairs}}{\value{#1}}}
8190 and (
8191 test {\ifdefvoid{\c@maxnames}}
8192 or
8193 test {\ifnumequal{\c@maxnames}{0}}
8194 or
8195 test {\ifnumless{\value{#1}}{\c@maxnames}}
8196 or
8197 test {\ifnumequal{\value{#1}}{\c@maxnames}}
8198 or
8199 test {\ifdefvoid{\c@minnames}}
8200 or
8201 test {\ifnumequal{\c@minnames}{0}}
8202 or
8203 test {\ifnumless{\value{namepairs}}{\c@minnames}}
8204 )
8205 }{%
8206 \stepcounter{namepairs}%
8207 \savebox{\blx@ox@namebox}{%
8208 \printnames[#1][\value{namepairs}-\value{namepairs}]{#1}%
8209 }%
8210 \let\blx@ox@firsthash=\blx@ox@lasthash
8211 \savebox{\blx@ox@altnamebox}{%
8212 \printnames[#1][\value{namepairs}-\value{namepairs}]{#2}%
8213 }%
8214 \let\blx@ox@secondhash=\blx@ox@lasthash
8215 \iftoggle{blx@ox@variantname}{%
8216 \toggletrue{blx@ox@thispairvariant}%
8217 }{%
8218 \togglefalse{blx@ox@thispairvariant}%
8219 }%
8220 % \end{macrocode}
8221 %
8222 % This is the part intended for |authoraddon| and |editoraddon|. Note that it
8223 % contains an additional test for the variant name toggle.
8224 %
8225 % \begin{macrocode}
8226 \IfEndWith{#2}{addon}{%
8227 \usebibmacro{namepair:delim}%
8228 {\unhbox\blx@ox@namebox}{\value{namepairs}}{\value{#1}}%
8229 \ifdefstrequal{\blx@ox@firsthash}{\blx@ox@secondhash}{%
8230 \hbox{}\unhbox\blx@ox@namebox
8231 }{%
8232 \iftoggle{blx@ox@thispairvariant}{%
8233 \ifbibliography{%
8234 \delimcontext{pair}%
8235 \printnames[#1][\value{namepairs}-\value{namepairs}]{#1}%
8236 \setunit{\addspace}%
8237 \printtext[namevariant]{%
8238 \printnames[#1][\value{namepairs}-\value{namepairs}]{#2}}%
8239 }{%
8240 \hbox{}\unhbox\blx@ox@namebox
8241 }%
8242 }{%
8243 \delimcontext{pair}%
8244 \printnames[#1][\value{namepairs}-\value{namepairs}]{#1}%
8245 \setunit{\addspace}%
8246 \printtext[nameaddon]{%
8247 \printnames[#1][\value{namepairs}-\value{namepairs}]{#2}%
8248 }%
8249 }%
8250 }%
8251 % \end{macrocode}
8252 %
8253 % This is the part intended for |shortauthor| and |shorteditor|. There are
8254 % differences in the formatting, and the alternative name is actually printed
8255 % before the main name.
8256 %
8257 % \begin{macrocode}
8258 }{%
8259 \ifdefstrequal{\blx@ox@firsthash}{\blx@ox@secondhash}{%
8260 \usebibmacro{namepair:delim}%
8261 {\unhbox\blx@ox@namebox}{\value{namepairs}}{\value{#1}}%
8262 \hbox{}\unhbox\blx@ox@namebox
8263 }{%
8264 \usebibmacro{namepair:delim}%
8265 {\unhbox\blx@ox@altnamebox}{\value{namepairs}}{\value{#1}}%
8266 \delimcontext{pair}%
8267 \printnames[#1][\value{namepairs}-\value{namepairs}]{#2}%
8268 \setunit{\addspace}%
8269 \printtext[expanded]{%
8270 \printnames[#1][\value{namepairs}-\value{namepairs}]{#1}%
8271 }%
8272 }%
8273 }%
8274 }%
8275 % \end{macrocode}
8276 %
8277 % Now we return to common code.
8278 %
8279 % \begin{macrocode}
8280 \ifboolexpr{
8281 test {\ifnumequal{\value{namepairs}}{\c@minnames}}
8282 and
8283 test {\ifnumgreater{\value{#1}}{\c@maxnames}}
8284 }{%
8285 \ifnumgreater{\c@minnames}{1}{%
8286 \finalandcomma
8287 }{}%
8288 \printdelim{andothersdelim}\bibstring{andothers}%
8289 }{}%
8290 \restorebibmacro{name:andothers}%
8291 }
8292 % \end{macrocode}
8293 %
8294 % We use this now for authors. We provide additional handling to support
8295 % printing editors or translators promoted to joint authorship status.
8296 %
8297 % \begin{macrocode}
8298 \newbibmacro*{author+altauthor}{%
8299 \ifboolexpr{
8300 test {\ifnameundef{authoraddon}}
8301 and
8302 test {\ifnameundef{jointauthor}}
8303 }{%
8304 \printnames{author}%
8305 }{%
8306 \ifnumequal{\value{authoraddon}}{\value{author}}{%
8307 \usebibmacro{namepairs}{author}{authoraddon}%
8308 }{%
8309 \printnames{author}%
8310 \ifnameundef{authoraddon}{}{%
8311 \setunit*{\addspace}%
8312 \printtext[nameaddon]{\printnames[byauthor]{authoraddon}}}%
8313 }%
8314 \ifnameundef{jointauthor}{}{%
8315 \setunit{\addcomma\space}%
8316 \iffieldundef{jointauthortype}{%
8317 \bibstring{byeditor}%
8318 }{%
8319 \printfield{jointauthortype}}%
8320 \setunit{\addspace}%
8321 \printnames[author]{jointauthor}%
8322 }%
8323 }%
8324 }
8325 \DeclareFieldFormat{jointauthortype}{%
8326 \ifbibstring{by#1}{\bibstring{by#1}}{#1}}
8327 % \end{macrocode}
8328 %
8329 % This is the (simpler) implementation for editors.
8330 %
8331 % \begin{macrocode}
8332 \newbibmacro*{editor+alteditor}{%
8333 \ifnameundef{editoraddon}{%
8334 \printnames{editor}%
8335 }{
8336 \ifnumequal{\value{editoraddon}}{\value{editor}}{%
8337 \usebibmacro{namepairs}{editor}{editoraddon}%
8338 }{%
8339 \printnames{editor}%
8340 \setunit*{\addspace}%
8341 \printtext[nameaddon]{\printnames[byeditor]{editoraddon}}%
8342 }%
8343 }%
8344 }
8345 % \end{macrocode}
8346 %
8347 % Traditional Oxford style is to use dashes instead of repeating author
8348 % names, but NHR recommends abandoning the practice as it interferes
8349 % with text mining. We therefore turn this feature off by default, but allow
8350 % authors to switch it on with |dashed=true|.
8351 %
8352 % \begin{macrocode}
8353 \newbibmacro*{bbx:savehash}{}
8354 \DeclareBibliographyOption{dashed}[true]{%
8355 \ifstrequal{#1}{true}{%
8356 \ExecuteBibliographyOptions{pagetracker}%
8357 \renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}%
8358 }{%
8359 \renewbibmacro*{bbx:savehash}{}%
8360 }%
8361 }
8362 \InitializeBibliographyStyle{%
8363 \global\undef\bbx@lasthash}
8364 \newbibmacro*{bbx:dashcheck}[2]{%
8365 \ifboolexpr{
8366 test {\iffieldequals{fullhash}{\bbx@lasthash}}
8367 and
8368 not test \iffirstonpage
8369 and
8370 (
8371 not bool {bbx@inset}
8372 or
8373 test {\iffieldequalstr{entrysetcount}{1}}
8374 )
8375 }{#1}{#2}%
8376 }
8377 % \end{macrocode}
8378 %
8379 % The following is used in the |authortitle| and |authoryear| styles to
8380 % switch off the dash check macro for reference sets.
8381 %
8382 % \begin{macrocode}
8383 \newbool{bbx@inset}
8384 \DeclareBibliographyDriver{set}{%
8385 \booltrue{bbx@inset}%
8386 \entryset{}{}%
8387 \newunit\newblock
8388 \usebibmacro{setpageref}%
8389 \finentry}
8390 % \end{macrocode}
8391 %
8392 % We provide options for how to handle the author name \enquote{Anonymous}.
8393 %
8394 % \begin{macrocode}
8395 \newtoggle{blx@ox@autoanon}
8396 \newtoggle{blx@ox@abbranon}
8397 \DeclareBibliographyOption[string]{anon}[short]{%
8398 \ifcsdef{blx@ox@opt@anon@#1}{%
8399 \csuse{blx@ox@opt@anon@#1}%
8400 }{%
8401 \PackageError{biblatex-oxref}
8402 {Invalid option 'anon=#1'}
8403 {Valid values are 'long', 'short', and 'literal'.}}}
8404 \csdef{blx@ox@opt@anon@literal}{\togglefalse{blx@ox@autoanon}}
8405 \csdef{blx@ox@opt@anon@long}{\toggletrue{blx@ox@autoanon}\togglefalse{blx@ox@abbranon}}
8406 \csdef{blx@ox@opt@anon@short}{\toggletrue{blx@ox@autoanon}\toggletrue{blx@ox@abbranon}}
8407 % \end{macrocode}
8408 %
8409 % We copy the |author| to |rawauthor| for easier testing.
8410 %
8411 % \begin{macrocode}
8412 \DeclareStyleSourcemap{
8413 \maps[datatype=bibtex]{%
8414 \map{%
8415 \step[fieldsource=author]%
8416 \step[fieldset=rawauthor, origfieldval]%
8417 }
8418 }%
8419 }
8420 % \end{macrocode}
8421 %
8422 % The |author| macro is enhanced from the standard version by
8423 % \begin{itemize}
8424 % \item
8425 % checking if the author name is \enquote{Anonymous};
8426 % \item
8427 % including a dash check, to see if the name(s) should be replaced
8428 % with a dash (as in |authortitle| and |authoryear|);
8429 % \item
8430 % inserting the |nameaddon| field if provided;
8431 % \item
8432 % inserting the author type if provided (as in |authoryear|).
8433 % \end{itemize}
8434 %
8435 % \begin{macrocode}
8436 \newcommand*{\oxrefanon}{Anonymous}
8437 \newtoggle{blx@ox@isanon}
8438 \renewbibmacro*{author}{%
8439 \iffieldequals{rawauthor}{\oxrefanon}{%
8440 \toggletrue{blx@ox@isanon}%
8441 }{%
8442 \togglefalse{blx@ox@isanon}}%
8443 \ifboolexpr{
8444 test \ifuseauthor
8445 and
8446 ( not test {\ifnameundef{author}} )
8447 and (
8448 ( not togl {blx@ox@isanon} )
8449 or
8450 ( not togl {blx@ox@autoanon} )
8451 or
8452 test {\ifbibliography}
8453 )
8454 }
8455 {\usebibmacro{bbx:dashcheck}
8456 {\bibnamedash}
8457 {\usebibmacro{bbx:savehash}%
8458 \ifboolexpr{
8459 togl {blx@ox@autoanon}
8460 and
8461 togl {blx@ox@isanon}
8462 }{%
8463 \iftoggle{blx@ox@abbranon}{\bibcpsstring{anon}}{\bibcplstring{anon}}%
8464 }{%
8465 \usebibmacro{author+altauthor}%
8466 }%
8467 \iffieldundef{nameaddon}
8468 {}
8469 {\setunit{\addspace}%
8470 \printfield{nameaddon}}%
8471 \setunit{\printdelim{authortypedelim}}}%
8472 \iffieldundef{authortype}
8473 {}
8474 {\usebibmacro{authorstrg}%
8475 \setunit{\addspace}}}%
8476 {\global\undef\bbx@lasthash}}
8477 \DeclareFieldFormat{authortype}{\mkbibparens{#1}}
8478 % \end{macrocode}
8479 %
8480 % We make the punctuation between a title and \enquote{by [author]} configurable.
8481 %
8482 % \begin{macrocode}
8483 \newcommand{\titlebyauthordelim}{\addcomma\space}
8484 % \end{macrocode}
8485 %
8486 % Following |authortitle| and |authoryear|, we redefine the |editor| and
8487 % |editor+others| macros to use a common |bbx:editor| macro. The macro
8488 % we use is the similar to the normal one except we delegate printing editor
8489 % names to |editor+alteditor|, and we don't yet add the year label.
8490 %
8491 % \begin{macrocode}
8492 \renewbibmacro*{editor}{%
8493 \usebibmacro{bbx:editor}{editorstrg}}
8494 \renewbibmacro*{editor+others}{%
8495 \usebibmacro{bbx:editor}{editor+othersstrg}}
8496 \newbibmacro*{bbx:editor}[1]{%
8497 \ifboolexpr{
8498 test \ifuseeditor
8499 and
8500 not test {\ifnameundef{editor}}
8501 }
8502 {\usebibmacro{bbx:dashcheck}
8503 {\bibnamedash}
8504 {\usebibmacro{editor+alteditor}%
8505 \setunit{\printdelim{editortypedelim}}%
8506 \usebibmacro{bbx:savehash}}%
8507 \usebibmacro{#1}%
8508 \clearname{editor}}
8509 {\global\undef\bbx@lasthash}}
8510 \DeclareFieldFormat{editortype}{\mkbibparens{#1}}
8511 % \end{macrocode}
8512 %
8513 % We do the same for |translator| as well.
8514 %
8515 % \begin{macrocode}
8516 \renewbibmacro*{translator}{%
8517 \usebibmacro{bbx:translator}{translatorstrg}}
8518 \renewbibmacro*{translator+others}{%
8519 \usebibmacro{bbx:translator}{translator+othersstrg}}
8520 \newbibmacro*{bbx:translator}[1]{%
8521 \ifboolexpr{
8522 test \ifusetranslator
8523 and
8524 not test {\ifnameundef{translator}}
8525 }
8526 {\usebibmacro{bbx:dashcheck}
8527 {\bibnamedash}
8528 {\printnames{translator}%
8529 \setunit{\printdelim{translatortypedelim}}%
8530 \usebibmacro{bbx:savehash}}%
8531 \usebibmacro{#1}%
8532 \clearname{translator}%
8533 \setunit{\addspace}}%
8534 {\global\undef\bbx@lasthash}}
8535 \xpatchbibmacro{translatorstrg}%
8536 {\bibstring}%
8537 {\bibstring[\mkbibparens]}%
8538 {}{\wlog{WARNING: biblatex-oxref failed to patch translatorstrg}}%
8539 \xpatchbibmacro{translator+othersstrg}%
8540 {\bibstring}%
8541 {\bibstring[\mkbibparens]}%
8542 {}{\wlog{WARNING: biblatex-oxref failed to patch translator+othersstrg}}%
8543 % \end{macrocode}
8544 %
8545 % When referencing one work from a collection by the same author,
8546 % Oxford style traditionally puts \enquote{id.} in the |bookauthor|
8547 % position (instead of omitting it as in standard \pkg{biblatex}).
8548 %
8549 % \begin{macrocode}
8550 \renewbibmacro*{bybookauthor}{%
8551 \ifnamesequal{author}{bookauthor}%
8552 {\bibstring{idem\thefield{gender}}}%
8553 {\printnames{bookauthor}}}
8554 % \end{macrocode}
8555 %
8556 % Similarly, with mixed collections, if referencing a work by the editor
8557 % of the collection, the editor name is replaced with \enquote{id.}. We
8558 % insert this logic into a copy of the |editor+others| macro, which will
8559 % \emph{not} get a year inserted into it by \textsf{oxyear}.
8560 %
8561 % \begin{macrocode}
8562 \newbibmacro*{bookeditor}{%
8563 \ifboolexpr{
8564 test \ifuseeditor
8565 and
8566 not test {\ifnameundef{editor}}
8567 }{%
8568 \ifnamesequal{author}{editor}{%
8569 \bibstring{idem\thefield{gender}}%
8570 \setunit{\addspace}%
8571 \usebibmacro{editor+othersstrg}%
8572 \clearname{editor}%
8573 }{%
8574 \printnames[bookeditor]{editor}%
8575 \setunit*{\addspace}%
8576 \usebibmacro{editor+othersstrg}%
8577 \clearname{editor}%
8578 }%
8579 }{}}
8580 % \end{macrocode}
8581 %
8582 % We provide a macro for printing series editors.
8583 %
8584 % \begin{macrocode}
8585 \newbibmacro*{byserieseditor}{%
8586 \ifnameundef{serieseditor}
8587 {}
8588 {\usebibmacro{bytypestrg}{serieseditor}{serieseditor}%
8589 \setunit{\addspace}%
8590 \printnames[byeditor]{serieseditor}%
8591 \newunit}}
8592
8593 % \end{macrocode}
8594 %
8595 % \subsection{Titles}
8596 %
8597 % Title handling is mostly as it is in the standard styles, except
8598 % that the |titleaddon| is printed in square brackets; it is not
8599 % preceeded by punctuation.
8600 %
8601 % \begin{macrocode}
8602 \renewbibmacro*{title}{%
8603 \ifboolexpr{
8604 test {\iffieldundef{title}}
8605 and
8606 test {\iffieldundef{subtitle}}
8607 }
8608 {}
8609 {\printtext[title]{%
8610 \printfield[titlecase]{title}%
8611 \setunit{\subtitlepunct}%
8612 \printfield[titlecase]{subtitle}}%
8613 \setunit{\addspace}}%
8614 \usebibmacro{origtitle}%
8615 \setunit*{\addspace}%
8616 \printfield{titleaddon}%
8617 \iffieldequalstr{relatedtype}{equals}{%
8618 \iftoggle{bbx:related}{%
8619 \usebibmacro{related:init}%
8620 \usebibmacro{related}%
8621 \clearfield{related}%
8622 }{}%
8623 }{}%
8624 }
8625 \DeclareFieldFormat{titleaddon}{\mkbibbrackets{#1}}
8626 % \end{macrocode}
8627 %
8628 % The |origtitle| field is used for translated works. If the cited work is a
8629 % native language translation of a foreign work, the original title is given
8630 % in parentheses. If the cited work is foreign translation of a native language
8631 % work, the original title is printed in square brackets, preceded by the name
8632 % of the foreign language (if appropriate) and \enquote{translation of}.
8633 %
8634 % \begin{macrocode}
8635 \DeclareFieldFormat{origtitle}{\mkbibemph{#1}}
8636 \newbibmacro*{origtitle}{%
8637 \iffieldundef{origtitle}{}{%
8638 \iflistundef{language}{%
8639 \printtext[parens]{\printfield{origtitle}}%
8640 }{%
8641 \printtext[brackets]{%
8642 \blx@ox@langbibstring{\printlist{language}}{translationof}\addspace
8643 \printfield{origtitle}}}}}
8644 % \end{macrocode}
8645 %
8646 % \subsection{Dates and times}
8647 %
8648 % Year ranges are truncated (e.g.~2012–3). Therefore, we provide a command that
8649 % compares two years, and outputs a full or truncated version of the second
8650 % year, depending on how similar it is to the first. It is adapted from code by
8651 % Marco Daniel.\footnote{\url{http://tex.stackexchange.com/questions/23483/}}
8652 %
8653 % \begin{macrocode}
8654 \newcommand{\blx@ox@compyear}[2]{%
8655 \def\num@one{#1}%
8656 \def\num@two{#2}%
8657 \StrLen{\num@one}[\num@one@len]%
8658 \StrLen{\num@two}[\num@two@len]%
8659 % \end{macrocode}
8660 %
8661 % The year is only trimmed if it is greater than, but has the same number of
8662 % digits as, the comparison number.
8663 %
8664 % \begin{macrocode}
8665 \ifboolexpr{
8666 test {\ifnumequal{\num@one@len}{\num@two@len}}
8667 and
8668 test {\ifnumless{\num@one}{\num@two}}
8669 }{%
8670 % \end{macrocode}
8671 %
8672 % For years since 1000, at least two digits must be the same before trimming
8673 % occurs.
8674 %
8675 % \begin{macrocode}
8676 \StrCompare{\num@one}{\num@two}[\Result]%
8677 \ifnum\num@two@len>3%
8678 \IfStrEq{\Result}{2}{\def\Result{1}}{}%
8679 \fi
8680 % \end{macrocode}
8681 %
8682 % In legal references, the truncated year is at least two digits.
8683 %
8684 % \begin{macrocode}
8685 \ifboolexpr{
8686 (
8687 test {\ifentrytype{jurisdiction}}
8688 or
8689 test {\ifentrytype{legislation}}
8690 )
8691 and
8692 test {\IfStrEq{\Result}{4}}
8693 }{\def\Result{3}}{}%
8694 % \end{macrocode}
8695 %
8696 % Since \cs{Result} is the number of digits to trim from the left hand side of
8697 % the year, plus one, we provide an extra sacrificial zero before trimming.
8698 %
8699 % \begin{macrocode}
8700 \StrGobbleLeft{0\num@two}{\Result}%
8701 }{\num@two}}
8702 % \end{macrocode}
8703 %
8704 % We patch the date range formats from |biblatex.sty| to use the
8705 % above function.
8706 %
8707 % \begin{macrocode}
8708 \patchcmd{\mkdaterangefull}{%
8709 \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}%
8710 }{%
8711 \iffieldundef{#2endmonth}%
8712 {\blx@ox@compyear{\thefield{#2year}}{\thefield{#2endyear}}}%
8713 {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}%
8714 }{}{\wlog{WARNING: biblatex-oxref failed to patch mkdaterangefull}}
8715 \patchcmd{\mkdaterangefullextra}{%
8716 \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}%
8717 }{%
8718 \iffieldundef{#2endmonth}%
8719 {\blx@ox@compyear{\thefield{#2year}}{\thefield{#2endyear}}}%
8720 {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}%
8721 }{}{\wlog{WARNING: biblatex-oxref failed to patch mkdaterangefullextra}}
8722 \patchcmd{\mkdaterangetrunc@i}{%
8723 \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}%
8724 }{%
8725 \iffieldundef{#2endmonth}%
8726 {\blx@ox@compyear{\thefield{#2year}}{\thefield{#2endyear}}}%
8727 {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}%
8728 }{}{\wlog{WARNING: biblatex-oxref failed to patch mkdaterangetrunc@i}}
8729 \patchcmd{\mkdaterangetruncextra@i}{%
8730 \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}%
8731 }{%
8732 \iffieldundef{#2endmonth}%
8733 {\blx@ox@compyear{\thefield{#2year}}{\thefield{#2endyear}}}%
8734 {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}%
8735 }{}{\wlog{WARNING: biblatex-oxref failed to patch mkdaterangetruncextra@i}}
8736 % \end{macrocode}
8737 %
8738 % We provide a way of prefacing dates (and times) with a type. This is mainly
8739 % intended for online resources.
8740 %
8741 % \begin{macrocode}
8742 \DeclareFieldFormat{datetype}{%
8743 \ifbibstring{#1}{\bibstring{#1}}{#1\isdot}%
8744 }
8745 \newtoggle{blx@ox@timefirst}
8746 \DeclareBiblatexOption{global,type,entry}{timefirst}[true]{%
8747 \settoggle{blx@ox@timefirst}{#1}}
8748 \newbibmacro*{date+time}{%
8749 \ifboolexpr{
8750 test {\iffieldundef{year}}
8751 and
8752 test {\iffieldundef{yeardivision}}
8753 and
8754 test {\iffieldundef{month}}
8755 and
8756 test {\iffieldundef{hour}}
8757 }{}{%
8758 \printfield{datetype}}%
8759 \setunit*{\addspace}%
8760 \iftoggle{blx@ox@timefirst}{%
8761 \printtime
8762 \setunit*{\addcomma\space}}{}%
8763 \printdate
8764 \iftoggle{blx@ox@timefirst}{}{%
8765 \setunit*{\addcomma\space}%
8766 \printtime}%
8767 }
8768 \renewbibmacro*{date}{\usebibmacro{date+time}}
8769 % \end{macrocode}
8770 %
8771 % We provide an equivalent for origdate. This is mainly intended for
8772 % audiovisual resources (for the date of recording).
8773 %
8774 % \begin{macrocode}
8775 \DeclareFieldFormat{origdatetype}{%
8776 \ifbibstring{#1}{\bibstring{#1}}{#1\isdot}%
8777 }
8778 \newbibmacro*{origdate+time}{%
8779 \ifboolexpr{
8780 test {\iffieldundef{origyear}}
8781 and
8782 test {\iffieldundef{origyeardivision}}
8783 and
8784 test {\iffieldundef{origmonth}}
8785 and
8786 test {\iffieldundef{orighour}}
8787 }{}{%
8788 \printfield{origdatetype}}%
8789 \setunit*{\addspace}%
8790 \iftoggle{blx@ox@timefirst}{%
8791 \printorigtime
8792 \setunit*{\addcomma\space}}{}%
8793 \printorigdate
8794 \iftoggle{blx@ox@timefirst}{}{%
8795 \setunit*{\addcomma\space}%
8796 \printorigtime}%
8797 }
8798 % \end{macrocode}
8799 %
8800 % If a date is inferred, it goes in square brackets.
8801 %
8802 % \begin{macrocode}
8803 \DeclareFieldFormat{date}{%
8804 \def\currentfield{date}%
8805 \iffieldannotation{inferred}{\mkbibbrackets{#1}}{#1}%
8806 \undef\currentfield}
8807 \DeclareFieldFormat{origdate}{%
8808 \def\currentfield{origdate}%
8809 \iffieldannotation{inferred}{\mkbibbrackets{#1}}{#1}%
8810 \undef\currentfield}
8811 \DeclareFieldFormat{eventdate}{%
8812 \def\currentfield{eventdate}%
8813 \iffieldannotation{inferred}{\mkbibbrackets{#1}}{#1}%
8814 \undef\currentfield}
8815 % \end{macrocode}
8816 %
8817 % \subsection{Editions, pages, and other number-like fields}
8818 %
8819 % We let |edition| take a localization key as well as a number.
8820 %
8821 % \begin{macrocode}
8822 \xpatchfieldformat{edition}%
8823 {#1\isdot}%
8824 {\ifbibstring{#1}{\bibstring{#1}}{#1\isdot}}%
8825 {}{\wlog{WARNING: biblatex-oxref failed to patch edition}}
8826 % \end{macrocode}
8827 %
8828 % Page ranges are compressed, but are not usually marked with
8829 % \enquote{pp.}. The exception is if the page numbers are not obviously
8830 % numbers.
8831 %
8832 % \begin{macrocode}
8833 \DeclareFieldFormat{pages}{%
8834 \iffieldundef{bookpagination}%
8835 {\mkcomprange{#1}}%
8836 {\mkpageprefix[bookpagination][\mkcomprange]{#1}}%
8837 }
8838 % \end{macrocode}
8839 %
8840 % The same is true in citations.
8841 %
8842 % \begin{macrocode}
8843 \DeclareFieldFormat{postnote}{%
8844 \iffieldundef{pagination}%
8845 {\mkcomprange{#1}}%
8846 {\mkpageprefix[pagination][\mkcomprange]{#1}}%
8847 }
8848
8849 % \end{macrocode}
8850 %
8851 % \subsection{Publishers}
8852 %
8853 % The \emph{Oxford Guide to Style} says it is fine to omit publisher
8854 % names uniformly from bibliographic information. This is odd, but we
8855 % can support it with a simple option.
8856 %
8857 % \begin{macrocode}
8858 \DeclareBibliographyOption{nopublisher}[true]{%
8859 \DeclareFieldInputHandler{publisher}{\def\NewValue{}}%
8860 }
8861 % \end{macrocode}
8862 %
8863 % The style guides are less forgiving about omitting the place of publication.
8864 % We provide a bibliography option that fills in such gaps with the |nolocation|
8865 % localization string for selected entry types. It works using a source map,
8866 % which is a clean solution but cannot easily be switched off again or used on a
8867 % per-type basis.
8868 %
8869 % \begin{macrocode}
8870 \DeclareBibliographyOption{nolocation}[true]{%
8871 \DeclareStyleSourcemap{
8872 \maps[datatype=bibtex]{
8873 \map{
8874 \pertype{book}
8875 \pertype{mvbook}
8876 \pertype{bookinbook}
8877 \pertype{inbook}
8878 \pertype{suppbook}
8879 \pertype{collection}
8880 \pertype{mvcollection}
8881 \pertype{incollection}
8882 \pertype{suppcollection}
8883 \pertype{reference}
8884 \pertype{mvreference}
8885 \pertype{inreference}
8886 \pertype{proceedings}
8887 \pertype{mvproceedings}
8888 \pertype{inproceedings}
8889 \step[notfield=location, fieldset=location, fieldvalue={\noexpand\bibstring{nolocation}}]
8890 }
8891 }
8892 }%
8893 }
8894 % \end{macrocode}
8895 %
8896 % We also provide an entry option that has the same effect; this works using
8897 % the \cs{restorelist} mechanism instead.
8898 %
8899 % \begin{macrocode}
8900 \newtoggle{blx@ox@noloc}
8901 \def\blx@ox@noloc{{\bibstring{nolocation}}}
8902 \DeclareEntryOption{nolocation}[true]{%
8903 \settoggle{blx@ox@noloc}{#1}%
8904 \iflistundef{location}{%
8905 \iftoggle{blx@ox@noloc}{\restorelist{location}{\blx@ox@noloc}}{}%
8906 }{}}
8907 % \end{macrocode}
8908 %
8909 % \subsection{URLs}
8910 %
8911 % The OGS recommends the ISO convention of enclosing URLs in angle
8912 % brackets, but NHR recommends leaving URLs bare so as not to interfere
8913 % with text-mining. The latter is the default.
8914 %
8915 % \begin{macrocode}
8916 \DeclareBibliographyOption{isourls}[true]{%
8917 \ifstrequal{#1}{true}
8918 {\DeclareFieldFormat{url}{$\langle$\url{##1}$\rangle$}}
8919 {\DeclareFieldFormat{url}{\url{##1}}}%
8920 }
8921 \ExecuteBibliographyOptions{isourls=false}
8922 % \end{macrocode}
8923 %
8924 % NHR specifies that URLs should be broken across lines \emph{after} slashes
8925 % and (for presumably visual reasons, certainly not syntactical ones) percents;
8926 % and if that doesn't work, \emph{before} other punctuation (including hyphens).
8927 % Out of necessity, we deviate slightly by breaking after colons as well. The
8928 % break penalty and stretch around punctuation can be configured independently
8929 % of those for slashes, colons, percents, numbers, and letters.
8930 %
8931 % \begin{macrocode}
8932 \newcounter{biburlpunctpenalty}
8933 \setcounter{biburlpunctpenalty}{200}
8934 \newmuskip\biburlpunctskip
8935 \biburlpunctskip=0mu plus 1mu\relax
8936 \renewcommand*{\biburlsetup}{%
8937 \Urlmuskip\biburlbigskip
8938 \mathchardef\UrlBigBreakPenalty=\value{biburlbigbreakpenalty}\relax
8939 \mathchardef\UrlBreakPenalty=\value{biburlbreakpenalty}\relax
8940 \def\UrlBigBreaks{\do\/\do\:}%
8941 \def\UrlBreaks{\do\%}%
8942 \ifnumgreater{\value{biburlpunctpenalty}}{0}{%
8943 \def\do##1{\appto\UrlSpecials{\do##1{%
8944 \mskip\biburlpunctskip \penalty\value{biburlpunctpenalty}%
8945 \mathchar`##1 \mskip\biburlpunctskip}}}%
8946 \do\!\do\"\do\#\do\$\do\&\do\'\do\(\do\)\do\*\do\+%
8947 \do\,\do\-\do\.\do\;\do\<\do\=\do\>\do\?\do\@\do\[%
8948 \do\\\do\]\do\^\do\_\do\`\do\{\do\|\do\}\do\~}{}%
8949 \ifnumgreater{\value{biburlnumpenalty}}{0}{%
8950 \def\do##1{\appto\UrlSpecials{\do##1{%
8951 \mathchar`##1 \mskip\biburlnumskip \penalty\value{biburlnumpenalty}}}}%
8952 \do\1\do\2\do\3\do\4\do\5\do\6\do\7\do\8\do\9\do\0}{}%
8953 \ifnumgreater{\value{biburlucpenalty}}{0}{%
8954 \def\do##1{\appto\UrlSpecials{\do##1{%
8955 \mathchar`##1 \mskip\biburlucskip \penalty\value{biburlucpenalty}}}}%
8956 \do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J%
8957 \do\K\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T%
8958 \do\U\do\V\do\W\do\X\do\Y\do\Z}{}%
8959 \ifnumgreater{\value{biburllcpenalty}}{0}{%
8960 \def\do##1{\appto\UrlSpecials{\do##1{%
8961 \mathchar`##1 \mskip\biburllcskip \penalty\value{biburllcpenalty}}}}%
8962 \do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j%
8963 \do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t%
8964 \do\u\do\v\do\w\do\x\do\y\do\z}{}%
8965 \let\do=\noexpand}
8966 % \end{macrocode}
8967 %
8968 % URL dates are set off with a comma rather than parentheses.
8969 %
8970 % \begin{macrocode}
8971 \DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}
8972 \xpatchbibmacro{url+urldate}%
8973 {\setunit*{\addspace}}%
8974 {\setunit*{\addcomma\addspace}}%
8975 {}{\wlog{WARNING: biblatex-oxref failed to patch url+urldate}}
8976 % \end{macrocode}
8977 %
8978 % The DOI is introduced by \enquote{doi} in lowercase.
8979 %
8980 % \begin{macrocode}
8981 \xpatchfieldformat{doi}%
8982 {\mkbibacro{DOI}}%
8983 {\printtext{doi}}%
8984 {}{\wlog{WARNING: biblatex-oxref failed to patch doi}}
8985 % \end{macrocode}
8986 %
8987 % Unlike URLs, DOIs are preceded by a full stop.
8988 %
8989 % \begin{macrocode}
8990 \xpatchbibmacro{doi+eprint+url}%
8991 {\printfield{doi}}%
8992 {\setunit{\addperiod\space}\printfield{doi}}%
8993 {}{\wlog{WARNING: biblatex-oxref failed to patch doi+eprint+url}}
8994
8995 % \end{macrocode}
8996 %
8997 % \subsection{Addenda}
8998 %
8999 % The publication state is given in parentheses. Other addenda are added
9000 % plain.
9001 %
9002 % \begin{macrocode}
9003 \renewbibmacro*{addendum+pubstate}{%
9004 \ifboolexpr{
9005 test {\iffieldundef{pubstate}}
9006 or
9007 test {\iffieldequalstr{labeldatesource}{pubstate}}
9008 }{}{%
9009 \nopunct
9010 \ifbibstring{\thefield{pubstate}}{%
9011 \printtext[pubstate]{\bibstring{\thefield{pubstate}}}%
9012 }{%
9013 \printfield{pubstate}}}%
9014 \setunit{\addsemicolon\addspace}\newblock
9015 \printfield{addendum}}
9016 \DeclareFieldFormat{pubstate}{\mkbibparens{#1}}
9017 % \end{macrocode}
9018 %
9019 % Publication descriptions are printed plain for unpublished works, and in
9020 % brackets for other entry types.
9021 %
9022 % \begin{macrocode}
9023 \DeclareFieldFormat{howpublished}{\mkbibbrackets{#1}}
9024 \DeclareFieldFormat[misc,unpublished]{howpublished}{#1}
9025 % \end{macrocode}
9026 %
9027 % \subsection{Articles and periodicals}
9028 %
9029 % Subtypes for articles and similar are in square brackets.
9030 %
9031 % \begin{macrocode}
9032 \DeclareFieldFormat[article,periodical,suppperiodical,review]{entrysubtype}{\mkbibbrackets{#1}}
9033 % \end{macrocode}
9034 %
9035 % We provide a configurable command for testing if a title is abbreviated. We
9036 % test for ASCII capitals and a limited number of accented capitals by default,
9037 % but users can extend or replace the list if it causes problems.
9038 %
9039 % \begin{macrocode}
9040 \global\let\blx@ox@abbrevstring\@empty
9041 \newrobustcmd*{\DeclareAbbrEndChars}{%
9042 \@ifstar{%
9043 \blx@ox@apptoabbrevstring
9044 }{%
9045 \global\let\blx@ox@abbrevstring\@empty
9046 \blx@ox@apptoabbrevstring}}
9047 \def\blx@ox@apptoabbrevstring#1{
9048 \xdef\blx@ox@abbrevstring{\blx@ox@abbrevstring#1}}
9049 \DeclareAbbrEndChars{%
9050 A\^{A}BCDEFG\u{G}HI\^{I}JKLMNO\"{O}\^{O}PQRSTU\"{U}\^{U}VWXYZ.}%
9051 \newcommand*{\ifabbrev}[3]{%
9052 \StrRight{#1}{1}[\blx@ox@lastchar]%
9053 \expandafter\IfSubStr*{\blx@ox@abbrevstring}{\blx@ox@lastchar}{#2}{#3}%
9054 }
9055 % \end{macrocode}
9056 %
9057 % We renew the |journal+issuetitle| macro so that if a work takes up a
9058 % whole issue (signified by using |issuetitle| \emph{instead} of
9059 % |title|), the title and journal title are separated by \enquote{=}
9060 % instead of the usual punctuation. It also inserts an appropriate localization
9061 % string if the publication status demands it.
9062 % We insert a comma after the journal title, regardless of what follows.
9063 % There is also a comma after numeric (but not textual) series.
9064 %
9065 % \begin{macrocode}
9066 \renewbibmacro*{journal+issuetitle}{%
9067 \ifboolexpr{
9068 test {\iffieldundef{title}}
9069 and
9070 not test {\iffieldundef{issuetitle}}
9071 }{%
9072 \usebibmacro{issue}%
9073 \setunit{\addspace =\addspace}%
9074 }{%
9075 \ifboolexpr{
9076 ( not test {\iffieldundef{pubstate}} )
9077 and
9078 test {\ifbibxstring{\thefield{pubstate}in}}
9079 }{%
9080 \printtext{\bibstring{\thefield{pubstate}in}\space}%
9081 \clearfield{pubstate}%
9082 }{}}%
9083 \usebibmacro{journal}%
9084 \iffieldundef{journalsubtitle}{%
9085 \ifabbrev{\strfield{journaltitle}}{\setunit{\addspace}}{\newunit}%
9086 }{%
9087 \ifabbrev{\strfield{journalsubtitle}}{\setunit{\addspace}}{\newunit}}%
9088 \iffieldundef{series}{}{%
9089 \newunit\newblock
9090 \printfield{series}%
9091 \ifbibxstring{\thefield{series}}{%
9092 \setunit{\addspace}%
9093 }{%
9094 \newunit}}%
9095 \usebibmacro{volume+number+eid}%
9096 \setunit{\addspace}%
9097 \usebibmacro{issue+date}%
9098 \newunit}
9099 % \end{macrocode}
9100 %
9101 % We renew the |title+issuetitle| macro (for whole periodical issues) to apply
9102 % the same punctuation changes after the periodical name and series. At the
9103 % same time, we delegate handling of volume and issue numbers to the appropriate
9104 % macro so we can customize it.
9105 %
9106 % \begin{macrocode}
9107 \renewbibmacro*{title+issuetitle}{%
9108 \usebibmacro{periodical}%
9109 \iffieldundef{subtitle}{%
9110 \ifabbrev{\strfield{title}}{\setunit{\addspace}}{\newunit}%
9111 }{%
9112 \ifabbrev{\strfield{subtitle}}{\setunit{\addspace}}{\newunit}}%
9113 \iffieldundef{series}{}{%
9114 \newunit\newblock
9115 \printfield{series}%
9116 \ifbibxstring{\thefield{series}}{%
9117 \setunit{\addspace}%
9118 }{%
9119 \newunit}}%
9120 \usebibmacro{volume+number+eid}%
9121 \setunit{\addspace}%
9122 \usebibmacro{issue+date}%
9123 \newunit}
9124 % \end{macrocode}
9125 %
9126 % OGS and NHR provide plentiful options for formatting volume and issue
9127 % numbers. We implement four of them here as options. The default is to
9128 % use a slash between volume and issue number. Note that we prevent the
9129 % |volume+number+eid| macro from actually printing the EID; this is printed
9130 % by |issue+date| instead (see below).
9131 %
9132 % \begin{macrocode}
9133 \DeclareBibliographyOption[string]{issuestyle}[slash]{%
9134 \ifcsdef{blx@ox@issuestyle@#1}{%
9135 \csuse{blx@ox@issuestyle@#1}%
9136 }{%
9137 \PackageError{biblatex-oxref}
9138 {Invalid option 'issuestyle=#1'}
9139 {Valid values are 'slash', 'colon', 'comma', 'parens'}%
9140 }%
9141 }
9142 \csdef{blx@ox@issuestyle@slash}{%
9143 \renewbibmacro*{volume+number+eid}{%
9144 \printfield{volume}%
9145 \setunit*{\addslash}%
9146 \printfield{number}%
9147 }%
9148 }
9149 \csdef{blx@ox@issuestyle@colon}{%
9150 \renewbibmacro*{volume+number+eid}{%
9151 \printfield{volume}%
9152 \setunit*{\addcolon\space}%
9153 \printfield{number}%
9154 }%
9155 }
9156 \csdef{blx@ox@issuestyle@comma}{%
9157 \renewbibmacro*{volume+number+eid}{%
9158 \printfield{volume}%
9159 \setunit*{\addcomma\space}%
9160 \printfield{number}%
9161 }%
9162 }
9163 \csdef{blx@ox@issuestyle@parens}{%
9164 \renewbibmacro*{volume+number+eid}{%
9165 \printfield{volume}%
9166 \setunit*{\addspace}%
9167 \printfield[parens]{number}%
9168 }%
9169 }
9170 \ExecuteBibliographyOptions{issuestyle=slash}
9171 % \end{macrocode}
9172 %
9173 % OGS consistently prints dates of newspapers and magazines bare, but those
9174 % of academic journals in parentheses. NHR seems to favour printing dates in
9175 % parentheses regardless, but notes that some publishing houses take the OGS
9176 % approach.
9177 %
9178 % We provide an option for switching between the two approaches. If active
9179 % and an issue has no volume or issue numbers (first block), the year division
9180 % and date are printed bare. Otherwise (second block) they are printed
9181 % in parentheses just as in the standard version of the macro.
9182 %
9183 % \begin{macrocode}
9184 \newtoggle{blx@ox@varissuedate}
9185 \DeclareBiblatexOption{global,type,entry}{varissuedate}[true]{%
9186 \settoggle{blx@ox@varissuedate}{#1}}
9187 \DeclareBiblatexOption{global,type,entry}{issuedate-plain}[true]{%
9188 \settoggle{blx@ox@varissuedate}{#1}}
9189 \renewbibmacro*{issue+date}{%
9190 \ifboolexpr{
9191 test {\iffieldundef{issue}}
9192 and
9193 test {\iffieldundef{year}}
9194 and
9195 test {\iffieldundef{yeardivision}}
9196 and
9197 test {\iffieldundef{month}}
9198 }{}{%
9199 \ifboolexpr{
9200 togl {blx@ox@varissuedate}
9201 and
9202 test {\iffieldundef{volume}}
9203 and
9204 test {\iffieldundef{number}}
9205 }{%
9206 \newunit
9207 \printtext{%
9208 \iffieldundef{issue}{%
9209 \usebibmacro{date}
9210 }{%
9211 \printfield{issue}%
9212 \setunit*{\addspace}%
9213 \usebibmacro{date}}}%
9214 }{%
9215 \printtext[parens]{%
9216 \iffieldundef{issue}{%
9217 \usebibmacro{date}%
9218 }{%
9219 \printfield{issue}%
9220 \setunit*{\addspace}%
9221 \usebibmacro{date}}}}}%
9222 \newunit
9223 \printfield{eid}%
9224 }
9225 % \end{macrocode}
9226 %
9227 % Our |article| driver is like the standard one except
9228 % \begin{itemize}
9229 % \item it has no \enquote{in} macro;
9230 % \item there is a handler for the suppto relation;
9231 % \item there is no language macro;
9232 % \item the punctuation before related items is configurable.
9233 % \end{itemize}
9234 %
9235 % \begin{macrocode}
9236 \DeclareBibliographyDriver{article}{%
9237 \usebibmacro{bibindex}%
9238 \usebibmacro{begentry}%
9239 \usebibmacro{author/translator+others}%
9240 \setunit{\printdelim{nametitledelim}}\newblock
9241 \usebibmacro{title}%
9242 \setunit{\titlebyauthordelim}\newblock
9243 \usebibmacro{byauthor}%
9244 \newunit\newblock
9245 \usebibmacro{bytranslator+others}%
9246 \newunit\newblock
9247 \printfield{version}%
9248 \newunit\newblock
9249 \usebibmacro{journal+issuetitle}%
9250 \newunit
9251 \usebibmacro{byeditor+others}%
9252 \iffieldequalstr{relatedtype}{suppto}{%
9253 \setunit{\addsemicolon\space}%
9254 \iftoggle{bbx:related}{%
9255 \usebibmacro{related:init}%
9256 \usebibmacro{related}%
9257 \clearfield{related}%
9258 }{}%
9259 }{}%
9260 \newunit
9261 \usebibmacro{note+pages}%
9262 \newunit\newblock
9263 \iftoggle{bbx:isbn}
9264 {\printfield{issn}}
9265 {}%
9266 \newunit\newblock
9267 \usebibmacro{doi+eprint+url}%
9268 \newunit\newblock
9269 \usebibmacro{addendum+pubstate}%
9270 \iftoggle{bbx:related}
9271 {\usebibmacro{related:init}%
9272 \usebibmacro{related}}
9273 {}%
9274 \setunit{\bibpagerefpunct}\newblock
9275 \usebibmacro{pageref}%
9276 \usebibmacro{finentry}}
9277 % \end{macrocode}
9278 %
9279 % Similar changes are made to the |periodical| driver.
9280 %
9281 % \begin{macrocode}
9282 \DeclareBibliographyDriver{periodical}{%
9283 \usebibmacro{bibindex}%
9284 \usebibmacro{begentry}%
9285 \usebibmacro{editor}%
9286 \setunit{\printdelim{nametitledelim}}\newblock
9287 \usebibmacro{title+issuetitle}%
9288 \newunit\newblock
9289 \usebibmacro{byeditor}%
9290 \newunit\newblock
9291 \printfield{note}%
9292 \newunit\newblock
9293 \iftoggle{bbx:isbn}
9294 {\printfield{issn}}
9295 {}%
9296 \newunit\newblock
9297 \usebibmacro{doi+eprint+url}%
9298 \newunit\newblock
9299 \usebibmacro{addendum+pubstate}%
9300 \iftoggle{bbx:related}
9301 {\usebibmacro{related:init}%
9302 \usebibmacro{related}}
9303 {}%
9304 \setunit{\bibpagerefpunct}\newblock
9305 \usebibmacro{pageref}%
9306 \usebibmacro{finentry}}
9307 % \end{macrocode}
9308 %
9309 % The |suppperiodical| driver is just like the |article| one, except the note
9310 % comes sooner after the title. This is to allow it to be used as a descriptor.
9311 % Since we're breaking the alias, we need to explicitly replicate the article
9312 % formatting for the rest of the entry.
9313 %
9314 % \begin{macrocode}
9315 \DeclareFieldFormat[suppperiodical]{title}{%
9316 \def\currentfield{title}%
9317 \iffieldannotation{descriptor}{#1}{\mkbibquote{#1\isdot}}%
9318 \undef\currentfield}
9319 \DeclareFieldFormat[suppperiodical]{volume}{#1}% volume of a journal
9320 \DeclareFieldFormat[suppperiodical]{number}{#1}% number of a journal
9321 \DeclareFieldFormat[suppperiodical]{series}{% series of a journal
9322 \ifinteger{#1}
9323 {\mkbibordseries{#1}~\bibstring{jourser}}
9324 {\ifbibstring{#1}{\bibstring{#1}}{#1}}}
9325 \DeclareBibliographyDriver{suppperiodical}{%
9326 \usebibmacro{bibindex}%
9327 \usebibmacro{begentry}%
9328 \usebibmacro{author/translator+others}%
9329 \setunit{\printdelim{nametitledelim}}\newblock
9330 \usebibmacro{title}%
9331 \setunit{\titlebyauthordelim}\newblock
9332 \usebibmacro{byauthor}%
9333 \newunit\newblock
9334 \usebibmacro{bytranslator+others}%
9335 \newunit\newblock
9336 \printfield{note}\clearfield{note}%
9337 \newunit\newblock
9338 \printfield{version}%
9339 \newunit\newblock
9340 \usebibmacro{journal+issuetitle}%
9341 \newunit
9342 \usebibmacro{byeditor+others}%
9343 \iffieldequalstr{relatedtype}{suppto}{%
9344 \setunit{\addsemicolon\space}%
9345 \iftoggle{bbx:related}{%
9346 \usebibmacro{related:init}%
9347 \usebibmacro{related}%
9348 \clearfield{related}%
9349 }{}%
9350 }{}%
9351 \newunit
9352 \usebibmacro{note+pages}%
9353 \newunit\newblock
9354 \iftoggle{bbx:isbn}
9355 {\printfield{issn}}
9356 {}%
9357 \newunit\newblock
9358 \usebibmacro{doi+eprint+url}%
9359 \newunit\newblock
9360 \usebibmacro{addendum+pubstate}%
9361 \iftoggle{bbx:related}
9362 {\usebibmacro{related:init}%
9363 \usebibmacro{related}}
9364 {}%
9365 \setunit{\bibpagerefpunct}\newblock
9366 \usebibmacro{pageref}%
9367 \usebibmacro{finentry}}
9368 % \end{macrocode}
9369 %
9370 % \subsection{Books and works in books}
9371 %
9372 % By default, editors do not appear before the title in book or reference
9373 % entries.
9374 %
9375 % \begin{macrocode}
9376 \ExecuteBibliographyOptions[book,mvbook,reference,mvreference]{useeditor=false,usetranslator=false}
9377 % \end{macrocode}
9378 %
9379 % The titles of books that have been collected into an anthology are
9380 % treated like regular chapters and set in quotes. Poems and plays,
9381 % however, are set in italics.
9382 %
9383 % \begin{macrocode}
9384 \DeclareFieldFormat[bookinbook]{title}{%
9385 \ifboolexpr{
9386 test {\iffieldequalstr{entrysubtype}{poem}}
9387 or
9388 test {\iffieldequalstr{entrysubtype}{play}}
9389 }{%
9390 \mkbibemph{#1}%
9391 }{%
9392 \mkbibquote{#1\isdot}}}
9393 % \end{macrocode}
9394 %
9395 % Unlike the standard styles, we have a separate driver for |inreference|,
9396 % so we need to change the title style accordingly.
9397 %
9398 % \begin{macrocode}
9399 \DeclareFieldFormat[inreference]{title}{\mkbibquote{#1\isdot}}
9400 % \end{macrocode}
9401 %
9402 % Volume numbers in monograph-style entries are formatted as roman
9403 % numerals (if they are indeed numbers). We take some care here to support
9404 % simple ranges (e.g.\@ 1-3, 4--9). Support for more complex ranges may be
9405 % considered on request.
9406 %
9407 % \begin{macrocode}
9408 \newcommand*{\mkvolroman}[1]{\Rn{#1}}
9409 \DeclareFieldFormat[book,mvbook,bookinbook,inbook,suppbook,%
9410 collection,mvcollection,incollection,suppcollection,%
9411 proceedings,mvproceedings,inproceedings,%
9412 reference,mvreference,inreference]{volume}{%
9413 \IfSubStr{#1}{-}{%
9414 \StrCount{#1}{-}[\blx@ox@dashnum]%
9415 \StrBefore{#1}{-}[\blx@ox@volnum]%
9416 \expandafter\ifinteger\blx@ox@volnum{\mkvolroman{\blx@ox@volnum}}{\blx@ox@volnum}\bibrangedash
9417 \StrBehind[\blx@ox@dashnum]{#1}{-}[\blx@ox@volnum]%
9418 \expandafter\ifinteger\blx@ox@volnum{\mkvolroman{\blx@ox@volnum}}{\blx@ox@volnum}%
9419 }{%
9420 \ifinteger{#1}{\mkvolroman{#1}}{#1}}}
9421 % \end{macrocode}
9422 %
9423 % Where a multi-volume work is more like a series, the volume number and
9424 % main title are put in a bracketted block between the volume title
9425 % and the usual publication block.
9426 %
9427 % \begin{macrocode}
9428 \newbibmacro*{maintitle+volume}{%
9429 \ifboolexpr{
9430 test {\iffieldundef{maintitle}}
9431 or
9432 test {\iffieldundef{volume}}
9433 }{}%
9434 {\printtext[maintitle+volume]{%
9435 \bibstring{volume}\addspace
9436 \printfield{volume}\printfield{part}\addspace
9437 \bibstring{ofseries}\addspace
9438 \usebibmacro{maintitle}}}
9439 }
9440 \DeclareFieldFormat{maintitle+volume}{\mkbibbrackets{#1}}
9441 % \end{macrocode}
9442 %
9443 % The |in| before the booktitle is suppressed for works in yearbooks.
9444 %
9445 % \begin{macrocode}
9446 \renewbibmacro*{in:}{%
9447 \iffieldequalstr{entrysubtype}{yearbook}{}{%
9448 \bibstring{in}%
9449 \printunit{\intitlepunct}}}
9450 % \end{macrocode}
9451 %
9452 % Oxford style signifies formal publication by putting the relevant
9453 % details in parentheses.
9454 %
9455 % \begin{macrocode}
9456 \DeclareFieldFormat{publication}{\mkbibparens{#1}}
9457 % \end{macrocode}
9458 %
9459 % Standard \pkg{biblatex} puts a space between series name and number.
9460 % OGS separates them with a comma. It also has an example with a series editor.
9461 %
9462 % \begin{macrocode}
9463 \renewbibmacro*{series+number}{%
9464 \printfield{series}%
9465 \setunit*{\addcomma\space}%
9466 \usebibmacro{byserieseditor}%
9467 \setunit*{\addcomma\space}%
9468 \printfield{number}}
9469 % \end{macrocode}
9470 %
9471 % We provide an option for displaying the series information before, instead of
9472 % within, the publication block.
9473 %
9474 % \begin{macrocode}
9475 \newtoggle{blx@ox@altbookseries}
9476 \DeclareBibliographyOption[string]{bookseries}[in]{%
9477 \ifstrequal{#1}{out}{%
9478 \toggletrue{blx@ox@altbookseries}%
9479 }{%
9480 \togglefalse{blx@ox@altbookseries}%
9481 \ifstrequal{#1}{in}{}{%
9482 \PackageError{biblatex-oxref}
9483 {Invalid option 'bookseries=#1'}
9484 {Valid values are 'in' and 'out'.}}}}
9485 % \end{macrocode}
9486 %
9487 % If there are the same number of locations and publishers, and there are more
9488 % than one pair, we print them pairwaise rather than in two separate lists. In
9489 % order to do this while retaining the normal mechanisms for punctuating the
9490 % list, we need a |listpair:delim| macro similar to |namepair:delim| (above)
9491 % that uses the generic list punctuation. Again, the three arguments are the
9492 % item being printed, the number of the current item pair and the total number
9493 % of item pairs.
9494 %
9495 % \begin{macrocode}
9496 \newbibmacro*{listpair:delim}[3]{%
9497 \ifnumgreater{#2}{\@ne}{%
9498 \ifnumless{#2}{#3}{%
9499 \printdelim{multilistdelim}%
9500 }{%
9501 \c@liststop#3%
9502 \lbx@finallistdelim{#1}}%
9503 }{}}
9504 % \end{macrocode}
9505 %
9506 % We use this as the basis of a list format that will be applied to the location
9507 % element of a location--publisher pair.
9508 %
9509 % \begin{macrocode}
9510 \newcounter{locpubpairs}
9511 \DeclareListFormat{locpub}{%
9512 \usebibmacro{listpair:delim}%
9513 {#1}{\value{locpubpairs}}{\value{location}}%
9514 #1\isdot
9515 }
9516 % \end{macrocode}
9517 %
9518 % When citing both the first and a later edition, the first one comes
9519 % first, and the later one comes after a semicolon. As per standard
9520 % \pkg{biblatex}, the elements of a single edition are separated by commas
9521 % except that the publisher is preceded by a colon. The origdate is only
9522 % printed here if at least one of the edition, the origlocation or the
9523 % origpublisher is also specified.
9524 %
9525 % \begin{macrocode}
9526 \newsavebox{\blx@ox@locbox}
9527 \newbibmacro*{edition+publisher+location+date}{%
9528 \printlist{origlocation}%
9529 \iflistundef{origpublisher}%
9530 {\setunit*{\addcomma\space}}%
9531 {\setunit*{\addcolon\space}}%
9532 \printlist{origpublisher}%
9533 \setunit*{\addcomma\space}%
9534 \ifboolexpr{
9535 test {\iflistundef{origlocation}}
9536 and
9537 test {\iflistundef{origpublisher}}
9538 and
9539 test {\iffieldundef{edition}}
9540 }{}{%
9541 \printorigdate}%
9542 \setunit{\addsemicolon\space}%
9543 \printfield{edition}%
9544 \setunit*{\addcomma\space}%
9545 % \end{macrocode}
9546 %
9547 % As mentioned, if there are the same number of locations and publishers, and
9548 % there are more than one pair, we print them pairwaise rather than in two
9549 % separate lists. This uses the same principle as the |namepairs| bibmacro,
9550 % but does not have the list truncation apparatus. This time we use a savebox
9551 % just for efficiency.
9552 %
9553 % \begin{macrocode}
9554 \ifboolexpr{%
9555 test {\ifnumcomp{\value{publisher}}{>}{1}}
9556 and
9557 test {\ifnumequal{\value{location}}{\value{publisher}}}
9558 }{%
9559 \setcounter{locpubpairs}{0}%
9560 \savebibmacro{list:andothers}%
9561 \renewbibmacro*{list:andothers}{}%
9562 \whileboolexpr{%
9563 test {\ifnumcomp{\value{locpubpairs}}{<}{\value{publisher}}}
9564 }{%
9565 \stepcounter{locpubpairs}%
9566 \printlist[locpub][\value{locpubpairs}-\value{locpubpairs}]{location}%
9567 \setunit{\addcolon\space}%
9568 \printlist[][\value{locpubpairs}-\value{locpubpairs}]{publisher}%
9569 }%
9570 \restorebibmacro{list:andothers}%
9571 }{%
9572 \printlist{location}%
9573 \iflistundef{publisher}%
9574 {\setunit*{\addcomma\space}}%
9575 {\setunit*{\addcolon\space}}%
9576 \printlist{publisher}%
9577 }%
9578 \setunit*{\addcomma\space}%
9579 \usebibmacro{date}%
9580 }
9581 % \end{macrocode}
9582 %
9583 % Oxford style is to provide publication details –
9584 % series name and number, edition, publisher, location, date –
9585 % in a parenthetical block after the title information.
9586 %
9587 % \begin{macrocode}
9588 \newbibmacro*{series+number+edition+publisher+location+date}{%
9589 \iftoggle{blx@ox@altbookseries}{%
9590 \usebibmacro{series+number}%
9591 \setunit{\addspace}\newblock}{}%
9592 \ifboolexpr{
9593 test {\iffieldundef{series}}
9594 and
9595 test {\iffieldundef{number}}
9596 and
9597 test {\iffieldundef{edition}}
9598 and
9599 test {\iflistundef{publisher}}
9600 and
9601 test {\iflistundef{location}}
9602 and
9603 test {\iffieldundef{year}}
9604 and
9605 test {\iffieldundef{yeardivision}}
9606 and
9607 test {\iffieldundef{month}}
9608 }{}{%
9609 \nopunct
9610 \printtext[publication]{%
9611 \iftoggle{blx@ox@altbookseries}{}{%
9612 \usebibmacro{series+number}%
9613 \setunit{\addsemicolon\addspace}}%
9614 \usebibmacro{edition+publisher+location+date}%
9615 \usebibmacro{copub}}}%
9616 \iffieldequalstr{relatedtype}{copub}{\clearfield{related}}%
9617 \setunit{\addspace}\newblock
9618 \usebibmacro{origpub}%
9619 }
9620 % \end{macrocode}
9621 %
9622 % The edition information for reference works is recorded earlier in the
9623 % reference, so we provide a variant that excludes it from the
9624 % publication block.
9625 %
9626 % \begin{macrocode}
9627 \newbibmacro*{series+number+publisher+location+date}{%
9628 \iftoggle{blx@ox@altbookseries}{%
9629 \usebibmacro{series+number}%
9630 \setunit{\addspace}\newblock}{}%
9631 \ifboolexpr{
9632 test {\iffieldundef{series}}
9633 and
9634 test {\iffieldundef{number}}
9635 and
9636 test {\iflistundef{publisher}}
9637 and
9638 test {\iflistundef{location}}
9639 and
9640 test {\iffieldundef{year}}
9641 and
9642 test {\iffieldundef{yeardivision}}
9643 and
9644 test {\iffieldundef{month}}
9645 }{}{%
9646 \nopunct
9647 \printtext[publication]{%
9648 \iftoggle{blx@ox@altbookseries}{}{%
9649 \usebibmacro{series+number}%
9650 \setunit{\addsemicolon\addspace}}%
9651 \usebibmacro{publisher+location+date}%
9652 \usebibmacro{copub}}}%
9653 \iffieldequalstr{relatedtype}{copub}{\clearfield{related}}%
9654 \setunit{\addspace}\newblock
9655 \usebibmacro{origpub}%
9656 }
9657 % \end{macrocode}
9658 %
9659 % The |copub| macro prints co-publication details.
9660 %
9661 % \begin{macrocode}
9662 \newbibmacro*{copub}{%
9663 \ifboolexpr{
9664 togl {bbx:related}
9665 and
9666 test {\iffieldequalstr{relatedtype}{copub}}
9667 }{%
9668 \setunit{\addsemicolon\space}%
9669 \usebibmacro{related:init}%
9670 \usebibmacro{related}%
9671 }{}%
9672 }
9673 % \end{macrocode}
9674 %
9675 % The |origpub| macro prints the origdate field if it has not yet been cleared.
9676 %
9677 % \begin{macrocode}
9678 \newbibmacro*{origpub}{%
9679 \ifboolexpr{
9680 test {\iflistundef{origlocation}}
9681 and
9682 test {\iflistundef{origpublisher}}
9683 and
9684 test {\iffieldundef{edition}}
9685 and
9686 ( not test {\iffieldundef{origyear}} )
9687 }{%
9688 \printtext[parens]{\bibstring{origpubin}\space\printorigdate}%
9689 }{}%
9690 }
9691 % \end{macrocode}
9692 %
9693 % The changes to the |book| driver compared to the standard style are as
9694 % follows:
9695 % \begin{itemize}
9696 % \item
9697 % |maintitle| is processed with |volume| just before |series|, instead
9698 % of with |title|;
9699 % \item
9700 % |edition| is processed where the standard style processes |note|,
9701 % and vice versa;
9702 % \item
9703 % |volumes| is omitted;
9704 % \item
9705 % |series| to |date| information is delegated to a separate macro;
9706 % \item
9707 % support is added for |howpublished| field;
9708 % \end{itemize}
9709 %
9710 % \begin{macrocode}
9711 \DeclareBibliographyDriver{book}{%
9712 \usebibmacro{bibindex}%
9713 \usebibmacro{begentry}%
9714 \usebibmacro{author/editor+others/translator+others}%
9715 \setunit{\printdelim{nametitledelim}}\newblock
9716 \usebibmacro{title}%
9717 \setunit{\titlebyauthordelim}\newblock
9718 \usebibmacro{byauthor}%
9719 \newunit\newblock
9720 \usebibmacro{byeditor+others}%
9721 \newunit\newblock
9722 \printfield{note}%
9723 \newunit\newblock
9724 \usebibmacro{maintitle+volume}%
9725 \newunit
9726 \usebibmacro{series+number+edition+publisher+location+date}%
9727 \setunit{\addspace}%
9728 \printfield{howpublished}%
9729 \newunit\newblock
9730 \usebibmacro{chapter+pages}%
9731 \newunit
9732 \printfield{pagetotal}%
9733 \newunit\newblock
9734 \iftoggle{bbx:isbn}
9735 {\printfield{isbn}}
9736 {}%
9737 \newunit\newblock
9738 \usebibmacro{doi+eprint+url}%
9739 \newunit\newblock
9740 \usebibmacro{addendum+pubstate}%
9741 \iftoggle{bbx:related}
9742 {\usebibmacro{related:init}%
9743 \usebibmacro{related}}
9744 {}%
9745 \setunit{\bibpagerefpunct}\newblock
9746 \usebibmacro{pageref}%
9747 \usebibmacro{finentry}}
9748 % \end{macrocode}
9749 %
9750 % Unlike the standard styles, we have a separate driver for |mvbook|
9751 % which behaves slightly differently. It is in fact closer to the
9752 % standard |book| driver. The changes are as follows:
9753 % \begin{itemize}
9754 % \item
9755 % |volume|/|part| is processed just after |maintitle+title|;
9756 % \item
9757 % |edition| is processed where the standard style processes |note|;
9758 % \item
9759 % |note| is processed after |volumes|;
9760 % \item
9761 % |series| to |date| information is delegated to a separate macro;
9762 % \end{itemize}
9763 %
9764 % \begin{macrocode}
9765 \DeclareBibliographyDriver{mvbook}{%
9766 \usebibmacro{bibindex}%
9767 \usebibmacro{begentry}%
9768 \usebibmacro{author/editor+others/translator+others}%
9769 \setunit{\printdelim{nametitledelim}}\newblock
9770 \usebibmacro{maintitle+title}%
9771 \newunit
9772 \ifboolexpr{
9773 test {\iffieldequalstr{relatedtype}{multivolume}}
9774 or
9775 ( not test {\iffieldundef{maintitle}} )
9776 }{}{%
9777 \printfield{volume}%
9778 \printfield{part}}%
9779 \setunit{\titlebyauthordelim}\newblock
9780 \usebibmacro{byauthor}%
9781 \newunit\newblock
9782 \usebibmacro{byeditor+others}%
9783 \newunit\newblock
9784 \printfield{volumes}%
9785 \newunit\newblock
9786 \printfield{note}%
9787 \newunit\newblock
9788 \ifboolexpr{
9789 test {\iffieldequalstr{relatedtype}{multivolume}}
9790 and
9791 test {\iffieldundef{maintitle}}
9792 }{%
9793 \printfield{volume}%
9794 \printfield{part}%
9795 }{}%
9796 \newunit\newblock
9797 \usebibmacro{series+number+edition+publisher+location+date}%
9798 \newunit\newblock
9799 \usebibmacro{chapter+pages}%
9800 \newunit
9801 \printfield{pagetotal}%
9802 \newunit\newblock
9803 \iftoggle{bbx:isbn}
9804 {\printfield{isbn}}
9805 {}%
9806 \newunit\newblock
9807 \usebibmacro{doi+eprint+url}%
9808 \newunit\newblock
9809 \usebibmacro{addendum+pubstate}%
9810 \iftoggle{bbx:related}
9811 {\usebibmacro{related:init}%
9812 \usebibmacro{related}}
9813 {}%
9814 \setunit{\bibpagerefpunct}\newblock
9815 \usebibmacro{pageref}%
9816 \usebibmacro{finentry}}
9817 % \end{macrocode}
9818 %
9819 % Our |inbook| driver modifies the standard one in just the same way as
9820 % our |mvbook| driver modifies the standard |book|.
9821 %
9822 % \begin{macrocode}
9823 \DeclareBibliographyDriver{inbook}{%
9824 \usebibmacro{bibindex}%
9825 \usebibmacro{begentry}%
9826 \usebibmacro{author/translator+others}%
9827 \setunit{\printdelim{nametitledelim}}\newblock
9828 \usebibmacro{title}%
9829 \setunit{\titlebyauthordelim}\newblock
9830 \usebibmacro{byauthor}%
9831 \newunit\newblock
9832 \usebibmacro{in:}%
9833 \usebibmacro{bybookauthor}%
9834 \newunit\newblock
9835 \usebibmacro{maintitle+booktitle}%
9836 \newunit
9837 \iffieldundef{maintitle}
9838 {\printfield{volume}%
9839 \printfield{part}}
9840 {}%
9841 \newunit\newblock
9842 \usebibmacro{byeditor+others}%
9843 \newunit\newblock
9844 \printfield{volumes}%
9845 \newunit\newblock
9846 \printfield{note}%
9847 \newunit\newblock
9848 \usebibmacro{series+number+edition+publisher+location+date}%
9849 \newunit\newblock
9850 \usebibmacro{chapter+pages}%
9851 \newunit\newblock
9852 \iftoggle{bbx:isbn}
9853 {\printfield{isbn}}
9854 {}%
9855 \newunit\newblock
9856 \usebibmacro{doi+eprint+url}%
9857 \newunit\newblock
9858 \usebibmacro{addendum+pubstate}%
9859 \iftoggle{bbx:related}
9860 {\usebibmacro{related:init}%
9861 \usebibmacro{related}}
9862 {}%
9863 \setunit{\bibpagerefpunct}\newblock
9864 \usebibmacro{pageref}%
9865 \usebibmacro{finentry}}
9866 % \end{macrocode}
9867 %
9868 % Our |suppbook| driver is just like |inbook| except that the note is moved
9869 % nearer the title so it can be used as a descriptor.
9870 %
9871 % \begin{macrocode}
9872 \DeclareFieldFormat[suppbook]{title}{%
9873 \def\currentfield{title}%
9874 \iffieldannotation{descriptor}{#1}{\mkbibemph{#1}}%
9875 \undef\currentfield}
9876 \DeclareBibliographyDriver{suppbook}{%
9877 \usebibmacro{bibindex}%
9878 \usebibmacro{begentry}%
9879 \usebibmacro{author/translator+others}%
9880 \setunit{\printdelim{nametitledelim}}\newblock
9881 \usebibmacro{title}%
9882 \setunit{\titlebyauthordelim}\newblock
9883 \usebibmacro{byauthor}%
9884 \newunit\newblock
9885 \printfield{note}%
9886 \setunit{\addspace}\newblock
9887 \usebibmacro{in:}%
9888 \usebibmacro{bybookauthor}%
9889 \newunit\newblock
9890 \usebibmacro{maintitle+booktitle}%
9891 \newunit
9892 \iffieldundef{maintitle}
9893 {\printfield{volume}%
9894 \printfield{part}}
9895 {}%
9896 \newunit\newblock
9897 \usebibmacro{byeditor+others}%
9898 \newunit\newblock
9899 \printfield{volumes}%
9900 \newunit\newblock
9901 \usebibmacro{series+number+edition+publisher+location+date}%
9902 \newunit\newblock
9903 \usebibmacro{chapter+pages}%
9904 \newunit\newblock
9905 \iftoggle{bbx:isbn}
9906 {\printfield{isbn}}
9907 {}%
9908 \newunit\newblock
9909 \usebibmacro{doi+eprint+url}%
9910 \newunit\newblock
9911 \usebibmacro{addendum+pubstate}%
9912 \iftoggle{bbx:related}
9913 {\usebibmacro{related:init}%
9914 \usebibmacro{related}}
9915 {}%
9916 \setunit{\bibpagerefpunct}\newblock
9917 \usebibmacro{pageref}%
9918 \usebibmacro{finentry}}
9919 % \end{macrocode}
9920 %
9921 % We also provide a |bookinbook| driver that handles \code{origdate}
9922 % differently.
9923 %
9924 % \begin{macrocode}
9925 \DeclareBibliographyDriver{bookinbook}{%
9926 \usebibmacro{bibindex}%
9927 \usebibmacro{begentry}%
9928 \usebibmacro{author/translator+others}%
9929 \setunit{\printdelim{nametitledelim}}\newblock
9930 \usebibmacro{title}%
9931 \setunit{\titlebyauthordelim}\newblock
9932 \usebibmacro{byauthor}%
9933 \newunit\newblock
9934 \usebibmacro{in:}%
9935 \usebibmacro{bybookauthor}%
9936 \newunit\newblock
9937 \usebibmacro{maintitle+booktitle}%
9938 \newunit
9939 \iffieldundef{maintitle}
9940 {\printfield{volume}%
9941 \printfield{part}}
9942 {}%
9943 \newunit\newblock
9944 \usebibmacro{byeditor+others}%
9945 \newunit\newblock
9946 \printfield{volumes}%
9947 \newunit\newblock
9948 \printfield{note}%
9949 \newunit\newblock
9950 \usebibmacro{series+number+edition+publisher+location+date}%
9951 \newunit\newblock
9952 \usebibmacro{chapter+pages}%
9953 \newunit\newblock
9954 \iftoggle{bbx:isbn}
9955 {\printfield{isbn}}
9956 {}%
9957 \newunit\newblock
9958 \usebibmacro{doi+eprint+url}%
9959 \newunit\newblock
9960 \usebibmacro{addendum+pubstate}%
9961 \iftoggle{bbx:related}
9962 {\usebibmacro{related:init}%
9963 \usebibmacro{related}}
9964 {}%
9965 \setunit{\bibpagerefpunct}\newblock
9966 \usebibmacro{pageref}%
9967 \usebibmacro{finentry}}
9968 % \end{macrocode}
9969 %
9970 % Our |collection| driver modifies the standard one in just the same way
9971 % as our |book| driver.
9972 %
9973 % \begin{macrocode}
9974 \DeclareBibliographyDriver{collection}{%
9975 \usebibmacro{bibindex}%
9976 \usebibmacro{begentry}%
9977 \usebibmacro{editor+others}%
9978 \setunit{\printdelim{nametitledelim}}\newblock
9979 \usebibmacro{title}%
9980 \newunit\newblock
9981 \usebibmacro{byeditor+others}%
9982 \newunit\newblock
9983 \printfield{note}%
9984 \newunit\newblock
9985 \usebibmacro{maintitle+volume}%
9986 \newunit
9987 \usebibmacro{series+number+edition+publisher+location+date}%
9988 \newunit\newblock
9989 \usebibmacro{chapter+pages}%
9990 \newunit
9991 \printfield{pagetotal}%
9992 \newunit\newblock
9993 \iftoggle{bbx:isbn}
9994 {\printfield{isbn}}
9995 {}%
9996 \newunit\newblock
9997 \usebibmacro{doi+eprint+url}%
9998 \newunit\newblock
9999 \usebibmacro{addendum+pubstate}%
10000 \iftoggle{bbx:related}
10001 {\usebibmacro{related:init}%
10002 \usebibmacro{related}}
10003 {}%
10004 \setunit{\bibpagerefpunct}\newblock
10005 \usebibmacro{pageref}%
10006 \usebibmacro{finentry}}
10007 % \end{macrocode}
10008 %
10009 % Our |mvcollection| driver modifies the standard |collection| driver
10010 % in just the same way as our |mvbook| driver modifies the standard
10011 % |book|.
10012 %
10013 % \begin{macrocode}
10014 \DeclareBibliographyDriver{mvcollection}{%
10015 \usebibmacro{bibindex}%
10016 \usebibmacro{begentry}%
10017 \usebibmacro{editor+others}%
10018 \setunit{\printdelim{nametitledelim}}\newblock
10019 \usebibmacro{maintitle+title}%
10020 \newunit
10021 \ifboolexpr{
10022 test {\iffieldequalstr{relatedtype}{multivolume}}
10023 or
10024 ( not test {\iffieldundef{maintitle}} )
10025 }{}{%
10026 \printfield{volume}%
10027 \printfield{part}}%
10028 \newunit\newblock
10029 \usebibmacro{byeditor+others}%
10030 \newunit\newblock
10031 \printfield{volumes}%
10032 \newunit\newblock
10033 \printfield{note}%
10034 \newunit\newblock
10035 \ifboolexpr{
10036 test {\iffieldequalstr{relatedtype}{multivolume}}
10037 and
10038 test {\iffieldundef{maintitle}}
10039 }{%
10040 \printfield{volume}%
10041 \printfield{part}%
10042 }{}%
10043 \newunit\newblock
10044 \usebibmacro{series+number+edition+publisher+location+date}%
10045 \newunit\newblock
10046 \usebibmacro{chapter+pages}%
10047 \newunit
10048 \printfield{pagetotal}%
10049 \newunit\newblock
10050 \iftoggle{bbx:isbn}
10051 {\printfield{isbn}}
10052 {}%
10053 \newunit\newblock
10054 \usebibmacro{doi+eprint+url}%
10055 \newunit\newblock
10056 \usebibmacro{addendum+pubstate}%
10057 \iftoggle{bbx:related}
10058 {\usebibmacro{related:init}%
10059 \usebibmacro{related}}
10060 {}%
10061 \setunit{\bibpagerefpunct}\newblock
10062 \usebibmacro{pageref}%
10063 \usebibmacro{finentry}}
10064 % \end{macrocode}
10065 %
10066 % Our |incollection| driver modifies the standard one in the same way as
10067 % our |mvbook| driver modifies the standard |book|. In addition, the
10068 % |bookeditor| macro precedes |maintitle| instead of |byeditor+others|
10069 % following it.
10070 %
10071 % \begin{macrocode}
10072 \DeclareBibliographyDriver{incollection}{%
10073 \usebibmacro{bibindex}%
10074 \usebibmacro{begentry}%
10075 \usebibmacro{author/translator+others}%
10076 \setunit{\printdelim{nametitledelim}}\newblock
10077 \usebibmacro{title}%
10078 \setunit{\titlebyauthordelim}\newblock
10079 \usebibmacro{byauthor}%
10080 \newunit\newblock
10081 \usebibmacro{in:}%
10082 \usebibmacro{bookeditor}%
10083 \newunit\newblock
10084 \usebibmacro{maintitle+booktitle}%
10085 \newunit
10086 \iffieldundef{maintitle}
10087 {\printfield{volume}%
10088 \printfield{part}}
10089 {}%
10090 \newunit\newblock
10091 \printfield{volumes}%
10092 \newunit\newblock
10093 \printfield{note}%
10094 \newunit\newblock%
10095 \usebibmacro{series+number+edition+publisher+location+date}%
10096 \newunit\newblock
10097 \usebibmacro{chapter+pages}%
10098 \newunit\newblock
10099 \iftoggle{bbx:isbn}
10100 {\printfield{isbn}}
10101 {}%
10102 \newunit\newblock
10103 \usebibmacro{doi+eprint+url}%
10104 \newunit\newblock
10105 \usebibmacro{addendum+pubstate}%
10106 \iftoggle{bbx:related}
10107 {\usebibmacro{related:init}%
10108 \usebibmacro{related}}
10109 {}%
10110 \setunit{\bibpagerefpunct}\newblock
10111 \usebibmacro{pageref}%
10112 \usebibmacro{finentry}}
10113 % \end{macrocode}
10114 %
10115 % Our |suppcollection| driver is just like |incollection| except that the note
10116 % is moved nearer the title so it can be used as a descriptor.
10117 %
10118 % \begin{macrocode}
10119 \DeclareFieldFormat[suppcollection]{title}{%
10120 \def\currentfield{title}%
10121 \iffieldannotation{descriptor}{#1}{\mkbibemph{#1}}%
10122 \undef\currentfield}
10123 \DeclareBibliographyDriver{suppcollection}{%
10124 \usebibmacro{bibindex}%
10125 \usebibmacro{begentry}%
10126 \usebibmacro{author/translator+others}%
10127 \setunit{\printdelim{nametitledelim}}\newblock
10128 \usebibmacro{title}%
10129 \setunit{\titlebyauthordelim}\newblock
10130 \usebibmacro{byauthor}%
10131 \newunit\newblock
10132 \printfield{note}%
10133 \setunit{\addspace}\newblock
10134 \usebibmacro{in:}%
10135 \usebibmacro{bookeditor}%
10136 \newunit\newblock
10137 \usebibmacro{maintitle+booktitle}%
10138 \newunit
10139 \iffieldundef{maintitle}
10140 {\printfield{volume}%
10141 \printfield{part}}
10142 {}%
10143 \newunit\newblock
10144 \printfield{volumes}%
10145 \newunit\newblock%
10146 \usebibmacro{series+number+edition+publisher+location+date}%
10147 \newunit\newblock
10148 \usebibmacro{chapter+pages}%
10149 \newunit\newblock
10150 \iftoggle{bbx:isbn}
10151 {\printfield{isbn}}
10152 {}%
10153 \newunit\newblock
10154 \usebibmacro{doi+eprint+url}%
10155 \newunit\newblock
10156 \usebibmacro{addendum+pubstate}%
10157 \iftoggle{bbx:related}
10158 {\usebibmacro{related:init}%
10159 \usebibmacro{related}}
10160 {}%
10161 \setunit{\bibpagerefpunct}\newblock
10162 \usebibmacro{pageref}%
10163 \usebibmacro{finentry}}
10164 % \end{macrocode}
10165 %
10166 % Unlike the standard styles, we provide a separate driver for
10167 % |reference|. It is just like |book| except that |edition| is given
10168 % directly after the title.
10169 %
10170 % \begin{macrocode}
10171 \DeclareBibliographyDriver{reference}{%
10172 \usebibmacro{bibindex}%
10173 \usebibmacro{begentry}%
10174 \usebibmacro{author/editor+others/translator+others}%
10175 \setunit{\printdelim{nametitledelim}}\newblock
10176 \usebibmacro{title}%
10177 \newunit\newblock
10178 \printfield{edition}%
10179 \setunit{\titlebyauthordelim}\newblock
10180 \usebibmacro{byauthor}%
10181 \newunit\newblock
10182 \usebibmacro{byeditor+others}%
10183 \newunit\newblock
10184 \printfield{note}%
10185 \newunit\newblock
10186 \usebibmacro{maintitle+volume}%
10187 \newunit
10188 \usebibmacro{series+number+publisher+location+date}%
10189 \newunit\newblock
10190 \usebibmacro{chapter+pages}%
10191 \newunit
10192 \printfield{pagetotal}%
10193 \newunit\newblock
10194 \iftoggle{bbx:isbn}
10195 {\printfield{isbn}}
10196 {}%
10197 \newunit\newblock
10198 \usebibmacro{doi+eprint+url}%
10199 \newunit\newblock
10200 \usebibmacro{addendum+pubstate}%
10201 \iftoggle{bbx:related}
10202 {\usebibmacro{related:init}%
10203 \usebibmacro{related}}
10204 {}%
10205 \setunit{\bibpagerefpunct}\newblock
10206 \usebibmacro{pageref}%
10207 \usebibmacro{finentry}}
10208 % \end{macrocode}
10209 %
10210 % Similarly, |mvreference| is just like |mvbook| except that |edition|
10211 % is given directly after the title.
10212 %
10213 % \begin{macrocode}
10214 \DeclareBibliographyDriver{mvreference}{%
10215 \usebibmacro{bibindex}%
10216 \usebibmacro{begentry}%
10217 \usebibmacro{author/editor+others/translator+others}%
10218 \setunit{\printdelim{nametitledelim}}\newblock
10219 \usebibmacro{maintitle+title}%
10220 \newunit
10221 \ifboolexpr{
10222 test {\iffieldequalstr{relatedtype}{multivolume}}
10223 or
10224 ( not test {\iffieldundef{maintitle}} )
10225 }{}{%
10226 \printfield{volume}%
10227 \printfield{part}}%
10228 \newunit\newblock
10229 \printfield{edition}%
10230 \setunit{\titlebyauthordelim}\newblock
10231 \usebibmacro{byauthor}%
10232 \newunit\newblock
10233 \usebibmacro{byeditor+others}%
10234 \newunit\newblock
10235 \printfield{volumes}%
10236 \newunit\newblock
10237 \printfield{note}%
10238 \newunit\newblock
10239 \ifboolexpr{
10240 test {\iffieldequalstr{relatedtype}{multivolume}}
10241 and
10242 test {\iffieldundef{maintitle}}
10243 }{%
10244 \printfield{volume}%
10245 \printfield{part}%
10246 }{}%
10247 \newunit\newblock
10248 \usebibmacro{series+number+publisher+location+date}%
10249 \newunit\newblock
10250 \usebibmacro{chapter+pages}%
10251 \newunit
10252 \printfield{pagetotal}%
10253 \newunit\newblock
10254 \iftoggle{bbx:isbn}
10255 {\printfield{isbn}}
10256 {}%
10257 \newunit\newblock
10258 \usebibmacro{doi+eprint+url}%
10259 \newunit\newblock
10260 \usebibmacro{addendum+pubstate}%
10261 \iftoggle{bbx:related}
10262 {\usebibmacro{related:init}%
10263 \usebibmacro{related}}
10264 {}%
10265 \setunit{\bibpagerefpunct}\newblock
10266 \usebibmacro{pageref}%
10267 \usebibmacro{finentry}}
10268 % \end{macrocode}
10269 %
10270 % Our |inreference| driver is just like |inbook| except |bookeditor|
10271 % replaces |bybookauthor| and |edition| is given just before
10272 % |byeditor+others|.
10273 %
10274 % \begin{macrocode}
10275 \DeclareBibliographyDriver{inreference}{%
10276 \usebibmacro{bibindex}%
10277 \usebibmacro{begentry}%
10278 \usebibmacro{author/translator+others}%
10279 \setunit{\printdelim{nametitledelim}}\newblock
10280 \usebibmacro{title}%
10281 \setunit{\titlebyauthordelim}\newblock
10282 \usebibmacro{byauthor}%
10283 \newunit\newblock
10284 \iffieldundef{editor}{}{%
10285 \usebibmacro{in:}%
10286 \usebibmacro{bookeditor}%
10287 \newunit\newblock}%
10288 \usebibmacro{maintitle+booktitle}%
10289 \newunit
10290 \iffieldundef{maintitle}
10291 {\printfield{volume}%
10292 \printfield{part}}
10293 {}%
10294 \newunit\newblock
10295 \printfield{edition}%
10296 \newunit
10297 \usebibmacro{byeditor+others}%
10298 \newunit\newblock
10299 \printfield{volumes}%
10300 \newunit\newblock
10301 \printfield{note}%
10302 \newunit\newblock%
10303 \usebibmacro{series+number+publisher+location+date}%
10304 \newunit\newblock
10305 \usebibmacro{chapter+pages}%
10306 \newunit
10307 \printfield{pagetotal}%
10308 \newunit\newblock
10309 \iftoggle{bbx:isbn}
10310 {\printfield{isbn}}
10311 {}%
10312 \newunit\newblock
10313 \usebibmacro{doi+eprint+url}%
10314 \newunit\newblock
10315 \usebibmacro{addendum+pubstate}%
10316 \iftoggle{bbx:related}
10317 {\usebibmacro{related:init}%
10318 \usebibmacro{related}}
10319 {}%
10320 \setunit{\bibpagerefpunct}\newblock
10321 \usebibmacro{pageref}%
10322 \usebibmacro{finentry}}
10323 % \end{macrocode}
10324 %
10325 % \subsection{Works presented at meetings}
10326 %
10327 % By default, editors do not appear before the title in proceedings
10328 % entries.
10329 %
10330 % \begin{macrocode}
10331 \ExecuteBibliographyOptions[proceedings,mvproceedings]{useeditor=false,usetranslator=false}
10332 % \end{macrocode}
10333 %
10334 % In our version of the |event+venue+date| macro, the venue and date
10335 % are set off with commas respectively instead of
10336 % parentheses.
10337 %
10338 % \begin{macrocode}
10339 \renewbibmacro*{event+venue+date}{%
10340 \printfield{eventtitle}%
10341 \newunit
10342 \printfield{eventtitleaddon}%
10343 \newunit
10344 \printfield{venue}%
10345 \newunit%
10346 \printeventdate%
10347 \newunit}
10348 % \end{macrocode}
10349 %
10350 % The changes to the |proceedings| driver compared to the standard style
10351 % are as follows:
10352 % \begin{itemize}
10353 % \item
10354 % We support the concept of an |author| before the title,
10355 % which is usually the |organization|;
10356 % \item
10357 % |editor| comes after the title, not before;
10358 % \item
10359 % |volume|/|part| is processed just after |maintitle+title|;
10360 % \item
10361 % |note| is moved to before |series|;
10362 % \item
10363 % |series| to |date| information is delegated to a separate macro;
10364 % \end{itemize}
10365 %
10366 % As in the (inherited) standard style, |mvproceedings| is an alias for this
10367 % driver, since it is unlikely that the proceedings of a single meeting will
10368 % be split into long series of independently published volumes!
10369 %
10370 % \begin{macrocode}
10371 \DeclareBibliographyDriver{proceedings}{%
10372 \usebibmacro{bibindex}%
10373 \usebibmacro{begentry}%
10374 \usebibmacro{author}%
10375 \newunit
10376 \usebibmacro{maintitle+title}%
10377 \newunit
10378 \iffieldundef{maintitle}
10379 {\printfield{volume}%
10380 \printfield{part}}
10381 {}%
10382 \newunit\newblock
10383 \usebibmacro{event+venue+date}%
10384 \newunit\newblock
10385 \usebibmacro{byeditor+others}%
10386 \newunit\newblock
10387 \printfield{volumes}%
10388 \newunit\newblock
10389 \printfield{note}%
10390 \newunit\newblock
10391 \printlist{organization}%
10392 \newunit
10393 \usebibmacro{series+number+edition+publisher+location+date}%
10394 \newunit\newblock
10395 \usebibmacro{chapter+pages}%
10396 \newunit
10397 \printfield{pagetotal}%
10398 \newunit\newblock
10399 \iftoggle{bbx:isbn}
10400 {\printfield{isbn}}
10401 {}%
10402 \newunit\newblock
10403 \usebibmacro{doi+eprint+url}%
10404 \newunit\newblock
10405 \usebibmacro{addendum+pubstate}%
10406 \iftoggle{bbx:related}
10407 {\usebibmacro{related:init}%
10408 \usebibmacro{related}}
10409 {}%
10410 \setunit{\bibpagerefpunct}\newblock
10411 \usebibmacro{pageref}%
10412 \usebibmacro{finentry}}
10413 % \end{macrocode}
10414 %
10415 % Our |inproceedings| driver modifies the standard one in the same way
10416 % as our |proceedings| driver modifies the standard one.
10417 %
10418 % \begin{macrocode}
10419 \DeclareBibliographyDriver{inproceedings}{%
10420 \usebibmacro{bibindex}%
10421 \usebibmacro{begentry}%
10422 \usebibmacro{author/translator+others}%
10423 \setunit{\printdelim{nametitledelim}}\newblock
10424 \usebibmacro{title}%
10425 \setunit{\titlebyauthordelim}\newblock
10426 \usebibmacro{byauthor}%
10427 \newunit\newblock
10428 \usebibmacro{in:}%
10429 \usebibmacro{maintitle+booktitle}%
10430 \newunit
10431 \iffieldundef{maintitle}
10432 {\printfield{volume}%
10433 \printfield{part}}
10434 {}%
10435 \newunit\newblock
10436 \usebibmacro{event+venue+date}%
10437 \newunit\newblock
10438 \usebibmacro{byeditor+others}%
10439 \newunit\newblock
10440 \printfield{volumes}%
10441 \newunit\newblock
10442 \printfield{note}%
10443 \newunit\newblock
10444 \printlist{organization}%
10445 \newunit
10446 \usebibmacro{series+number+publisher+location+date}%
10447 \newunit\newblock
10448 \usebibmacro{chapter+pages}%
10449 \newunit\newblock
10450 \iftoggle{bbx:isbn}
10451 {\printfield{isbn}}
10452 {}%
10453 \newunit\newblock
10454 \usebibmacro{doi+eprint+url}%
10455 \newunit\newblock
10456 \usebibmacro{addendum+pubstate}%
10457 \iftoggle{bbx:related}
10458 {\usebibmacro{related:init}%
10459 \usebibmacro{related}}
10460 {}%
10461 \setunit{\bibpagerefpunct}\newblock
10462 \usebibmacro{pageref}%
10463 \usebibmacro{finentry}}
10464 % \end{macrocode}
10465 %
10466 % \subsection{Grey literature}
10467 %
10468 % We provide a macro for handling |type+number|. We provide some extra
10469 % logic to insert \enquote{No.\@} before the number if there is no type.
10470 %
10471 % \begin{macrocode}
10472 \newbibmacro*{series+type+number}{%
10473 \ifboolexpr{
10474 test {\iffieldundef{series}}
10475 and
10476 test {\iffieldundef{type}}
10477 }{}{%
10478 \printfield{series}%
10479 \newunit
10480 \ifboolexpr{%
10481 test {\iffieldundef{type}}
10482 and
10483 not test {\iffieldundef{number}}
10484 }{%
10485 \bibcpstring{number}
10486 }{%
10487 \printfield{type}%
10488 }%
10489 \setunit*{\addspace}%
10490 \printfield{number}}}
10491 % \end{macrocode}
10492 %
10493 % Our version of the |institution+location+date| macro is just like the
10494 % standard one except it is wrapped in parentheses, and the preceding
10495 % punctuation is therefore suppressed. This is used by the |report| driver.
10496 %
10497 % \begin{macrocode}
10498 \renewbibmacro*{institution+location+date}{%
10499 \ifboolexpr{
10500 ( test {\iffieldundef{number}}
10501 or
10502 not test {\iffieldundef{type}}
10503 or
10504 not test {\iffieldundef{series}}
10505 )
10506 and
10507 test {\iflistundef{institution}}
10508 and
10509 test {\iflistundef{location}}
10510 and
10511 test {\iffieldundef{year}}
10512 and
10513 test {\iffieldundef{yeardivision}}
10514 and
10515 test {\iffieldundef{month}}
10516 }{}{%
10517 \nopunct
10518 \printtext[publication]{%
10519 \ifboolexpr{
10520 test {\iffieldundef{series}}
10521 and
10522 test {\iffieldundef{type}}
10523 }{%
10524 \printfield{number}%
10525 \setunit*{\addcomma\space}%
10526 }{}%
10527 \printlist{location}%
10528 \iflistundef{institution}%
10529 {\setunit*{\addcomma\space}}%
10530 {\setunit*{\addcolon\space}}%
10531 \printlist{institution}%
10532 \setunit*{\addcomma\space}%
10533 \usebibmacro{date}}}}
10534 % \end{macrocode}
10535 %
10536 % We provide a slightly more complicated version with the type included
10537 % at the beginning. It is used by the |thesis| driver. We provide two
10538 % versions: one with the type outside and one with it inside the
10539 % parentheses.
10540 %
10541 % \begin{macrocode}
10542 \newtoggle{blx@ox@altthesis}
10543 \newtoggle{blx@ox@plainthesis}
10544 \DeclareFieldAlias{thesis:publication}{publication}
10545 \DeclareFieldFormat{plain}{#1}
10546 \DeclareBibliographyOption{altthesis}[true]{%
10547 \settoggle{blx@ox@altthesis}{#1}
10548 }
10549 \DeclareBibliographyOption[string]{thesis}[out]{%
10550 \ifstrequal{#1}{plain}{%
10551 \toggletrue{blx@ox@altthesis}%
10552 \toggletrue{blx@ox@plainthesis}%
10553 \DeclareFieldAlias{thesis:publication}{plain}%
10554 }{%
10555 \togglefalse{blx@ox@plainthesis}%
10556 \DeclareFieldAlias{thesis:publication}{publication}%
10557 \ifstrequal{#1}{in}{%
10558 \toggletrue{blx@ox@altthesis}%
10559 }{%
10560 \togglefalse{blx@ox@altthesis}%
10561 \ifstrequal{#1}{out}{}{%
10562 \PackageError{biblatex-oxref}
10563 {Invalid option 'bookseries=#1'}
10564 {Valid values are 'in', 'out', and 'plain'.}}}}}
10565 \newbibmacro*{type+institution+location+date}{%
10566 \iftoggle{blx@ox@altthesis}{%
10567 \ifboolexpr{
10568 test {\iffieldundef{type}}
10569 and
10570 test {\iflistundef{institution}}
10571 and
10572 test {\iflistundef{location}}
10573 and
10574 test {\iffieldundef{year}}
10575 and
10576 test {\iffieldundef{yeardivision}}
10577 and
10578 test {\iffieldundef{month}}
10579 }{}{%
10580 \iftoggle{blx@ox@plainthesis}{}{\nopunct}%
10581 \printtext[thesis:publication]{%
10582 \printfield{type}%
10583 \setunit*{\addcomma\space}%
10584 \printlist{location}%
10585 \iflistundef{institution}{%
10586 \setunit*{\addcomma\space}%
10587 }{%
10588 \setunit*{\addcolon\space}}%
10589 \printlist{institution}%
10590 \setunit*{\addcomma\space}%
10591 \usebibmacro{date}}}
10592 }{%
10593 \printfield{type}%
10594 \newunit
10595 \usebibmacro{institution+location+date}}}
10596 % \end{macrocode}
10597 %
10598 % We provide an even more convoluted version that also includes |series|,
10599 % |title| and |number|, and uses the more common |publisher| in place of
10600 % |institution|. We also include some logic that means |organization|
10601 % is used instead of |publisher| if no |publisher| is provided;
10602 % otherwise it is printed before |location|. This is used by the
10603 % |manual| driver.
10604 %
10605 % \begin{macrocode}
10606 \newbibmacro*{type+series+number+edition+organization+publisher+location+date}{%
10607 \ifboolexpr{
10608 test {\iffieldundef{type}}
10609 and
10610 test {\iffieldundef{series}}
10611 and
10612 test {\iffieldundef{number}}
10613 and
10614 test {\iffieldundef{edition}}
10615 and
10616 test {\iflistundef{organization}}
10617 and
10618 test {\iflistundef{publisher}}
10619 and
10620 test {\iflistundef{location}}
10621 and
10622 test {\iffieldundef{year}}
10623 and
10624 test {\iffieldundef{yeardivision}}
10625 and
10626 test {\iffieldundef{month}}
10627 }{}{%
10628 \nopunct
10629 \printtext[publication]{%
10630 \usebibmacro{series+type+number}%
10631 \setunit{\addsemicolon\space}%
10632 \printfield{edition}%
10633 \setunit*{\addcomma\space}%
10634 \iflistundef{publisher}{}{%
10635 \printlist{organization}%
10636 \setunit*{\addcomma\space}}%
10637 \printlist{location}%
10638 \iflistundef{publisher}{%
10639 \iflistundef{organization}{%
10640 \setunit*{\addcomma\space}%
10641 }{%
10642 \setunit*{\addcolon\space}%
10643 \printlist{organization}}%
10644 }{%
10645 \setunit*{\addcolon\space}%
10646 \printlist{publisher}}%
10647 \setunit*{\addcomma\space}%
10648 \usebibmacro{date}}}}
10649 % \end{macrocode}
10650 %
10651 % The changes to the |report| driver compared to the standard style
10652 % are as follows:
10653 % \begin{itemize}
10654 % \item
10655 % support is added for |volume|, |maintitle| and |series|;
10656 % \item
10657 % |type| and |number| are moved to just before the publication
10658 % information block;
10659 % \item
10660 % the punctuation is slightly different for the |legal| entry subtype.
10661 % \end{itemize}
10662 %
10663 % \begin{macrocode}
10664 \newcommand*{\legreport}{legal}
10665 \DeclareBibliographyDriver{report}{%
10666 \usebibmacro{bibindex}%
10667 \usebibmacro{begentry}%
10668 \usebibmacro{author}%
10669 \setunit{\printdelim{nametitledelim}}\newblock
10670 \usebibmacro{maintitle+title}%
10671 \newunit
10672 \iffieldundef{maintitle}
10673 {\printfield{volume}%
10674 \printfield{part}}
10675 {}%
10676 \setunit{\titlebyauthordelim}\newblock
10677 \usebibmacro{byauthor}%
10678 \newunit\newblock
10679 \printfield{version}%
10680 \newunit\newblock
10681 \printfield{note}%
10682 \newunit\newblock
10683 \usebibmacro{series+type+number}%
10684 \setunit{\addspace}%
10685 \usebibmacro{institution+location+date}%
10686 \iffieldequals{entrysubtype}{\legreport}{%
10687 \setunit{\addspace}\nopunct
10688 \let\origadddot\adddot
10689 \def\adddot{}%
10690 \usebibmacro{chapter+pages}%
10691 \let\adddot\origadddot
10692 }{%
10693 \newunit\newblock
10694 \usebibmacro{chapter+pages}%
10695 }%
10696 \newunit
10697 \printfield{pagetotal}%
10698 \newunit\newblock
10699 \iftoggle{bbx:isbn}
10700 {\printfield{isrn}}
10701 {}%
10702 \newunit\newblock
10703 \usebibmacro{doi+eprint+url}%
10704 \newunit\newblock
10705 \usebibmacro{addendum+pubstate}%
10706 \iftoggle{bbx:related}
10707 {\usebibmacro{related:init}%
10708 \usebibmacro{related}}
10709 {}%
10710 \setunit{\bibpagerefpunct}\newblock
10711 \usebibmacro{pageref}%
10712 \usebibmacro{finentry}}
10713 % \end{macrocode}
10714 %
10715 % We patch the thesis driver to use our slightly more complex version.
10716 %
10717 % \begin{macrocode}
10718 \xpatchbibdriver{thesis}{%
10719 \printfield{type}%
10720 \newunit
10721 \usebibmacro{institution+location+date}%
10722 }{%
10723 \usebibmacro{type+institution+location+date}%
10724 }{}{\wlog{WARNING: biblatex-oxref failed to patch thesis}}
10725 % \end{macrocode}
10726 %
10727 % We give booklet entries descriptor support.
10728 %
10729 % \begin{macrocode}
10730 \DeclareFieldFormat[booklet]{title}{%
10731 \def\currentfield{title}%
10732 \iffieldannotation{descriptor}{#1}{%
10733 \mkbibquote{#1\isdot}}%
10734 \undef\currentfield}
10735 % \end{macrocode}
10736 %
10737 % With patents, the titles are italic and the patent type is not abbreviated.
10738 %
10739 % \begin{macrocode}
10740 \DeclareFieldFormat[patent]{title}{\mkbibemph{#1}}
10741 \DeclareFieldFormat[patent]{type}{\ifbibstring{#1}{\biblstring{#1}}{#1}}
10742 % \end{macrocode}
10743 %
10744 % The |holder|, |origdate| and |date| fields have explicit signposting; the
10745 % latter two use |origdatetype| and |datetype|, with some sensible defaults.
10746 %
10747 % \begin{macrocode}
10748 \DeclareNameAlias{byholder}{default}
10749 \renewbibmacro*{byholder}{%
10750 \ifnameundef{holder}{}{%
10751 \bibstring{byholder}%
10752 \setunit{\addspace}%
10753 \printnames[byholder]{holder}}}
10754 \newbibmacro*{location+dates}{%
10755 \ifboolexpr{
10756 test {\iffieldundef{location}}
10757 and
10758 test {\iffieldundef{origyear}}
10759 and
10760 test {\iffieldundef{origmonth}}
10761 and
10762 test {\iffieldundef{year}}
10763 and
10764 test {\iffieldundef{month}}
10765 }{}{%
10766 \nopunct
10767 \printtext[publication]{%
10768 \printlist[][-\value{listtotal}]{location}%
10769 \setunit*{\addcomma\space}%
10770 \ifboolexpr{
10771 test {\iffieldundef{origyear}}
10772 and
10773 test {\iffieldundef{origmonth}}
10774 }{}{%
10775 \iffieldundef{origdatetype}{%
10776 \bibstring{filed}
10777 }{
10778 \printfield{origdatetype}}%
10779 \setunit*{\addspace}}%
10780 \usebibmacro{origdate+time}%
10781 \setunit*{\addcomma\space}%
10782 \ifboolexpr{
10783 test {\iffieldundef{year}}
10784 and
10785 test {\iffieldundef{month}}
10786 }{}{%
10787 \iffieldundef{datetype}{%
10788 \bibstring{issued}%
10789 }{
10790 \printfield{datetype}}%
10791 \setunit*{\addspace}}%
10792 \usebibmacro{date}}}}
10793 % \end{macrocode}
10794 %
10795 % The |patent| driver differs from the regular one by having |note| moved
10796 % further forward, and having a publication block consisting of |location|,
10797 % |origdate| and |date|.
10798 %
10799 % \begin{macrocode}
10800 \DeclareBibliographyDriver{patent}{%
10801 \usebibmacro{bibindex}%
10802 \usebibmacro{begentry}%
10803 \usebibmacro{author}%
10804 \setunit{\printdelim{nametitledelim}}\newblock
10805 \usebibmacro{title}%
10806 \newunit
10807 \printlist{language}%
10808 \setunit{\titlebyauthordelim}\newblock
10809 \usebibmacro{byauthor}%
10810 \newunit\newblock
10811 \printfield{note}%
10812 \newunit\newblock
10813 \printfield{type}%
10814 \setunit*{\addspace}%
10815 \printfield{number}%
10816 \newunit\newblock
10817 \usebibmacro{byholder}%
10818 \newunit\newblock
10819 \usebibmacro{location+dates}%
10820 \newunit\newblock
10821 \usebibmacro{doi+eprint+url}%
10822 \newunit\newblock
10823 \usebibmacro{addendum+pubstate}%
10824 \iftoggle{bbx:related}
10825 {\usebibmacro{related:init}%
10826 \usebibmacro{related}}
10827 {}%
10828 \setunit{\bibpagerefpunct}\newblock
10829 \usebibmacro{pageref}%
10830 \usebibmacro{finentry}}
10831 % \end{macrocode}
10832 %
10833 % Direct use of the |manual| entry type is not encouraged, but it serves as a
10834 % basis for other entry types, notably standards, and software.
10835 % The main change to the |manual| driver compared to the standard style is
10836 % that |type|, |series|, |number|, |edition| and |organization| are moved into
10837 % the publication information block with |publisher|, |location| and |date|.
10838 % Note that standards will put the |number| field at the head of the reference
10839 % if there is no author.
10840 %
10841 % \begin{macrocode}
10842 \DeclareBibliographyDriver{manual}{%
10843 \usebibmacro{bibindex}%
10844 \usebibmacro{begentry}%
10845 \ifboolexpr{
10846 test {\ifentrytype{standard}}
10847 and
10848 ( test {\ifnameundef{author}}
10849 or
10850 not test \ifuseauthor )
10851 and
10852 not test {\iffieldundef{number}}
10853 }{%
10854 \printfield{number}\clearfield{number}%
10855 \newunit\newblock
10856 }{}%
10857 \usebibmacro{author/editor}%
10858 \setunit{\printdelim{nametitledelim}}\newblock
10859 \ifentrytype{software}
10860 {\usebibmacro{title+version}}
10861 {\usebibmacro{title}}%
10862 \setunit{\titlebyauthordelim}\newblock
10863 \usebibmacro{byauthor}%
10864 \newunit\newblock
10865 \usebibmacro{byeditor}%
10866 \newunit
10867 \ifentrytype{software}
10868 {}
10869 {\newunit\printfield{version}}%
10870 \newunit
10871 \printfield{note}%
10872 \newunit\newblock
10873 \usebibmacro{type+series+number+edition+organization+publisher+location+date}%
10874 \newunit\newblock
10875 \usebibmacro{chapter+pages}%
10876 \newunit
10877 \printfield{pagetotal}%
10878 \newunit\newblock
10879 \iftoggle{bbx:isbn}
10880 {\printfield{isbn}}
10881 {}%
10882 \newunit\newblock
10883 \usebibmacro{doi+eprint+url}%
10884 \newunit\newblock
10885 \usebibmacro{addendum+pubstate}%
10886 \iftoggle{bbx:related}
10887 {\usebibmacro{related:init}%
10888 \usebibmacro{related}}
10889 {}%
10890 \setunit{\bibpagerefpunct}\newblock
10891 \usebibmacro{pageref}%
10892 \usebibmacro{finentry}}
10893 \DeclareBibliographyAlias{standard}{manual}
10894 \ExecuteBibliographyOptions[standard]{useeditor=false}
10895 % \end{macrocode}
10896 %
10897 % \subsection{Audiovisual materials}
10898 %
10899 % The publication block for audiovisual resources is quite different
10900 % from the normal, as the |type|, |series| and |number| come
10901 % between the |publisher| and |date|. The punctuation or otherwise between
10902 % elements depends on the combination present. The date and time of recording
10903 % is given before the block if a |number| is provided (indicating a published
10904 % recording) but within it otherwise.
10905 %
10906 % \begin{macrocode}
10907 \newbibmacro*{publisher+type+series+number+date}{%
10908 \iffieldundef{number}{}{%
10909 \setunit{\addcomma\space}%
10910 \usebibmacro{origdate+time}%
10911 }%
10912 \ifboolexpr{%
10913 test {\iflistundef{origpublisher}}
10914 and
10915 test {\iflistundef{location}}
10916 and
10917 test {\iflistundef{publisher}}
10918 and
10919 test {\iffieldundef{type}}
10920 and
10921 test {\iffieldundef{series}}
10922 and
10923 test {\iffieldundef{number}}
10924 and
10925 test {\iffieldundef{year}}
10926 and
10927 test {\iffieldundef{yeardivision}}
10928 and
10929 test {\iffieldundef{month}}
10930 and
10931 test {\iffieldundef{origyear}}
10932 and
10933 test {\iffieldundef{origyeardivision}}
10934 and
10935 test {\iffieldundef{origmonth}}
10936 and
10937 test {\iffieldundef{hour}}
10938 }{}{%
10939 \nopunct
10940 \printtext[publication]{%
10941 \printlist{origpublisher}%
10942 \setunit*{\addsemicolon\space}%
10943 \printlist{location}%
10944 \iflistundef{publisher}%
10945 {\setunit*{\addcomma\space}}%
10946 {\setunit*{\addcolon\space}}%
10947 \printlist{publisher}%
10948 \iffieldundef{series}%
10949 {\setunit*{\addspace}}%
10950 {\setunit*{\recordseriespunct}}%
10951 \printfield{series}%
10952 \setunit*{\addcomma\space}%
10953 \printfield{type}%
10954 \iflistundef{publisher}%
10955 {\setunit*{\addcomma\space}}%
10956 {\setunit*{\addspace}}%
10957 \printfield{number}%
10958 \iffieldundef{number}{%
10959 \setunit{\addcomma\space}%
10960 \usebibmacro{origdate+time}%
10961 }{}%
10962 \setunit{\addcomma\space}%
10963 \usebibmacro{date+time}}}}
10964 % \end{macrocode}
10965 %
10966 % We provide the \texttt{endeditor} option to determine if credits should be
10967 % placed before or after the publication block.
10968 %
10969 % \begin{macrocode}
10970 \newtoggle{blx@ox@endeditor}
10971 \DeclareEntryOption{endeditor}[true]{%
10972 \settoggle{blx@ox@endeditor}{#1}}
10973 \newbibmacro*{pre-byeditor+others}{%
10974 \iftoggle{blx@ox@endeditor}{}{%
10975 \usebibmacro{byeditor+others}%
10976 }}
10977 \newbibmacro*{post-byeditor+others}{%
10978 \iftoggle{blx@ox@endeditor}{%
10979 \usebibmacro{byeditor+others}%
10980 }{}}
10981 % \end{macrocode}
10982 %
10983 % We provide a specialist |audio| driver. It borrows elements from the |book|
10984 % and |online| drivers, and incorporates the above variations.
10985 %
10986 % \begin{macrocode}
10987 \DeclareBibliographyDriver{audio}{%
10988 \usebibmacro{bibindex}%
10989 \usebibmacro{begentry}%
10990 \usebibmacro{author}%
10991 \setunit{\printdelim{nametitledelim}}\newblock
10992 \usebibmacro{title}%
10993 \newunit
10994 \usebibmacro{maintitle}%
10995 \iffieldequalstr{relatedtype}{includes}{%
10996 \iftoggle{bbx:related}{%
10997 \newunit\newblock
10998 \usebibmacro{related:init}%
10999 \usebibmacro{related}%
11000 \clearfield{related}%
11001 }{}%
11002 }{}%
11003 \setunit{\addspace}
11004 \usebibmacro{onlinetype}%
11005 \setunit{\titlebyauthordelim}\newblock
11006 \usebibmacro{byauthor}%
11007 \newunit\newblock
11008 \usebibmacro{pre-byeditor+others}%
11009 \newunit\newblock
11010 \printfield{volumes}%
11011 \newunit\newblock
11012 \printfield{note}%
11013 \newunit\newblock%
11014 \printlist{organization}%
11015 \newunit\newblock%
11016 \usebibmacro{publisher+type+series+number+date}%
11017 \setunit{\addspace}%
11018 \printfield{howpublished}%
11019 \newunit\newblock
11020 \usebibmacro{post-byeditor+others}%
11021 \newunit\newblock
11022 \iftoggle{bbx:isbn}
11023 {\printfield{isbn}}
11024 {}%
11025 \newunit\newblock
11026 \usebibmacro{doi+eprint+url}%
11027 \newunit\newblock
11028 \usebibmacro{addendum+pubstate}%
11029 \iftoggle{bbx:related}
11030 {\usebibmacro{related:init}%
11031 \usebibmacro{related}}
11032 {}%
11033 \setunit{\bibpagerefpunct}\newblock
11034 \usebibmacro{pageref}%
11035 \usebibmacro{finentry}}
11036 % \end{macrocode}
11037 %
11038 % The same driver will do very well for |music|, |video| and |movie|.
11039 %
11040 % \begin{macrocode}
11041 \DeclareBibliographyAlias{music}{audio}
11042 \DeclareBibliographyAlias{movie}{audio}
11043 \DeclareBibliographyAlias{video}{audio}
11044 % \end{macrocode}
11045 %
11046 % In parallel with book-like entries, we provide an |inaudio| driver for citing
11047 % tracks from an album.
11048 %
11049 % \begin{macrocode}
11050 \DeclareBibliographyDriver{inaudio}{%
11051 \usebibmacro{bibindex}%
11052 \usebibmacro{begentry}%
11053 \usebibmacro{author}%
11054 \setunit{\printdelim{nametitledelim}}\newblock
11055 \usebibmacro{title}%
11056 \setunit{\titlebyauthordelim}\newblock
11057 \usebibmacro{byauthor}%
11058 \newunit\newblock
11059 \usebibmacro{in:}%
11060 \usebibmacro{bybookauthor}%
11061 \newunit\newblock
11062 \usebibmacro{maintitle+booktitle}%
11063 \iffieldequalstr{relatedtype}{includes}{%
11064 \iftoggle{bbx:related}{%
11065 \newunit\newblock
11066 \usebibmacro{related:init}%
11067 \usebibmacro{related}%
11068 \clearfield{related}%
11069 }{}%
11070 }{}%
11071 \setunit{\addspace}
11072 \usebibmacro{onlinetype}%
11073 \newunit\newblock
11074 \usebibmacro{pre-byeditor+others}%
11075 \newunit\newblock
11076 \printfield{volumes}%
11077 \newunit\newblock
11078 \printfield{note}%
11079 \newunit\newblock%
11080 \printlist{organization}%
11081 \newunit\newblock%
11082 \usebibmacro{publisher+type+series+number+date}%
11083 \setunit{\addspace}%
11084 \printfield{howpublished}%
11085 \newunit\newblock
11086 \usebibmacro{post-byeditor+others}%
11087 \newunit\newblock
11088 \iftoggle{bbx:isbn}
11089 {\printfield{isbn}}
11090 {}%
11091 \newunit\newblock
11092 \usebibmacro{doi+eprint+url}%
11093 \newunit\newblock
11094 \usebibmacro{addendum+pubstate}%
11095 \iftoggle{bbx:related}
11096 {\usebibmacro{related:init}%
11097 \usebibmacro{related}}
11098 {}%
11099 \setunit{\bibpagerefpunct}\newblock
11100 \usebibmacro{pageref}%
11101 \usebibmacro{finentry}}
11102 % \end{macrocode}
11103 %
11104 % The same driver will do very well for |inmusic|, |invideo| and |inmovie|.
11105 % The latter two are for completeness but probably not useful.
11106 %
11107 % \begin{macrocode}
11108 \DeclareBibliographyAlias{inmusic}{inaudio}
11109 \DeclareBibliographyAlias{inmovie}{inaudio}
11110 \DeclareBibliographyAlias{invideo}{inaudio}
11111 % \end{macrocode}
11112 %
11113 % We set up appropriate inheritance rules.
11114 %
11115 % \begin{macrocode}
11116 \DeclareDataInheritance{audio,music,movie,video}{inaudio,inmusic,inmovie,invideo}{%
11117 \inherit{title}{booktitle}
11118 \inherit{subtitle}{booksubtitle}
11119 \inherit{titleaddon}{booktitleaddon}
11120 \noinherit{shorttitle}
11121 \noinherit{sorttitle}
11122 \noinherit{indextitle}
11123 \noinherit{indexsorttitle}
11124 }
11125 % \end{macrocode}
11126 %
11127 % Titles for videos do not have a consistent format, so we define some
11128 % |entrysubtype|-based variation. We also allow the use of descriptors;
11129 % note that the title is transformed into a descriptor by means of
11130 % an annotation, rather than using a dedicated field. This greatly
11131 % simplifies the code used elsewhere.
11132 %
11133 % \begin{macrocode}
11134 \DeclareFieldFormat[audio,music]{title}{%
11135 \def\currentfield{title}%
11136 \iffieldannotation{descriptor}{#1}{%
11137 \iffieldequalstr{entrysubtype}{podcast}{%
11138 \mkbibquote{#1\isdot}%
11139 }{%
11140 \mkbibemph{#1}}}%
11141 \undef\currentfield}
11142 \DeclareFieldFormat[movie,video]{title}{%
11143 \def\currentfield{title}%
11144 \iffieldannotation{descriptor}{#1}{%
11145 \ifboolexpr{
11146 test {\iffieldequalstr{entrysubtype}{episode}}
11147 or
11148 test {\iffieldequalstr{entrysubtype}{clip}}
11149 or
11150 test {\iffieldequalstr{entrysubtype}{webcast}}
11151 }{%
11152 \mkbibquote{#1\isdot}%
11153 }{%
11154 \mkbibemph{#1}}}%
11155 \undef\currentfield}
11156 \DeclareFieldFormat[inaudio,inmusic,inmovie,invideo]{title}{%
11157 \def\currentfield{title}%
11158 \iffieldannotation{descriptor}{#1}{%
11159 \mkbibquote{#1\isdot}%
11160 }%
11161 \undef\currentfield}
11162 \DeclareFieldFormat[inaudio,inmusic]{booktitle}{%
11163 \def\currentfield{booktitle}%
11164 \iffieldannotation{descriptor}{#1}{%
11165 \iffieldequalstr{entrysubtype}{podcast}{%
11166 \mkbibquote{#1\isdot}%
11167 }{%
11168 \mkbibemph{#1}}}%
11169 \undef\currentfield}
11170 \DeclareFieldFormat[inmovie,invideo]{booktitle}{%
11171 \def\currentfield{booktitle}%
11172 \iffieldannotation{descriptor}{#1}{%
11173 \ifboolexpr{
11174 test {\iffieldequalstr{entrysubtype}{episode}}
11175 or
11176 test {\iffieldequalstr{entrysubtype}{clip}}
11177 or
11178 test {\iffieldequalstr{entrysubtype}{webcast}}
11179 }{%
11180 \mkbibquote{#1\isdot}%
11181 }{%
11182 \mkbibemph{#1}}}%
11183 \undef\currentfield}
11184
11185 % \end{macrocode}
11186 %
11187 % The |performance| driver is similar to the |audio| driver, but instead of a
11188 % publication block, it displays a set of event-related fields. With a bit of
11189 % generosity, it can also work for artworks and images.
11190 %
11191 % \begin{macrocode}
11192 \DeclareBibliographyDriver{performance}{%
11193 \usebibmacro{bibindex}%
11194 \usebibmacro{begentry}%
11195 \usebibmacro{author}%
11196 \setunit{\printdelim{nametitledelim}}\newblock
11197 \usebibmacro{title}%
11198 \newunit
11199 \usebibmacro{maintitle}%
11200 \iffieldequalstr{relatedtype}{includes}{%
11201 \iftoggle{bbx:related}{%
11202 \newunit\newblock
11203 \usebibmacro{related:init}%
11204 \usebibmacro{related}%
11205 \clearfield{related}%
11206 }{}%
11207 }{}%
11208 \setunit{\addspace}
11209 \usebibmacro{onlinetype}%
11210 \setunit{\titlebyauthordelim}\newblock
11211 \usebibmacro{byauthor}%
11212 \newunit\newblock
11213 \usebibmacro{pre-byeditor+others}%
11214 \setunit{\addspace}%
11215 \printfield{howpublished}%
11216 \newunit\newblock
11217 \printfield{type}%
11218 \newunit\newblock
11219 \printfield{note}%
11220 \ifboolexpr{
11221 test {\iffieldundef{origyear}}
11222 and
11223 test {\iffieldundef{origmonth}}
11224 }{}{%
11225 \setunit{\addspace}\newblock
11226 \printtext[publication]{\usebibmacro{origdate+time}}}
11227 \newunit\newblock
11228 \usebibmacro{event+venue+location+date}%
11229 \newunit\newblock
11230 \usebibmacro{post-byeditor+others}%
11231 \newunit\newblock
11232 \printlist{organization}%
11233 \newunit\newblock
11234 \iftoggle{bbx:isbn}
11235 {\printfield{isbn}}
11236 {}%
11237 \newunit\newblock
11238 \usebibmacro{doi+eprint+url}%
11239 \newunit\newblock
11240 \usebibmacro{addendum+pubstate}%
11241 \iftoggle{bbx:related}
11242 {\usebibmacro{related:init}%
11243 \usebibmacro{related}}
11244 {}%
11245 \setunit{\bibpagerefpunct}\newblock
11246 \usebibmacro{pageref}%
11247 \usebibmacro{finentry}}
11248 \DeclareBibliographyAlias{image}{performance}
11249 \DeclareBibliographyAlias{artwork}{performance}
11250 % \end{macrocode}
11251 %
11252 % Here is the macro used for printing the event location and date for
11253 % performances and exhibitions.
11254 %
11255 % \begin{macrocode}
11256 \newbibmacro*{event+venue+location+date}{%
11257 \printfield{eventtitle}%
11258 \newunit
11259 \printfield{eventtitleaddon}%
11260 \newunit
11261 \printlist{institution}%
11262 \newunit
11263 \printfield{venue}%
11264 \newunit
11265 \printlist{location}%
11266 \newunit%
11267 \ifboolexpr{
11268 test {\iffieldundef{year}}
11269 and
11270 test {\iffieldundef{month}}
11271 }{\printeventdate}{\usebibmacro{date+time}}}
11272
11273 % \end{macrocode}
11274 %
11275 % \subsection{Digital media}
11276 %
11277 % \subsubsection{Website articles and social media}
11278 %
11279 % The titles of web pages and similar intrinsically online resources
11280 % are written in roman text within quotes.
11281 %
11282 % \begin{macrocode}
11283 \DeclareFieldFormat[online,image]{title}{%
11284 \def\currentfield{title}%
11285 \iffieldannotation{descriptor}{#1}{\mkbibquote{#1\isdot}}%
11286 \undef\currentfield}
11287
11288 % \end{macrocode}
11289 %
11290 % We provide an |onlinetype| macro for clarifying the type of online
11291 % material. It is triggered by appropriate values of |entrysubtype|.
11292 %
11293 % \begin{macrocode}
11294 \newbibmacro*{onlinetype}{%
11295 \ifboolexpr{
11296 test {\iffieldundef{url}}
11297 or
11298 test {\iffieldundef{entrysubtype}}
11299 }{}{%
11300 \ifbibxstring{\thefield{entrysubtype}}{%
11301 \printtext[brackets]{\bibstring{\thefield{entrysubtype}}}%
11302 }{}}}
11303 % \end{macrocode}
11304 %
11305 % The changes to the |online| driver compared to the standard style
11306 % are as follows:
11307 % \begin{itemize}
11308 % \item
11309 % We support the use of |maintitle| for, say, the title of the wesbite
11310 % in which the web page is located. This comes after |title|.
11311 % \item
11312 % We insert the aforementioned |onlinetype| macro after |maintitle|.
11313 % \item
11314 % The date is wrapped in parentheses if present.
11315 % \item
11316 % We support displaying a publisher after the date; this is a legacy feature
11317 % based on examples that are now deprecated.
11318 % \end{itemize}
11319 %
11320 % \begin{macrocode}
11321 \DeclareBibliographyDriver{online}{%
11322 \usebibmacro{bibindex}%
11323 \usebibmacro{begentry}%
11324 \usebibmacro{author/editor+others/translator+others}%
11325 \setunit{\printdelim{nametitledelim}}\newblock
11326 \usebibmacro{title}%
11327 \newunit
11328 \usebibmacro{maintitle}
11329 \setunit{\addspace}%
11330 \usebibmacro{onlinetype}%
11331 \setunit{\titlebyauthordelim}\newblock
11332 \usebibmacro{byauthor}%
11333 \newunit\newblock
11334 \usebibmacro{byeditor+others}%
11335 \newunit\newblock
11336 \printfield{version}%
11337 \newunit
11338 \printfield{note}%
11339 \newunit\newblock
11340 \printlist{organization}%
11341 \iffieldundef{year}{}{%
11342 \setunit{\addspace}\newblock
11343 \printtext[parens]{\usebibmacro{date+time}}%
11344 }%
11345 \newunit\newblock
11346 \printlist{publisher}%
11347 \newunit\newblock
11348 \iftoggle{bbx:eprint}
11349 {\usebibmacro{eprint}}
11350 {}%
11351 \newunit\newblock
11352 \usebibmacro{url+urldate}%
11353 \newunit\newblock
11354 \usebibmacro{addendum+pubstate}%
11355 \iftoggle{bbx:related}
11356 {\usebibmacro{related:init}%
11357 \usebibmacro{related}}
11358 {}%
11359 \setunit{\bibpagerefpunct}\newblock
11360 \usebibmacro{pageref}%
11361 \usebibmacro{finentry}}
11362 % \end{macrocode}
11363 %
11364 % \subsubsection{Software}
11365 %
11366 % The version for software goes between the \texttt{title} and \texttt{titleaddon}.
11367 %
11368 % \begin{macrocode}
11369 \newbibmacro*{title+version}{%
11370 \ifboolexpr{
11371 test {\iffieldundef{title}}
11372 and
11373 test {\iffieldundef{subtitle}}
11374 }
11375 {}
11376 {\printtext[title]{%
11377 \printfield[titlecase]{title}%
11378 \setunit{\subtitlepunct}%
11379 \printfield[titlecase]{subtitle}}%
11380 \setunit{\addspace}}%
11381 \printfield{version}%
11382 \setunit{\addspace}%
11383 \printfield{titleaddon}%
11384 }
11385 \DeclareFieldFormat[software]{version}{\mkbibparens{\bibstring{version}~#1}}
11386 % \end{macrocode}
11387 %
11388 % The url date string is different for software: \enquote{downloaded} rather
11389 % than \enquote{accessed}.
11390 %
11391 % \begin{macrocode}
11392 \DeclareFieldFormat[software]{urldate}{\bibstring{urldown}\space#1}
11393 % \end{macrocode}
11394 %
11395 % The software driver is a variant of the manual driver.
11396 %
11397 % \begin{macrocode}
11398 \DeclareBibliographyAlias{software}{manual}
11399 % \end{macrocode}
11400 %
11401 % \subsubsection{Datasets}
11402 %
11403 % The main change to the |dataset| driver compared to the standard style is
11404 % that |type|, |series|, |number|, |edition| and |organization| are moved into
11405 % the publication information block with |publisher|, |location| and |date|.
11406 %
11407 % \begin{macrocode}
11408 \DeclareBibliographyDriver{dataset}{%
11409 \usebibmacro{bibindex}%
11410 \usebibmacro{begentry}%
11411 \usebibmacro{author/editor+others/translator+others}%
11412 \setunit{\printdelim{nametitledelim}}\newblock
11413 \usebibmacro{title}%
11414 \newunit
11415 \printlist{language}%
11416 \setunit{\titlebyauthordelim}\newblock
11417 \usebibmacro{byauthor}%
11418 \newunit\newblock
11419 \usebibmacro{byeditor+others}%
11420 \newunit\newblock
11421 \printfield{type}%
11422 \newunit
11423 \printfield{version}%
11424 \newunit\newblock
11425 \printfield{note}%
11426 \newunit\newblock
11427 \usebibmacro{type+series+number+edition+organization+publisher+location+date}%
11428 \newunit\newblock
11429 \usebibmacro{doi+eprint+url}%
11430 \newunit\newblock
11431 \usebibmacro{addendum+pubstate}%
11432 \iftoggle{bbx:related}
11433 {\usebibmacro{related:init}%
11434 \usebibmacro{related}}
11435 {}%
11436 \setunit{\bibpagerefpunct}\newblock
11437 \usebibmacro{pageref}%
11438 \usebibmacro{finentry}}
11439 % \end{macrocode}
11440 %
11441 % \subsection{Legal references}
11442 %
11443 % Legal references are a law unto themselves, and thus require extensive
11444 % fiddly coding. This entire section is adapted from \pkg{oscola} by
11445 % Paul Stanley.
11446 %
11447 % \subsubsection{Entry options}
11448 %
11449 % \begin{macrocode}
11450 \newtoggle{bbx:scotstyle}
11451 \DeclareEntryOption{scottish-style}[true]{%
11452 \settoggle{bbx:scotstyle}{#1}}
11453 \newboolean{bbx@year-essential}\setboolean{bbx@year-essential}{false}
11454 \DeclareEntryOption{year-essential}[true]{%
11455 \setboolean{bbx@year-essential}{#1}}
11456 \newboolean{bbx@paryear-essential}\setboolean{bbx@paryear-essential}{false}
11457 \DeclareEntryOption{paryear-essential}[true]{%
11458 \setboolean{bbx@paryear-essential}{#1}}
11459 \newtoggle{blx@ox@nopostnotedelim}
11460 \newtoggle{bbx:altcourt}
11461 \DeclareBiblatexOption{global,type,entry}{court-plain}[true]{%
11462 \settoggle{bbx:altcourt}{#1}}
11463 \newtoggle{bbx@ecliuse}
11464 \newtoggle{bbx@eclionly}
11465 \DeclareBibliographyOption[string]{ecli}[yes]{%
11466 \ifstrequal{#1}{no}{%
11467 \global\togglefalse{bbx@ecliuse}%
11468 \global\togglefalse{bbx@eclionly}%
11469 }{%
11470 \global\toggletrue{bbx@ecliuse}%
11471 \ifstrequal{#1}{only}{%
11472 \global\toggletrue{bbx@eclionly}%
11473 }{}}}
11474 % \end{macrocode}
11475 %
11476 % \subsubsection{Field formats}
11477 %
11478 % \begin{macrocode}
11479 \DeclareFieldFormat{casenotetitle}{\mkbibquote{\mkbibemph{#1}}}
11480 \DeclareFieldFormat[jurisdiction,legislation,legal]{journaltitle}{#1}
11481 \DeclareFieldFormat[jurisdiction]{volume}{#1}
11482 \DeclareFieldFormat[jurisdiction]{titleaddon}{\mkbibparens{#1}}
11483 \DeclareFieldFormat{romanvol}{\RN{#1}}
11484 \DeclareListFormat[jurisdiction]{listb}{}
11485 \protected\def\mkusbibordinal#1{%
11486 \begingroup
11487 \@tempcnta0#1\relax\number\@tempcnta
11488 \@whilenum\@tempcnta>100\do{\advance\@tempcnta-100\relax}%
11489 \ifnum\@tempcnta>20
11490 \@whilenum\@tempcnta>9\do{\advance\@tempcnta-10\relax}%
11491 \fi
11492 \ifcase\@tempcnta th\or st\or d\or d\else th\fi
11493 \endgroup}%
11494 \DeclareFieldFormat{usseries}{\ifinteger{#1}{\mkusbibordinal{#1}}{#1}}
11495 \DeclareFieldFormat{verba}{#1}
11496
11497 \DeclareListFormat{echrinst}{%
11498 \ifboolexpr{%
11499 test {\ifnumequal{\value{listtotal}}{1}}
11500 or
11501 test {\ifnumequal{\value{listcount}}{\value{listtotal}}}
11502 }{%
11503 \ifboolexpr{
11504 test {\ifdefstring{\Commission}{#1}}
11505 or
11506 test {\ifdefstring{\commission}{#1}}%
11507 }{%
11508 \bibstring{commissiondecision}%
11509 }{#1}%
11510 }{%
11511 \setcounter{blx@tmpcnt}{\value{listcount}}%
11512 \addtocounter{blx@tmpcnt}{1}%
11513 \ifnumequal{\value{blx@tmpcnt}}{\value{listtotal}}{%
11514 \ifnumgreater{\value{listtotal}}{2}{%
11515 #1\finalandcomma\space\bibstring{and}\addspace
11516 }{%
11517 #1\space\bibstring{and}\addspace
11518 }
11519 }{%
11520 #1\addcomma\space}}}%
11521
11522 \newcommand*{\commission}{commission}
11523 \newcommand*{\Commission}{Commission}
11524 \DeclareListFormat{ecthr}{%
11525 \ifboolexpr{
11526 test {\ifdefstring{\Commission}{#1}}
11527 or
11528 test {\ifdefstring{\commission}{#1}}
11529 }{\bibstring[\mkbibparens]{commissiondecision}\toggletrue{blx@ox@nopostnotedelim}}{}}
11530
11531 \newcommand*{\pcijrep}{PCIJ Rep}
11532 \DeclareFieldFormat{international}{%
11533 \iffieldequals{journaltitle}{\pcijrep}{%
11534 \bibcplstring{jourser}\space #1%
11535 }{#1}}
11536
11537 \DeclareListFormat{checkcontains}{%
11538 \bbx@check{#1}}
11539 \newtoggle{bbx@institutiontoggle}
11540 \newcommand\iflistcontains[2]{%
11541 \global\togglefalse{bbx@institutiontoggle}%
11542 \def\bbx@check##1{%
11543 \ifdefstring{#2}{##1}{\global\toggletrue{bbx@institutiontoggle}}{}}%
11544 \printlist[checkcontains]{#1}%
11545 \iftoggle{bbx@institutiontoggle}}
11546
11547 \DeclareFieldFormat{draftleg}{%
11548 \StrBefore{#1}{ Bill}}
11549
11550 \DeclareListFormat{billprinting}{%
11551 \ifstrequal{#1}{HC}{%
11552 \mkbibbrackets{\strfield{number}}%
11553 \toggletrue{blx@ox@nopostnotedelim}%
11554 }{%
11555 \strfield{number}%
11556 \togglefalse{blx@ox@nopostnotedelim}}}
11557
11558 \newcommand*{\treatypartysep}{\allowbreak ---\allowbreak}
11559 \DeclareListFormat{treaty}{%
11560 \ifmoreitems{}{%
11561 \ifnumequal{\value{listcount}}{1}{%
11562 \bibopenparen
11563 }{}%
11564 \ifnumgreater{\value{liststop}}{\value{listcount}}{%
11565 #1\treatypartysep
11566 }{%
11567 #1\bibcloseparen}}}
11568
11569 \def\siganddate#1{%
11570 \def\bbx@tempa{#1}%
11571 \expandafter\bbx@signeddatei#1/relax}
11572 \def\bbx@signeddatei#1=#2/relax{%
11573 \def\bbx@tempa{#2-}%
11574 \bibstring{#1}\space\expandafter\makebbx@datei\bbx@tempa}
11575 \def\makebbx@datei#1-#2-#3-{%
11576 \makebbx@dateii{#1}{#2}{#3}}
11577 \def\makebbx@dateii#1#2#3{%
11578 \blx@imc@stripzeros{#3}~\mkbibmonth{#2}%
11579 \space
11580 #1}
11581 \DeclareListFormat{treatydates}{%
11582 \ifnumequal{\value{listcount}}{1}{%
11583 \siganddate{#1}%
11584 }{%
11585 \addcomma\space\siganddate{#1}}}
11586
11587 % \end{macrocode}
11588 %
11589 % \subsubsection{Pagination formats}
11590 %
11591 % We define an alternative to \cs{mkpageprefix} that takes a pagination key
11592 % directly.
11593 %
11594 % \begin{macrocode}
11595 \newrobustcmd*{\mkrawpageprefix}[1][none]{%
11596 \begingroup
11597 \def\blx@tempa{\blx@mkpageprefix@i}%
11598 \ifstrequal{#1}{none}{}{%
11599 \ifbibstring{#1}{%
11600 \def\blx@tempa{\blx@mkpageprefix{#1}}%
11601 }{%
11602 \blx@warning@entry{Unknown pagination type '#1'}}}%
11603 \@ifnextchar[%]
11604 {\blx@tempa}
11605 {\blx@tempa[\@firstofone]}}
11606
11607 \newcommand*\paragraphmarkings{[]}
11608 \DeclareFieldFormat[jurisdiction,legislation,legal]{postnote}{%
11609 \iffieldundef{pagination}{%
11610 \ifboolexpr{
11611 test {\ifkeyword{eu}}
11612 or
11613 test {\ifkeyword{echr}}
11614 }{%
11615 \mkcomprange[{\mkrawpageprefix[paragraph]}]{#1}%
11616 }{%
11617 \mkcomprange{#1}}%
11618 }{%
11619 \iffieldequals{pagination}{\paragraphmarkings}{%
11620 \mkcomprange[\mkbibbrackets]{#1}%
11621 }{%
11622 \mkcomprange[{\mkpageprefix[pagination]}]{#1}}}}
11623 % \end{macrocode}
11624 %
11625 % \subsubsection{Shorthands}
11626 %
11627 % With legal references, the introduction of shorthands is less verbose.
11628 %
11629 % \begin{macrocode}
11630 \renewbibmacro*{shorthandintro}{%
11631 \iffieldundef{shorthandintro}
11632 {\iffieldundef{shorthand}
11633 {}
11634 {\setunit{\addspace}%
11635 \printtext[parens]{%
11636 \ifboolexpr{
11637 test {\ifentrytype{jurisdiction}}
11638 or
11639 test {\ifentrytype{legal}}
11640 or
11641 test {\ifentrytype{legislation}}
11642 }{}{%
11643 \bibstring{citedas}\space}%
11644 \printfield{shorthand}}}}
11645 {\setunit{\addspace}%
11646 \printtext[parens]{\printfield{shorthandintro}}}}
11647
11648 % \end{macrocode}
11649 %
11650 % \subsubsection{Common macros}
11651 %
11652 % \begin{macrocode}
11653 \newbibmacro*{issue/volume}{%
11654 \iffieldundef{volume}%
11655 {\iffieldundef{issue}%
11656 {}%
11657 {\printfield{issue}}}%
11658 {\printfield[default]{volume}}}
11659 \newcommand*{\subtypenewsp}{newspaper}
11660 \newbibmacro*{year+vol+report}[1][default]{%
11661 \iffieldequals{entrysubtype}{\subtypenewsp}{%
11662 \setunit{\addcomma\space}%
11663 }{%
11664 \usebibmacro{journaldate}%
11665 \setunit{\addspace}%
11666 \printfield[parens]{origyear}%
11667 \setunit{\addspace}%
11668 \printfield{volume}%
11669 \setunit{\addspace}}%
11670 \printfield{journaltitle}%
11671 \setunit*{\addspace}%
11672 \iffieldundef{series}{}{%
11673 \setunit{\addspace}%
11674 \printfield[#1]{series}%
11675 \setunit{\addspace}}%
11676 \iffieldequals{entrysubtype}{\subtypenewsp}{%
11677 \setunit{\addcomma\space}%
11678 \printdate%
11679 }{}}
11680 \newbibmacro*{journaldate}[1][]{%
11681 \ifboolexpr{
11682 test {\iffieldundef{#1volume}}
11683 or
11684 bool {bbx@#1year-essential}
11685 }{%
11686 \ifboolexpr{
11687 test {\ifkeyword{sc}}
11688 or
11689 test {\iftoggle{bbx:scotstyle}}
11690 }{%
11691 \setunit{\addcomma\space}%
11692 \printfield{#1year}%
11693 }{%
11694 \printfield[brackets]{#1year}}%
11695 }{%
11696 \printfield[parens]{#1year}}}
11697 \newcommand*{\casenote}{casenote}
11698 \newcommand{\casenotetext}{\bibstring{casenote}}
11699 \newbibmacro{journaltitle}{%
11700 \iffieldequals{entrysubtype}{\casenote}{%
11701 \iffieldundef{crossref}{%
11702 \usebibmacro{title}%
11703 }{%
11704 \iffieldundef{note}{%
11705 \restorefield{note}{\casenotetext}%
11706 }{}%
11707 \ifboolexpr{
11708 test {\iffootnote}
11709 and test {\iftoggle{bbx@samefootnote}}
11710 and test {\iffieldequals{crossref}{\blx@lastkey@foot}}%
11711 }{}{\printfield[casenotetitle]{title}}}%
11712 }{%
11713 \usebibmacro{title}}}
11714 \newbibmacro*{unreported}[1][default]{%
11715 \iffieldundef{verba}{%
11716 \ifboolexpr{
11717 test {\iflistundef{institution}}
11718 and
11719 test {\iffieldundef{date}}
11720 and
11721 test {\iffieldundef{year}}
11722 }{}{%
11723 \ifboolexpr{
11724 test {\iffieldundef{date}}
11725 and
11726 test {\iffieldundef{year}}
11727 }{%
11728 \mkbibparens{\printlist[jurisdiction]{institution}}%
11729 }{%
11730 \toggletrue{blx@ox@nopostnotedelim}%
11731 \iflistundef{institution}{%
11732 \mkbibparens{\usebibmacro{date}}%
11733 }{%
11734 \printtext[parens]{%
11735 \printlist[#1]{institution}%
11736 \setunit{\addcomma\space}
11737 \usebibmacro{date}}}}}%
11738 }{%
11739 \iftoggle{bbx@ecliuse}{}{%
11740 \printfield{verba}}}}
11741 \newbibmacro{court-note}{%
11742 \iffieldundef{note}%
11743 {}%
11744 {\printfield{note}%
11745 \toggletrue{blx@ox@nopostnotedelim}}}
11746 \newbibmacro*{jurisdictionpages}{%
11747 \let\origadddot\adddot
11748 \def\adddot{}%
11749 \iffieldequals{entrysubtype}{\subtypenewsp}{}{%
11750 \setunit{\addspace}%
11751 \printfield{pages}}%
11752 \let\adddot\origadddot
11753 }
11754 \newbibmacro{pcitenote}{%
11755 \iffieldundef{parreporter}{}{%
11756 \setunit{\addcomma\space}%
11757 \iffieldundef{postnote}{}{%
11758 \printfield{postnote}%
11759 \clearfield{postnote}%
11760 \setunit{\addsemicolon\space}}}}
11761 \newbibmacro*{courtid}{%
11762 \iffieldundef{number}{%
11763 \ifboolexpr{
11764 test {\iflistundef{institution}}
11765 and
11766 test {\iffieldundef{location}}%
11767 }{%
11768 \togglefalse{blx@ox@nopostnotedelim}%
11769 }{%
11770 \ifboolexpr{%
11771 test {\iffieldundef{journaltitle}}
11772 or
11773 not togl {bbx:altcourt}
11774 }{%
11775 \printtext[parens]{%
11776 \printfield{location}%
11777 \setunit{\addspace}%
11778 \printlist{institution}%
11779 \usebibmacro{unrep:date}}%
11780 \toggletrue{blx@ox@nopostnotedelim}
11781 }{%
11782 \setunit{\addcomma\space}%
11783 \printfield{location}%
11784 \setunit*{\addspace}%
11785 \printlist{institution}}}%
11786 }{%
11787 \togglefalse{blx@ox@nopostnotedelim}}}
11788 \newbibmacro*{unrep:date}{%
11789 \ifboolexpr{
11790 test {\iffieldundef{journaltitle}}%
11791 and
11792 test {\iffieldundef{number}}%
11793 and
11794 test {\iffieldundef{neutralcite}}%
11795 }{%
11796 \setunit{\addcomma\space}%
11797 \usebibmacro{date}%
11798 }{}}
11799
11800 % \end{macrocode}
11801 %
11802 % \subsubsection{Legal cases}
11803 %
11804 % There are different formats depending on the jurisdiction.
11805 %
11806 % \begin{macrocode}
11807 \DeclareBibliographyDriver{jurisdiction}{%
11808 \usebibmacro{bibindex}%
11809 \usebibmacro{begentry}%
11810 \usebibmacro{juriscitation}%
11811 \usebibmacro{doi+eprint+url}%
11812 \setunit{\addspace}%\newblock
11813 \usebibmacro{addendum+pubstate}%
11814 \setunit{\addspace}%\newblock
11815 \iftoggle{bbx:related}
11816 {\usebibmacro{related:init}%
11817 \usebibmacro{related}}
11818 {}%
11819 \setunit{\bibpagerefpunct}\newblock
11820 \usebibmacro{pageref}%
11821 \usebibmacro{finentry}}
11822 \newtoggle{bbx@juriscitedone}
11823 \newbibmacro{juriscitation}{%
11824 \togglefalse{bbx@juriscitedone}%
11825 \renewcommand{\do}[1]{%
11826 \ifkeyword{##1}{%
11827 \toggletrue{bbx@juriscitedone}\usebibmacro{##1juriscitation}%
11828 \listbreak
11829 }{}}%
11830 \docsvlist{eu,echr,int,ca,us}%
11831 \iftoggle{bbx@juriscitedone}{}{\usebibmacro{enjuriscitation}}%
11832 }
11833 % \end{macrocode}
11834 %
11835 % Here is the format for EU cases.
11836 %
11837 % \begin{macrocode}
11838 \newtoggle{bbx@commissiondecision}
11839 \newbibmacro*{eujuriscitation}{%
11840 \ifboolexpr{
11841 test {\iflistcontains{institution}{\commission}}
11842 or
11843 test {\iflistcontains{institution}{\Commission}}
11844 }{%
11845 \toggletrue{bbx@commissiondecision}%
11846 }{%
11847 \togglefalse{bbx@commissiondecision}}%
11848 \iftoggle{bbx@commissiondecision}{}{%
11849 \usebibmacro{eucasenumber}}%
11850 \usebibmacro{title}%
11851 \setunit{\addspace}%
11852 \iftoggle{bbx@commissiondecision}{%
11853 \usebibmacro{eucommissiondecision}}{}%
11854 \setunit{\addspace}%
11855 \usebibmacro{eu:reportinfo}%
11856 \iftoggle{bbx@commissiondecision}{%
11857 \setunit{\addcomma\space}%
11858 }{%
11859 \setunit{\addspace}}%
11860 \usebibmacro{altreportdetails}%
11861 \usebibmacro{court-note}%
11862 }
11863 \newcommand*\oxrefand{ and }
11864 \newbibmacro{eucasetype}{%
11865 \iffieldundef{type}{%
11866 \ifboolexpr{
11867 test {\IfSubStr{\thefield{number}}{,}}
11868 or
11869 test {\IfSubStr{\thefield{number}}{--}}
11870 or
11871 test {\IfSubStr{\thefield{number}}{\oxrefand}}
11872 }{%
11873 \bibstring{eujoinedcases}%
11874 }{%
11875 \bibstring{eucase}}%
11876 }{%
11877 \printfield{type}}%
11878 }
11879 \newbibmacro{eucasenumber}{%
11880 \usebibmacro{eucasetype}%
11881 \setunit{\addnbspace}%
11882 \printfield{number}%
11883 \setunit{\addspace}}
11884 \newbibmacro{eucommissiondecision}{%
11885 \iffieldundef{userb}{%
11886 \iffieldundef{number}{}{%
11887 \printtext[parens]{%
11888 \usebibmacro{eucasetype}%
11889 \setunit{\addnbspace}%
11890 \printfield{number}}}%
11891 }{%
11892 \printtext[parens]{%
11893 \printfield{userb}}%
11894 \setunit{\addspace}%
11895 \iffieldundef{number}{}{%
11896 \iffieldundef{type}{%
11897 \setunit{\addspace\bibstring{commissiondecision}\addspace}%
11898 }{%
11899 \setunit{\addspace\printfield{type}\addspace}}%
11900 \printfield{number}}%
11901 }%
11902 }
11903 \newbibmacro*{eu:reportinfo}{%
11904 \iftoggle{bbx@eclionly}{%
11905 \iffieldundef{verba}{%
11906 \usebibmacro{eu:osreport}
11907 }{%
11908 \printfield{verba}}%
11909 }{%
11910 \usebibmacro{eu:osreport}}}
11911 \newbibmacro*{eu:osreport}{%
11912 \iftoggle{bbx@ecliuse}{%
11913 \iffieldundef{verba}{}{%
11914 \printfield{verba}%
11915 \setunit{\addcomma\space}}%
11916 }{}%
11917 \iffieldundef{journaltitle}{%
11918 \usebibmacro{unreported}%
11919 }{%
11920 \usebibmacro{eu:year+vol+report}}}
11921 \newcommand*\officialjournaltitle{OJ}
11922 \newcommand*\ecrreporttitle{ECR}
11923 \newbibmacro*{eu:year+vol+report}{%
11924 \iffieldequals{journaltitle}{\ecrreporttitle}{%
11925 \printfield[brackets]{year}%
11926 \setunit{\addspace}%
11927 \printfield{journaltitle}%
11928 \setunit{\addspace}%
11929 \printfield{volume}%
11930 \setunit*{\printtext{--\allowbreak}}%
11931 \printfield{pages}%
11932 }{%
11933 \iffieldequals{journaltitle}{\officialjournaltitle}{%
11934 \printfield[brackets]{year}%
11935 \setunit{\addspace}%
11936 \printfield{journaltitle}%
11937 \setunit{\addspace}%
11938 \printfield[default]{series}%
11939 \usebibmacro{issue/volume}%
11940 \setunit{\printtext{\slash}}%
11941 \printfield{pages}%
11942 }{%
11943 \usebibmacro{year+vol+report}}}}
11944
11945 % \end{macrocode}
11946 %
11947 % Here is the format for European Human Rights cases.
11948 %
11949 % \begin{macrocode}
11950 \newbibmacro*{echrjuriscitation}{%
11951 \usebibmacro{title}%
11952 \setunit{\addspace}\newblock
11953 \iffieldundef{number}{}{%
11954 \printtext[parens]{%
11955 \def\adddot{}%
11956 \bibstring{application}\space
11957 \bibstring{number}\space
11958 \printfield{number}}%
11959 \setunit{\addspace}\newblock}%
11960 \iffieldundef{journaltitle}{%
11961 \usebibmacro{unreported}[echrinst]%
11962 }{%
11963 \usebibmacro{echr:year+vol+report}
11964 \setunit{\addspace}\newblock
11965 \usebibmacro{echr:courtid}}%
11966 \setunit{\addspace}%
11967 \usebibmacro{court-note}%
11968 \newblock
11969 \setunit{\addspace}}
11970 \newcommand*{\seriesa}{Series A}
11971 \newcommand*{\echrreports}{ECHR}
11972 \newbibmacro*{echr:year+vol+report}{%
11973 \iffieldequals{journaltitle}{\seriesa}{%
11974 \usebibmacro{seriesareport}%
11975 }{%
11976 \iffieldequals{journaltitle}{\echrreports}{%
11977 \usebibmacro{echrreports}%
11978 }{%
11979 \usebibmacro{year+vol+report}
11980 \setunit{\addspace}%
11981 \printfield{pages}}}}
11982 \newbibmacro*{seriesareport}{%
11983 \printfield[parens]{year}%
11984 \setunit{\addspace}%
11985 \printfield{journaltitle}%
11986 \setunit{\addspace}%
11987 \printtext{\def\adddot{}\bibstring{number}\addspace}%
11988 \printfield{pages}}
11989 \newbibmacro*{echrreports}{%
11990 \printfield{journaltitle}%
11991 \setunit{\addspace}%
11992 \printfield{year}%
11993 \iffieldundef{volume}{}{%
11994 \printtext{--}\printfield[romanvol]{volume}}
11995 \setunit{\addspace}%
11996 \printfield{pages}}
11997 \newcommand*{\decisionsandreports}{DR}
11998 \newcommand*{\collectionofdecisions}{CD}
11999 \newbibmacro*{echr:courtid}{%
12000 \ifboolexpr{
12001 test {\iffieldequals{journaltitle}{\decisionsandreports}}
12002 or
12003 test {\iffieldequals{journaltitle}{\collectionofdecisions}}%
12004 }{}{%
12005 \printlist[ecthr]{institution}}}
12006
12007 % \end{macrocode}
12008 %
12009 % Here is the format for international cases.
12010 %
12011 % \begin{macrocode}
12012 \newbibmacro*{intjuriscitation}{%
12013 \iflistundef{institution}{%
12014 \setunit{}\printtext{}%
12015 }{%
12016 \printlist{institution}%
12017 \setunit{\addcomma\space}}%
12018 \usebibmacro{int:title}%
12019 \setunit{\addspace}\newblock
12020 \iffieldundef{journaltitle}{%
12021 \printfield{number}%
12022 \setunit{\addspace}\newblock
12023 \printtext[parens]{\printdate}%
12024 }{%
12025 \usebibmacro{year+vol+report}[international]%
12026 }%
12027 \setunit{\addspace}%
12028 \usebibmacro{int:jurisdictionpages}%
12029 \setunit{\addspace}\newblock
12030 \usebibmacro{court-note}%
12031 }
12032 \newbibmacro*{int:title}{%
12033 \ifboolexpr{
12034 test {\iffieldundef{title}}
12035 and
12036 test {\iffieldundef{subtitle}}
12037 }{}{%
12038 \printtext[title]{%
12039 \printfield[titlecase]{title}%
12040 \setunit{\addspace}%
12041 \printfield[parens]{subtitle}}}%
12042 \setunit{\addspace}%
12043 \printfield{titleaddon}%
12044 }
12045 \newbibmacro*{int:jurisdictionpages}{%
12046 \let\origaddot\adddot
12047 \def\adddot{}%
12048 \iffieldequals{journaltitle}{\pcijrep}{%
12049 \printtext{\bibcpstring{number}\addspace}%
12050 \iffieldundef{pages}{%
12051 \printfield{number}%
12052 }{%
12053 \printfield{pages}}%
12054 }{%
12055 \printfield{pages}}%
12056 \let\addot\origadddot
12057 }
12058
12059 % \end{macrocode}
12060 %
12061 % Here is the format for Canadian cases.
12062 %
12063 % \begin{macrocode}
12064 \newbibmacro{cajuriscitation}{%
12065 \usebibmacro{title}%
12066 \setunit{\cacasetitlepunct}\newblock
12067 \printfield{number}%
12068 \setunit{\addcomma\space}%
12069 \iffieldundef{journaltitle}{}{%
12070 \usebibmacro{can:year+vol+report}}%
12071 \usebibmacro{jurisdictionpages}%
12072 \usebibmacro{pcitenote}%
12073 \usebibmacro{altreportdetails}%
12074 \unspace\printlist[jurisdiction][1-\value{listtotal}]{listb}%
12075 \newunit\newblock
12076 \usebibmacro{courtid}%
12077 \newunit%
12078 \usebibmacro{court-note}%
12079 \newblock%
12080 \newunit}
12081 \newbibmacro*{can:year+vol+report}{%
12082 \iffieldundef{number}{%
12083 \setunit{\addspace}%
12084 }{%
12085 \ifboolexpr{
12086 test {\iffieldundef{volume}}
12087 or
12088 bool {bbx@year-essential}%
12089 }{}{%
12090 \clearfield{year}}}%
12091 \iffieldequals{entrysubtype}{\subtypenewsp}{}{%
12092 \iffieldundef{year}{}{%
12093 \usebibmacro{journaldate}%
12094 \setunit{\addspace}}}
12095 \printfield{volume}%
12096 \setunit{\addspace}%
12097 \printfield{journaltitle}%
12098 \setunit*{\addspace}%
12099 \iffieldundef{series}{}{%
12100 \setunit{\addspace}%
12101 \printtext[parens]{\printfield[usseries]{series}}%
12102 \setunit{\addspace}}%
12103 \iffieldequals{entrysubtype}{\subtypenewsp}{%
12104 \setunit{\addcomma\space}%
12105 \usebibmacro{newspaperdate}%
12106 }{}}
12107 % \end{macrocode}
12108 %
12109 % Here is the format for American cases.
12110 %
12111 % \begin{macrocode}
12112 \newbibmacro{usjuriscitation}{%
12113 \usebibmacro{title}%
12114 \setunit{\uscasetitlepunct}\newblock%
12115 \iffieldundef{journaltitle}{%
12116 \printfield{number}%
12117 \setunit{\addcomma\space}%
12118 \printfield[default]{eprint}%
12119 \clearfield{eprint}%
12120 }{
12121 \usebibmacro{us:vol+report}}%
12122 \setunit{\addspace}%
12123 \usebibmacro{jurisdictionpages}%
12124 \usebibmacro{us:postnote}%
12125 \usebibmacro{altreportdetails}%
12126 \setunit{\addspace}\newblock
12127 \unspace\printlist[jurisdiction][1-\value{listtotal}]{listb}%
12128 \setunit{\addspace}%
12129 \usebibmacro{us:courtid+date}%
12130 \setunit{\addspace}%
12131 \usebibmacro{court-note}%
12132 \newblock
12133 \setunit{\addspace}}
12134 \newbibmacro{us:vol+report}{%
12135 \printfield{volume}%
12136 \setunit{\addspace}%
12137 \printfield{journaltitle}%
12138 \iffieldundef{series}{}{%
12139 \setunit{\addspace}%
12140 \printfield[usseries]{series}}}
12141 \newbibmacro{us:postnote}{%
12142 \iffieldundef{postnote}{}{%
12143 \setunit{\addcomma\space}%
12144 \printfield{postnote}%
12145 \clearfield{postnote}%
12146 }}
12147 \newbibmacro{us:courtid+date}{%
12148 \ifboolexpr{
12149 test {\iflistundef{institution}}
12150 and
12151 test {\iflistundef{location}}
12152 and
12153 test {\iffieldundef{year}}
12154 }{}{%
12155 \printtext[parens]{%
12156 \printlist{location}%
12157 \setunit*{\addspace}%
12158 \printlist{institution}%
12159 \setunit{\addspace}%
12160 \printfield{year}%
12161 \nopunct}}}
12162
12163 % \end{macrocode}
12164 %
12165 % Here is the format for English cases.
12166 %
12167 % \begin{macrocode}
12168 \newbibmacro{enjuriscitation}{%
12169 \usebibmacro{title}%
12170 \setunit{\addspace}\newblock
12171 \printfield{neutralcite}%
12172 \setunit*{\addcomma\space}%
12173 \printfield{number}%
12174 \setunit*{\addcomma\space}%
12175 \iffieldundef{journaltitle}{}{%
12176 \usebibmacro{year+vol+report}}%
12177 \usebibmacro{jurisdictionpages}%
12178 \usebibmacro{pcitenote}%
12179 \usebibmacro{altreportdetails}%
12180 \unspace\printlist[jurisdiction][1-\value{listtotal}]{listb}% additionalreports
12181 \setunit{\addspace}\newblock
12182 \usebibmacro{courtid}%
12183 \setunit{\addspace}%
12184 \usebibmacro{court-note}}
12185 \newbibmacro{altreportdetails}{%
12186 \restorefield{prenote}{\postnotesecond}%
12187 \iffieldundef{parreporter}{}{%
12188 \usebibmacro{journaldate}[par]%
12189 \setunit{\addspace}\newblock
12190 \usebibmacro{altreportvolume}%
12191 \setunit{\addspace}\newblock
12192 \usebibmacro{altjournaltitle}%
12193 \setunit{\addspace}\newblock
12194 \usebibmacro{altseries}%
12195 \setunit{\addspace}\newblock
12196 \usebibmacro{altjurisdictionpages}%
12197 \iffieldundef{prenote}{}{%
12198 \setunit{\addcomma\space}%
12199 \printfield[postnote]{prenote}}}}
12200 \newbibmacro*{altreportvolume}{%
12201 \iffieldundef{parvolume}{}{%
12202 \printfield{parvolume}}}
12203 \newbibmacro*{altjournaltitle}{%
12204 \iffieldundef{parreporter}{}{
12205 \printfield{parreporter}}}
12206 \newbibmacro*{altseries}{%
12207 \iffieldundef{parseries}{}{%
12208 \printfield{parseries}}}
12209 \newbibmacro*{altjurisdictionpages}{%
12210 \iffieldundef{parpages}{}{%
12211 \printfield{parpages}}}%
12212
12213 % \end{macrocode}
12214 %
12215 % \subsubsection{Legislation}
12216 %
12217 % Legislation tends to have a more consistent format, though European
12218 % entries need special handling.
12219 %
12220 % \begin{macrocode}
12221 \newcommand*{\subtypecourtrules}{procedure-rule}
12222 \DeclareBibliographyDriver{legislation}{%
12223 \usebibmacro{bibindex}%
12224 \usebibmacro{begentry}%
12225 \iffieldequals{entrysubtype}{\subtypecourtrules}{%
12226 \usebibmacro{courtrules}%
12227 }{%
12228 \ifkeyword{draft}{%
12229 \usebibmacro{legislation:bill}%
12230 }{%
12231 \ifkeyword{eu}{%
12232 \usebibmacro{eulegislation}%
12233 }{%
12234 \printfield[default]{title}%
12235 \setunit{\addspace}%
12236 \printfield[default]{year}%
12237 \setunit*{\addspace}%
12238 \usebibmacro{legnumber}%
12239 \setunit{\addspace}\newblock
12240 \usebibmacro{legsupp}}}}%
12241 \setunit{\addcomma\space}%
12242 \printfield{note}%
12243 \setunit{\bibpagerefpunct}\newblock
12244 \usebibmacro{pageref}%
12245 \usebibmacro{finentry}}
12246 \newbibmacro*{courtrules}{%
12247 \restorefield{prenote}{\postnotesecond}%
12248 \iffieldequalstr{shorttitle}{PD}{%
12249 \printfield{postnote}%
12250 \clearfield{postnote}%
12251 \setunit{\addspace}%
12252 }{}%
12253 \iffieldundef{shorttitle}{%
12254 \printfield[default]{title}%
12255 }{%
12256 \printfield[default]{shorttitle}}%
12257 \setunit{\addspace}\newblock
12258 \iffieldundef{postnote}{%
12259 \toggletrue{blx@ox@nopostnotedelim}%
12260 }{%
12261 \iffieldequalstr{shorttitle}{CPR}{%
12262 \printfield{postnote}%
12263 \setunit{\addspace}%
12264 }{%
12265 \printtext{%
12266 \bibstring{order}\space
12267 \printfield{postnote}%
12268 \setunit{\addcomma\space}}}}%
12269 \restorefield{postnote}{\postnotesecond}%
12270 \usebibmacro{postnote}%
12271 \clearfield{postnote}%
12272 \setunit{\addspace}\newblock}
12273 \newcommand*{\subtypeprimarylegislation}{primary}
12274 \newbibmacro*{legislation:bill}{%
12275 \printfield[draftleg]{title}%
12276 \setunit{\addspace}%
12277 \printlist{institution}%
12278 \setunit*{\addspace}%
12279 \iffieldequals{entrysubtype}{\subtypeprimarylegislation}{%
12280 \bibcpstring{bill}%
12281 \setunit{\addspace}%
12282 \printtext[parens]{\usebibmacro{sessionyear}}%
12283 \setunit{\addspace}%
12284 \iffieldundef{number}{}{%
12285 \printlist[billprinting]{institution}}%
12286 }{%
12287 \printtext[parens]{%
12288 \bibstring{draft}\space
12289 \printdate}}
12290 \setunit{\addspace}}
12291 \newbibmacro*{sessionyear}{%
12292 \iffieldundef{year}{}{%
12293 \printfield{year}%
12294 \iffieldundef{endyear}{}{%
12295 \bibdaterangesep
12296 \blx@ox@compyear{\thefield{year}}{\thefield{endyear}}}}}
12297 \newbibmacro{eulegislation}{%
12298 \printfield[default]{title}%
12299 \setunit{\addspace}\newblock%
12300 \usebibmacro{eulegref}}
12301 \newcommand*{\ojspecedtitle}{OJ Spec Ed}
12302 \newbibmacro*{eulegref}{%
12303 \iffieldequals{journaltitle}{\officialjournaltitle}{%
12304 \printfield[brackets]{year}%
12305 \setunit{\addspace}%
12306 \printfield{journaltitle}%
12307 \setunit{\addspace}%
12308 \iffieldundef{series}{%
12309 \printtext{L}%
12310 }{%
12311 \printfield[default]{series}}%
12312 \usebibmacro{issue/volume}%
12313 \setunit*{\addslash}%
12314 \printfield{pages}%
12315 \togglefalse{blx@ox@nopostnotedelim}%
12316 }{%
12317 \usebibmacro{year+vol+report}%
12318 \setunit*{\addspace}%
12319 \printfield{pages}}}
12320 \newbibmacro*{legnumber}{%
12321 \iffieldequals{entrysubtype}{\subtypeprimarylegislation}{%
12322 \ifboolexpr{(
12323 test {\iffieldundef{number}}
12324 or
12325 not test {\iffieldundef{title}} )
12326 and not (
12327 test {\ifkeyword{cy}}
12328 or
12329 test {\ifkeyword{sc}}
12330 or
12331 test {\ifkeyword{ni}} )
12332 }{}{%
12333 \printtext[parens]{\printfield{number}}%
12334 \toggletrue{blx@ox@nopostnotedelim}}%
12335 }{%
12336 \iffieldundef{number}{}{%
12337 \setunit{\addcomma\addspace}%
12338 \printfield{number}%
12339 \togglefalse{blx@ox@nopostnotedelim}}}}
12340 % \end{macrocode}
12341 %
12342 % This adds additional material for Welsh statutory instruments.
12343 %
12344 % \begin{macrocode}
12345 \newbibmacro*{legsupp}{%
12346 \ifkeyword{cy}
12347 {\iffieldundef{userb}
12348 {}
12349 {\printtext{\mkbibparens{\printfield{userb}}}\toggletrue{blx@ox@nopostnotedelim}}}
12350 {}}
12351
12352 % \end{macrocode}
12353 %
12354 % \subsubsection{Treaties, explanatory notes and Hansard}
12355 %
12356 % \begin{macrocode}
12357 \newcommand*{\explanatorynote}{explanatory note}
12358 \newcommand*{\parliamentarytype}{parliamentary}
12359 \newcommand*{\treatysubtype}{piltreaty}
12360 \DeclareBibliographyDriver{legal}{%
12361 \usebibmacro{bibindex}%
12362 \usebibmacro{begentry}%
12363 \iffieldequals{entrysubtype}{\explanatorynote}{%
12364 \printfield[default]{title}%
12365 \setunit{\addspace}\newblock
12366 }{%
12367 \iffieldequals{entrysubtype}{\parliamentarytype}{%
12368 \usebibmacro{legal:parliamentary}%
12369 }{%
12370 \usebibmacro{treatycitation}}}%
12371 \setunit{\addcomma\space}\newblock
12372 \printfield[default]{note}
12373 \setunit{\addspace}\newblock
12374 \iftoggle{bbx:related}
12375 {\usebibmacro{related:init}%
12376 \usebibmacro{related}}
12377 {}%
12378 \setunit{\bibpagerefpunct}%
12379 \usebibmacro{pageref}%
12380 \usebibmacro{finentry}}
12381 \newbibmacro{legal:parliamentary}{%
12382 \printfield[default]{title}%
12383 \newunit\newblock
12384 \printfield{type}%
12385 \setunit{\addspace}%
12386 \iffieldundef{series}{}{%
12387 \printtext[parens]{%
12388 \biblstring{jourser}\space
12389 \printfield{series}}}%
12390 \setunit{\addspace}%
12391 \printfield{volume}%
12392 \setunit{\addcomma\space}%
12393 \usebibmacro{hansard-ref}%
12394 \setunit{\addspace}%
12395 \iffieldundef{year}{}{%
12396 \printtext[parens]{\usebibmacro{date}}}%
12397 \togglefalse{blx@ox@nopostnotedelim}}
12398 \newbibmacro*{hansard-ref}{%
12399 \iffieldundef{postnote}{%
12400 \iffieldundef{pages}{}{%
12401 \printfield{pages}}%
12402 }{}}%
12403 \newbibmacro{treatycitation}{%
12404 \printfield[default]{title}%
12405 \setunit{\addspace}\newblock%
12406 \printlist[treaty]{institution}
12407 \setunit{\addspace}\newblock
12408 \usebibmacro{treatyinfo}%
12409 \setunit{\addspace}\newblock
12410 \usebibmacro{treaty:year+vol+report}}
12411 \newbibmacro{treatyinfo}{%
12412 \iflistundef{lista}{% execution
12413 \iffieldundef{year}{}{%
12414 \iffieldundef{volume}{}{%
12415 \printtext[parens]{\printdate}}}%
12416 }{%
12417 \printtext[parens]{\printlist[treatydates]{lista}}}}
12418 \newbibmacro{treaty:year+vol+report}{%
12419 \iffieldequals{journaltitle}{\officialjournaltitle}{%
12420 \usebibmacro{eulegref}%
12421 }{%
12422 \usebibmacro{treaty:date}%
12423 \setunit{\addspace}%
12424 \printfield[default]{volume}%
12425 \setunit{\addspace}%
12426 \printfield{journaltitle}%
12427 \setunit*{\addspace}%
12428 \iffieldundef{series}{%
12429 \printfield{type}%
12430 \setunit*{\addspace}%
12431 }{%
12432 \printfield{series}%
12433 \iffieldundef{type}{%
12434 \setunit{\addspace}%
12435 \bibcpstring{number}
12436 \setunit{\addspace}%
12437 }{%
12438 \setunit{\addcomma\space}%
12439 }}
12440 \printfield{number}
12441 \setunit*{\addspace}%
12442 \printfield{pages}}}%
12443 \newbibmacro*{treaty:date}{%
12444 \ifboolexpr{
12445 test {\iffieldundef{volume}}
12446 or
12447 bool {bbx@year-essential}
12448 }{%
12449 \ifboolexpr{
12450 test {\ifkeyword{sc}}
12451 or
12452 test {\iftoggle{bbx:scotstyle}}
12453 }{%
12454 \printfield{year}%
12455 }{%
12456 \printfield[brackets]{year}%
12457 }}{}}
12458
12459 % \end{macrocode}
12460 %
12461 % We don't really deal with commentaries as distinct from books.
12462 %
12463 % \begin{macrocode}
12464 \DeclareBibliographyAlias{commentary}{book}
12465 % \end{macrocode}
12466 %
12467 % \subsection{Manuscripts}
12468 %
12469 % In the spirit of compatibility, this code is adapted from
12470 % \textsf{biblatex-manuscripts-philology} by Maïeul Rouquette.
12471 %
12472 % Here are the additional punctuation commands.
12473 %
12474 % \begin{macrocode}
12475 \newcommand{\locationlibrarypunct}{\addcomma\addspace}
12476 \newcommand{\collectionshelfmarkpunct}{\addspace}
12477 \newcommand{\datingpagespunct}{\addcomma\addspace}
12478 \newcommand{\librarycollectionpunct}{\addcomma\addspace}
12479 \newcommand{\pagetotalpagespunct}{\addcomma\addspace}
12480 \newcommand{\columnslayerpunct}{\addsemicolon\addspace}%
12481 % \end{macrocode}
12482 %
12483 % Here are the configurable macros for the two sides of a folio.
12484 %
12485 % \begin{macrocode}
12486 \def\recto{r}
12487 \def\verso{v}
12488 \NumCheckSetup{\def\recto{}\def\verso{}}
12489 % \end{macrocode}
12490 %
12491 % Here are some special field formats for the |manuscript| driver.
12492 % Note that the title is transformed into a descriptor by means of
12493 % an annotation, rather than using a dedicated field. This greatly
12494 % simplifies the code used elsewhere.
12495 %
12496 % \begin{macrocode}
12497 \DeclareFieldFormat[manuscript,unpublished]{title}{%
12498 \def\currentfield{title}%
12499 \iffieldannotation{descriptor}{#1}{\mkbibquote{#1\isdot}}%
12500 \undef\currentfield}
12501 \DeclareFieldFormat{columns+layer}{\mkbibparens{#1}}
12502 \DeclareFieldFormat{columns}{\mkbibparens{#1}}
12503 \DeclareFieldFormat{layer}{\mkbibparens{#1}}
12504 \DeclareFieldFormat{dating}{#1\isdot}%
12505 \DeclareFieldFormat{support}{\ifbibstring{#1}{\bibstring{#1}}{#1}}
12506 % \end{macrocode}
12507 %
12508 % Here are the unique bibmacros used by the |manuscripts| driver.
12509 % We hide the date if there is no author or title to prevent it
12510 % appearing as the first element in the reference. Similarly, we
12511 % hide the (vague) |dating| field if the (exact) |date| is displayed.
12512 %
12513 % \begin{macrocode}
12514 \newbibmacro{manuscript:date}{%
12515 \ifboolexpr{
12516 test {\ifnameundef{author}}
12517 and
12518 test {\iffieldundef{title}}
12519 and
12520 test {\iffieldundef{label}}
12521 }{}{\usebibmacro{date}}}
12522 \newbibmacro{dating}{%
12523 \ifboolexpr{(
12524 test {\ifnameundef{author}}
12525 and
12526 test {\iffieldundef{title}}
12527 and
12528 test {\iffieldundef{label}}
12529 ) or
12530 test {\iffieldundef{year}}
12531 }{%
12532 \printfield{dating}%
12533 }{}}
12534 % \end{macrocode}
12535 %
12536 % We follow the structure of the \textsf{biblatex-manuscripts-philology}
12537 % approach to allow special formatting to be applied to the collection
12538 % and shelfmark, but we do not actually apply any.
12539 %
12540 % \begin{macrocode}
12541 \newbibmacro{location+library+collection+shelfmark}{%
12542 \printfield{library}%
12543 \setunit{\locationlibrarypunct}%
12544 \printlist{location}%
12545 \setunit{\librarycollectionpunct}%
12546 \usebibmacro{collection+shelfmark}}
12547 \newbibmacro{collection+shelfmark}{%
12548 \ifboolexpr{
12549 test {\iffieldundef{collection}}
12550 and
12551 test {\iffieldundef{shelfmark}}
12552 }{}{%
12553 \printtext[collection+shelfmark]{%
12554 \printfield{collection}%
12555 \setunit*{\collectionshelfmarkpunct}%
12556 \printfield{shelfmark}}}}
12557 % \end{macrocode}
12558 %
12559 % Again, following \textsf{biblatex-manuscripts-philology}, we allow
12560 % different formatting to be applied to columns and layers according
12561 % to whether they occur adjacently or not, as they might be separated
12562 % by a page specification.
12563 %
12564 % \begin{macrocode}
12565 \newbibmacro{manuscript:pages}{%
12566 \printfield{pagetotal}%
12567 \setunit{\addspace}%
12568 \iffieldundef{pages}{%
12569 \usebibmacro{manuscript:columns+layer}%
12570 }{%
12571 \usebibmacro{manuscript:columns}%
12572 \setunit{\pagetotalpagespunct}%
12573 \printfield{pages}%
12574 \setunit{\addspace}%
12575 \usebibmacro{manuscript:layer}}}
12576 \newbibmacro{manuscript:columns}{%
12577 \iffieldundef{columns}{}{%
12578 \printtext[columns]{\bibstring{\strfield{columns}column}}}%
12579 }%
12580 \newbibmacro{manuscript:layer}{%
12581 \iffieldundef{layer}{}{%
12582 \printtext[layer]{\bibstring{\strfield{layer}layer}}}%
12583 }%
12584 \newbibmacro{manuscript:columns+layer}{%
12585 \ifboolexpr{
12586 test {\iffieldundef{columns}}
12587 or
12588 test{\iffieldundef{layer}}
12589 }{%
12590 \usebibmacro{manuscript:columns}%
12591 \usebibmacro{manuscript:layer}%
12592 }{%
12593 \printtext[columns+layer]{%
12594 \bibstring{\strfield{columns}column}%
12595 \setunit*{\columnslayerpunct}%
12596 \bibstring{\strfield{layer}layer}}}}%
12597 % \end{macrocode}
12598 %
12599 % Putting it all together, here is the |manuscript| driver.
12600 %
12601 % \begin{macrocode}
12602 \DeclareBibliographyDriver{manuscript}{%
12603 \usebibmacro{bibindex}%
12604 \usebibmacro{begentry}%
12605 \usebibmacro{author}%
12606 \setunit{\printdelim{nametitledelim}}\newblock
12607 \usebibmacro{title}%
12608 \setunit{\titlebyauthordelim}\newblock
12609 \usebibmacro{byauthor}%
12610 \newunit\newblock
12611 \printfield{howpublished}%
12612 \newunit\newblock
12613 \printfield{note}%
12614 \newunit\newblock
12615 \usebibmacro{manuscript:date}%
12616 \newunit\newblock
12617 \usebibmacro{location+library+collection+shelfmark}%
12618 \newunit
12619 \printfield{support}%
12620 \newunit
12621 \usebibmacro{dating}%
12622 \setunit{\datingpagespunct}
12623 \usebibmacro{manuscript:pages}
12624 \newunit\newblock%
12625 \iftoggle{bbx:url}{%
12626 \usebibmacro{url+urldate}%
12627 }{}%
12628 \iftoggle{bbx:related}{%
12629 \usebibmacro{related:init}%
12630 \usebibmacro{related}%
12631 }{}%
12632 \setunit{\bibpagerefpunct}\newblock
12633 \usebibmacro{pageref}%
12634 \usebibmacro{finentry}}
12635 % \end{macrocode}
12636 %
12637 % We provide an alternative bibmacro for doing much the same but with
12638 % the regular \textsf{biblatex} fields.
12639 %
12640 % \begin{macrocode}
12641 \newbibmacro*{library+location+series+number}{%
12642 \printfield{library}%
12643 \setunit{\locationlibrarypunct}%
12644 \printlist{location}%
12645 \setunit{\librarycollectionpunct}%
12646 \ifboolexpr{
12647 test {\iffieldundef{series}}
12648 and
12649 test {\iffieldundef{number}}
12650 }{}{%
12651 \printtext[collection+shelfmark]{%
12652 \printfield{series}%
12653 \setunit*{\collectionshelfmarkpunct}%
12654 \printfield{number}}}}
12655 % \end{macrocode}
12656 %
12657 % Lastly, we adapt the |unpublished| driver to allow it to do a similar
12658 % thing but with the regular \textsf{biblatex} fields. The presence of
12659 % the |library| field is what triggers `manuscript mode'.
12660 %
12661 % \begin{macrocode}
12662 \newtoggle{blx@ox@ms}
12663 \DeclareBibliographyDriver{unpublished}{%
12664 \usebibmacro{bibindex}%
12665 \usebibmacro{begentry}%
12666 \iffieldundef{library}{\togglefalse{blx@ox@ms}}{\toggletrue{blx@ox@ms}}%
12667 \usebibmacro{author}%
12668 \setunit{\printdelim{nametitledelim}}\newblock
12669 \usebibmacro{title}%
12670 \setunit{\titlebyauthordelim}\newblock
12671 \usebibmacro{byauthor}%
12672 \newunit\newblock
12673 \printfield{note}%
12674 \newunit\newblock
12675 \printfield{howpublished}%
12676 \newunit\newblock
12677 \iftoggle{blx@ox@ms}{%
12678 \usebibmacro{manuscript:date}%
12679 \newunit\newblock
12680 \usebibmacro{library+location+series+number}%
12681 \newunit
12682 \printfield{support}%
12683 \newunit
12684 \usebibmacro{dating}%
12685 \setunit{\datingpagespunct}
12686 \usebibmacro{manuscript:pages}
12687 }{%
12688 \usebibmacro{location+date}%
12689 }%
12690 \newunit\newblock
12691 \iftoggle{bbx:url}
12692 {\usebibmacro{url+urldate}}
12693 {}%
12694 \newunit\newblock
12695 \usebibmacro{addendum+pubstate}%
12696 \iftoggle{bbx:related}
12697 {\usebibmacro{related:init}%
12698 \usebibmacro{related}}
12699 {}%
12700 \setunit{\bibpagerefpunct}\newblock
12701 \usebibmacro{pageref}%
12702 \usebibmacro{finentry}}
12703 % \end{macrocode}
12704 %
12705 % \subsection{Letters}
12706 %
12707 % The driver for letters is similar to the one for other unpublished materials.
12708 %
12709 % \begin{macrocode}
12710 \DeclareBibliographyDriver{letter}{%
12711 \usebibmacro{bibindex}%
12712 \usebibmacro{begentry}%
12713 \iffieldundef{library}{\togglefalse{blx@ox@ms}}{\toggletrue{blx@ox@ms}}%
12714 \usebibmacro{author}%
12715 \setunit{\printdelim{nametitledelim}}\newblock
12716 \usebibmacro{title}%
12717 \setunit{\titlebyauthordelim}\newblock
12718 \usebibmacro{byauthor}%
12719 \newunit\newblock
12720 \printfield{note}%
12721 \iffieldundef{howpublished}{}{\nopunct\printfield{howpublished}}%
12722 \newunit\newblock
12723 \iftoggle{blx@ox@ms}{%
12724 \usebibmacro{manuscript:date}%
12725 \newunit\newblock
12726 \usebibmacro{library+location+series+number}%
12727 \newunit
12728 \printfield{support}%
12729 \newunit
12730 \usebibmacro{dating}%
12731 \setunit{\datingpagespunct}
12732 \usebibmacro{manuscript:pages}
12733 }{%
12734 \usebibmacro{location+date}%
12735 }%
12736 \newunit\newblock
12737 \iftoggle{bbx:url}
12738 {\usebibmacro{url+urldate}}
12739 {}%
12740 \newunit\newblock
12741 \usebibmacro{addendum+pubstate}%
12742 \iftoggle{bbx:related}
12743 {\usebibmacro{related:init}%
12744 \usebibmacro{related}}
12745 {}%
12746 \setunit{\bibpagerefpunct}\newblock
12747 \usebibmacro{pageref}%
12748 \usebibmacro{finentry}}
12749 \DeclareFieldFormat[letter]{title}{%
12750 \def\currentfield{title}%
12751 \iffieldannotation{descriptor}{#1}{\mkbibquote{#1\isdot}}%
12752 \undef\currentfield}
12753 \DeclareFieldFormat[letter]{date}{%
12754 \iffieldundef{url}{#1}{\mkbibparens{#1}}}
12755 % \end{macrocode}
12756 %
12757 % \subsection{Related entries}
12758 %
12759 % We make the punctuation before related items configurable in remaining drivers
12760 % inherited from the standard style, and move the |pageref| macro to the end.
12761 %
12762 % \begin{macrocode}
12763 \xpatchbibdriver{booklet}{%
12764 \setunit{\bibpagerefpunct}\newblock
12765 \usebibmacro{pageref}%
12766 \newunit\newblock
12767 \iftoggle{bbx:related}
12768 {\usebibmacro{related:init}%
12769 \usebibmacro{related}}
12770 {}%
12771 }{%
12772 \iftoggle{bbx:related}
12773 {\usebibmacro{related:init}%
12774 \usebibmacro{related}}
12775 {}%
12776 \setunit{\bibpagerefpunct}\newblock
12777 \usebibmacro{pageref}%
12778 }{}{\wlog{WARNING: biblatex-oxref failed to patch booklet}}
12779 % \end{macrocode}
12780 % \begin{macrocode}
12781 \xpatchbibdriver{misc}{%
12782 \setunit{\bibpagerefpunct}\newblock
12783 \usebibmacro{pageref}%
12784 \newunit\newblock
12785 \iftoggle{bbx:related}
12786 {\usebibmacro{related:init}%
12787 \usebibmacro{related}}
12788 {}%
12789 }{%
12790 \iftoggle{bbx:related}
12791 {\usebibmacro{related:init}%
12792 \usebibmacro{related}}
12793 {}%
12794 \setunit{\bibpagerefpunct}\newblock
12795 \usebibmacro{pageref}%
12796 }{}{\wlog{WARNING: biblatex-oxref failed to patch misc}}
12797 % \end{macrocode}
12798 %
12799 % We provide an option for setting the relatedtype punctuation.
12800 %
12801 % \begin{macrocode}
12802 \DeclareDelimFormat{begrelateddelimamendedby}{\addcomma\space}
12803 \DeclareDelimFormat{begrelateddelimequals}{\addspace}
12804 \DeclareDelimFormat{begrelateddelimin}{\addcomma\space}
12805 \DeclareDelimFormat{begrelateddelimincludes}{\addcomma\space}
12806 \DeclareDelimFormat{begrelateddelimreprintfrom}{\addperiod\space}
12807 \DeclareDelimFormat{begrelateddelimreviewof}{\newunitpunct}
12808 \DeclareDelimFormat{begrelateddelimtranslationof}{\addspace}
12809 \DeclareDelimFormat{begrelateddelimmultivolume}{\newunitpunct}
12810 \DeclareDelimFormat{relateddelimmultivolume}{\newunitpunct}
12811 \newtoggle{blx@ox@success}
12812 \DeclareBiblatexOption{global,type}[string]{relationpunct}[semicolon]{%
12813 \bgroup\blx@blxinit
12814 \ifcsdef{add#1}{\global\toggletrue{blx@ox@success}}{%
12815 \global\togglefalse{blx@ox@success}%
12816 \PackageError{biblatex-oxref}{%
12817 Invalid option 'relationpunct=#1'%
12818 }{%
12819 Valid values are 'dot', 'comma', 'semicolon', 'colon',\MessageBreak
12820 'period', 'exclam', 'question', and 'space'.}}%
12821 \egroup
12822 \iftoggle{blx@ox@success}{\ifstrequal{#1}{space}{%
12823 \DeclareDelimFormat{begrelateddelim}{\addspace}%
12824 }{%
12825 \DeclareDelimFormat{begrelateddelim}{\csuse{add#1}\space}}%
12826 }{}}
12827 \DeclareEntryOption[string]{relationpunct}[semicolon]{%
12828 \bgroup\blx@blxinit
12829 \ifcsdef{add#1}{\global\toggletrue{blx@ox@success}}{%
12830 \global\togglefalse{blx@ox@success}%
12831 \PackageError{biblatex-oxref}{%
12832 Invalid option 'relationpunct=#1'%
12833 }{%
12834 Valid values are 'dot', 'comma', 'semicolon', 'colon',\MessageBreak
12835 'period', 'exclam', 'question', and 'space'.}}%
12836 \egroup
12837 \iftoggle{blx@ox@success}{\ifstrequal{#1}{space}{%
12838 \DeclareDelimFormat{begrelateddelim}{\addspace}%
12839 \DeclareDelimFormat{begrelateddelimamendedby}{\addspace}
12840 \DeclareDelimFormat{begrelateddelimequals}{\addspace}%
12841 \DeclareDelimFormat{begrelateddelimin}{\addspace}%
12842 \DeclareDelimFormat{begrelateddelimincludes}{\addspace}%
12843 \DeclareDelimFormat{begrelateddelimreprintfrom}{\addspace}%
12844 \DeclareDelimFormat{begrelateddelimreviewof}{\addspace}%
12845 \DeclareDelimFormat{begrelateddelimtranslationof}{\addspace}%
12846 \DeclareDelimFormat{begrelateddelimmultivolume}{\addspace}%
12847 }{%
12848 \DeclareDelimFormat{begrelateddelim}{\csuse{add#1}\space}%
12849 \DeclareDelimFormat{begrelateddelimamendedby}{\csuse{add#1}\space}
12850 \DeclareDelimFormat{begrelateddelimequals}{\csuse{add#1}\space}%
12851 \DeclareDelimFormat{begrelateddelimin}{\csuse{add#1}\space}%
12852 \DeclareDelimFormat{begrelateddelimincludes}{\csuse{add#1}\space}%
12853 \DeclareDelimFormat{begrelateddelimreprintfrom}{\csuse{add#1}\space}%
12854 \DeclareDelimFormat{begrelateddelimreviewof}{\csuse{add#1}\space}%
12855 \DeclareDelimFormat{begrelateddelimtranslationof}{\csuse{add#1}\space}%
12856 \DeclareDelimFormat{begrelateddelimmultivolume}{\csuse{add#1}\space}}%
12857 }{}}
12858 \ExecuteBibliographyOptions{relationpunct}
12859 \newcounter{blx@ox@relitem}
12860 \xapptobibmacro{begrelated}{%
12861 \setcounter{blx@ox@relitem}{0}%
12862 }{}{\wlog{WARNING: biblatex-oxref failed to append to begrelated}}
12863 % \end{macrocode}
12864 %
12865 % We provide an option to prevent a related item beginning with "in".
12866 %
12867 % \begin{macrocode}
12868 \newtoggle{blx@ox@norelin}
12869 \DeclareBiblatexOption{global,type,entry}{norelatedin}[true]{%
12870 \settoggle{blx@ox@norelin}{#1}}
12871 \xapptobibmacro{begrelatedloop}{%
12872 \iftoggle{blx@ox@norelin}{%
12873 \renewbibmacro*{in:}{%
12874 \ifboolexpr{
12875 test {\iffieldequalstr{entrysubtype}{yearbook}}
12876 or (
12877 test {\ifnameundef{author}}
12878 and
12879 test {\ifnameundef{translator}}
12880 and
12881 test {\iffieldundef{title}}
12882 )}{}{%
12883 \bibstring{in}%
12884 \printunit{\intitlepunct}%
12885 }}}{}%
12886 }{}{\wlog{WARNING: biblatex-oxref failed to append to begrelatedloop}}
12887
12888 % \end{macrocode}
12889 %
12890 % \subsubsection{Translations}
12891 %
12892 % Where the related item is the translation, the related string is (by default,
12893 % in English at least) prefaced with the language.
12894 %
12895 % \begin{macrocode}
12896 \newbibmacro*{rellanguage}{%
12897 \def\do##1{%
12898 \entrydata{##1}{%
12899 \printlist{language}}}%
12900 \docsvfield{related}%
12901 }
12902 \DeclareFieldFormat{relatedstring:translationof}{%
12903 \iffieldundef{relatedstring}{%
12904 \blx@ox@langbibstring{\usebibmacro{rellanguage}}{original}%
12905 \printunit{\addcomma\space}
12906 }{%
12907 \thefield{relatedstring}\printunit{\relatedpunct}}}
12908
12909 \DeclareFieldFormat{related:translationof}{%
12910 \mkbibbrackets{#1}}
12911 % \end{macrocode}
12912 %
12913 % \subsubsection{Co-publications}
12914 %
12915 % This relation simply prints what would go in the publication block.
12916 %
12917 % \begin{macrocode}
12918 \newbibmacro*{related:copub}[1]{%
12919 \entrydata*{#1}{%
12920 \usebibmacro{publisher+location+date}%
12921 \setunit{\relateddelim}}}
12922 % \end{macrocode}
12923 %
12924 % \subsubsection{Reprints}
12925 %
12926 % The standard styles define a special driver for the |reprintfrom| relation.
12927 % For \pkg[biblatex]{oxref}, the standard generic driver is sufficient, so this code
12928 % reverts the specialization.
12929 %
12930 % \begin{macrocode}
12931 \renewbibmacro*{related:reprintfrom}[1]{%
12932 \entrydata*{#1}{%
12933 \nopunct
12934 \usedriver{%
12935 \ifnameundef{savedauthor}{%
12936 \ifnameundef{savededitor}{}{%
12937 \ifnamesequal{editor}{savededitor}{%
12938 \clearname{editor}%
12939 }{}}%
12940 }{%
12941 \ifnamesequal{author}{savedauthor}{%
12942 \clearname{author}%
12943 }{}}%
12944 \iffieldundef{savedtitle}{}{%
12945 \iffieldsequal{savedtitle}{title}{%
12946 \clearfield{title}%
12947 }{}}%
12948 \renewbibmacro*{related:init}{}%
12949 \DeclareNameAlias{sortname}{default}%
12950 \ifbibmacroundef{date+extradate}{}{%
12951 \renewbibmacro*{date+extradate}{}%
12952 \renewbibmacro*{date}{\printdate}}%
12953 \renewbibmacro*{pageref}{}%
12954 }{%
12955 \thefield{entrytype}}}}
12956 % \end{macrocode}
12957 %
12958 % \subsubsection{Articles that span issues}
12959 %
12960 % If an article spans several issues of a journal, we print the second
12961 % reference after the first, omitting any information in common.
12962 %
12963 % \begin{macrocode}
12964 \newbibmacro*{related:serialarticle}[1]{%
12965 \entrydata*{#1}{%
12966 \iffieldundef{savedjournaltitle}{}{%
12967 \iffieldsequal{journaltitle}{savedjournaltitle}{%
12968 \clearfield{journaltitle}%
12969 }{}}%
12970 \iffieldundef{savedjournalsubtitle}{}{%
12971 \iffieldsequal{journalsubtitle}{savedjournalsubtitle}{%
12972 \clearfield{journalsubtitle}%
12973 }{}}%
12974 \iffieldundef{savedseries}{}{%
12975 \iffieldsequal{series}{savedseries}{%
12976 \clearfield{series}%
12977 }{}}%
12978 \iffieldundef{savedyear}{\clearfield{year}}{
12979 \iffieldsequal{year}{savedyear}{%
12980 \clearfield{year}%
12981 }{}}%
12982 \usebibmacro{journal+issuetitle}%
12983 \newunit
12984 \usebibmacro{note+pages}%
12985 \newunit\newblock
12986 \usebibmacro{doi+eprint+url}%
12987 \newunit\newblock
12988 \usebibmacro{addendum+pubstate}}}
12989 % \end{macrocode}
12990 %
12991 % \subsubsection{Reviews}
12992 %
12993 % We ensure that the field formatting for |review| entries matches that
12994 % for |article| entries.
12995 %
12996 % \begin{macrocode}
12997 \DeclareFieldFormat[review]{title}{\mkbibquote{#1\isdot}}
12998 \DeclareFieldFormat[review]{volume}{#1}% volume of a journal
12999 \DeclareFieldFormat[review]{number}{#1}% number of a journal
13000 \DeclareFieldFormat[review]{series}{% series of a journal
13001 \ifinteger{#1}
13002 {\mkbibordseries{#1}~\bibstring{jourser}}
13003 {\ifbibstring{#1}{\bibstring{#1}}{#1}}}
13004 % \end{macrocode}
13005 %
13006 % We take advantage of the Biber-specific mechanism of relating items
13007 % in order to handle reviews. Compared to the default code, this is
13008 % simpler in that we don't check for repeated authors\slash editors (it
13009 % would be a rather biased review!), we directly set the author format,
13010 % and we don't nullify the \code{date+extradate} macro.
13011 %
13012 % \begin{macrocode}
13013 \newbibmacro*{related:reviewof}[1]{%
13014 \entrydata*{#1}{%
13015 \usedriver{%
13016 \renewbibmacro*{related:init}{}%
13017 \DeclareNameAlias{author}{given-family}%
13018 \renewbibmacro*{pageref}{}%
13019 }{\thefield{entrytype}}%
13020 }%
13021 }
13022 % \end{macrocode}
13023 %
13024 % Since a review is a special kind of journal article, the |review|
13025 % driver is based on the |article| one, the difference being that the
13026 % |related| macro comes just before |journal+issuetitle|. Oxford style
13027 % links the two with \enquote{in}.
13028 %
13029 % \begin{macrocode}
13030 \DeclareBibliographyDriver{review}{%
13031 \usebibmacro{bibindex}%
13032 \usebibmacro{begentry}%
13033 \usebibmacro{author/translator+others}%
13034 \setunit{\printdelim{nametitledelim}}\newblock
13035 \usebibmacro{title}%
13036 \setunit{\titlebyauthordelim}\newblock
13037 \usebibmacro{byauthor}%
13038 \newunit\newblock
13039 \usebibmacro{bytranslator+others}%
13040 \newunit\newblock
13041 \printfield{version}%
13042 \newunit\newblock
13043 \iftoggle{bbx:related}{%
13044 \usebibmacro{related:init}%
13045 \usebibmacro{related}%
13046 }{}%
13047 \newunit\newblock
13048 \usebibmacro{in:}%
13049 \setunit{\addspace}%
13050 \usebibmacro{journal+issuetitle}%
13051 \newunit
13052 \usebibmacro{byeditor+others}%
13053 \iffieldundef{note}%
13054 {\newunit}%
13055 {\setunit{\addsemicolon\addspace}}%
13056 \usebibmacro{note+pages}%
13057 \newunit\newblock
13058 \iftoggle{bbx:isbn}
13059 {\printfield{issn}}
13060 {}%
13061 \newunit\newblock
13062 \usebibmacro{doi+eprint+url}%
13063 \newunit\newblock
13064 \usebibmacro{addendum+pubstate}%
13065 \setunit{\bibpagerefpunct}\newblock
13066 \usebibmacro{pageref}%
13067 \usebibmacro{finentry}}
13068
13069 % \end{macrocode}
13070 %
13071 % \subsubsection{Multiple volumes}
13072 %
13073 % Standard \textsf{biblatex} provides the \code{multivolume} relation for
13074 % different volumes of the same work that have slightly different publication
13075 % details, but it doesn't quite work for Oxford style. This works better.
13076 %
13077 % \begin{macrocode}
13078 \DeclareFieldFormat{related:multivolume}{#1}
13079 \renewbibmacro*{related:multivolume}[1]{%
13080 \entrydata*{#1}{%
13081 \printtext{%
13082 \printfield{volume}%
13083 \printfield{part}%
13084 \iffieldsequal{savedtitle}{title}{}{%
13085 \setunit{\addcolon\space}%
13086 \usebibmacro{title}}%
13087 }%
13088 \setunit*{\addspace}%
13089 \iffieldsequal{savedseries}{series}{\clearfield{series}}{}%
13090 \iffieldsequal{savednumber}{number}{\clearfield{number}}{}%
13091 \iffieldsequal{savededition}{edition}{\clearfield{edition}}{}%
13092 \ifboolexpr{
13093 test {\iflistsequal{savedpublisher}{publisher}}
13094 and
13095 test {\iflistsequal{savedlocation}{location}}
13096 }{\clearlist{publisher}\clearlist{location}}{}%
13097 \iffieldsequal{saveddate}{date}{\clearfield{date}}{}%
13098 \usebibmacro{series+number+edition+publisher+location+date}%
13099 }}
13100
13101 % \end{macrocode}
13102 %
13103 % \subsubsection{Related editions}
13104 %
13105 % This macro is based on the \enquote{bytranslator} one, but more general.
13106 % Note that |\mkrelatedstringtext| was introduced in \pkg{biblatex} v3.16,
13107 % so we backport it if an earlier version is used.
13108 %
13109 % \begin{macrocode}
13110 \providecommand*{\mkrelatedstringtext}[1]{{{\mainlang #1}}}
13111 \newbibmacro*{related:editedas}[1]{%
13112 \entrydata{#1}{%
13113 \renewbibmacro*{name:hook}[1]{%
13114 \ifnumequal{\value{listcount}}{1}
13115 {\mkrelatedstringtext{\lbx@initnamehook{#1}}}
13116 {}}%
13117 \printfield{edition}%
13118 \setunit{\addspace}%
13119 \usebibmacro{byeditor+others}%
13120 \setunit*{\addcomma\space\bibstring[\mkrelatedstringtext]{astitle}\space}%
13121 \usebibmacro{maintitle+title}%
13122 \setunit{\addspace}%
13123 \printfield{note}%
13124 \newunit\newblock
13125 \printfield{volumes}%
13126 \newunit
13127 \usebibmacro{series+number+publisher+location+date}}}
13128 \renewbibmacro*{related:bytranslator}[1]{%
13129 \entrydata{#1}{%
13130 \renewbibmacro*{name:hook}[1]{%
13131 \ifnumequal{\value{listcount}}{1}
13132 {\mkrelatedstringtext{\lbx@initnamehook{#1}}}
13133 {}}%
13134 \printnames[bytranslator]{translator}%
13135 \setunit*{\addspace\bibstring[\mkrelatedstringtext]{astitle}\space}%
13136 \usebibmacro{maintitle+title}%
13137 \setunit{\addspace}%
13138 \printfield{note}%
13139 \newunit\newblock
13140 \printfield{volumes}%
13141 \newunit
13142 \usebibmacro{series+number+publisher+location+date}}}
13143
13144 % \end{macrocode}
13145 %
13146 % \subsubsection{Joint releases}
13147 %
13148 % We provide support for CDs (for example) which contain more than one work.
13149 %
13150 % \begin{macrocode}
13151 \newbibmacro*{related:includes}[1]{%
13152 \stepcounter{blx@ox@relitem}%
13153 \ifnumequal{\value{blx@ox@relitem}}{\value{bbx:relatedtotal}}%
13154 {\bibstring{and}\addspace}{}%
13155 \entrydata{#1}{%
13156 \ifbibmacroundef{date+extradate}{}{%
13157 \renewbibmacro*{date+extradate}{}}%
13158 \usebibmacro{author}%
13159 \setunit{\printdelim{nametitledelim}}\newblock
13160 \usebibmacro{title}}}
13161 % \end{macrocode}
13162 %
13163 % \subsubsection{Subitems}
13164 %
13165 % We provide support for items in items in items. The outer two layers should
13166 % be taken care of with an |incollection| entry or equivalent. The innermost
13167 % item should be a |misc| entry. While we're at it, we provide descriptor
13168 % support for |misc| entries.
13169 %
13170 % \begin{macrocode}
13171 \DeclareFieldFormat[misc]{title}{%
13172 \def\currentfield{title}%
13173 \iffieldannotation{descriptor}{#1}{%
13174 \iffieldequalstr{relatedtype}{in}{%
13175 \mkbibquote{#1\isdot}%
13176 }{%
13177 \mkbibemph{#1}%
13178 }}%
13179 \undef\currentfield}
13180 \newbibmacro*{related:in}[1]{%
13181 \entrydata*{#1}{%
13182 \usedriver
13183 {\ifnameundef{savedauthor}
13184 {\ifnameundef{savededitor}
13185 {}
13186 {\ifnamesequal{editor}{savededitor}
13187 {\clearname{editor}}
13188 {}}}
13189 {\ifnamesequal{author}{savedauthor}
13190 {\clearname{author}}
13191 {}}%
13192 \renewbibmacro*{related:init}{}%
13193 \DeclareNameAlias{sortname}{default}%
13194 \ifbibmacroundef{date+extradate}
13195 {}
13196 {\renewbibmacro*{date+extradate}{}%
13197 \renewbibmacro*{date}{\printdate}}%
13198 \renewbibmacro*{pageref}{}}
13199 {\thefield{entrytype}}%
13200 \ifboolexpr{
13201 test {\iffieldundef{pages}}
13202 or
13203 test {\iffieldundef{savedpages}}
13204 }{%
13205 \newunit\newblock
13206 }{%
13207 \setunit{\addspace}%
13208 \bibstring{thiscite}%
13209 \printunit{\addspace}%
13210 }%
13211 }%
13212 \usebibmacro{chapter+pages}%
13213 }
13214
13215 % \end{macrocode}
13216 %
13217 % \subsection{Source maps}
13218 %
13219 % We use the source mapping capabilities of Biber to fix the following issues.
13220 %
13221 % \begin{macrocode}
13222 \DeclareStyleSourcemap{%
13223 \maps[datatype=bibtex]{%
13224 % \end{macrocode}
13225 %
13226 % \subsubsection{Sort order}
13227 %
13228 % |proceedings| and |mvproceedings| entries allow an organization to be printed
13229 % in the author position.
13230 %
13231 % \begin{macrocode}
13232 \map{
13233 \pertype{proceedings}
13234 \pertype{mvproceedings}
13235 \step[notfield=author,
13236 fieldsource=organization,
13237 fieldtarget=author]
13238 }
13239 % \end{macrocode}
13240 %
13241 % \subsubsection{Descriptors}
13242 %
13243 % This map provides a helpful \code{descriptor} field that can simplify the
13244 % provision of descriptors, being notes that can act as titles.
13245 %
13246 % \begin{macrocode}
13247 \map[overwrite=false]{
13248 \step[fieldsource=descriptor, final]
13249 \step[notfield=title,
13250 fieldset=title+an,
13251 fieldvalue={=descriptor}]
13252 \step[notfield=title,
13253 fieldsource=descriptor,
13254 fieldtarget=title]
13255 \step[fieldsource=descriptor,
13256 fieldtarget=note]
13257 }
13258 % \end{macrocode}
13259 %
13260 % \subsubsection{Pseudonyms and inferred authorship}
13261 %
13262 % These help ensure compatibility with \textsf{biblatex-realauthor}.
13263 %
13264 % \begin{macrocode}
13265 \map[overwrite=false]{
13266 \step[fieldsource=realauthor, final]
13267 \step[notfield=author,
13268 fieldset=author+an,
13269 fieldvalue={=inferred}]
13270 \step[notfield=author,
13271 fieldsource=realauthor,
13272 fieldtarget=author]
13273 \step[fieldsource=realauthor,
13274 fieldtarget=authoraddon]
13275 }
13276 \map[overwrite=false]{
13277 \step[fieldsource=realeditor, final]
13278 \step[notfield=editor,
13279 fieldset=editor+an,
13280 fieldvalue={=inferred}]
13281 \step[notfield=editor,
13282 fieldsource=realeditor,
13283 fieldtarget=editor]
13284 \step[fieldsource=realeditor,
13285 fieldtarget=editoraddon]
13286 }
13287 % \end{macrocode}
13288 %
13289 % \subsubsection{Editors as joint authors}
13290 %
13291 % This map provides a more portable interface for declaring a translator
13292 % or revisor to be a joint author.
13293 %
13294 % \begin{macrocode}
13295 \map[overwrite=false]{
13296 \step[fieldsource=editor+an,
13297 match=\regexp{=jointauthor},
13298 final]
13299 \step[fieldsource=editor,
13300 fieldtarget=jointauthor]
13301 \step[fieldsource=editortype,
13302 fieldtarget=jointauthortype]
13303 }
13304 \map[overwrite=false]{
13305 \step[fieldsource=translator+an,
13306 match=\regexp{=jointauthor},
13307 final]
13308 \step[fieldsource=translator,
13309 fieldtarget=jointauthor]
13310 \step[fieldset=jointauthortype,
13311 fieldvalue={=translator}]
13312 }
13313 % \end{macrocode}
13314 %
13315 % \subsubsection{Standards}
13316 %
13317 % The purpose of this map is to move the number to the head of the reference
13318 % in the absence of an author, and try to fix the sorting accordingly.
13319 %
13320 % \begin{macrocode}
13321 \map[overwrite=false]{
13322 \pertype{standard}
13323 \step[notfield=author,
13324 fieldsource=number,
13325 final]
13326 \step[fieldset=sortkey,
13327 origfieldval]
13328 }
13329 % \end{macrocode}
13330 %
13331 % \subsubsection{Audiovisual materials}
13332 %
13333 % For audiovisual materials, |origdatetype| defaults to \enquote{recorded}.
13334 %
13335 % \begin{macrocode}
13336 \map[overwrite=false]{
13337 \pertype{audio}
13338 \pertype{music}
13339 \pertype{movie}
13340 \pertype{video}
13341 \pertype{inaudio}
13342 \pertype{inmusic}
13343 \pertype{inmovie}
13344 \pertype{invideo}
13345 \step[fieldset=origdatetype,fieldvalue={recorded}]
13346 }
13347 % \end{macrocode}
13348 %
13349 % \subsubsection{Legal references}
13350 %
13351 % These help ensure compatibility with \pkg{oscola}.
13352 %
13353 % \begin{macrocode}
13354 \map[overwrite=false]{
13355 \pertype{jurisdiction}
13356 \step[fieldsource=reporter,
13357 fieldtarget=journaltitle]
13358 \step[fieldsource=court,
13359 fieldtarget=institution]
13360 \step[fieldsource=additionalreports,
13361 fieldtarget=listb]
13362 \step[fieldsource=ecli,
13363 fieldtarget=verba]
13364 }%
13365 \map[overwrite=false]{
13366 \pertype{legal}
13367 \step[fieldsource=reporter,
13368 fieldtarget=journaltitle]
13369 }
13370 \map[overwrite=true]{
13371 \pertype{legal}
13372 \step[fieldsource=parties,
13373 fieldtarget=institution]
13374 \step[fieldsource=execution,
13375 fieldtarget=lista]
13376 }
13377 % \end{macrocode}
13378 %
13379 % This is how \pkg{oscola} removes dots from entries.
13380 %
13381 % \begin{macrocode}
13382 \map[overwrite=true]{
13383 \pertype{jurisdiction}
13384 \pertype{legislation}
13385 \pertype{legal}
13386 \step[fieldsource=title,
13387 match=\regexp{(\d)\.(\d)},
13388 replace=\regexp{$1.$2}]
13389 \step[fieldsource=title,
13390 match=\regexp{(\D)\.(\d)},
13391 replace=\regexp{$1 $2}]
13392 \step[fieldsource=title,
13393 match=\regexp{(?:\A|[^{])\K\.([^\d}])},
13394 replace=\regexp{$1}]
13395 \step [fieldsource=title,
13396 match=\regexp{([^\d{])\.(?![}])},
13397 replace=\regexp{$1}]
13398 \step[fieldsource=shorttitle,
13399 match=\regexp{(\d)\.(\d)},
13400 replace=\regexp{$1.$2}]
13401 \step[fieldsource=shorttitle,
13402 match=\regexp{(\D)\.(\d)},
13403 replace=\regexp{$1 $2}]
13404 \step[fieldsource=shorttitle,
13405 match=\regexp{(?:\A|[^{])\K\.([^\d}])},
13406 replace=\regexp{$1}]
13407 \step [fieldsource=shorttitle,
13408 match=\regexp{([^\d{])\.(?![}])},
13409 replace=\regexp{$1}]
13410 \step[fieldsource=parreporter,
13411 match=\regexp{(\d)\.(\d)},
13412 replace=\regexp{$1.$2}]
13413 \step[fieldsource=parreporter,
13414 match=\regexp{(\D)\.(\d)},
13415 replace=\regexp{$1 $2}]
13416 \step[fieldsource=parreporter,
13417 match=\regexp{(?:\A|[^{])\K\.([^\d}])},
13418 replace=\regexp{$1}]
13419 \step [fieldsource=parreporter,
13420 match=\regexp{([^\d{])\.(?![}])},
13421 replace=\regexp{$1}]
13422 \step[fieldsource=journaltitle,
13423 match=\regexp{(\d)\.(\d)},
13424 replace=\regexp{$1.$2}]
13425 \step[fieldsource=journaltitle,
13426 match=\regexp{(\D)\.(\d)},
13427 replace=\regexp{$1 $2}]
13428 \step[fieldsource=journaltitle,
13429 match=\regexp{(?:\A|[^{])\K\.([^\d}])},
13430 replace=\regexp{$1}]
13431 \step [fieldsource=journaltitle,
13432 match=\regexp{([^\d{])\.(?![}])},
13433 replace=\regexp{$1}]
13434 \step[fieldsource=institution,
13435 match=\regexp{(\d)\.(\d)},
13436 replace=\regexp{$1.$2}]
13437 \step[fieldsource=institution,
13438 match=\regexp{(\D)\.(\d)},
13439 replace=\regexp{$1 $2}]
13440 \step[fieldsource=institution,
13441 match=\regexp{(?:\A|[^{])\K\.([^\d}])},
13442 replace=\regexp{$1}]
13443 \step[fieldsource=institution,
13444 match=\regexp{([^\d{])\.(?![}])},
13445 replace=\regexp{$1}]
13446 \step[fieldsource=publisher,
13447 match=\regexp{(\d)\.(\d)},
13448 replace=\regexp{$1.$2}]
13449 \step[fieldsource=publisher,
13450 match=\regexp{(\D)\.(\d)},
13451 replace=\regexp{$1 $2}]
13452 \step[fieldsource=publisher,
13453 match=\regexp{(?:\A|[^{])\K\.([^\d}])},
13454 replace=\regexp{$1}]
13455 \step [fieldsource=publisher,
13456 match=\regexp{([^\d{])\.(?![}])},
13457 replace=\regexp{$1}]
13458 \step[fieldsource=location,
13459 match=\regexp{(\d)\.(\d)},
13460 replace=\regexp{$1.$2}]
13461 \step[fieldsource=location,
13462 match=\regexp{(\D)\.(\d)},
13463 replace=\regexp{$1 $2}]
13464 \step[fieldsource=location,
13465 match=\regexp{(?:\A|[^{])\K\.([^\d}])},
13466 replace=\regexp{$1}]
13467 \step [fieldsource=location,
13468 match=\regexp{([^\d{])\.(?![}])},
13469 replace=\regexp{$1}]
13470 \step[fieldsource=series,
13471 match=\regexp{(\d)\.(\d)},
13472 replace=\regexp{$1.$2}]
13473 \step[fieldsource=series,
13474 match=\regexp{(\D)\.(\d)},
13475 replace=\regexp{$1 $2}]
13476 \step[fieldsource=series,
13477 match=\regexp{(?:\A|[^{])\K\.([^\d}])},
13478 replace=\regexp{$1}]
13479 \step [fieldsource=series,
13480 match=\regexp{([^\d{])\.(?![}])},
13481 replace=\regexp{$1}]
13482 \step[fieldsource=indextitle,
13483 match=\regexp{(\d)\.(\d)},
13484 replace=\regexp{$1.$2}]
13485 \step[fieldsource=indextitle,
13486 match=\regexp{(\D)\.(\d)},
13487 replace=\regexp{$1 $2}]
13488 \step[fieldsource=indextitle,
13489 match=\regexp{(?:\A|[^{])\K\.([^\d}])},
13490 replace=\regexp{$1}]
13491 \step [fieldsource=indextitle,
13492 match=\regexp{([^\d{])\.(?![}])},
13493 replace=\regexp{$1}]
13494 }
13495 % \end{macrocode}
13496 %
13497 % If |casenumber| is given, it is converted to |number| or, if the |number| is
13498 % already set, |userb|.
13499 %
13500 % \begin{macrocode}
13501 \map[overwrite=false]{
13502 \step[fieldsource=casenumber, final]
13503 \step[notfield=number, fieldsource=casenumber, fieldtarget=number]
13504 \step[fieldsource=casenumber, fieldtarget=userb]
13505 }
13506 }%
13507 }
13508
13509 % \end{macrocode}
13510 %
13511 % \subsection{Sorting schemes}
13512 %
13513 % We adjust the sort order to take into account some other fields that might
13514 % end up at the front (library, collection, series). The `|nty|` scheme is used
13515 % by \textsf{oxnotes}.
13516 %
13517 % \begin{macrocode}
13518 \DeclareSortingTemplate{nty}{
13519 \sort{
13520 \field{presort}
13521 }
13522 \sort[final]{
13523 \field{sortkey}
13524 }
13525 \sort{
13526 \field{sortname}
13527 \field{author}
13528 \field{editor}
13529 \field{translator}
13530 \field{sorttitle}
13531 \field{title}
13532 \field{library}
13533 }
13534 \sort{
13535 \field{sorttitle}
13536 \field{title}
13537 }
13538 \sort{
13539 \field{sortyear}
13540 \field{year}
13541 }
13542 \sort{
13543 \field{volume}
13544 \literal{0}
13545 }
13546 \sort{
13547 \field{location}
13548 }
13549 \sort{
13550 \field{collection}
13551 \field{series}
13552 }
13553 }
13554 % \end{macrocode}
13555 %
13556 % The `|nyt|` scheme is used by \textsf{oxyear}.
13557 %
13558 % \begin{macrocode}
13559 \DeclareSortingTemplate{nyt}{
13560 \sort{
13561 \field{presort}
13562 }
13563 \sort[final]{
13564 \field{sortkey}
13565 }
13566 \sort{
13567 \field{sortname}
13568 \field{author}
13569 \field{editor}
13570 \field{translator}
13571 \field{sorttitle}
13572 \field{title}
13573 \field{library}
13574 }
13575 \sort{
13576 \field{sortyear}
13577 \field{labelyear}
13578 \field{year}
13579 }
13580 \sort{
13581 \field{sorttitle}
13582 \field{title}
13583 }
13584 \sort{
13585 \field{volume}
13586 \literal{0}
13587 }
13588 \sort{
13589 \field{location}
13590 }
13591 \sort{
13592 \field{collection}
13593 \field{series}
13594 }
13595 }
13596 % \end{macrocode}
13597 %
13598 % The `|anyt|` scheme is used by \textsf{oxalph}.
13599 %
13600 % \begin{macrocode}
13601 \DeclareSortingTemplate{anyt}{
13602 \sort{
13603 \field{presort}
13604 }
13605 \sort{
13606 \field{labelalpha}
13607 }
13608 \sort[final]{
13609 \field{sortkey}
13610 }
13611 \sort{
13612 \field{sortname}
13613 \field{author}
13614 \field{editor}
13615 \field{translator}
13616 \field{sorttitle}
13617 \field{title}
13618 \field{library}
13619 }
13620 \sort{
13621 \field{sortyear}
13622 \field{labelyear}
13623 \field{year}
13624 }
13625 \sort{
13626 \field{sorttitle}
13627 \field{title}
13628 }
13629 \sort{
13630 \field{volume}
13631 \literal{0}
13632 }
13633 \sort{
13634 \field{location}
13635 }
13636 \sort{
13637 \field{collection}
13638 \field{series}
13639 }
13640 }
13641 % \end{macrocode}
13642 %
13643 % The following entry types never put editors first.
13644 %
13645 % \begin{macrocode}
13646 \ExecuteBibliographyOptions
13647 [proceedings,report,artwork,audio,image,music,movie,performance,video,%
13648 manuscript,unpublished,review]{useeditor=false}
13649 % \end{macrocode}
13650 %
13651 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13652 %</o>
13653 %<*n>
13654 %<*default>
13655 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13656 %
13657 % \section{Notes style: oxnotes.bbx}
13658 %
13659 % \setcounter{FancyVerbLine}{19}
13660 %
13661 % \subsection{Preliminaries}
13662 %
13663 % First we load the common \pkg[biblatex]{oxref} features.
13664 %
13665 % \begin{macrocode}
13666 \RequireBibliographyStyle{oxref}
13667 % \end{macrocode}
13668 %
13669 % \subsection{Names}
13670 %
13671 % We apply our special name format to names likely to appear at the start of
13672 % an entry.
13673 %
13674 % \begin{macrocode}
13675 \DeclareNameAlias{author}{bib-family-given/cite-given-family}
13676 \DeclareNameAlias[related:reviewof]{author}{given-family}
13677 \DeclareNameAlias{editor}{bib-family-given/cite-given-family}
13678 \DeclareNameAlias[related:reviewof]{editor}{given-family}
13679 % \end{macrocode}
13680 %
13681 % We ensure the printing of the |anon| localization string matches.
13682 %
13683 % \begin{macrocode}
13684 \xpatchbibmacro{author}{%
13685 \iftoggle{blx@ox@abbranon}{\bibcpsstring{anon}}{\bibcplstring{anon}}%
13686 }{%
13687 \iftoggle{blx@ox@abbranon}{%
13688 \iftoggle{blx@ox@scnames}{\bibcpsstring[\textsc]{anon}}{\bibcpsstring{anon}}%
13689 }{%
13690 \iftoggle{blx@ox@scnames}{\bibcplstring[\textsc]{anon}}{\bibcplstring{anon}}%
13691 }%
13692 }{}{\wlog{WARNING: biblatex-oxref (oxnotes) failed to patch author}}
13693 % \end{macrocode}
13694 %
13695 % \subsection{Multivolume dates}
13696 %
13697 % For the very particular use case of breaking down multivolume works into
13698 % their constituent volumes, we remove the overall date, assuming that the
13699 % individual volume dates will be used instead.
13700 %
13701 % \begin{macrocode}
13702 \xpretobibmacro{series+number+edition+publisher+location+date}{%
13703 \iffieldequalstr{relatedtype}{multivolume}{%
13704 \clearfield{year}\clearfield{month}\clearfield{day}%
13705 }{}}{}{}
13706 % \end{macrocode}
13707 %
13708 % \subsection{Source maps}
13709 %
13710 % \begin{macrocode}
13711 \DeclareStyleSourcemap{%
13712 \maps[datatype=bibtex]{%
13713 % \end{macrocode}
13714 %
13715 % \subsubsection{Sort order}
13716 %
13717 % For entry types that print the |maintitle| and |volume| before the |title|,
13718 % we need to make sure this is reflected in the sort order.
13719 %
13720 % \begin{macrocode}
13721 \map{
13722 \pertype{mvbook}
13723 \pertype{mvcollection}
13724 \pertype{mvreference}
13725 \pertype{proceedings}
13726 \pertype{mvproceedings}
13727 \pertype{report}
13728 \step[fieldsource=maintitle]%
13729 \step[fieldset=sorttitle, origfieldval]%
13730 \step[fieldsource=volume]%
13731 \step[fieldset=sorttitle, append, origfieldval]%
13732 \step[fieldsource=title]%
13733 \step[fieldset=sorttitle, append, origfieldval]%
13734 }%
13735 }%
13736 }
13737 % \end{macrocode}
13738 %
13739 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13740 %</default>
13741 %<*ibid|note|inote|trad1|trad2|trad3>
13742 \RequireBibliographyStyle{oxnotes}
13743 %</ibid|note|inote|trad1|trad2|trad3>
13744 %</n>
13745 %<*m>
13746 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13747 %
13748 % \section{Numeric style: oxnum.bbx}
13749 %
13750 % \setcounter{FancyVerbLine}{19}
13751 %
13752 % \subsection{Preliminaries}
13753 %
13754 % First we load the common \pkg[biblatex]{oxref} features.
13755 %
13756 % \begin{macrocode}
13757 \RequireBibliographyStyle{oxref}
13758 % \end{macrocode}
13759 %
13760 % \subsection{Names}
13761 %
13762 % We apply our special name format to names likely to appear at the start of
13763 % an entry.
13764 %
13765 % \begin{macrocode}
13766 \DeclareNameAlias{author}{bib-family-given/cite-given-family}
13767 \DeclareNameAlias[related:reviewof]{author}{given-family}
13768 \DeclareNameAlias{editor}{bib-family-given/cite-given-family}
13769 \DeclareNameAlias[related:reviewof]{editor}{given-family}
13770 % \end{macrocode}
13771 %
13772 % We ensure the printing of the |anon| localization string matches.
13773 %
13774 % \begin{macrocode}
13775 \xpatchbibmacro{author}{%
13776 \iftoggle{blx@ox@abbranon}{\bibcpsstring{anon}}{\bibcplstring{anon}}%
13777 }{%
13778 \iftoggle{blx@ox@abbranon}{%
13779 \iftoggle{blx@ox@scnames}{\bibcpsstring[\textsc]{anon}}{\bibcpsstring{anon}}%
13780 }{%
13781 \iftoggle{blx@ox@scnames}{\bibcplstring[\textsc]{anon}}{\bibcplstring{anon}}%
13782 }%
13783 }{}{\wlog{WARNING: biblatex-oxref (oxnum) failed to patch author}}
13784 % \end{macrocode}
13785 %
13786 % \subsection{Multivolume dates}
13787 %
13788 % For the very particular use case of breaking down multivolume works into
13789 % their constituent volumes, we remove the overall date, assuming that the
13790 % individual volume dates will be used instead.
13791 %
13792 % \begin{macrocode}
13793 \xpretobibmacro{series+number+edition+publisher+location+date}{%
13794 \iffieldequalstr{relatedtype}{multivolume}{%
13795 \clearfield{year}\clearfield{month}\clearfield{day}%
13796 }{}}{}{}
13797 % \end{macrocode}
13798 %
13799 % \subsection{Label numbers}
13800 %
13801 % This next code is extracted from the standard |numeric| style.
13802 %
13803 % \begin{macrocode}
13804 \ExecuteBibliographyOptions{labelnumber}
13805
13806 \providebool{bbx:subentry}
13807
13808 \DeclareBibliographyOption{subentry}[true]{%
13809 \setbool{bbx:subentry}{#1}}
13810
13811 \DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}}
13812 \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
13813 \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}}
13814
13815 \defbibenvironment{bibliography}
13816 {\list
13817 {\printtext[labelnumberwidth]{%
13818 \printfield{labelprefix}%
13819 \printfield{labelnumber}}}
13820 {\setlength{\labelwidth}{\labelnumberwidth}%
13821 \setlength{\leftmargin}{\labelwidth}%
13822 \setlength{\labelsep}{\biblabelsep}%
13823 \addtolength{\leftmargin}{\labelsep}%
13824 \setlength{\itemsep}{\bibitemsep}%
13825 \setlength{\parsep}{\bibparsep}}%
13826 \renewcommand*{\makelabel}[1]{\hss##1}}
13827 {\endlist}
13828 {\item}
13829
13830 \defbibenvironment{shorthand}
13831 {\list
13832 {\printfield[shorthandwidth]{shorthand}}
13833 {\setlength{\labelwidth}{\shorthandwidth}%
13834 \setlength{\leftmargin}{\labelwidth}%
13835 \setlength{\labelsep}{\biblabelsep}%
13836 \addtolength{\leftmargin}{\labelsep}%
13837 \setlength{\itemsep}{\bibitemsep}%
13838 \setlength{\parsep}{\bibparsep}%
13839 \renewcommand*{\makelabel}[1]{\hss##1}}}
13840 {\endlist}
13841 {\item}
13842
13843 \DeclareBibliographyDriver{set}{%
13844 \entryset
13845 {\ifbool{bbx:subentry}
13846 {\printfield[bibentrysetcount]{entrysetcount}%
13847 \printunit*{\addnbspace}}
13848 {}}
13849 {}%
13850 \newunit\newblock
13851 \usebibmacro{setpageref}%
13852 \finentry}
13853 % \end{macrocode}
13854 %
13855 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13856 %</m>
13857 %<*y>
13858 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13859 %
13860 % \section{Author–year style: oxyear.bbx}
13861 %
13862 % \setcounter{FancyVerbLine}{19}
13863 %
13864 % \subsection{Preliminaries}
13865 %
13866 % First we load the common \pkg[biblatex]{oxref} features.
13867 %
13868 % \begin{macrocode}
13869 \RequireBibliographyStyle{oxref}
13870 % \end{macrocode}
13871 %
13872 % Here we set some defaults different to the standard ones. The author
13873 % can still override them.
13874 %
13875 % \begin{macrocode}
13876 \ExecuteBibliographyOptions{giveninits,labeldateparts,sorting=nyt,pagetracker,maxcitenames=2}
13877 % \end{macrocode}
13878 %
13879 % \subsection{Date merging option}
13880 %
13881 % We provide the |mergedate| option from the |authoryear| style. In case it
13882 % isn't clear from the standard documentation, the purpose of this option is
13883 % twofold: it determines whether the date printed at the head of the reference
13884 % is the same as or different from |labeldate| as used in the citations, and
13885 % to what extent the date information at the head of the reference is repeated
13886 % later on. The OGS and NHR consistently use a variant that is between the
13887 % basic and compact options, in that the year is always moved to the head of
13888 % the reference (matching |labeldate|) but the month and day are never moved;
13889 % this is implemented as the |year| value.
13890 %
13891 % \begin{macrocode}
13892 \DeclareBiblatexOption{global,type,entry}{mergedate}[true]{%
13893 \ifcsdef{bbx@opt@mergedate@#1}
13894 {\csuse{bbx@opt@mergedate@#1}}
13895 {\PackageError{biblatex-oxref}
13896 {Invalid option 'mergedate=#1'}
13897 {Valid values are 'maximum', 'compact', 'basic', 'minimum',\MessageBreak
13898 'year', 'true' (=year), and 'false'.}}}
13899 % \end{macrocode}
13900 %
13901 % The various values affect the definition of the following macro, used at
13902 % the head of the reference, for which we coin the |datelabel| field format.
13903 %
13904 % \begin{macrocode}
13905 \providebibmacro*{date+extradate}{}
13906 \DeclareFieldFormat{datelabel}{\mkbibparens{#1}}
13907 \DeclareFieldFormat{labeldate}{%
13908 \iflabeldateisdate{%
13909 \def\currentfield{date}%
13910 }{%
13911 \iflabeldateisanydate{%
13912 \def\currentfield{\thefield{labeldatesource}date}%
13913 }{%
13914 \def\currentfield{\thefield{labeldatesource}}}}%
13915 \iffieldannotation{inferred}{\mkbibbrackets{#1}}{#1}%
13916 \undef\currentfield}
13917 % \end{macrocode}
13918 %
13919 % On a related note, the |labeldate| uses the |origdate| if provided in
13920 % preference to |date|, and falls back to |pubstate| if provided.
13921 %
13922 % \begin{macrocode}
13923 \DeclareLabeldate{%
13924 \field{origdate}
13925 \field{date}
13926 \field{year}
13927 \field{eventdate}
13928 \field{pubstate}
13929 \literal{nodate}
13930 }
13931 % \end{macrocode}
13932 %
13933 % The |extradate| string should be printed bare.
13934 %
13935 % \begin{macrocode}
13936 \DeclareFieldFormat{extradate}{%
13937 \iffieldundef{\thefield{labeldatesource}}{%
13938 \iffieldnums{\thefield{labeldatesource}year}{}{~}%
13939 }{%
13940 \iffieldnums{\thefield{labeldatesource}}{}{~}%
13941 }%
13942 \mkbibemph{\mknumalph{#1}}}%
13943
13944 % \end{macrocode}
13945 %
13946 % We provide tests similar to \cs{labeldateisdate} to tell if the |labeldate|
13947 % is (\emph{a}) any type of date, and (\emph{b}) neither a date nor |pubstate|.
13948 %
13949 % \begin{macrocode}
13950 \def\iflabeldateisanydate{%
13951 \ifboolexpr{%
13952 togl {blx@labeldateparts}
13953 and not test {\iffieldundef{labeldatesource}}
13954 and (
13955 test {\iffieldequalstr{labeldatesource}{year}}
13956 or not test {\iffieldundef{\thefield{labeldatesource}year}}
13957 )}}
13958 \def\iflabeldateispubstate{%
13959 \ifboolexpr{%
13960 not test {\iffieldundef{labeldatesource}}
13961 and test {\iffieldequalstr{labeldatesource}{pubstate}}}}
13962 % \end{macrocode}
13963 %
13964 % We also provide a wrapper around \cs{printlabeldateextra} that does nothing
13965 % if the label date is the `nodate' literal \emph{and} |sortyear| is defined.
13966 % Sadly |sortyear| is consumed before we get to this point, so we need a proxy
13967 % toggle.
13968 %
13969 % \begin{macrocode}
13970 \newtoggle{blx@ox@nonodate}
13971 \DeclareBiblatexOption{global,type,entry}{nonodate}[true]{%
13972 \settoggle{blx@ox@nonodate}{#1}}
13973 \newbibmacro*{labeldate}{%
13974 \ifboolexpr{
13975 test {\iffieldequalstr{labeldatesource}{nodate}}
13976 and
13977 togl {blx@ox@nonodate}
13978 }{}{\printtext[datelabel]{\printlabeldateextra}}}
13979 % \end{macrocode}
13980 %
13981 % Since v3.12, authoryear.bbx has had an |bbx:ifmergeddate| test. We don't use
13982 % it, but if we define it too it suppresses redefinition warnings later.
13983 %
13984 % \begin{macrocode}
13985 \newbibmacro*{bbx:ifmergeddate}{\@secondoftwo}
13986
13987 % \end{macrocode}
13988 %
13989 % Here we provide the various possible definitions. The |authoryear|
13990 % implementation does it by clearing, changing or restoring the normal
13991 % definitions of the |date| and |issue+date| macros. This is not so great for
13992 % us as our versions of those macros are quite complex (too much to keep
13993 % repeating). There are additional complications that arise from us using
13994 % |origdate| in preference to |date| for the label year, and from our option
13995 % that requires us to print some dates without years. Conceptually it is more
13996 % straightforward to clear the data fields instead.
13997 %
13998 % \begin{itemize}
13999 % \item |true| is the same as |year| (see below).
14000 % \end{itemize}
14001 %
14002 % \begin{macrocode}
14003 \def\bbx@opt@mergedate@true{\bbx@opt@mergedate@year}
14004 % \end{macrocode}
14005 %
14006 % \begin{itemize}
14007 % \item |maximum| merges the |issue| and the whole |date| with the date label.
14008 % Therefore, we clear year, month, and day from the date used for the label,
14009 % as well as the |issue| field.
14010 % \end{itemize}
14011 %
14012 % \begin{macrocode}
14013 \def\bbx@opt@mergedate@maximum{%
14014 \renewbibmacro*{date+extradate}{%
14015 \iffieldundef{labelyear}{}{%
14016 \iflabeldateisdate{%
14017 \printtext[datelabel]{%
14018 \printfield{issue}\clearfield{issue}%
14019 \setunit*{\addspace}%
14020 \printdateextra}%
14021 \clearfield{year}\clearfield{yeardivision}\clearfield{month}\clearfield{day}%
14022 }{%
14023 \iflabeldateisanydate{%
14024 \printtext[datelabel]{%
14025 \csuse{print\thefield{labeldatesource}dateextra}}%
14026 \clearfield{\thefield{labeldatesource}year}%
14027 \clearfield{\thefield{labeldatesource}yeardivision}%
14028 \clearfield{\thefield{labeldatesource}month}%
14029 \clearfield{\thefield{labeldatesource}day}%
14030 }{%
14031 \usebibmacro{labeldate}%
14032 \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}}}}}}
14033 % \end{macrocode}
14034 %
14035 % \begin{itemize}
14036 % \item |compact| merges the whole |date| (but not |issue|) with date label.
14037 % Therefore, we clear year, month, and day from the date used for the label,
14038 % but leave the |issue| field alone.
14039 % \end{itemize}
14040 %
14041 % \begin{macrocode}
14042 \def\bbx@opt@mergedate@compact{%
14043 \renewbibmacro*{date+extradate}{%
14044 \iffieldundef{labelyear}{}{%
14045 \iflabeldateisdate{%
14046 \printtext[datelabel]{\printdateextra}%
14047 \clearfield{year}\clearfield{yeardivision}\clearfield{month}\clearfield{day}%
14048 }{%
14049 \iflabeldateisanydate{%
14050 \printtext[datelabel]{%
14051 \csuse{print\thefield{labeldatesource}dateextra}}%
14052 \clearfield{\thefield{labeldatesource}year}%
14053 \clearfield{\thefield{labeldatesource}yeardivision}%
14054 \clearfield{\thefield{labeldatesource}month}%
14055 \clearfield{\thefield{labeldatesource}day}%
14056 }{%
14057 \usebibmacro{labeldate}%
14058 \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}}}}}}
14059 % \end{macrocode}
14060 %
14061 % \begin{itemize}
14062 % \item |year| always merges the year, and only the year, with the label date.
14063 % Other date and time componenents are displayed later in the reference.
14064 % Therefore we clear the year from the date used for the label, but leave
14065 % the month and day alone.
14066 % \end{itemize}
14067 %
14068 % \begin{macrocode}
14069 \def\bbx@opt@mergedate@year{%
14070 \renewbibmacro*{date+extradate}{%
14071 \iffieldundef{labelyear}{}{%
14072 \usebibmacro{labeldate}%
14073 \iflabeldateisdate{%
14074 \clearfield{year}
14075 }{%
14076 \iflabeldateisanydate{%
14077 \clearfield{\thefield{labeldatesource}year}%
14078 }{%
14079 \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
14080 }}}}}
14081 % \end{macrocode}
14082 %
14083 % \begin{itemize}
14084 % \item |basic| will merge a year-only date with the date label, but will
14085 % otherwise display the label year at the head of the reference and the full
14086 % date later. Therefore we clear the year if and only if there is no month
14087 % component \emph{and} (if this is the regular |date|) no |issue|.
14088 % \end{itemize}
14089 %
14090 % \begin{macrocode}
14091 \def\bbx@opt@mergedate@basic{%
14092 \renewbibmacro*{date+extradate}{%
14093 \iffieldundef{labelyear}{}{%
14094 \usebibmacro{labeldate}%
14095 \iflabeldateisdate{%
14096 \ifboolexpr{
14097 test {\ifdateshavedifferentprecision{label}{}}
14098 or
14099 not test {\iffieldundef{issue}}
14100 }{}{%
14101 \clearfield{year}}%
14102 }{%
14103 \iflabeldateisanydate{%
14104 \ifdateshavedifferentprecision{label}{\thefield{labeldatesource}}{}{%
14105 \clearfield{\thefield{labeldatesource}year}}%
14106 }{%
14107 \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
14108 }}}}}
14109 % \end{macrocode}
14110 %
14111 % \begin{itemize}
14112 % \item |minimum| will only merge the |date| with the label date if the two
14113 % are identical, that is, a bare year with no month or disambiguating suffix.
14114 % Therefore we clear the year if and only if there is no month component, no
14115 % |extradate|, \emph{and} (if this is the regular |date|) no |issue|.
14116 % \end{itemize}
14117 %
14118 % \begin{macrocode}
14119 \def\bbx@opt@mergedate@minimum{%
14120 \renewbibmacro*{date+extradate}{%
14121 \iffieldundef{labelyear}{}{%
14122 \usebibmacro{labeldate}%
14123 \iflabeldateisdate{%
14124 \ifboolexpr{
14125 test {\ifdateshavedifferentprecision{label}{}}
14126 or
14127 not test {\iffieldundef{extradate}}
14128 or
14129 not test {\iffieldundef{issue}}
14130 }{}{%
14131 \clearfield{year}}%
14132 }{%
14133 \iflabeldateisanydate{%
14134 \ifboolexpr{
14135 test {\ifdateshavedifferentprecision{label}{\thefield{labeldatesource}}}
14136 or
14137 not test {\iffieldundef{extradate}}
14138 }{}{%
14139 \clearfield{\thefield{labeldatesource}year}}%
14140 }{%
14141 \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
14142 }}}}}
14143 % \end{macrocode}
14144 %
14145 % \begin{itemize}
14146 % \item |false| suppresses any merging. We only clear the label date source
14147 % if it is a non-date field other than |pubstate|.
14148 % \end{itemize}
14149 %
14150 % \begin{macrocode}
14151 \def\bbx@opt@mergedate@false{%
14152 \renewbibmacro*{date+extradate}{%
14153 \iffieldundef{labelyear}{}{%
14154 \usebibmacro{labeldate}%
14155 \iflabeldateisanydate{}{%
14156 \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
14157 }}}}
14158 % \end{macrocode}
14159 %
14160 % We set the default to be |true|/|year|.
14161 %
14162 % \begin{macrocode}
14163 \ExecuteBibliographyOptions{mergedate}
14164 % \end{macrocode}
14165 %
14166 % The problem with moving years but leaving months and days behind is that the
14167 % regular date range macros in |biblatex.sty| do nothing at all if no year
14168 % is printed. We therefore need to patch the macros with extra routines for
14169 % printing year-free date ranges: the rather extravagently named
14170 % \cs{mknoyeardaterangefull} and \cs{mknoyeardaterangetrunc}.
14171 %
14172 % \begin{macrocode}
14173 \newrobustcmd*{\mknoyeardaterangefull}[2]{%
14174 \iffieldundef{#2month}{}{%
14175 \printtext[{#2date}]{%
14176 \datecircaprint
14177 \iffieldundef{#2yeardivision}{%
14178 \csuse{mkbibdate#1}{}{#2month}{#2day}%
14179 \blx@printtime{#2}{}%
14180 }{%
14181 \csuse{mkbibyeardivisiondate#1}{}{#2yeardivision}}%
14182 \dateuncertainprint
14183 \iffieldundef{#2endmonth}{}{%
14184 \iffieldequalstr{#2endmonth}{}{%
14185 \mbox{\bibdaterangesep}%
14186 }{%
14187 \bibdaterangesep
14188 \enddatecircaprint
14189 \iffieldundef{#2yeardivision}{%
14190 \csuse{mkbibdate#1}{}{#2endmonth}{#2endday}%
14191 \blx@printtime{#2}{end}%
14192 }{%
14193 \csuse{mkbibyeardivisiondate#1}{}{#2endyeardivision}}%
14194 \enddateuncertainprint}}}}}
14195 % \end{macrocode}
14196 %
14197 % There is a potential problem for \cs{mknoyeardaterangetrunc}, in that if
14198 % the year and endyear are missing, it cannot tell if they are the same, so
14199 % if the months are the same but the years are different, the range would
14200 % be erroneously compressed. However, the only reason the year should
14201 % be missing is that it is in the label, so we test |labelyear| instead.
14202 %
14203 % \begin{macrocode}
14204 \newrobustcmd*{\mknoyeardaterangetrunc}[2]{%
14205 \iffieldundef{#2month}{}{%
14206 \printtext[{#2date}]{%
14207 \datecircaprint
14208 \iffieldundef{#2yeardivision}{%
14209 \ifboolexpr{
14210 test {\ifdateyearsequal{label}{labelend}}
14211 and
14212 test {\iffieldsequal{#2month}{#2endmonth}}
14213 }{%
14214 \csuse{mkbibdate#1}{}{}{#2day}%
14215 }{%
14216 \csuse{mkbibdate#1}{}{#2month}{#2day}}%
14217 }{%
14218 \csuse{mkbibyeardivisiondate#1}{}{#2yeardivision}}%
14219 \dateuncertainprint
14220 \iffieldundef{#2endmonth}{}{%
14221 \iffieldequalstr{#2endmonth}{}{%
14222 \mbox{\bibdaterangesep}%
14223 }{%
14224 \bibdaterangesep
14225 \enddatecircaprint
14226 \iffieldundef{#2yeardivision}{%
14227 \csuse{mkbibdate#1}{}{#2endmonth}{#2endday}%
14228 }{%
14229 \csuse{mkbibyeardivisiondate#1}{}{#2endyeardivision}}%
14230 \enddateuncertainprint}}}}}
14231 % \end{macrocode}
14232 %
14233 % Now we patch the four date range commands. The |extra| commands,
14234 % which print disambiguating labels as well, should only print those
14235 % labels if the year is present, so they can use the same non-year
14236 % date range functions as the non-|extra| commands.
14237 %
14238 % \begin{macrocode}
14239 \xpatchcmd{\mkdaterangefull}{%
14240 \iffieldundef{#2year} {\blx@nounit}%
14241 }{%
14242 \iffieldundef{#2year} {\mknoyeardaterangefull{#1}{#2}}%
14243 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch mkdaterangefull}}
14244 \xpatchcmd{\mkdaterangetrunc@i}{%
14245 \iffieldundef{#2year} {\blx@nounit}%
14246 }{%
14247 \iffieldundef{#2year} {\mknoyeardaterangetrunc{#1}{#2}}%
14248 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch mkdaterangetrunc@i}}
14249 \xpatchcmd{\mkdaterangefullextra}{%
14250 \iffieldundef{#2year} {\blx@nounit}%
14251 }{%
14252 \iffieldundef{#2year} {\mknoyeardaterangefull{#1}{#2}}%
14253 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch mkdaterangefullextra}}
14254 \xpatchcmd{\mkdaterangetruncextra@i}{%
14255 \iffieldundef{#2year} {\blx@nounit}%
14256 }{%
14257 \iffieldundef{#2year} {\mknoyeardaterangetrunc{#1}{#2}}%
14258 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch mkdaterangetruncextra@i}}
14259
14260 % \end{macrocode}
14261 %
14262 % \subsection{Bibliography formatting}
14263 %
14264 % We let \pkg{biblatex} measure shorthands so we can use
14265 % \cs{shorthandwidth} later.
14266 %
14267 % \begin{macrocode}
14268 \DeclareFieldFormat{shorthandwidth}{#1}
14269 % \end{macrocode}
14270 %
14271 % We enhance the |family-given| name format to handle the \texttt{pseudo}
14272 % and \texttt{inferred} annotations.
14273 %
14274 % \begin{macrocode}
14275 \xpretonameformat{family-given}{%
14276 \iffieldannotation{inferred}{\ifnumequal{\value{listcount}}{1}{\bibopenbracket}{}}{}%
14277 \ifitemannotation{inferred}{\bibopenbracket}{}%
14278 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to prepend to family-given}}
14279 \xpatchnameformat{family-given}{%
14280 \usebibmacro{name:andothers}%
14281 }{%
14282 \ifitemannotation{pseudo}{%
14283 \addspace\printtext[parens]{\bibsstring{pseudo}}%
14284 }{}%
14285 \ifitemannotation{inferred}{\bibclosebracket}{}%
14286 \usebibmacro{name:andothers}%
14287 \iffieldannotation{inferred}{%
14288 \ifboolexpr{
14289 test {\ifnumequal{\value{listcount}}{\value{maxnames}}}
14290 or
14291 test {\ifnumequal{\value{listcount}}{\value{listtotal}}}
14292 or (
14293 test {\ifnumequal{\value{listcount}}{\value{minnames}}}
14294 and
14295 test {\ifnumgreater{\value{listtotal}}{\value{maxnames}}} )
14296 }{\bibclosebracket}{}%
14297 }{}%
14298 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch family-given}}
14299 \DeclareNameAlias{shortauthor}{family-given}
14300 \DeclareNameAlias{shorteditor}{family-given}
14301 % \end{macrocode}
14302 %
14303 % Names at the head of the reference are family-given, but names elsewhere
14304 % are given-family.
14305 %
14306 % \begin{macrocode}
14307 \DeclareNameAlias{sortname}{family-given}
14308 \DeclareNameAlias{author}{family-given}
14309 \DeclareNameAlias{editor}{family-given}
14310 \DeclareNameAlias{translator}{family-given}
14311 % \end{macrocode}
14312 %
14313 % The bibliography formatting is just like |authoryear| except we do not
14314 % eliminate item separation by default.
14315 %
14316 % \begin{macrocode}
14317 \defbibenvironment{bibliography}
14318 {\list
14319 {}
14320 {\setlength{\leftmargin}{\bibhang}%
14321 \setlength{\itemindent}{-\leftmargin}%
14322 \setlength{\itemsep}{\bibitemsep}%
14323 \setlength{\parsep}{\bibparsep}}}
14324 {\endlist}
14325 {\item}
14326 % \end{macrocode}
14327 %
14328 % The shorthand formatting is just like |authoryear|.
14329 %
14330 % \begin{macrocode}
14331 \defbibenvironment{shorthand}
14332 {\list
14333 {\printfield[shorthandwidth]{shorthand}}
14334 {\setlength{\labelwidth}{\shorthandwidth}%
14335 \setlength{\leftmargin}{\labelwidth}%
14336 \setlength{\labelsep}{\biblabelsep}%
14337 \addtolength{\leftmargin}{\labelsep}%
14338 \setlength{\itemsep}{\bibitemsep}%
14339 \setlength{\parsep}{\bibparsep}%
14340 \renewcommand*{\makelabel}[1]{##1\hss}}}
14341 {\endlist}
14342 {\item}
14343 % \end{macrocode}
14344 %
14345 % \subsection{Name and date formatting}
14346 %
14347 % We set up hashing just as in |authoryear|.
14348 %
14349 % \begin{macrocode}
14350 \InitializeBibliographyStyle{\global\undef\bbx@lasthash}
14351 % \end{macrocode}
14352 %
14353 % We ensure related entries do not interfere with the hashing.
14354 %
14355 % \begin{macrocode}
14356 \xapptobibmacro{begrelated}{%
14357 \booltrue{bbx@inset}}%
14358 {}{\wlog{WARNING: biblatex-oxref (oxyear) failed to append to begrelated}}
14359 \xapptobibmacro{endrelated}{%
14360 \usebibmacro*{bbx:savehash}}%
14361 {}{\wlog{WARNING: biblatex-oxref (oxyear) failed to append to endrelated}}
14362 % \end{macrocode}
14363 %
14364 % We patch the |author| macro so that the date label information appears
14365 % at the end (as in |authoryear|).
14366 %
14367 % \begin{macrocode}
14368 \xpatchbibmacro{author}{%
14369 \iffieldundef{authortype}%
14370 }{%
14371 \usebibmacro{date+extradate}%
14372 \setunit*{\addspace}%
14373 \iffieldundef{authortype}%
14374 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch author (authortype)}}%
14375 \xpatchbibmacro{author}{%
14376 \global\undef\bbx@lasthash
14377 }{%
14378 \global\undef\bbx@lasthash
14379 \usebibmacro{labeltitle}%
14380 \setunit*{\addspace}%
14381 \usebibmacro{date+extradate}%
14382 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch author (lasthash)}}%
14383 % \end{macrocode}
14384 %
14385 % We patch it further so that, where an author name has a corresponding
14386 % (different) short author name, the short name is given first and the long
14387 % name given in parentheses. Note that this only affects cases where
14388 % \code{authoraddon} has not been provided.
14389 %
14390 % \begin{macrocode}
14391 \xpatchbibmacro{author+altauthor}{%
14392 \printnames{author}%
14393 }{%
14394 \ifboolexpr{%
14395 ( not test {\ifnameundef{shortauthor}} )
14396 and
14397 test {\ifnumequal{\value{shortauthor}}{\value{author}}}
14398 }{%
14399 \usebibmacro{namepairs}{author}{shortauthor}%
14400 }{%
14401 \printnames{author}%
14402 }%
14403 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch author+altauthor}}%
14404 % \end{macrocode}
14405 %
14406 % We apply the same patches to |bbx:editor|, but also move the editor
14407 % string to after the date label.
14408 %
14409 % \begin{macrocode}
14410 \xpatchbibmacro{bbx:editor}{%
14411 \usebibmacro{#1}%
14412 }{%
14413 \usebibmacro{date+extradate}%
14414 \setunit*{\addspace}%
14415 \usebibmacro{#1}%
14416 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch bbx:editor}}%
14417 \xpatchbibmacro{bbx:editor}{%
14418 \global\undef\bbx@lasthash
14419 }{%
14420 \global\undef\bbx@lasthash
14421 \usebibmacro{labeltitle}%
14422 \setunit*{\addspace}%
14423 \usebibmacro{date+extradate}%
14424 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch bbx:editor (lasthash)}}%
14425 \xpatchbibmacro{editor+alteditor}{%
14426 \printnames[byeditor]%
14427 }{%
14428 \printnames[editor]%
14429 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch editor+alteditor}}
14430 \xpatchbibmacro{editor+alteditor}{%
14431 \printnames{editor}%
14432 }{%
14433 \ifboolexpr{%
14434 ( not test {\ifnameundef{shorteditor}} )
14435 and
14436 test {\ifnumequal{\value{shorteditor}}{\value{editor}}}
14437 }{%
14438 \usebibmacro{namepairs}{editor}{shorteditor}%
14439 }{%
14440 \printnames{editor}%
14441 }%
14442 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch editor+alteditor (shorteditor)}}%
14443 % \end{macrocode}
14444 %
14445 % We apply the same patches to |bbx:translator| as we do for
14446 % |bbx:editor|, except for the shortening one.
14447 %
14448 % \begin{macrocode}
14449 \xpatchbibmacro{bbx:translator}{%
14450 \global\undef\bbx@lasthash
14451 }{%
14452 \global\undef\bbx@lasthash
14453 \usebibmacro{labeltitle}%
14454 \setunit*{\addspace}%
14455 \usebibmacro{date+extradate}%
14456 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch bbx:translator (lasthash)}}%
14457 \xpatchbibmacro{bbx:translator}{%
14458 \usebibmacro{#1}%
14459 }{%
14460 \usebibmacro{date+extradate}%
14461 \setunit*{\addspace}%
14462 \usebibmacro{#1}%
14463 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch bbx:translator}}%
14464 % \end{macrocode}
14465 %
14466 % The |labeltitle| macro differs from the one from |authoryear| in that
14467 % it also includes the subtitle. We record the fact that we have cleared
14468 % the title.
14469 %
14470 % \begin{macrocode}
14471 \newtoggle{blx@ox@clearedtitle}
14472 \newbibmacro*{labeltitle}{%
14473 \iffieldundef{label}{%
14474 \iffieldundef{shorttitle}{%
14475 \ifboolexpr{
14476 test {\iffieldundef{title}}
14477 and
14478 test {\iffieldundef{subtitle}}
14479 }{%
14480 \printfield{library}%
14481 \clearfield{library}%
14482 }{%
14483 \printtext[title]{%
14484 \printfield[titlecase]{title}%
14485 \setunit{\subtitlepunct}%
14486 \printfield[titlecase]{subtitle}}%
14487 \clearfield{title}%
14488 \clearfield{subtitle}%
14489 \toggletrue{blx@ox@clearedtitle}%
14490 \setunit{\addspace}%
14491 }%
14492 }{%
14493 \printtext[title]{\printfield[titlecase]{shorttitle}}%
14494 }%
14495 }{%
14496 \printfield{label}%
14497 }%
14498 }
14499 % \end{macrocode}
14500 %
14501 % If the labeltitle pulls the title from a maintitle+title macro,
14502 % we flick a switch to make the driver use maintitle+volume instead.
14503 %
14504 % \begin{macrocode}
14505 \xpretobibmacro{maintitle+title}{%
14506 \iftoggle{blx@ox@clearedtitle}{%
14507 \usebibmacro{maintitle+volume}%
14508 \clearfield{maintitle}%
14509 \clearfield{volume}%
14510 }{}%
14511 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to prepend to maintitle+title}}
14512 \DeclareFieldFormat[mvbook,mvcollection,mvreference,proceedings,mvproceedings]{maintitle+volume}{#1}
14513 % \end{macrocode}
14514 %
14515 % The date of |online| entries is printed in parentheses; as the year
14516 % is moved after the author, this can lead to empty parentheses unless
14517 % a month is printed, so we change the test accordingly.
14518 %
14519 % \begin{macrocode}
14520 \xpatchbibdriver{online}{%
14521 \iffieldundef{year}%
14522 }{%
14523 \ifboolexpr{
14524 test {\iffieldundef{yeardivision}}
14525 and
14526 test {\iffieldundef{month}}
14527 }%
14528 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch online}}
14529 % \end{macrocode}
14530 %
14531 % We ensure the label title in citations matches the formatting used for
14532 % the equivalent information in the bibliography entry.
14533 %
14534 % \begin{macrocode}
14535 \DeclareFieldFormat[bookinbook]{citetitle}{%
14536 \ifboolexpr{
14537 test {\iffieldequalstr{entrysubtype}{poem}}
14538 or
14539 test {\iffieldequalstr{entrysubtype}{play}}
14540 }{%
14541 \mkbibemph{#1}%
14542 }{%
14543 \mkbibquote{#1\isdot}}}
14544 \DeclareFieldFormat[suppperiodical,inaudio,inmusic,inmovie,invideo,online,%
14545 image,manuscript,unpublished]{citetitle}{%
14546 \def\currentfield{title}%
14547 \ifboolexpr{
14548 test {\iffieldannotation{descriptor}}
14549 or (
14550 test {\iffieldundef{shorttitle}}
14551 and
14552 test {\iffieldundef{title}}
14553 )
14554 }{#1}{\mkbibquote{#1\isdot}}%
14555 \undef\currentfield}
14556 \DeclareFieldFormat[suppperiodical,inaudio,inmusic,inmovie,invideo,online,%
14557 image,manuscript,unpublished]{citetitle}{%
14558 \def\currentfield{title}%
14559 \ifboolexpr{
14560 test {\iffieldannotation{descriptor}}
14561 or (
14562 test {\iffieldundef{shorttitle}}
14563 and
14564 test {\iffieldundef{title}}
14565 )
14566 }{#1}{\mkbibquote{#1\isdot}}%
14567 \undef\currentfield}
14568 \DeclareFieldFormat[audio,music]{citetitle}{%
14569 \def\currentfield{title}%
14570 \ifboolexpr{
14571 test {\iffieldannotation{descriptor}}
14572 or (
14573 test {\iffieldundef{shorttitle}}
14574 and
14575 test {\iffieldundef{title}}
14576 )
14577 }{#1}{%
14578 \iffieldequalstr{entrysubtype}{podcast}{%
14579 \mkbibquote{#1\isdot}%
14580 }{%
14581 \mkbibemph{#1}}}%
14582 \undef\currentfield}
14583 \DeclareFieldFormat[movie,video]{citetitle}{%
14584 \def\currentfield{title}%
14585 \ifboolexpr{
14586 test {\iffieldannotation{descriptor}}
14587 or (
14588 test {\iffieldundef{shorttitle}}
14589 and
14590 test {\iffieldundef{title}}
14591 )
14592 }{#1}{%
14593 \ifboolexpr{
14594 test {\iffieldequalstr{entrysubtype}{episode}}
14595 or
14596 test {\iffieldequalstr{entrysubtype}{clip}}
14597 or
14598 test {\iffieldequalstr{entrysubtype}{webcast}}
14599 }{%
14600 \mkbibquote{#1\isdot}%
14601 }{%
14602 \mkbibemph{#1}}}%
14603 \undef\currentfield}
14604 \DeclareFieldFormat[legislation,legal]{citetitle}{#1}
14605 \DeclareFieldFormat[misc]%
14606 {citetitle}{%
14607 \def\currentfield{title}%
14608 \ifboolexpr{
14609 test {\iffieldannotation{descriptor}}
14610 or (
14611 test {\iffieldundef{shorttitle}}
14612 and
14613 test {\iffieldundef{title}}
14614 )
14615 }{#1}{%
14616 \iffieldequalstr{relatedtype}{in}{%
14617 \mkbibquote{#1\isdot}%
14618 }{%
14619 \mkbibemph{#1}%
14620 }}%
14621 \undef\currentfield}
14622
14623 % \end{macrocode}
14624 %
14625 % \subsection{Journal division formatting}
14626 %
14627 % \textsf{Oxyear} uses a colon to demarcate page numbers in journal articles.
14628 %
14629 % \begin{macrocode}
14630 \renewcommand*{\bibpagespunct}{%
14631 \ifboolexpr{
14632 test {\ifentrytype{article}}
14633 or
14634 test {\ifentrytype{suppperiodical}}
14635 or
14636 test {\ifentrytype{review}}
14637 }{%
14638 \addcolon\space
14639 }{%
14640 \addcomma\space
14641 }%
14642 }
14643 % \end{macrocode}
14644 %
14645 % \subsection{Manuscripts}
14646 %
14647 % Since we clear the title, we need a more sophisticated test for whether to
14648 % suppress the date.
14649 %
14650 % \begin{macrocode}
14651 \renewbibmacro{manuscript:date}{%
14652 \ifboolexpr{
14653 test {\ifnameundef{author}}
14654 and
14655 not togl {blx@ox@clearedtitle}
14656 and
14657 test {\iffieldundef{label}}
14658 }{}{\usebibmacro{date}}}
14659 % \end{macrocode}
14660 %
14661 % We include the |library| field as a fallback title.
14662 %
14663 % \begin{macrocode}
14664 \DeclareLabeltitle{%
14665 \field{shorttitle}
14666 \field{title}
14667 \field{maintitle}
14668 \field{library}
14669 }
14670 % \end{macrocode}
14671 %
14672 % \subsection{Source maps}
14673 %
14674 % We use the source mapping capabilities of Biber to fix the following issues.
14675 %
14676 % \begin{macrocode}
14677 \DeclareStyleSourcemap{%
14678 \maps[datatype=bibtex]{%
14679 % \end{macrocode}
14680 %
14681 % \subsubsection{Suppressing a \enquote{nodate} label}
14682 %
14683 % Unless already set, the \key{nonodate} option is inserted if |sortyear| is
14684 % used. We accomplish this with source maps; the first one works where options
14685 % (not including |nonodate|) have been set, the second where no options have
14686 % been set.
14687 %
14688 % \begin{macrocode}
14689 \map[overwrite=true]{
14690 \step[notmatch=\regexp{nonodate}, fieldsource=options, final]
14691 \step[fieldsource=sortyear, final]
14692 \step[fieldset=options, append, fieldvalue={,nonodate}]
14693 }
14694 \map[overwrite=true]{
14695 \step[notfield=options, final]
14696 \step[fieldsource=sortyear, final]
14697 \step[fieldset=options, fieldvalue={nonodate}]
14698 }
14699 % \end{macrocode}
14700 %
14701 % \subsubsection{Standards}
14702 %
14703 % The purpose of this map is to change the number into a label in the absence
14704 % of an author, so that the citations come out right and the date is positioned
14705 % correctly.
14706 %
14707 % \begin{macrocode}
14708 \map[overwrite=false]{
14709 \pertype{standard}
14710 \step[notfield=author,
14711 fieldsource=number,
14712 fieldtarget=label]
14713 }
14714 }}
14715
14716 % \end{macrocode}
14717 %
14718 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14719 %</y>
14720 %<*a>
14721 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14722 %
14723 % \section{Alphabetic style: oxalph.bbx}
14724 %
14725 % \setcounter{FancyVerbLine}{19}
14726 %
14727 % \subsection{Preliminaries}
14728 %
14729 % This style is based on |oxyear|.
14730 %
14731 % \begin{macrocode}
14732 \RequireBibliographyStyle{oxyear}
14733 % \end{macrocode}
14734 %
14735 % \subsection{Suppressing labelextra}
14736 %
14737 % Since the label codes do all the disambiguation, it is not necessary for
14738 % the date at the head of the reference to have a disambiguation component.
14739 %
14740 % \begin{macrocode}
14741 \xpatchcmd{\bbx@opt@mergedate@maximum}{%
14742 \printdateextra
14743 }{%
14744 \printdate
14745 }{}{\wlog{WARNING: biblatex-oxref (oxalph) failed to patch bbx@opt@mergedate@maximum (print)}}
14746 \xpatchcmd{\bbx@opt@mergedate@maximum}{%
14747 \csuse{print\thefield{labeldatesource}dateextra}%
14748 }{%
14749 \csuse{print\thefield{labeldatesource}date}%
14750 }{}{\wlog{WARNING: biblatex-oxref (oxalph) failed to patch bbx@opt@mergedate@maximum (label)}}
14751 \xpatchcmd{\bbx@opt@mergedate@compact}{%
14752 \csuse{print\thefield{labeldatesource}dateextra}%
14753 }{%
14754 \csuse{print\thefield{labeldatesource}date}%
14755 }{}{\wlog{WARNING: biblatex-oxref (oxalph) failed to patch bbx@opt@mergedate@compact}}
14756 \xpatchbibmacro{labeldate}{%
14757 \printlabeldateextra
14758 }{%
14759 \printlabeldate
14760 }{}{\wlog{WARNING: biblatex-oxref (oxalph) failed to patch labeldate}}
14761 \ExecuteBibliographyOptions{mergedate}
14762
14763 % \end{macrocode}
14764 %
14765 % \subsection{Label codes: printing}
14766 %
14767 % This next code is extracted from the standard |alphabetic| style, and among
14768 % other things ensures the citation labels are printed in the bibliography.
14769 %
14770 % \begin{macrocode}
14771 \ExecuteBibliographyOptions{labelalpha,sorting=anyt}
14772
14773 \DeclareFieldFormat{labelalphawidth}{\mkbibbrackets{#1}}
14774 \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}}
14775
14776 \defbibenvironment{bibliography}
14777 {\list
14778 {\printtext[labelalphawidth]{%
14779 \printfield{labelprefix}%
14780 \printfield{labelalpha}%
14781 \printfield{extraalpha}}}
14782 {\setlength{\labelwidth}{\labelalphawidth}%
14783 \setlength{\leftmargin}{\labelwidth}%
14784 \setlength{\labelsep}{\biblabelsep}%
14785 \addtolength{\leftmargin}{\labelsep}%
14786 \setlength{\itemsep}{\bibitemsep}%
14787 \setlength{\parsep}{\bibparsep}}%
14788 \renewcommand*{\makelabel}[1]{##1\hss}}
14789 {\endlist}
14790 {\item}
14791
14792 \defbibenvironment{shorthand}
14793 {\list
14794 {\printfield[shorthandwidth]{shorthand}}
14795 {\setlength{\labelwidth}{\shorthandwidth}%
14796 \setlength{\leftmargin}{\labelwidth}%
14797 \setlength{\labelsep}{\biblabelsep}%
14798 \addtolength{\leftmargin}{\labelsep}%
14799 \setlength{\itemsep}{\bibitemsep}%
14800 \setlength{\parsep}{\bibparsep}%
14801 \renewcommand*{\makelabel}[1]{##1\hss}}}
14802 {\endlist}
14803 {\item}
14804 % \end{macrocode}
14805 %
14806 % \subsection{Label codes: generating}
14807 %
14808 % The standard labels are generated from the |labelname| and |year|. We widen
14809 % the net a bit, so that if there is no |labelname|, we fall back to the
14810 % |shortlabeltitle| or |labeltitle|; also we use |labelyear| in place of
14811 % |year|. The |shortlabeltitle| is generated from all the capital letters in
14812 % the title and subtitle, with the help of a source map.
14813 %
14814 % \begin{macrocode}
14815 \DeclareStyleSourcemap{%
14816 \maps[datatype=bibtex]{%
14817 \map[overwrite=false]{%
14818 \step[fieldsource=title, final]
14819 \step[fieldset=shortlabeltitle, origfieldval]
14820 \step[fieldsource=subtitle]
14821 \step[fieldset=shortlabeltitle, origfieldval, append=true]
14822 \step[fieldsource=shortlabeltitle,
14823 match=\regexp{[^\p{Lu}]},
14824 replace=\regexp{}]
14825 }}}
14826 \DeclareLabelalphaTemplate{%
14827 \labelelement{
14828 \field[final]{shorthand}
14829 \field{label}
14830 \field[strwidth=3,strside=left,ifnames=1]{labelname}
14831 \field[strwidth=1,strside=left]{labelname}
14832 \field[strwidth=3,strside=left]{shortlabeltitle}
14833 \field[strwidth=4,strside=left]{labeltitle}
14834 }
14835 \labelelement{
14836 \field[strwidth=2,strside=right]{labelyear}
14837 }
14838 }
14839 % \end{macrocode}
14840 %
14841 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14842 %</a>
14843 %</bbx>
14844 %<*cbx>
14845 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14846 %
14847 % \chapter{Citation styles}
14848 %
14849 % \settocdepth{section}
14850 %
14851 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14852 %<*n>
14853 %<*default>
14854 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14855 %
14856 % \section{Notes style: oxnotes.cbx}
14857 %
14858 % \setcounter{FancyVerbLine}{19}
14859 %
14860 % The standard |verbose| style is a close match for what we need.
14861 %
14862 % \begin{macrocode}
14863 \RequireCitationStyle{verbose}
14864 % \end{macrocode}
14865 %
14866 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14867 %</default>
14868 %<*ibid>
14869 % \begin{macrocode}
14870 \RequireCitationStyle{verbose-ibid}
14871 % \end{macrocode}
14872 %</ibid>
14873 %<*note>
14874 % \begin{macrocode}
14875 \RequireCitationStyle{verbose-note}
14876 % \end{macrocode}
14877 %</note>
14878 %<*inote>
14879 % \begin{macrocode}
14880 \RequireCitationStyle{verbose-inote}
14881 % \end{macrocode}
14882 %</inote>
14883 %<*trad1>
14884 % \begin{macrocode}
14885 \RequireCitationStyle{verbose-trad1}
14886 % \end{macrocode}
14887 %</trad1>
14888 %<*trad2>
14889 % \begin{macrocode}
14890 \RequireCitationStyle{verbose-trad2}
14891 % \end{macrocode}
14892 %</trad2>
14893 %<*trad3>
14894 % \begin{macrocode}
14895 \RequireCitationStyle{verbose-trad3}
14896 % \end{macrocode}
14897 %</trad3>
14898 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14899 %
14900 % Variants are also provided that load the respective variant of |verbose|
14901 % at this point.
14902 %
14903 % The main difference is that the \key{citepages} option from these styles
14904 % needs to be \val{separate} by default, and the \cs{postnotedelim} before
14905 % the bibliography string |thiscite| (\enquote{at}) is replaced by a simple
14906 % space.
14907 %
14908 % \begin{macrocode}
14909 \newbibmacro*{cite:postnote:pages}{%
14910 \setunit{\addspace}%
14911 \bibstring{thiscite}%
14912 \setunit{\addspace}%
14913 \printfield{postnote}}
14914 \ExecuteBibliographyOptions{citepages=separate}
14915 % \end{macrocode}
14916 %
14917 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14918 %</n>
14919 %<*m>
14920 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14921 %
14922 % \section{Numeric style: oxnum.cbx}
14923 %
14924 % \setcounter{FancyVerbLine}{19}
14925 %
14926 % The standard |numeric| style works, needing only a little configuration.
14927 %
14928 % \begin{macrocode}
14929 \RequireCitationStyle{numeric-comp}
14930 % \end{macrocode}
14931 %
14932 % Compressed citations are delimited with a semicolon, just like
14933 % non-compressed citations.
14934 %
14935 % \begin{macrocode}
14936 \renewcommand*{\multicitedelim}{\addsemicolon\space}
14937 \renewcommand*{\compcitedelim}{\addsemicolon\space}
14938 % \end{macrocode}
14939 %
14940 % The page reference postnote is given after a colon.
14941 %
14942 % \begin{macrocode}
14943 \renewcommand*{\postnotedelim}{\addcolon\space}
14944 % \end{macrocode}
14945 %
14946 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14947 %</m>
14948 %<*y>
14949 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14950 %
14951 % \section{Author–year style: oxyear.cbx}
14952 %
14953 % \setcounter{FancyVerbLine}{19}
14954 %
14955 % The standard |authoryear-comp| style is a close match for what we need.
14956 %
14957 % \begin{macrocode}
14958 \RequireCitationStyle{authoryear-comp}
14959 % \end{macrocode}
14960 %
14961 % This sets \key{uniquename} to \val{full}, but that conflicts with
14962 % \key{giveninits} set by the bibliography style, so we set it to \val{init}
14963 % instead. If left alone, \pkg{biblatex} would do this anyway, but if we do it
14964 % explicitly, we avoid the warning message.
14965 %
14966 % \begin{macrocode}
14967 \ExecuteBibliographyOptions{uniquename=init}
14968 % \end{macrocode}
14969 %
14970 % We provide a slightly different labeldate macro that obeys the \code{nonodate}
14971 % option.
14972 %
14973 % \begin{macrocode}
14974 \renewbibmacro*{cite:labeldate+extradate}{%
14975 \ifboolexpr{
14976 test {\iffieldundef{labelyear}}
14977 or
14978 ( test {\iffieldequalstr{labeldatesource}{nodate}}
14979 and
14980 togl {blx@ox@nonodate} )
14981 }{}{\printtext[bibhyperref]{\printlabeldateextra}}}
14982 % \end{macrocode}
14983 %
14984 % We insert anonymous author handling into |cite|.
14985 %
14986 % \begin{macrocode}
14987 \xpatchbibmacro{cite}{%
14988 \printnames{labelname}%
14989 }{%
14990 \ifboolexpr{
14991 test {\iffieldequalstr{labelnamesource}{author}}
14992 and
14993 togl {blx@ox@autoanon}
14994 and
14995 test {\iffieldequals{rawauthor}{\oxrefanon}}
14996 }{%
14997 \iftoggle{blx@ox@abbranon}{\bibcpsstring{anon}}{\bibcplstring{anon}}%
14998 }{%
14999 \printnames{labelname}%
15000 }%
15001 }{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch cite}}
15002 % \end{macrocode}
15003 %
15004 % The name and year are usually separated by a space, but if the date is
15005 % replaced by a word (e.g. \enquote{forthcoming}, \enquote{n.d.}), they are separated by
15006 % a comma.
15007 %
15008 % \begin{macrocode}
15009 \DeclareDelimFormat{nameyeardelim}{%
15010 \iflabeldateisanydate
15011 {\addspace}%
15012 {\addcomma\space}}
15013 \DeclareDelimFormat{nonameyeardelim}{%
15014 \iflabeldateisanydate
15015 {\addspace}%
15016 {\addcomma\space}}
15017 % \end{macrocode}
15018 %
15019 % Compressed citations are delimited with a semicolon, just like
15020 % non-compressed citations.
15021 %
15022 % \begin{macrocode}
15023 \renewcommand*{\multicitedelim}{\addsemicolon\space}
15024 \renewcommand*{\compcitedelim}{\addsemicolon\space}
15025 % \end{macrocode}
15026 %
15027 % The page reference postnote is given after a colon.
15028 %
15029 % \begin{macrocode}
15030 \renewcommand*{\postnotedelim}{\addcolon\space}
15031 % \end{macrocode}
15032 %
15033 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15034 %</y>
15035 %<*a>
15036 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15037 %
15038 % \section{Alphabetic style: oxalph.cbx}
15039 %
15040 % \setcounter{FancyVerbLine}{19}
15041 %
15042 % The standard |alphabetic| style works, needing only a little configuration.
15043 %
15044 % \begin{macrocode}
15045 \RequireCitationStyle{alphabetic}
15046 % \end{macrocode}
15047 %
15048 % Compressed citations are delimited with a semicolon, just like
15049 % non-compressed citations.
15050 %
15051 % \begin{macrocode}
15052 \renewcommand*{\multicitedelim}{\addsemicolon\space}
15053 \renewcommand*{\compcitedelim}{\addsemicolon\space}
15054 % \end{macrocode}
15055 %
15056 % The page reference postnote is given after a colon.
15057 %
15058 % \begin{macrocode}
15059 \renewcommand*{\postnotedelim}{\addcolon\space}
15060 % \end{macrocode}
15061 %
15062 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15063 %</a>
15064 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15065 %
15066 % \section{Common citation fixes}
15067 %
15068 % \setcounter{FancyVerbLine}{0}
15069 %
15070 % This code is appended to all the citation style files.
15071 %
15072 % Just in case someone loaded this without loading |oxref.bbx|, we ensure the
15073 % necessary definitions are in place.
15074 %
15075 % \begin{macrocode}
15076 \RequirePackage{etoolbox}
15077 \RequirePackage{xpatch}
15078 \providetoggle{blx@ox@autoanon}
15079 \providetoggle{blx@ox@abbranon}
15080 % \end{macrocode}
15081 %
15082 % We fix the |textcite| macro so if the \key{anon} option is set to \val{long}
15083 % or \val{short}, a value of \enquote{Anonymous} is replaced by the bibliography
15084 % string |anon|.
15085 %
15086 % \begin{macrocode}
15087 \xpatchbibmacro{textcite}{%
15088 \printnames{labelname}%
15089 }{%
15090 \ifboolexpr{
15091 test {\iffieldequalstr{labelnamesource}{author}}
15092 and
15093 togl {blx@ox@autoanon}
15094 and
15095 test {\iffieldequals{rawauthor}{\oxrefanon}}
15096 }{%
15097 \iftoggle{blx@ox@abbranon}{\bibcpsstring{anon}}{\bibcplstring{anon}}%
15098 }{%
15099 \printnames{labelname}%
15100 }%
15101 }{}{\wlog{WARNING: biblatex-oxref failed to patch textcite}}
15102 % \end{macrocode}
15103 %
15104 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15105 %</cbx>
15106 %<*dbx>
15107 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15108 %
15109 % \chapter{Data model adjustments}
15110 %
15111 % \section{oxnotes.dbx, oxyear.dbx, oxnum.dbx, and oxalph.dbx}
15112 %
15113 % \setcounter{FancyVerbLine}{19}
15114 %
15115 % We provide an additional name part for handling titles.
15116 %
15117 % \begin{macrocode}
15118 \DeclareDatamodelConstant[type=list]{nameparts}{prefix,family,suffix,given,title}
15119 % \end{macrocode}
15120 %
15121 % The |datetype| and |origdatetype| fields are used for prefixing the date with
15122 % a description.
15123 %
15124 % \begin{macrocode}
15125 \DeclareDatamodelFields[type=field,datatype=literal]{datetype,origdatetype}
15126 % \end{macrocode}
15127 %
15128 % We add the |inaudio| entry type and friends.
15129 %
15130 % \begin{macrocode}
15131 \DeclareDatamodelEntrytypes{inaudio,inmusic,inmovie,invideo}
15132 % \end{macrocode}
15133 %
15134 % The |authoraddon| and |editoraddon| fields are used for handling
15135 % pseudonyms. The |serieseditor| field is used for the editor of a book series,
15136 % as opposed to the editor of the particular cited work.
15137 %
15138 % \begin{macrocode}
15139 \DeclareDatamodelFields[type=list,datatype=name]{authoraddon,editoraddon,serieseditor}
15140 % \end{macrocode}
15141 %
15142 % The |jointauthor| and |jointauthortype| fields are used for internally for
15143 % handling editors/translators who can be considered joint authors.
15144 %
15145 % \begin{macrocode}
15146 \DeclareDatamodelFields[type=list,datatype=name]{jointauthor}
15147 \DeclareDatamodelFields[type=field,datatype=literal]{jointauthortype}
15148 % \end{macrocode}
15149 %
15150 % The |rawauthor| field is used internally for checking whether an
15151 % the name given in the |author| field is a keyword meaning \enquote{anonymous}.
15152 %
15153 % \begin{macrocode}
15154 \DeclareDatamodelFields[type=field,datatype=literal]{rawauthor}
15155 \DeclareDatamodelEntryfields{datetype,origdatetype,authoraddon,editoraddon,%
15156 serieseditor,jointauthor,jointauthortype,rawauthor}
15157 % \end{macrocode}
15158 %
15159 % We provide a |shortlabeltitle| field to contain our custom reduction of the
15160 % |labeltitle|.
15161 %
15162 % \begin{macrocode}
15163 \DeclareDatamodelFields[type=field,datatype=literal]{shortlabeltitle}
15164 % \end{macrocode}
15165 %
15166 % This data model is borrowed from \textsf{biblatex-manuscripts-philology}.
15167 %
15168 % \begin{macrocode}
15169 \DeclareDatamodelEntrytypes{manuscript}
15170 \DeclareDatamodelFields[type=field,datatype=literal]{catalog,dating,%
15171 shortlibrary,columns, collection,shortcollection,usualtitle,shelfmark,%
15172 sortshelfmark,support,columns,layer}
15173 \DeclareDatamodelFields[type=list,datatype=name]{scribe,owner}
15174 \DeclareDatamodelFields[type=list,datatype=literal]{origin}
15175 \DeclareDatamodelEntryfields[manuscript]{catalog,dating,shortlibrary,%
15176 shortcollection,columns,languages,collection,usualtitle,shelfmark,%
15177 sortshelfmark,support,columns,origin,scribe,owner}
15178 % \end{macrocode}
15179 %
15180 % This data model helps with legal citations.
15181 %
15182 % \begin{macrocode}
15183 \DeclareDatamodelFields[type=field,datatype=date]{pardate}
15184 \DeclareDatamodelFields[type=field,datatype=literal]{%
15185 parreporter,parseries,neutralcite}
15186 \DeclareDatamodelFields[type=field,datatype=integer]{parvolume}
15187 \DeclareDatamodelFields[type=field,datatype=range]{parpages}
15188 \DeclareDatamodelEntryfields[jurisdiction]{neutralcite,pardate,%
15189 parreporter,parseries,parvolume,parpages}
15190 % \end{macrocode}
15191 %
15192 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15193 %</dbx>
15194 %<*lbx>
15195 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15196 %
15197 % \chapter{Localization modules}
15198 %
15199 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15200 %<*en>
15201 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15202 %
15203 % \section{English: english-oxref.lbx}
15204 %
15205 % \setcounter{FancyVerbLine}{19}
15206 %
15207 % Here we set some language-specific punctuation and date formatting.
15208 % In particular, we set \cs{blx@ox@langbibstring} to use its first
15209 % argument.
15210 %
15211 % \begin{macrocode}
15212 \InheritBibliographyExtras{english}
15213 \DeclareBibliographyExtras{%
15214 \def\finalandcomma{\addcomma}%
15215 \def\blx@ox@langbibstring#1#2{#1\setunit*{\addspace}\bibstring{#2}}%
15216 }
15217 \UndeclareBibliographyExtras{%
15218 \def\blx@ox@langbibstring#1#2{\bibstring{#2}}%
15219 }
15220 % \end{macrocode}
15221 %
15222 % We load the standard set of localization strings, then add our
15223 % adjustments.
15224 %
15225 % \begin{macrocode}
15226 \DeclareBibliographyStrings{%
15227 inherit = {english},
15228 % \end{macrocode}
15229 %
15230 % These are new strings defined by \pkg[biblatex]{oxref}:
15231 %
15232 % \begin{itemize}
15233 % \item Roles expressed as functions
15234 % \end{itemize}
15235 %
15236 % \begin{macrocode}
15237 director = {{director}{dir\adddot}},
15238 directors = {{directors}{dirs\adddot}},
15239 performer = {{}{}},
15240 performers = {{}{}},
15241 reader = {{reader}{reader}},
15242 readers = {{readers}{readers}},
15243 conductor = {{conductor}{cond\adddot}},
15244 conductors = {{conductors}{cond\adddot}},
15245 serieseditor = {{series editor}{ser\adddotspace ed\adddot}},
15246 serieseditors = {{series editors}{ser\adddotspace eds\adddot}},
15247 holder = {{holder}{holder}},
15248 holders = {{holders}{holders}},
15249 editorcm = {{editor and compiler}{ed\adddotspace and comp\adddot}},
15250 editorcms = {{editors and compilers}{eds\adddotspace and comp\adddot}},
15251 % \end{macrocode}
15252 %
15253 % \begin{itemize}
15254 % \item Roles expressed as actions
15255 % \end{itemize}
15256 %
15257 % \begin{macrocode}
15258 byperformer = {{}{}},
15259 bydirector = {{directed by}{dir\adddot}},
15260 byreader = {{read by}{read by}},
15261 byconductor = {{conducted by}{cond\adddot}},
15262 byserieseditor = {{edited by}{ed\adddot}},
15263 byholder = {{held by}{held by}},
15264 byeditorcm = {{edited and compiled by}{ed\adddotspace and comp\adddot}},
15265 % \end{macrocode}
15266 %
15267 % \begin{itemize}
15268 % \item Publication details
15269 % \end{itemize}
15270 %
15271 % \begin{macrocode}
15272 facsimile = {{facsimile edition}{facs\adddotspace edn\adddot}},
15273 revised = {{revised edition}{rev\adddotspace edn\adddot}},
15274 revisedenlarged = {{revised and enlarged edition}{rev\adddotspace and enl\addotspace edn\adddot}},
15275 revisedreprint = {{revised reprint}{rev\adddotspace repr\adddot}},
15276 suppto = {{Supplement to}{Supplement to}},
15277 equals = {{=}{=}},
15278 original = {{original}{orig\adddot}},
15279 amendedby = {{as amended by}{as amended by}},
15280 % \end{macrocode}
15281 %
15282 % \begin{itemize}
15283 % \item Publication state
15284 % \end{itemize}
15285 %
15286 % \begin{macrocode}
15287 inpressin = {{to be published in}{to be published in}},
15288 % \end{macrocode}
15289 %
15290 % \begin{itemize}
15291 % \item Pagination
15292 % \end{itemize}
15293 %
15294 % \begin{macrocode}
15295 book = {{book}{bk\adddot}},
15296 books = {{books}{bks\adddot}},
15297 canto = {{canto}{canto}},
15298 cantos = {{cantos}{cantos}},
15299 stanza = {{stanza}{stanza}},
15300 stanzas = {{stanzas}{stanzas}},
15301 act = {{Act}{Act}},
15302 acts = {{Acts}{Acts}},
15303 scene = {{Scene}{Scene}},
15304 scenes = {{Scenes}{Scenes}},
15305 folio = {{folio}{fo\adddot}},
15306 folios = {{folios}{fos\adddot}},
15307 article = {{article}{art\adddot}},
15308 articles = {{articles}{arts\adddot}},
15309 clause = {{clause}{cl\adddot}},
15310 clauses = {{clauses}{cls\adddot}},
15311 regulation = {{regulation}{reg\adddot}},
15312 regulations = {{regulations}{regs\adddot}},
15313 rule = {{rule}{r\adddot}},
15314 rules = {{rules}{rr\adddot}},
15315 booktotal = {{book}{bk\adddot}},
15316 booktotals = {{books}{bks\adddot}},
15317 cantototal = {{canto}{canto}},
15318 cantototals = {{cantos}{cantos}},
15319 stanzatotal = {{stanza}{stanza}},
15320 stanzatotals = {{stanzas}{stanzas}},
15321 acttotal = {{Act}{Act}},
15322 acttotals = {{Acts}{Acts}},
15323 scenetotal = {{Scene}{Scene}},
15324 scenetotals = {{Scenes}{Scenes}},
15325 foliototal = {{folio}{fo\adddot}},
15326 foliototals = {{folios}{fos\adddot}},
15327 articletotal = {{article}{art\adddot}},
15328 articletotals = {{articles}{arts\adddot}},
15329 clausetotal = {{clause}{cl\adddot}},
15330 clausetotals = {{clauses}{cls\adddot}},
15331 regulationtotal = {{regulation}{reg\adddot}},
15332 regulationtotals = {{regulations}{regs\adddot}},
15333 ruletotal = {{rule}{r\adddot}},
15334 ruletotals = {{rules}{rr\adddot}},
15335 % \end{macrocode}
15336 %
15337 % \begin{itemize}
15338 % \item Types
15339 % \end{itemize}
15340 %
15341 % \begin{macrocode}
15342 facebook = {{Facebook post}{Facebook post}},
15343 tweet = {{Twitter post}{Twitter post}},
15344 podcast = {{podcast}{podcast}},
15345 clip = {{video}{video}},
15346 webcast = {{webcast}{webcast}},
15347 poster = {{poster}{poster}},
15348 % \end{macrocode}
15349 %
15350 % \begin{itemize}
15351 % \item Miscellaneous
15352 % \end{itemize}
15353 %
15354 % \begin{macrocode}
15355 nolocation = {{no place}{n\adddot p\adddot}},
15356 modified = {{last modified}{last modified}},
15357 recorded = {{recorded}{recorded}},
15358 uploaded = {{uploaded}{uploaded}},
15359 filed = {{filed}{filed}},
15360 issued = {{issued}{issued}},
15361 % \end{macrocode}
15362 %
15363 % \begin{itemize}
15364 % \item Labels
15365 % \end{itemize}
15366 %
15367 % \begin{macrocode}
15368 anon = {{Anonymous}{Anon\adddot}},
15369 pseudo = {{Pseudo-}{Ps\adddot-}},
15370 urldown = {{downloaded}{downloaded}},
15371 % \end{macrocode}
15372 %
15373 % \begin{itemize}
15374 % \item Country names, patents, and patent requests,
15375 % \end{itemize}
15376 %
15377 % \begin{macrocode}
15378 countryjp = {{Japan}{JP}},
15379 patentjp = {{Japanese patent}{Japanese pat.\adddot}},
15380 patreqjp = {{Japanese patent request}{Japanese pat.\adddot req.\adddot}},
15381 % \end{macrocode}
15382 %
15383 % \begin{itemize}
15384 % \item These are borrowed from other styles.
15385 % \end{itemize}
15386 %
15387 % \begin{macrocode}
15388 1column = {{one column}{1\addnbspace col\adddot}},
15389 2column = {{two columns}{2\addnbspace col\adddot}},
15390 inflayer = {{inferior layer}{inf\adddotspace lay\adddot}},
15391 suplayer = {{superior layer}{sup\adddotspace lay\adddot}},
15392 paper = {{paper}{pap\adddot}},
15393 papyrus = {{papyrus}{papy\adddot}},
15394 parchment = {{parchment}{parch\adddot}},
15395 eucase = {{Case}{Case}},
15396 eujoinedcases = {{Joined Cases}{Joined Cases}},
15397 commissiondecision = {{Commission Decision}{Commission Decision}},
15398 application = {{Application}{App\adddot}},
15399 order = {{Order}{Ord\adddot}},
15400 bill = {{Bill}{Bill}},
15401 draft = {{draft}{draft}},
15402 opened = {{opened for signature}{opened for signature}},
15403 signed = {{signed}{signed}},
15404 adopted = {{adopted}{adopted}},
15405 inforce = {{entered into force}{entered into force}},
15406 % \end{macrocode}
15407 %
15408 % The rest of these strings are the standard ones, overridden to match the
15409 % examples in the \emph{Oxford Guide to Style} and \emph{New Hart's Rules}.
15410 % Many of these are guesses extrapolated from what is given.
15411 %
15412 % The roles expressed as functions do not need adjusting. The roles
15413 % expressed as actions do not typically end in \enquote{by} when abbreviated;
15414 % the \enquote{with} parts go first when abbreviated if there is more than one
15415 % editorial role (at least, that is one way of interpreting the examples).
15416 %
15417 % \begin{macrocode}
15418 byeditor = {{edited by}{ed\adddot}},
15419 bycompiler = {{compiled by}{comp\adddot}},
15420 byfounder = {{founded by}{found\adddot}},
15421 bycontinuator = {{continued by}{cont\adddot}},
15422 byredactor = {{redacted by}{red\adddot}},
15423 byreviser = {{revised by}{rev\adddot}},
15424 byreviewer = {{reviewed by}{rev\adddot}},
15425 bycollaborator = {{in collaboration with}{in collab\adddotspace with}},
15426 bytranslator = {{translated by}{trans\adddot}},
15427 bycommentator = {{commented by}{comm\adddot}},
15428 byannotator = {{annotated by}{annot\adddot}},
15429 byeditortr = {{edited and translated by}%
15430 {ed\adddotspace and trans\adddot}},
15431 byeditorco = {{edited and commented by}%
15432 {ed\adddotspace and comm\adddot}},
15433 byeditoran = {{edited and annotated by}%
15434 {ed\adddotspace and annot\adddot}},
15435 byeditorin = {{edited, with an introduction, by}%
15436 {ed.\adddotspace with introduction}},
15437 byeditorfo = {{edited, with a foreword, by}%
15438 {ed.\adddotspace with foreword}},
15439 byeditoraf = {{edited, with an afterword, by}%
15440 {ed.\adddotspace with afterword}},
15441 byeditortrco = {{edited, translated\finalandcomma\ and commented by}%
15442 {ed.,\addabbrvspace trans\adddot\finalandcomma\ and comm\adddot}},
15443 byeditortran = {{edited, translated\finalandcomma\ and annotated by}%
15444 {ed.,\addabbrvspace trans\adddot\finalandcomma\ and annot\adddot}},
15445 byeditortrin = {{edited and translated, with an introduction, by}%
15446 {with introduction, ed\adddotspace and trans\adddot}},
15447 byeditortrfo = {{edited and translated, with a foreword, by}%
15448 {with foreword, ed\adddotspace and trans\adddot}},
15449 byeditortraf = {{edited and translated, with an afterword, by}%
15450 {with afterword, ed\adddotspace and trans\adddot}},
15451 byeditorcoin = {{edited and commented, with an introduction, by}%
15452 {with introduction, ed\adddotspace and comm\adddot}},
15453 byeditorcofo = {{edited and commented, with a foreword, by}%
15454 {with foreword, ed\adddotspace and comm\adddot}},
15455 byeditorcoaf = {{edited and commented, with an afterword, by}%
15456 {with afterword, ed\adddotspace and comm\adddot}},
15457 byeditoranin = {{edited and annotated, with an introduction, by}%
15458 {with introduction, ed\adddotspace and annot\adddot}},
15459 byeditoranfo = {{edited and annotated, with a foreword, by}%
15460 {with foreword, ed\adddotspace and annot\adddot}},
15461 byeditoranaf = {{edited and annotated, with an afterword, by}%
15462 {with afterword, ed\adddotspace and annot\adddot}},
15463 byeditortrcoin = {{edited, translated\finalandcomma\ and commented, with an introduction, by}%
15464 {with introduction, ed.,\addabbrvspace trans\adddot\finalandcomma\ and comm\adddot}},
15465 byeditortrcofo = {{edited, translated\finalandcomma\ and commented, with a foreword, by}%
15466 {with foreword, ed.,\addabbrvspace trans\adddot\finalandcomma\ and comm\adddot}},
15467 byeditortrcoaf = {{edited, translated\finalandcomma\ and commented, with an afterword, by}%
15468 {with afterword, ed.,\addabbrvspace trans\adddot\finalandcomma\ and comm\adddot}},
15469 byeditortranin = {{edited, translated\finalandcomma\ and annotated, with an introduction, by}%
15470 {with introduction, ed.,\addabbrvspace trans\adddot\finalandcomma\ and annot\adddot}},
15471 byeditortranfo = {{edited, translated\finalandcomma\ and annotated, with a foreword, by}%
15472 {with foreword, ed.,\addabbrvspace trans\adddot\finalandcomma\ and annot\adddot}},
15473 byeditortranaf = {{edited, translated\finalandcomma\ and annotated, with an afterword, by}%
15474 {with afterword, ed.,\addabbrvspace trans\adddot\finalandcomma\ and annot\adddot}},
15475 bytranslatorco = {{translated and commented by}%
15476 {trans\adddotspace and comm\adddot}},
15477 bytranslatoran = {{translated and annotated by}%
15478 {trans\adddotspace and annot\adddot}},
15479 bytranslatorin = {{translated, with an introduction, by}%
15480 {trans\adddotspace with introduction}},
15481 bytranslatorfo = {{translated, with a foreword, by}%
15482 {trans\adddotspace with foreword}},
15483 bytranslatoraf = {{translated, with an afterword, by}%
15484 {trans\adddotspace with afterword}},
15485 bytranslatorcoin = {{translated and commented, with an introduction, by}%
15486 {with introduction, trans\adddotspace and comm\adddot}},
15487 bytranslatorcofo = {{translated and commented, with a foreword, by}%
15488 {with foreword, trans\adddotspace and comm\adddot}},
15489 bytranslatorcoaf = {{translated and commented, with an afterword, by}%
15490 {with afterword, trans\adddotspace and comm\adddot}},
15491 bytranslatoranin = {{translated and annotated, with an introduction, by}%
15492 {with introduction, trans\adddotspace and annot\adddot}},
15493 bytranslatoranfo = {{translated and annotated, with a foreword, by}%
15494 {with foreword, trans\adddotspace and annot\adddot}},
15495 bytranslatoranaf = {{translated and annotated, with an afterword, by}%
15496 {with afterword, trans\adddotspace and annot\adddot}},
15497 % \end{macrocode}
15498 %
15499 % The roles expressed as objects and terms for supplementary material
15500 % are not abbreviated.
15501 %
15502 % \begin{macrocode}
15503 withcommentator = {{with a commentary by}{with a commentary by}},
15504 withannotator = {{with annotations by}{with annotations by}},
15505 withintroduction = {{with an introduction by}{with an introduction by}},
15506 withforeword = {{with a foreword by}{with a foreword by}},
15507 withafterword = {{with an afterword by}{with an afterword by}},
15508 introduction = {{introduction}{introduction}},
15509 % \end{macrocode}
15510 %
15511 % The abbreviations for some publication details are different.
15512 %
15513 % \begin{macrocode}
15514 newseries = {{new series}{\mkbibacro{NS}}},
15515 oldseries = {{old series}{\mkbibacro{OS}}},
15516 edition = {{edition}{edn\adddot}},
15517 reprint = {{reprint\nopunct}{repr\adddot\nopunct}},
15518 reviewof = {{review of}{review of}},
15519 reprintas = {{reprinted as}{repr\adddotspace as}},
15520 reprintfrom = {{from}{from}},
15521 translationas = {{English translation as}{Eng\adddotspace trans\adddotspace as}},
15522 origpubin = {{originally published in}{originally pub\adddot}},
15523 % \end{macrocode}
15524 %
15525 % There is also a different abbreviation for \enquote{paragraph}.
15526 %
15527 % \begin{macrocode}
15528 paragraph = {{paragraph}{para\adddot}},
15529 paragraphs = {{paragraphs}{paras\adddot}},
15530 % \end{macrocode}
15531 %
15532 % \emph{New Hart's Rules} uses \enquote{accessed} for URL dates.
15533 %
15534 % \begin{macrocode}
15535 urlseen = {{accessed}{accessed}},
15536 % \end{macrocode}
15537 %
15538 % Scholarly citation terms are abbreviated. Oxford style is to use \enquote{henceforth}
15539 % for shorthands and \enquote{at} to cite a page within a range.
15540 %
15541 % \begin{macrocode}
15542 idem = {{idem}{id\adddot}},
15543 idemsm = {{idem}{id\adddot}},
15544 idemsf = {{eadem}{ead\adddot}},
15545 idemsn = {{idem}{id\adddot}},
15546 idempm = {{eidem}{eid\adddot}},
15547 idempf = {{eaedem}{eaed\adddot}},
15548 idempn = {{eadem}{ead\adddot}},
15549 idempp = {{eidem}{eid\adddot}},
15550 citedas = {{henceforth}{henceforth}},
15551 thiscite = {{at}{at}},
15552 % \end{macrocode}
15553 %
15554 % Languages are abbreviated.
15555 %
15556 % \begin{macrocode}
15557 langamerican = {{American English}{Amer\adddotspace Eng\adddot}},
15558 langbasque = {{Basque}{Basq\adddot}},
15559 langbrazilian = {{Brazilian Portuguese}{Braz\adddotspace Port\adddot}},
15560 langbulgarian = {{Bulgarian}{Bulg\adddot}},
15561 langcatalan = {{Catalan}{Catal\adddot}},
15562 langcroatian = {{Croatian}{Croat\adddot}},
15563 langczech = {{Czech}{Czech}},
15564 langdanish = {{Danish}{Dan\adddot}},
15565 langdutch = {{Dutch}{Dutch}},
15566 langenglish = {{English}{Eng\adddot}},
15567 langestonian = {{Estonian}{Eston\adddot}},
15568 langfinnish = {{Finnish}{Finn\adddot}},
15569 langfrench = {{French}{Fr\adddot}},
15570 langgalician = {{Galician}{Galic\adddot}},
15571 langgerman = {{German}{Ger\adddot}},
15572 langgreek = {{Greek}{Gr\adddot}},
15573 langhungarian = {{Hungarian}{Hung\adddot}},
15574 langitalian = {{Italian}{It\adddot}},
15575 langjapanese = {{Japanese}{Jap\adddot}},
15576 langlatin = {{Latin}{Lat\adddot}},
15577 langlatvian = {{Latvian}{Latv\adddot}},
15578 langlithuanian = {{Lithuanian}{Lith\adddot}},
15579 langmarathi = {{Marathi}{Mar\adddot}},
15580 langnorwegian = {{Norwegian}{Norw\adddot}},
15581 langpolish = {{Polish}{Pol\adddot}},
15582 langportuguese = {{Portuguese}{Port\adddot}},
15583 langromanian = {{Romanian}{Rom\adddot}},
15584 langrussian = {{Russian}{Russ\adddot}},
15585 langserbian = {{Serbian}{Serb\adddot}},
15586 langslovak = {{Slovak}{Slovak}},
15587 langslovene = {{Slovene}{Slov\adddot}},
15588 langspanish = {{Spanish}{Sp\adddot}},
15589 langswedish = {{Swedish}{Swed\adddot}},
15590 langturkish = {{Turkish}{Turk\adddot}},
15591 langukrainian = {{Ukrainian}{Ukr\adddot}},
15592 }
15593 % \end{macrocode}
15594 %
15595 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15596 %</en>
15597 %<*gb>
15598 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15599 %
15600 % \section{British English: british-oxref.lbx}
15601 %
15602 % \setcounter{FancyVerbLine}{19}
15603 %
15604 % Here we set some language-specific punctuation and date formatting.
15605 %
15606 % \begin{macrocode}
15607 \InheritBibliographyExtras{british}
15608 \DeclareBibliographyExtras{%
15609 % \end{macrocode}
15610 %
15611 % The only difference from the standard British date format is that we print it
15612 % \enquote{clean}, with a cardinal instead of an ordinal day.
15613 %
15614 % \begin{macrocode}
15615 \protected\def\mkbibdatelong#1#2#3{%
15616 \iffieldundef{#3}
15617 {}
15618 {\stripzeros{\thefield{#3}}%
15619 \iffieldundef{#2}{}{\nobreakspace}}%
15620 \iffieldundef{#2}
15621 {}
15622 {\mkbibmonth{\thefield{#2}}%
15623 \iffieldundef{#1}{}{\space}}%
15624 \iffieldbibstring{#1}
15625 {\bibstring{\thefield{#1}}}
15626 {\dateeraprintpre{#1}\stripzeros{\thefield{#1}}}}%
15627 % \end{macrocode}
15628 %
15629 % As you'd expect from an Oxford style, we use the Oxford comma, and use a
15630 % period as the time separator. The redefinition of \cs{blx@ox@langbibstring}
15631 % is given here as well.
15632 %
15633 % \begin{macrocode}
15634 \def\finalandcomma{\addcomma}%
15635 \def\bibtimesep{\addperiod}%
15636 \def\blx@ox@langbibstring#1#2{#1\addspace\bibstring{#2}}%
15637 }
15638 \UndeclareBibliographyExtras{%
15639 \def\blx@ox@langbibstring#1#2{\bibstring{#2}}%
15640 }
15641 % \end{macrocode}
15642 %
15643 % We use the British abbreviations for 12-hour clock times.
15644 %
15645 % \begin{macrocode}
15646 \DeclareBibliographyStrings{%
15647 inherit = {english},
15648 am = {{a\adddot m\adddot}{a\adddot m\adddot}},
15649 pm = {{p\adddot m\adddot}{p\adddot m\adddot}},
15650 }
15651 % \end{macrocode}
15652 %
15653 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15654 %</gb>
15655 %<*us>
15656 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15657 %
15658 % \section{American English: american-oxref.lbx}
15659 %
15660 % \setcounter{FancyVerbLine}{19}
15661 %
15662 % \begin{macrocode}
15663 \InheritBibliographyExtras{english}
15664 \DeclareBibliographyExtras{\uspunctuation}
15665 \InheritBibliographyStrings{english}
15666 % \end{macrocode}
15667 %
15668 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15669 %</us>
15670 %<*es>
15671 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15672 %
15673 % \section{Spanish: spanish-oxref.lbx}
15674 %
15675 % \setcounter{FancyVerbLine}{19}
15676 %
15677 % Thanks to Bruno Maltras for contributing these translations.
15678 %
15679 % We load the standard language-specific punctuation and date formatting.
15680 %
15681 % \begin{macrocode}
15682 \InheritBibliographyExtras{spanish}
15683 % \end{macrocode}
15684 %
15685 % We load the standard set of localization strings, then add our
15686 % adjustments.
15687 %
15688 % \begin{macrocode}
15689 \DeclareBibliographyStrings{%
15690 inherit = {spanish},
15691 % \end{macrocode}
15692 %
15693 % These are new strings defined by \pkg[biblatex]{oxref}:
15694 %
15695 % \begin{itemize}
15696 % \item Roles expressed as functions
15697 % \end{itemize}
15698 %
15699 % \begin{macrocode}
15700 director = {{direcci\'on}{dir\adddot}},
15701 directors = {{directores}{dirs\adddot}},
15702 performer = {{int\'erprete}{int\adddot}},
15703 performers = {{int\'erpretes}{ints\adddot}},
15704 reader = {{narraci\'on}{narr\adddot}},
15705 readers = {{narradores}{narrs\adddot}},
15706 conductor = {{direcci\'on}{dir\adddot}},
15707 conductors = {{directores}{dirs\adddot}},
15708 serieseditor = {{editor de la serie}{ed\adddotspace ser\adddot}},
15709 serieseditors = {{editores de la serie}{eds\adddotspace ser\adddot}},
15710 holder = {{titular}{tit\adddot}},
15711 holders = {{titulares}{tits\adddot}},
15712 editorcm = {{editor y compilador}{ed\adddotspace y comp\adddot}},
15713 editorcms = {{editores y compiladores}{eds\adddotspace y comps\adddot}},
15714 % \end{macrocode}
15715 %
15716 % \begin{itemize}
15717 % \item Roles expressed as actions
15718 % \end{itemize}
15719 %
15720 % \begin{macrocode}
15721 byperformer = {{interpretado por}{int\adddot}},
15722 bydirector = {{dirigido por}{dir\adddot}},
15723 byreader = {{narrado por}{narr\adddotspace por}},
15724 byconductor = {{dirigido por}{dir\adddot}},
15725 byserieseditor = {{editado por}{ed\adddot}},
15726 byholder = {{derechos de}{held by}},
15727 byeditorcm = {{editado y compilado por}{ed\adddotspace y comp\adddot}},
15728 % \end{macrocode}
15729 %
15730 % \begin{itemize}
15731 % \item Publication details
15732 % \end{itemize}
15733 %
15734 % \begin{macrocode}
15735 facsimile = {{edici\'on facs\'imil}{ed\adddotspace facs\adddot}},
15736 revised = {{edici\'on revisada}{ed\adddotspace rev\adddot}},
15737 revisedenlarged = {{edici\'on revisada y ampliada}{ed\adddotspace rev\adddotspace y amp\adddot}},
15738 revisedreprint = {{reimpresi\'on revisada}{reimpr\adddotspace rev\adddot}},
15739 suppto = {{Suplemento de}{Supl\adddot de}},
15740 equals = {{=}{=}},
15741 original = {{original}{orig\adddot}},
15742 amendedby = {{enmendado por}{enmendado por}},
15743 % \end{macrocode}
15744 %
15745 % \begin{itemize}
15746 % \item Publication state
15747 % \end{itemize}
15748 %
15749 % \begin{macrocode}
15750 inpressin = {{de pr\'oxima publicaci\'on en}{de pr\'ox\adddotspace publ\adddot}},
15751 % \end{macrocode}
15752 %
15753 % \begin{itemize}
15754 % \item Pagination
15755 % \end{itemize}
15756 %
15757 % \begin{macrocode}
15758 book = {{libro}{lib\adddot}},
15759 books = {{libros}{libs\adddot}},
15760 canto = {{canto}{canto}},
15761 cantos = {{cantos}{cantos}},
15762 stanza = {{estrofa}{estr\adddot}},
15763 stanzas = {{estrofas}{estrs\adddot}},
15764 act = {{Acto}{Acto}},
15765 acts = {{Actos}{Actos}},
15766 scene = {{Escena}{Escena}},
15767 scenes = {{Escenas}{Escenas}},
15768 folio = {{folio}{fol\adddot}},
15769 folios = {{folios}{fols\adddot}},
15770 article = {{art\'iculo}{art\adddot}},
15771 articles = {{art\'iculos}{arts\adddot}},
15772 clause = {{cl\'ausula}{cl\adddot}},
15773 clauses = {{cl\'ausulas}{cls\adddot}},
15774 regulation = {{regulaci\'on}{reg\adddot}},
15775 regulations = {{regulaciones}{regs\adddot}},
15776 rule = {{norma}{nrm\adddot}},
15777 rules = {{normas}{nrms\addot}},
15778 booktotal = {{libro}{lib\adddot}},
15779 booktotals = {{libros}{libs\adddot}},
15780 cantototal = {{canto}{canto}},
15781 cantototals = {{cantos}{cantos}},
15782 stanzatotal = {{estrofa}{estr\adddot}},
15783 stanzatotals = {{estrofas}{estrs\adddot}},
15784 acttotal = {{Acto}{Acto}},
15785 acttotals = {{Actos}{Actos}},
15786 scenetotal = {{Escena}{Escena}},
15787 scenetotals = {{Escenas}{Escenas}},
15788 foliototal = {{folio}{fol\adddot}},
15789 foliototals = {{folios}{fols\adddot}},
15790 articletotal = {{art\'iculo}{art\adddot}},
15791 articletotals = {{art\'iculos}{arts\adddot}},
15792 clausetotal = {{cl\'ausula}{cl\adddot}},
15793 clausetotals = {{cl\'ausulas}{cls\adddot}},
15794 regulationtotal = {{regulaci\'on}{reg\adddot}},
15795 regulationtotals = {{regulaciones}{regs\adddot}},
15796 ruletotal = {{norma}{nrm\adddot}},
15797 ruletotals = {{normas}{nrms\adddot}},
15798 % \end{macrocode}
15799 %
15800 % \begin{itemize}
15801 % \item Types
15802 % \end{itemize}
15803 %
15804 % \begin{macrocode}
15805 facebook = {{Facebook post}{Facebook post}},
15806 tweet = {{tweet}{tweet}},
15807 podcast = {{podcast}{podcast}},
15808 clip = {{video}{video}},
15809 webcast = {{webcast}{webcast}},
15810 poster = {{poster}{poster}},
15811 % \end{macrocode}
15812 %
15813 % \begin{itemize}
15814 % \item Miscellaneous
15815 % \end{itemize}
15816 %
15817 % \begin{macrocode}
15818 nolocation = {{sin lugar}{s\adddot l\adddot}},
15819 modified = {{\'ultima modificaci\'on}{\'ult\adddotspace modif\adddot}},
15820 recorded = {{registrado}{registrado}},
15821 uploaded = {{subido}{subido}},
15822 filed = {{archivado}{archivado}},
15823 issued = {{publicado}{publicado}},
15824 % \end{macrocode}
15825 %
15826 % \begin{itemize}
15827 % \item Labels
15828 % \end{itemize}
15829 %
15830 % \begin{macrocode}
15831 anon = {{An\'onimo}{An\'on\adddot}},
15832 pseudo = {{Pseudo-}{Ps\adddot-}},
15833 urldown = {{descargado}{descargado}},
15834 % \end{macrocode}
15835 %
15836 % \begin{itemize}
15837 % \item Country names, patents, and patent requests,
15838 % \end{itemize}
15839 %
15840 % \begin{macrocode}
15841 countryjp = {{Jap\'on}{JP}},
15842 patentjp = {{Patente japonesa}{Pat\adddotspace japonesa}},
15843 patreqjp = {{Solicitud de patente japonesa}{Sol\adddotspace pat\adddotspace japonesa}},
15844 % \end{macrocode}
15845 %
15846 % \begin{itemize}
15847 % \item These are borrowed from other styles.
15848 % \end{itemize}
15849 %
15850 % \begin{macrocode}
15851 1column = {{una columna}{1\addnbspace col\adddot}},
15852 2column = {{dos columnas}{2\addnbspace col\adddot}},
15853 inflayer = {{norma subordinada}{norm\adddotspace sub\adddot}},
15854 suplayer = {{norma superior}{norm\adddotspace sup\adddot}},
15855 paper = {{hoja}{h\adddot}},
15856 papyrus = {{papiro}{papiro}},
15857 parchment = {{pergamino}{pergam\adddot}},
15858 eucase = {{Caso}{Caso}},
15859 eujoinedcases = {{Casos agrupados}{Casos agrupados}},
15860 commissiondecision = {{Decisi/'on de la Comisi/'on}{Decisi/'on de la Comisi/'on}},
15861 application = {{Solicitud}{Solic\adddot}},
15862 order = {{Orden}{Ord\adddot}},
15863 bill = {{Proyecto de ley}{Proy\adddotspace de ley}},
15864 draft = {{anteproyecto}{anteproyecto}},
15865 opened = {{abierto a la firma}{abierto a la firma}},
15866 signed = {{aprobada}{aprobada}},
15867 adopted = {{adoptada}{adoptada}},
15868 inforce = {{en vigor}{en vigor}},
15869 % \end{macrocode}
15870 %
15871 % The rest of these strings are overrides for the standard ones.
15872 %
15873 % In parallel with the English versions, we remove the final \enquote{por} from
15874 % the abbreviated versions of the roles expressed as actions.
15875 %
15876 % \begin{macrocode}
15877 byeditor = {{editado por}{ed\adddotspace}},
15878 byredactor = {{redacci\'on de}{red\adddotspace de}},
15879 byreviser = {{revisado por}{rev\adddotspace}},
15880 byreviewer = {{rese\~nado por}{res\adddotspace}},
15881 byfounder = {{fundado por}{fund\adddotspace}},
15882 bycontinuator = {{continuado por}{cont\adddotspace}},
15883 bycollaborator = {{colaboraci\'on de}{col\adddotspace de}},
15884 bytranslator = {{traducido por}{trad\adddotspace}},
15885 bycommentator = {{comentado por}{com\adddotspace}},
15886 byannotator = {{anotado por}{anot\adddotspace}},
15887 byeditortr = {{editado y traducido por}%
15888 {ed\adddotspace y trad\adddotspace}},
15889 byeditorco = {{editado y comentado por}%
15890 {ed\adddotspace y com\adddotspace }},
15891 byeditoran = {{edici\'on y notas de}%
15892 {ed\adddotspace y not\adddotspace}},
15893 byeditorin = {{edici\'on e introducci\'on de}%
15894 {ed\adddotspace e intr\adddotspace}},
15895 byeditorfo = {{edici\'on y pr\'ologo de}%
15896 {ed\adddotspace y pr\'ol\adddotspace}},
15897 byeditoraf = {{edici\'on y ep\'ilogo de}%
15898 {ed\adddotspace y ep\'il\adddotspace}},
15899 byeditortrco = {{editado, traducido y comentado por}%
15900 {ed.,\addabbrvspace trad\adddotspace y com\adddotspace}},
15901 byeditortran = {{edici\'on, traducci\'on y notas de}%
15902 {ed.,\addabbrvspace trad\adddotspace y not\adddotspace}},
15903 byeditortrin = {{edici\'on, traducci\'on e introducci\'on de}%
15904 {ed.,\addabbrvspace trad\adddotspace e intr\adddotspace}},
15905 byeditortrfo = {{edici\'on, traducci\'on y pr\'ologo de}%
15906 {ed.,\addabbrvspace trad\adddotspace y pr\'ol\adddotspace}},
15907 byeditortraf = {{editado, traducido y epilogado}%
15908 {ed.,\addabbrvspace trad\adddotspace y ep\'il\adddotspace}},
15909 byeditorcoin = {{editado, comentado e introducido}%
15910 {ed.,\addabbrvspace com\adddotspace e intr\adddotspace}},
15911 byeditorcofo = {{edici\'on, comentarios y pr\'ologo de}%
15912 {ed.,\addabbrvspace com\adddotspace y pr\'ol\adddotspace}},
15913 byeditorcoaf = {{edici\'on, comentarios y ep\'ilogo de}%
15914 {ed.,\addabbrvspace com\adddotspace y ep\'il\adddotspace}},
15915 byeditoranin = {{edici\'on, notas e introducci\'on de}%
15916 {ed.,\addabbrvspace anot\adddotspace e intr\adddotspace}},
15917 byeditoranfo = {{edici\'on, notas y pr\'ologo de}%
15918 {ed.,\addabbrvspace anot\adddotspace y pr\'ol\adddotspace}},
15919 byeditoranaf = {{edici\'on, notas y ep\'ilogo de}%
15920 {ed.,\addabbrvspace anot\adddotspace y ep\'il\adddotspace}},
15921 byeditortrcoin = {{edici\'on, traducci\'on, comentarios e introducci\'on de}%
15922 {ed.,\addabbrvspace trad.,\addabbrvspace com\adddotspace e intr\adddotspace}},
15923 byeditortrcofo = {{edici\'on, traducci\'on, comentarios y pr\'ologo de}%
15924 {ed.,\addabbrvspace trad.,\addabbrvspace com\adddotspace y pr\'ol\adddotspace}},
15925 byeditortrcoaf = {{edici\'on, traducci\'on, comentarios y ep\'ilogo de}%
15926 {ed.,\addabbrvspace trad.,\addabbrvspace com\adddotspace y ep\'il\adddotspace}},
15927 byeditortranin = {{edici\'on, traducci\'on, notas e introducci\'on de}%
15928 {ed.,\addabbrvspace trad.,\addabbrvspace anot\adddotspace e intr\adddotspace}},
15929 byeditortranfo = {{edici\'on, traducci\'on, notas y pr\'ologo de}%
15930 {ed.,\addabbrvspace trad.,\addabbrvspace anot\adddotspace y pr\'ol\adddotspace}},
15931 byeditortranaf = {{edici\'on, traducci\'on, notas y ep\'ilogo de}%
15932 {ed.,\addabbrvspace trad.,\addabbrvspace anot\adddotspace y ep\'il\adddotspace}},
15933 bytranslatorco = {{traducci\'on y comentarios de}%
15934 {trad\adddotspace y com\adddotspace}},
15935 bytranslatoran = {{traducci\'on y notas de}%
15936 {trad\adddotspace y not\adddotspace}},
15937 bytranslatorin = {{traducci\'on e introducci\'on de}%
15938 {trad\adddotspace e introd\adddotspace}},
15939 bytranslatorfo = {{traducci\'on y pr\'ologo de}%
15940 {trad\adddotspace y pr\'ol\adddotspace}},
15941 bytranslatoraf = {{traducci\'on y ep\'ilogo de}%
15942 {trad\adddotspace y ep\'il\adddotspace}},
15943 bytranslatorcoin = {{traducci\'on, comentarios e introducci\'on de}%
15944 {trad.,\addabbrvspace com\adddotspace e intr\adddotspace}},
15945 bytranslatorcofo = {{traducci\'on, comentarios y pr\'ologo de}%
15946 {trad.,\addabbrvspace com\adddotspace y pr\'ol\adddotspace}},
15947 bytranslatorcoaf = {{traducci\'on, comentarios y ep\'ilogo de}%
15948 {trad.,\addabbrvspace com\adddotspace y ep\'il\adddotspace}},
15949 bytranslatoranin = {{traducci\'on, notas e introducci\'on de}%
15950 {trad.,\addabbrvspace anot\adddotspace e intr\adddotspace}},
15951 bytranslatoranfo = {{traducci\'on, notas y pr\'ologo}%
15952 {trad.,\addabbrvspace anot\adddotspace y pr\'ol\adddotspace}},
15953 bytranslatoranaf = {{traducci\'on, notas y ep\'ilogo}%
15954 {trad.,\addabbrvspace anot\adddotspace y ep\'il\adddotspace}},
15955 % \end{macrocode}
15956 %
15957 % The roles expressed as objects and terms for supplementary material
15958 % are not abbreviated.
15959 %
15960 % \begin{macrocode}
15961 withcommentator = {{con comentario de}{con comentario de}},
15962 withannotator = {{con notas de}{con notas de}},
15963 withintroduction = {{con introduci\'on de}{con introduci\'on de}},
15964 withforeword = {{con pr\'ologo de}{con pr\'ologo de}},
15965 withafterword = {{con ep\'ilogo de}{con ep\'ilogo de}},
15966 introduction = {{introduci\'on}{introduci\'on}},
15967 % \end{macrocode}
15968 %
15969 % The abbreviations for some publication details are different.
15970 %
15971 % \begin{macrocode}
15972 newseries = {{nueva \'epoca}{\mkbibacro{N\'E}}},
15973 oldseries = {{antigua \'epoca}{\mkbibacro{A\'E}}},
15974 edition = {{edici\'on}{edn\adddot}},
15975 reprintfrom = {{de}{de}},
15976 translationas = {{traducido espa\~nol como}{trad\adddotspace espa\~nol como}},
15977 origpubin = {{publicado originalmente en}{pub\adddot orig\adddotspace}},
15978 % \end{macrocode}
15979 %
15980 % \emph{New Hart's Rules} uses \enquote{accessed} for URL dates.
15981 %
15982 % \begin{macrocode}
15983 urlseen = {{accedido}{accedido}},
15984 % \end{macrocode}
15985 %
15986 % Oxford style is to use \enquote{henceforth}
15987 % for shorthands and \enquote{at} to cite a page within a range.
15988 %
15989 % \begin{macrocode}
15990 idem = {{idem}{id\adddot}},
15991 idemsm = {{idem}{id\adddot}},
15992 idemsf = {{eadem}{ead\adddot}},
15993 idemsn = {{idem}{id\adddot}},
15994 idempm = {{eidem}{eid\adddot}},
15995 idempf = {{eaedem}{eaed\adddot}},
15996 idempn = {{eadem}{ead\adddot}},
15997 idempp = {{eidem}{eid\adddot}},
15998 citedas = {{en adelante}{en adelante}},
15999 thiscite = {{en}{en}},
16000 % \end{macrocode}
16001 %
16002 % Languages are abbreviated.
16003 %
16004 % \begin{macrocode}
16005 langamerican = {{ingl\'es americano}{ing\adddotspace amer\adddot}},
16006 langbasque = {{vasco}{vasc\adddot}},
16007 langbrazilian = {{portugu\'es brasile\~no}{por\adddotspace bras\adddot}},
16008 langbulgarian = {{b\'ulgaro}{bul\adddot}},
16009 langcatalan = {{catal\'an}{cat\adddot}},
16010 langcroatian = {{croata}{hrv\adddot}},
16011 langczech = {{checo}{ces\adddot}},
16012 langdanish = {{dan\'es}{dan\adddot}},
16013 langdutch = {{neerland\'es}{nld\adddot}},
16014 langenglish = {{ingl\'es}{ing\adddot}},
16015 langestonian = {{estonio}{est\adddot}},
16016 langfinnish = {{fin\'es}{fin\adddot}},
16017 langfrench = {{franc\'es}{fra\adddot}},
16018 langgalician = {{gallego}{glg\adddot}},
16019 langgerman = {{alem\'an}{ale\adddot}},
16020 langgreek = {{griego}{gr\adddot}},
16021 langhungarian = {{h\'ungaro}{hun\adddot}},
16022 langitalian = {{italiano}{ita\adddot}},
16023 langjapanese = {{japon\'es}{jap\adddot}},
16024 langlatin = {{lat\'in}{lat\adddot}},
16025 langlatvian = {{let\'on}{let\adddot}},
16026 langlithuanian = {{lituano}{lit\adddot}},
16027 langmarathi = {{marathi}{mar\adddot}},
16028 langnorwegian = {{noruego}{nor\adddot}},
16029 langpolish = {{polaco}{pol\adddot}},
16030 langportuguese = {{portugu\'es}{port\adddot}},
16031 langrussian = {{ruso}{rus\adddot}},
16032 langserbian = {{serbio}{srp\adddot}},
16033 langslovak = {{eslovaco}{slk\adddot}},
16034 langslovene = {{esloveno}{slv\adddot}},
16035 langspanish = {{espa\~nol}{esp\adddot}},
16036 langswedish = {{sueco}{sueco}},
16037 langturkish = {{turco}{turco}},
16038 langukrainian = {{ucraniano}{ucr\adddot}},
16039 }
16040 % \end{macrocode}
16041 %
16042 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16043 %</es>
16044 %<*pl>
16045 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16046 %
16047 % \section{Polish: polish-oxref.lbx}
16048 %
16049 % \setcounter{FancyVerbLine}{19}
16050 %
16051 % Thanks to Sebastian Wasiuta for contributing these translations and extras.
16052 %
16053 % We load the standard language-specific punctuation and date formatting.
16054 %
16055 % \begin{macrocode}
16056 \InheritBibliographyExtras{polish}
16057 % \end{macrocode}
16058 %
16059 % Here are some additional specific settings we need.
16060 %
16061 % There is no comma after forenames in the inverted position.
16062 %
16063 % \begin{macrocode}
16064 \DeclareBibliographyExtras{%
16065 \DeclareDelimFormat{revsdnamedelim}{}%
16066 % \end{macrocode}
16067 %
16068 % We need to use the right case for month names in treaty execution dates.
16069 %
16070 % \begin{macrocode}
16071 \savecommand\makebbx@dateii
16072 \def\makebbx@dateii#1#2#3{%
16073 \blx@imc@stripzeros{#3}~\lbx@pl@mkbibmonth{#2}%
16074 \space
16075 #1}%
16076 % \end{macrocode}
16077 %
16078 % Volume numbers are expressed in uppercase Roman numerals.
16079 %
16080 % \begin{macrocode}
16081 \savecommand\mkvolroman
16082 \renewcommand*{\mkvolroman}[1]{\RN{#1}}%
16083 % \end{macrocode}
16084 %
16085 % There is no compression of years.
16086 %
16087 % \begin{macrocode}
16088 \savecommand\blx@ox@compyear
16089 \renewcommand*{\blx@ox@compyear}[2]{#2}%
16090 % \end{macrocode}
16091 %
16092 % There is no compression of pagination ranges.
16093 %
16094 % \begin{macrocode}
16095 \savefieldformat{pages}%
16096 \DeclareFieldFormat{pages}{%
16097 \iffieldundef{bookpagination}%
16098 {\mknormrange{#1}}%
16099 {\mkpageprefix[bookpagination][\mknormrange]{#1}}%
16100 }%
16101 \savefieldformat{postnote}%
16102 \DeclareFieldFormat{postnote}{%
16103 \iffieldundef{pagination}%
16104 {\mknormrange{#1}}%
16105 {\mkpageprefix[pagination][\mknormrange]{#1}}%
16106 }%
16107 % \end{macrocode}
16108 %
16109 % We flip the word order when specifying the edition.
16110 %
16111 % \begin{macrocode}
16112 \savefieldformat{edition}%
16113 \DeclareFieldFormat{edition}{%
16114 \ifinteger{#1}
16115 {\bibstring{edition}~\mkbibordedition{#1}}
16116 {\ifbibstring{#1}{\bibstring{#1}}{#1\isdot}}}%
16117 }
16118 % \end{macrocode}
16119 %
16120 % Lastly we add code to undo these changes before switching to another language.
16121 %
16122 % \begin{macrocode}
16123 \UndeclareBibliographyExtras{%
16124 \DeclareDelimFormat{revsdnamedelim}{\addcomma}%
16125 \restorecommand\makebbx@dateii
16126 \restorecommand\mkvolroman
16127 \restorecommand\blx@ox@compyear
16128 \restorefieldformat{pages}%
16129 \restorefieldformat{postnote}%
16130 \restorefieldformat{edition}%
16131 }
16132 % \end{macrocode}
16133 %
16134 % We load the standard set of localization strings, then add our
16135 % adjustments.
16136 %
16137 % \begin{macrocode}
16138 \DeclareBibliographyStrings{%
16139 inherit = {polish},
16140 % \end{macrocode}
16141 %
16142 % These are new strings defined by \pkg[biblatex]{oxref}:
16143 %
16144 % \begin{itemize}
16145 % \item Roles expressed as functions
16146 % \end{itemize}
16147 %
16148 % \begin{macrocode}
16149 director = {{re\.{z}yser}{re\.{z}\adddot}},
16150 directors = {{re\.{z}yserzy}{re\.{z}\adddot}},
16151 performer = {{wykonawca}{wyk\adddot}},
16152 performers = {{wykonawcy}{wyk\adddot}},
16153 reader = {{czytelnik}{czytelnik}},
16154 readers = {{czytelnicy}{czytelnicy}},
16155 conductor = {{dyrygent}{dyr\adddot}},
16156 conductors = {{dyrygenci}{dyr\adddot}},
16157 serieseditor = {{redaktor serii}{red\adddotspace serii}},
16158 serieseditors = {{redaktor serii}{red\adddotspace serii}},
16159 holder = {{w\l a\'{s}ciciel}{w\l a\'{s}ciciel}},
16160 holders = {{w\l a\'{s}ciciele}{w\l a\'{s}ciciele}},
16161 editorcm = {{redaktor i~kompilator}{red\adddotspace i~kompilator}},
16162 editorcms = {{redaktorzy i~kompilatorzy}{red\adddotspace i~kompilatorzy}},
16163 % \end{macrocode}
16164 %
16165 % \begin{itemize}
16166 % \item Roles expressed as actions
16167 % \end{itemize}
16168 %
16169 % \begin{macrocode}
16170 byperformer = {{wykonawca}{wyk\adddot}},
16171 bydirector = {{re\.{z}yseria}{re\.{z}\adddot}},
16172 byreader = {{czyta}{czyta}},
16173 byconductor = {{kieruje}{kier\adddot}},
16174 byserieseditor = {{redakcja}{red\adddot}},
16175 byholder = {{w~posiadaniu}{w~posiadaniu}},
16176 byeditorcm = {{redakcja i~opracowanie}{red\adddotspace i~oprac\adddot}},
16177 % \end{macrocode}
16178 %
16179 % \begin{itemize}
16180 % \item Publication details
16181 % \end{itemize}
16182 %
16183 % \begin{macrocode}
16184 facsimile = {{wydanie faksymile}{wyd\adddotspace faksymile}},
16185 revised = {{wydanie poprawione}{wyd\adddotspace popr\adddot}},
16186 revisedenlarged = {{wydanie poprawione i~rozszerzone}{wyd\adddotspace popr\addotspace i~rozszerz\adddot}},
16187 revisedreprint = {{przedruk poprawiony}{przedr\adddotspace popr\adddot}},
16188 suppto = {{dodatek do}{dod\adddotspace do}},
16189 equals = {{=}{=}},
16190 original = {{oryginalny}{oryg\adddot}},
16191 amendedby = {{zmienione przez}{zmien\adddotspace przez}},
16192 % \end{macrocode}
16193 %
16194 % \begin{itemize}
16195 % \item Publication state
16196 % \end{itemize}
16197 %
16198 % \begin{macrocode}
16199 inpressin = {{z\l o\.{z}one do}{z\l o\.{z}one do}},
16200 % \end{macrocode}
16201 %
16202 % \begin{itemize}
16203 % \item Pagination
16204 % \end{itemize}
16205 %
16206 % \begin{macrocode}
16207 book = {{ksi\k{e}ga}{ks\adddot}},
16208 books = {{ksi\k{e}gi}{ks\adddot}},
16209 canto = {{pie\'{s}\'{n}}{pie\'{s}\'{n}}},
16210 cantos = {{pie\'{s}ni}{pie\'{s}ni}},
16211 stanza = {{zwrotka}{zwr\adddot}},
16212 stanzas = {{zwrotki}{zwr\adddot}},
16213 act = {{akt}{a\adddot}},
16214 acts = {{akty}{aa\adddot}},
16215 scene = {{scena}{sc\adddot}},
16216 scenes = {{sceny}{sc\adddot}},
16217 folio = {{karta}{k\adddot}},
16218 folios = {{karty}{kk\adddot}},
16219 article = {{artyku\l }{art\adddot}},
16220 articles = {{artyku\l y}{art\adddot}},
16221 clause = {{klauzula}{klauz\adddot}},
16222 clauses = {{klauzule}{klauz\adddot}},
16223 regulation = {{rozporz\k{a}dzenie}{rozp\adddot}},
16224 regulations = {{rozporz\k{a}dzenia}{rozp\adddot}},
16225 rule = {{przepis}{przep\adddot}},
16226 rules = {{przepisy}{przep\adddot}},
16227 booktotal = {{ksi\k{e}ga}{ks\adddot}},
16228 booktotals = {{ksi\k{e}gi}{ks\adddot}},
16229 cantototal = {{pie\'{s}\'{n}}{pie\'{s}\'{n}}},
16230 cantototals = {{pie\'{s}ni}{pie\'{s}ni}},
16231 stanzatotal = {{zwrotka}{zwr\adddot}},
16232 stanzatotals = {{zwrotki}{zwr\adddot}},
16233 acttotal = {{akt}{a\adddot}},
16234 acttotals = {{akty}{aa\adddot}},
16235 scenetotal = {{scena}{sc\adddot}},
16236 scenetotals = {{sceny}{sc\adddot}},
16237 foliototal = {{karta}{k\adddot}},
16238 foliototals = {{karty}{kk\adddot}},
16239 articletotal = {{artyku\l }{art\adddot}},
16240 articletotals = {{artyku\l y}{art\adddot}},
16241 clausetotal = {{klauzula}{klauz\adddot}},
16242 clausetotals = {{klauzule}{klauz\adddot}},
16243 regulationtotal = {{rozporz\k{a}dzenie}{rozp\adddot}},
16244 regulationtotals = {{rozporz\k{a}dzenia}{rozp\adddot}},
16245 ruletotal = {{przepis}{przep\adddot}},
16246 ruletotals = {{przepisy}{przep\adddot}},
16247 % \end{macrocode}
16248 %
16249 % \begin{itemize}
16250 % \item Types
16251 % \end{itemize}
16252 %
16253 % \begin{macrocode}
16254 facebook = {{wpis na Facebooku}{wpis na Facebooku}},
16255 tweet = {{wpis na Twitterze}{wpis na Twitterze}},
16256 podcast = {{podcast}{podcast}},
16257 clip = {{wideo}{wideo}},
16258 webcast = {{webcast}{webcast}},
16259 poster = {{plakat}{plakat}},
16260 % \end{macrocode}
16261 %
16262 % \begin{itemize}
16263 % \item Miscellaneous
16264 % \end{itemize}
16265 %
16266 % \begin{macrocode}
16267 nolocation = {{bez miejsca}{b\adddot m\adddot}},
16268 modified = {{ostatnio zmodyfikowany}{ostatnio zmodyf\adddot}},
16269 recorded = {{nagrane}{nagr\adddot}},
16270 uploaded = {{za\l adowane}{za\l ad\adddot}},
16271 filed = {{wniesione}{wniesione}},
16272 issued = {{wydany}{wyd\adddot}},
16273 % \end{macrocode}
16274 %
16275 % \begin{itemize}
16276 % \item Labels
16277 % \end{itemize}
16278 %
16279 % \begin{macrocode}
16280 anon = {{Anonim}{Anon\adddot}},
16281 pseudo = {{Pseudo-}{Ps\adddot-}},
16282 urldown = {{pobrane}{pobrane}},
16283 % \end{macrocode}
16284 %
16285 % \begin{itemize}
16286 % \item Country names, patents, and patent requests,
16287 % \end{itemize}
16288 %
16289 % \begin{macrocode}
16290 countryjp = {{Japonia}{JP}},
16291 patentjp = {{japo\'{n}ski patent}{jap\adddotspace pat\adddot}},
16292 patreqjp = {{japo\'{n}ski wniosek patentowy}{jap\adddotspace wniosek pat\adddot}},
16293 % \end{macrocode}
16294 %
16295 % \begin{itemize}
16296 % \item These are borrowed from other styles.
16297 % \end{itemize}
16298 %
16299 % \begin{macrocode}
16300 1column = {{jedna kolumna}{1\addnbspace kol\adddot}},
16301 2column = {{dwie kolumny}{2\addnbspace kol\adddot}},
16302 inflayer = {{warstwa ni\.{z}sza}{warstwa ni\.{z}sza}},
16303 suplayer = {{warstwa wy\.{z}sza}{warstwa wy\.{z}sza}},
16304 paper = {{gazeta}{gazeta}},
16305 papyrus = {{papirus}{papirus}},
16306 parchment = {{pergamin}{pergamin}},
16307 eucase = {{sprawa}{sprawa}},
16308 eujoinedcases = {{po\l \k{a}czone sprawy}{po\l \k{a}czone sprawy}},
16309 commissiondecision = {{decyzja komisji}{decyzja komisji}},
16310 application = {{wniosek}{wniosek}},
16311 order = {{polecenie}{polecenie}},
16312 bill = {{rachunek}{rachunek}},
16313 draft = {{projekt}{proj\adddot}},
16314 opened = {{przed\l o\.{z}one do podpisu}{przed\l\adddotspace do podp\adddot}},
16315 signed = {{podpisane}{podpisane}},
16316 adopted = {{przyj\k{e}te}{przyj\k{e}te}},
16317 inforce = {{wesz\l o w~\.{z}ycie}{wesz\l o w~\.{z}ycie}},
16318 % \end{macrocode}
16319 %
16320 % The rest of these strings are overrides for the standard ones.
16321 %
16322 % \begin{macrocode}
16323 byeditor = {{redakcja}{red\adddot}},
16324 bycompiler = {{opracowanie}{oprac\adddot}},
16325 byfounder = {{za\l o\.{z}one przez}{za\l o\.{z}\adddotspace przez}},
16326 bycontinuator = {{kontynuowane przez}{kont\adddotspace przez}},
16327 byredactor = {{redakcja}{red\adddot}},
16328 byreviser = {{poprawki}{popr\adddot}},
16329 byreviewer = {{recenzja}{rec\adddot}},
16330 bycollaborator = {{we wsp\'{o}\l pracy z}{we wsp\'{o}\l pr\adddotspace z}},
16331 bytranslator = {{t\l umaczenie}{t\l um\adddot}},
16332 bycommentator = {{komentarz}{kom\adddot}},
16333 byannotator = {{obja\'{s}nienia}{obja\'{s}n\adddot}},
16334 byeditortr = {{redakcja i~t\l umaczenie}%
16335 {red\adddotspace i~t\l um\adddot}},
16336 byeditorco = {{redakcja i~komentarz}%
16337 {red\adddotspace i~kom\adddot}},
16338 byeditoran = {{redakcja i~obja\'{s}nienia}%
16339 {red\adddotspace i~obja\'{s}n\adddot}},
16340 byeditorin = {{redakcja i~wst\k{e}p}%
16341 {red\adddotspace i~wst\k{e}p}},
16342 byeditorfo = {{redakcja i~przedmowa}%
16343 {red\adddotspace i~przedm\adddot}},
16344 byeditoraf = {{redakcja i~pos\l owie}%
16345 {red\adddotspace i~pos\l \adddot}},
16346 byeditortrco = {{redakcja, t\l umaczenie i~komentarz}%
16347 {red.,\addabbrvspace t\l um.,\addabbrvspace kom\adddot}},
16348 byeditortran = {{redakcja, t\l umaczenie i~obja\'{s}nienia}%
16349 {red.,\addabbrvspace t\l um.,\addabbrvspace obja\'{s}n\adddot}},
16350 byeditortrin = {{redakcja, t\l umaczenie, wst\k{e}p}%
16351 {red.,\addabbrvspace t\l um.,\addabbrvspace wst\k{e}p}},
16352 byeditortrfo = {{redakcja, t\l umaczenie, przedmowa}%
16353 {red.,\addabbrvspace t\l um.,\addabbrvspace przedm\adddot}},
16354 byeditortraf = {{redakcja, t\l umaczenie, pos\l \adddot}%
16355 {red.,\addabbrvspace t\l um.,\addabbrvspace pos\l \adddot}},
16356 byeditorcoin = {{redakcja, komentarz, wst\k{e}p}%
16357 {red.,\addabbrvspace kom.,\addabbrvspace wst\k{e}p}},
16358 byeditorcofo = {{redakcja, komentarz i~przedmowa}%
16359 {red.,\addabbrvspace kom.,\addabbrvspace przedm\adddot}},
16360 byeditorcoaf = {{redakcja, komentarz, pos\l owie}%
16361 {red.,\addabbrvspace kom.,\addabbrvspace pos\l \adddot}},
16362 byeditoranin = {{redakcja, obja\'{s}nienia, wst\k{e}p}%
16363 {red.,\addabbrvspace obja\'{s}n.,\addabbrvspace wst\k{e}p}},
16364 byeditoranfo = {{redakcja, obja\'{s}nienia, przedmowa}%
16365 {red.,\addabbrvspace obja\'{s}n.,\addabbrvspace przedm\adddot}},
16366 byeditoranaf = {{redakcja, obja\'{s}nienia, pos\l owie}%
16367 {red.,\addabbrvspace obja\'{s}n.,\addabbrvspace pos\l \adddot}},
16368 byeditortrcoin = {{redakcja, t\l umaczenie, komentarz, wst\k{e}p}%
16369 {red.,\addabbrvspace t\l um.,\addabbrvspace kom.,\addabbrvspace wst\k{e}p}},
16370 byeditortrcofo = {{redakcja, t\l umaczenie, komentarz, przedmowa}%
16371 {red.,\addabbrvspace t\l um.,\addabbrvspace kom.,\addabbrvspace przedm\adddot}},
16372 byeditortrcoaf = {{redakcja, t\l umaczenie, komentarz, pos\l owie}%
16373 {red.,\addabbrvspace t\l um.,\addabbrvspace kom.,\addabbrvspace pos\l \adddot}},
16374 byeditortranin = {{redakcja, t\l umaczenie, obja\'{s}nienia, wst\k{e}p}%
16375 {red.,\addabbrvspace t\l um.,\addabbrvspace obja\'{s}n.,\addabbrvspace wst\k{e}p}},
16376 byeditortranfo = {{redakcja, t\l umaczenie, obja\'{s}nienia, przedmowa}%
16377 {red.,\addabbrvspace t\l um.,\addabbrvspace obja\'{s}n.,\addabbrvspace przedm\adddot}},
16378 byeditortranaf = {{redakcja, t\l umaczenie, obja\'{s}nienia, pos\l owie}%
16379 {red.,\addabbrvspace t\l um.,\addabbrvspace obja\'{s}n.,\addabbrvspace pos\l \adddot}},
16380 bytranslatorco = {{t\l umaczenie i~komentarz}%
16381 {t\l um\adddotspace i~kom\adddot}},
16382 bytranslatoran = {{t\l umaczenie i~obja\'{s}nienia}%
16383 {t\l um\adddotspace i~obja\'{s}n\adddot}},
16384 bytranslatorin = {{t\l umaczenie i~wst\k{e}p}%
16385 {t\l um.,\addabbrvspace wst\k{e}p}},
16386 bytranslatorfo = {{t\l umaczenie i~przedmowa}%
16387 {t\l um.,\addabbrvspace przedm\adddot}},
16388 bytranslatoraf = {{t\l umaczenie i~pos\l owie}%
16389 {t\l um.,\addabbrvspace pos\l \adddot}},
16390 bytranslatorcoin = {{t\l umaczenie, komentarz i~wst\k{e}p}%
16391 {t\l um.,\addabbrvspace kom.,\addabbrvspace wst\k{e}p}},
16392 bytranslatorcofo = {{t\l umaczenie, komentarz i~przedmowa}%
16393 {t\l um.,\addabbrvspace kom.,\addabbrvspace przedm\adddot}},
16394 bytranslatorcoaf = {{t\l umaczenie, komentarz i~pos\l owie}%
16395 {t\l um.,\addabbrvspace kom.,\addabbrvspace pos\l \adddot}},
16396 bytranslatoranin = {{t\l umaczenie, obja\'{s}nienia i~wst\k{e}p}%
16397 {t\l um.,\addabbrvspace obja\'{s}n.,\addabbrvspace wst\k{e}p}},
16398 bytranslatoranfo = {{t\l umaczenie, obja\'{s}nienia i~przedmowa}%
16399 {t\l um.,\addabbrvspace obja\'{s}n.,\addabbrvspace przedm\adddot}},
16400 bytranslatoranaf = {{t\l umaczenie, obja\'{s}nienia i~pos\l owie}%
16401 {t\l um.,\addabbrvspace obja\'{s}n.,\addabbrvspace pos\l \adddot}},
16402 % \end{macrocode}
16403 %
16404 % The roles expressed as objects and terms for supplementary material
16405 % are not abbreviated.
16406 %
16407 % \begin{macrocode}
16408 withcommentator = {{komentarz}{komentarz}},
16409 withannotator = {{obja\'{s}nienia}{obja\'{s}nienia}},
16410 withintroduction = {{wst\k{e}p}{wst\k{e}p}},
16411 withforeword = {{przedmowa}{przedmowa}},
16412 withafterword = {{pos\l owie}{pos\l owie}},
16413 introduction = {{wst\k{e}p}{wst\k{e}p}},
16414 % \end{macrocode}
16415 %
16416 % The translations and abbreviations for some publication details are different.
16417 %
16418 % \begin{macrocode}
16419 newseries = {{nowa seria}{nowa seria}},
16420 oldseries = {{dawna seria}{dawna seria}},
16421 edition = {{wydanie}{wyd\adddot}},
16422 reviewof = {{recenzja}{rec\adddot}},
16423 reprintfrom = {{przedruk z}{przedr\adddotspace z}},
16424 translationas = {{t\l umaczenie polskie}{t\l um\adddotspace pol\adddotspace}},
16425 origpubin = {{pierwodruk w}{pierwodr\adddotspace w}},
16426 % \end{macrocode}
16427 %
16428 % We use a different translation for \enquote{paragraph}.
16429 %
16430 % \begin{macrocode}
16431 paragraph = {{ust\k{e}p}{ust\adddot}},
16432 paragraphs = {{ust\k{e}py}{ust\adddot}},
16433 % \end{macrocode}
16434 %
16435 % \emph{New Hart's Rules} uses \enquote{accessed} for URL dates.
16436 %
16437 % \begin{macrocode}
16438 urlseen = {{dost\k{e}p}{dost\k{e}p}},
16439 % \end{macrocode}
16440 %
16441 % Scholarly citation terms are abbreviated. Oxford style is to use \enquote{henceforth}
16442 % for shorthands and \enquote{at} to cite a page within a range.
16443 %
16444 % \begin{macrocode}
16445 idem = {{idem}{id\adddot}},
16446 idemsm = {{idem}{id\adddot}},
16447 idemsf = {{eadem}{ead\adddot}},
16448 idemsn = {{idem}{id\adddot}},
16449 idempm = {{eidem}{eid\adddot}},
16450 idempf = {{eaedem}{eaed\adddot}},
16451 idempn = {{eadem}{ead\adddot}},
16452 idempp = {{eidem}{eid\adddot}},
16453 citedas = {{dalej}{dalej}},
16454 thiscite = {{na}{na}},
16455 % \end{macrocode}
16456 %
16457 % Languages are abbreviated.
16458 %
16459 % \begin{macrocode}
16460 langamerican = {{ameryka\'{n}ski angielski}{amer\adddotspace ang\adddot}},
16461 langbasque = {{baskijski}{bask\adddot}},
16462 langbrazilian = {{brazylijski portugalski}{braz\adddot port\adddot}},
16463 langbulgarian = {{bu\l garski}{bu\l g\adddot}},
16464 langcatalan = {{katalo\'{n}ski}{katal\adddot}},
16465 langcroatian = {{chorwacki}{chorw\adddot}},
16466 langczech = {{czeski}{czeski}},
16467 langdanish = {{du\'{n}ski}{du\'{n}\adddot}},
16468 langdutch = {{holenderski}{holend\adddot}},
16469 langenglish = {{angielski}{ang\adddot}},
16470 langestonian = {{esto\'{n}ski}{est\adddot}},
16471 langfinnish = {{fi\'{n}ski}{fi\'{n}\adddot}},
16472 langfrench = {{francuski}{fr\adddot}},
16473 langgalician = {{galicyjski}{galic\adddot}},
16474 langgerman = {{niemiecki}{niem\adddot}},
16475 langgreek = {{grecki}{gr\adddot}},
16476 langhungarian = {{w\k{e}gierski}{w\k{e}g\adddot}},
16477 langitalian = {{w\l oski}{w\l \adddot}},
16478 langjapanese = {{japo\'{n}ski}{jap\adddot}},
16479 langlatin = {{\l aci\'{n}ski}{\l ac\adddot}},
16480 langlatvian = {{\l otewski}{\l ot\adddot}},
16481 langlithuanian = {{litewski}{lit\adddot}},
16482 langmarathi = {{marathi}{mar\adddot}},
16483 langnorwegian = {{norweski}{norw\adddot}},
16484 langpolish = {{polski}{pol\adddot}},
16485 langportuguese = {{portugalski}{port\adddot}},
16486 langromanian = {{rumu\'{n}ski}{rum\adddot}},
16487 langrussian = {{rosyjski}{ros\adddot}},
16488 langserbian = {{serbski}{serb\adddot}},
16489 langslovak = {{s\l owacki}{s\l c\adddot}},
16490 langslovene = {{s\l owe\'{n}ski}{s\l owe\'{n}\adddot}},
16491 langspanish = {{hiszpa\'{n}ski}{hiszp\adddot}},
16492 langswedish = {{szwedzki}{szw\adddot}},
16493 langturkish = {{turecki}{tur\adddot}},
16494 langukrainian = {{ukrai\'{n}ski}{ukr\adddot}},
16495 }
16496 % \end{macrocode}
16497 %
16498 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16499 %</pl>
16500 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16501 %
16502 % \section{Other languages}
16503 %
16504 % Currently \pkg[biblatex]{oxref} only supports English (British and American),
16505 % Spanish, and Polish explicitly,
16506 % but if there is demand more languages may be added. If you would like to
16507 % contribute support for your language, a list of the non-standard bibliography
16508 % strings requiring definition may be found in section~\ref{sec:setup}.
16509 %
16510 % \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16511 %</lbx>
16512 % \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%