diff options
author | Karl Berry <karl@freefriends.org> | 2017-05-16 22:30:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-05-16 22:30:59 +0000 |
commit | 3d8a9d90818e4363451111a43e0501e64fcdced8 (patch) | |
tree | a792b33eb46af7ed5cbcb6b69ce3ad78a4aa717b /Master/texmf-dist/source/latex | |
parent | 34979adaa4a498ab8f2acb76715ef6e36871893a (diff) |
biblatex-oxref (17may17)
git-svn-id: svn://tug.org/texlive/trunk@44385 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/biblatex-oxref/oxref.dtx | 12777 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/biblatex-oxref/oxref.ins | 62 |
2 files changed, 12839 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/biblatex-oxref/oxref.dtx b/Master/texmf-dist/source/latex/biblatex-oxref/oxref.dtx new file mode 100644 index 00000000000..bf3c4808c1b --- /dev/null +++ b/Master/texmf-dist/source/latex/biblatex-oxref/oxref.dtx @@ -0,0 +1,12777 @@ +% \iffalse +%<*internal|bbx|cbx|dbx|lbx|doc> +\def\Version{2017/05/14 v0.10} +%</internal|bbx|cbx|dbx|lbx|doc> +%<*internal> +\iffalse +%</internal> +%<*bbx|cbx|dbx|lbx> +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +%</bbx|cbx|dbx|lbx> +%<*bbx&o> +\ProvidesFile{oxref.bbx} + [\Version\space Base settings for bibliography styles inspired by the Oxford Guide to Style] +%</bbx&o> +%<*bbx&n> +\ProvidesFile{oxnotes.bbx} + [\Version\space Footnote-based bibliography style inspired by the Oxford Guide to Style] +%</bbx&n> +%<*bbx&y> +\ProvidesFile{oxyear.bbx} + [\Version\space Author-year bibliography style inspired by the Oxford Guide to Style] +%</bbx&y> +%<*cbx&n> +\ProvidesFile{oxnotes.cbx} + [\Version\space Footnote-based citation style inspired by the Oxford Guide to Style] +%</cbx&n> +%<*cbx&y> +\ProvidesFile{oxyear.cbx} + [\Version\space Author-year citation style inspired by the Oxford Guide to Style] +%</cbx&y> +%<*dbx> +%<n>\ProvidesFile{oxnotes.dbx} +%<y>\ProvidesFile{oxyear.dbx} + [\Version\space Data model for the Oxref family of styles] +%</dbx> +%<*lbx&en> +\ProvidesFile{english-oxref.lbx} + [\Version\space Generic English conventions required by the biblatex-oxref styles] +%</lbx&en> +%<*lbx&gb> +\ProvidesFile{british-oxref.lbx} + [\Version\space British English conventions required by the biblatex-oxref styles] +%</lbx&gb> +%<*lbx&us> +\ProvidesFile{american-oxref.lbx} + [\Version\space American English conventions required by the biblatex-oxref styles] +%</lbx&us> +%<*doc&n> +\ProvidesFile{oxnotes-doc.tex} + [\Version\space Footnote-based biblatex style inspired by the Oxford Guide to Style] +%</doc&n> +%<*doc&y> +\ProvidesFile{oxyear-doc.tex} + [\Version\space Author-year biblatex style inspired by the Oxford Guide to Style] +%</doc&y> +%<*readme> +# biblatex-oxref: Biblatex styles inspired by the *Oxford Guide to Style* + +This bundle provides two [biblatex] styles that implement (some of) the +stipulations and examples provided by the 2014 *New Hart's Rules* and the 2002 +*Oxford Guide to Style*: + + * `oxnotes` is a style similar to the standard `verbose`, + intended for use with footnotes; + * `oxyear` is a style similar to the standard `authoryear`, + intended for use with parenthetical in-text citations. + +Both styles should be considered experimental. In particular, the ways in which +the styles handle certain tricky references are subject to change. + +[biblatex]: http://ctan.org/pkg/biblatex +%</readme> +%<*bib> +@reference{ritter2002ogs, + author = {R. M. Ritter}, + title = {The {Oxford} Guide to Style}, + date = {2002}, + publisher = {Oxford University Press}, + location = {Oxford, UK}} +@reference{waddingham2014nhr, + editor = {Anne Waddingham}, + title = {New {Hart's} Rules}, + subtitle = {The {Oxford} Guide to Style}, + date = {2014}, + edition = {2}, + publisher = {Oxford University Press}, + location = {Oxford, UK}} +%</bib> +%<*internal> +\fi +\def\nameofplainTeX{plain} +\ifx\fmtname\nameofplainTeX\else + \expandafter\begingroup +\fi +%</internal> +%<*install> +\input docstrip.tex +\keepsilent +\askforoverwritefalse + +\nopreamble\nopostamble + +\usedir{doc/latex/\jobname} +\generate{ + \file{README.md}{\from{\jobname.dtx}{readme}} + \file{\jobname.bib}{\from{\jobname.dtx}{bib}} +} + +\preamble +---------------------------------------------------------------- +biblatex-oxref --- Biblatex styles inspired by the Oxford Guide to Style +Author: Alex Ball +E-mail: a.j.ball@bath.ac.uk +License: Released under the LaTeX Project Public License v1.3c or later +See: http://www.latex-project.org/lppl.txt +---------------------------------------------------------------- + +\endpreamble +\postamble + +Copyright (C) 2016 Alex Ball +\endpostamble + +\usedir{tex/latex/\jobname} +\generate{ + \file{\jobname.bbx}{\from{\jobname.dtx}{bbx,o}} + \file{oxnotes.bbx}{\from{\jobname.dtx}{bbx,n}} + \file{oxyear.bbx}{\from{\jobname.dtx}{bbx,y}} + \file{oxnotes.cbx}{\from{\jobname.dtx}{cbx,n}} + \file{oxyear.cbx}{\from{\jobname.dtx}{cbx,y}} + \file{oxnotes.dbx}{\from{\jobname.dtx}{dbx,n}} + \file{oxyear.dbx}{\from{\jobname.dtx}{dbx,y}} + \file{american-\jobname.lbx}{\from{\jobname.dtx}{lbx,us}} + \file{british-\jobname.lbx}{\from{\jobname.dtx}{lbx,gb}} + \file{english-\jobname.lbx}{\from{\jobname.dtx}{lbx,en}} + \file{oxnotes-doc.tex}{\from{\jobname.dtx}{doc,n}} + \file{oxyear-doc.tex}{\from{\jobname.dtx}{doc,y}} +} +%</install> +%<install>\endbatchfile +%<*internal> +\usedir{source/latex/\jobname} +\generate{ + \file{\jobname.ins}{\from{\jobname.dtx}{install}} +} +\ifx\fmtname\nameofplainTeX + \expandafter\endbatchfile +\else + \expandafter\endgroup +\fi +%</internal> +%<*driver> +\ProvidesFile{oxref.dtx} + [\Version\space Biblatex styles inspired by the Oxford Guide to Style] +\PassOptionsToPackage{style=oxnotes}{biblatex} +%</driver> +%<doc&n>\PassOptionsToPackage{style=oxnotes,scnames,varissuedate,anon}{biblatex} +%<doc&y>\PassOptionsToPackage{style=oxyear,varissuedate,anon}{biblatex} +%<*driver|doc> +\documentclass[extrafontsizes,11pt,a4paper,oneside]{memoir} +\setlrmarginsandblock{3cm}{3cm}{*} +\setulmarginsandblock{2.5cm}{2.5cm}{*} +\checkandfixthelayout +% Document divisions +\chapterstyle{ell} +\renewcommand{\prechapterprecis}{% + \vspace*{\prechapterprecisshift}% + \begin{flushright}\precisfont +} +\renewcommand{\postchapterprecis}{\end{flushright}} +\hangsecnum +\setsecheadstyle{\Large\bfseries\raggedright} +\setsubsecheadstyle{\large\bfseries\scshape\raggedright} +\setsecnumdepth{subsection} +% Pagination and headers +\nouppercaseheads +\makeoddhead{myheadings}{\textsc{\leftmark}}{}{\thepage} +\makepsmarks{myheadings}{% + \def\chaptermark##1{\markboth{##1}{##1}}% + \def\sectionmark##1{\markright{##1}}% +} +\pagestyle{myheadings} +\aliaspagestyle{title}{empty} +% Paragraphs and lists +\setlength{\parindent}{0pt}\nonzeroparskip +\firmlists + +\usepackage[british]{babel} +\usepackage[mono=false,defaultfeatures={SmallCapsFeatures={Letters=SmallCaps,Renderer=Basic,Ligatures=NoCommon}}]{libertine} +\usepackage{fontawesome}[2015/07/07] +\newcommand{\booksym}{\makebox[1em][c]{\faicon{book}}} +\newcommand{\cogsym}{\makebox[1em][c]{\faicon{cog}}} +\makeatletter +\@ifpackageloaded{fontspec}{% + \setmonofont[Scale=MatchLowercase,StylisticSet=1,AutoFakeSlant]{Inconsolatazi4} +}{% + \usepackage[utf8]{inputenc} + \usepackage[varl]{zi4} +} +\makeatother + +\usepackage{xcolor,xparse} +\definecolor{Green}{rgb}{0,.5,0} +\colorlet{ok}{Green} +\colorlet{todo}{red} +\colorlet{hacked}{orange} +\colorlet{manual}{purple} + +\usepackage{tcolorbox} +\tcbuselibrary{skins,xparse,documentation,breakable,minted} +\colorlet{Option}{violet} +\colorlet{Command}{red!75!black} +\colorlet{Environment}{blue!75!black} +\colorlet{Value}{olive!75!black} +\colorlet{Color}{cyan!75!black} +\tcbset + { enhanced + , listing engine=minted + , minted options= + { breaklines + , fontsize=\footnotesize +%<*!doc> + , linenos + , numbersep=20pt + , firstnumber=last +%</!doc> + } + , index format=pgf + , color command=Command + , color environment=Environment + , color key=Option + , color value=Value + , color color=Color + } +\renewcommand{\theFancyVerbLine}{\footnotesize\itshape\color{gray}\arabic{FancyVerbLine}} +\let\tcbcs=\cs +\renewcommand*{\cs}[1]{\textcolor{Command}{\tcbcs{#1}}} +\def\sqbrackets#1{% + \texttt{\textcolor{Option}{[}#1\textcolor{Option}{]}}} +\def\brackets#1{% + \texttt{\textcolor{Environment}{\char`\{}#1\textcolor{Environment}{\char`\}}}} +\def\marg#1{% + \textcolor{Environment}{\ttfamily\char`\{}\meta{#1}\textcolor{Environment}{\ttfamily\char`\}}} +\newcommand*{\env}[1]{\textcolor{Environment}{\ttfamily #1}} +\newcommand*{\key}[1]{\textcolor{Option}{\ttfamily #1}} +\newcommand*{\val}[1]{\textcolor{Value}{\ttfamily #1}} +\makeatletter +\newcommand{\resetmintedformat}{% + % Comments + \expandafter\def\csname PYGdefault@tok@c\endcsname{\let\PYGdefault@it=\textit\def\PYGdefault@tc####1{\textcolor{gray}{####1}}} + % Command sequences + \expandafter\def\csname PYGdefault@tok@k\endcsname{\def\PYGdefault@tc####1{\textcolor{Command}{####1}}} + % Optional arguments + \expandafter\def\csname PYGdefault@tok@na\endcsname{\def\PYGdefault@tc####1{\textcolor{Option}{####1}}} + % Braces + \expandafter\def\csname PYGdefault@tok@nb\endcsname{\def\PYGdefault@tc####1{\textcolor{Environment}{####1}}} +} +\apptocmd{\minted@checkstyle}{\resetmintedformat}{}{} +\makeatother + +\RecustomVerbatimEnvironment + {Verbatim}{Verbatim} + {commentchar=\%} + +\usepackage{xpatch,csquotes,multicol} + +\usepackage +[backend=biber% +,hyperref=false% +%,isbn=false% +]{biblatex} +\addbibresource{oxref.bib} +\setcounter{biburllcpenalty}{900} +\setcounter{biburlucpenalty}{800} +\setcounter{biburlnumpenalty}{700} +\DeclareBibliographyCategory{hidden} +\makeatletter +\DeclareCiteCommand{\fullcite} + {\usebibmacro{prenote}} + {\usedriver + {\defcounter{maxnames}{\blx@maxbibnames}} + {\thefield{entrytype}}} + {\multicitedelim} + {\usebibmacro{postnote}\finentrypunct} +\makeatother +% \xpretobibmacro{finentry}{% +% \ifboolexpr{ test {\ifcitation} and }{% +% \finentrypunct +% }{}% +% }{}{} + +\hypersetup{pdfborder={0 0 0},pdfencoding=auto} +\usepackage[noabbrev,capitalize,nameinlink]{cleveref} +\crefname{page}{page}{pages} + +\newcommand*{\pkg}[1]{\href{http://www.ctan.org/pkg/#1}{\textsf{#1}}} +\newcommand*{\lit}[1]{\textsf{#1}} +\newcommand*{\code}[1]{\texttt{#1}} +\newcommand*{\aside}[1]{\textcolor{violet}{[\textsc{tip:} #1]}} +\newcommand{\tip}[1]{\hangfrom{\makebox[2em][c]{\faLightbulbO}}#1\par} +\newcommand{\info}[1]{\hangfrom{\makebox[2em][c]{\faInfoCircle}}#1\par} +\newcommand{\hack}[1]{\hangfrom{\makebox[2em][c]{\faWrench}}#1\par} + +% For debugging; userd is either ‘todo’, ‘hacked’, ‘manual’ +\makeatletter +\def\CiteStatus{todo} +\newcommand{\dbgcolor}[2]{% + \bgroup + \blx@citecmdinit + \blx@citeinit + \def\blx@precode{}% + \def\blx@postcode{}% + \def\blx@loopcode{% + \iffieldundef{userd} + {\xdef\CiteStatus{ok}} + {\xdef\CiteStatus{\abx@field@userd}}}% + \blx@citeloop{#1}% + \textcolor{\CiteStatus}{#2}% + \egroup +} +\makeatother +% bibexbox displays a sample reference: +% (colour)<source reference>[citation postnote]{bib key}[additional TCB options] +% Put hand-coded reference in the environment upper part. +% Put a bib entry (wrapped in a Verbatim environment) in the environment lower part. +\NewTColorBox{bibexbox}{D(){ok}d<>omo}% + {bicolor + ,colframe = #1 + ,colback = #1!5!white + ,colbacklower = white + ,fontlower = \footnotesize + ,before upper = {\hangfrom{\booksym\space}\biburlsetup} + ,IfNoValueTF={#3}% + {after upper = {\par\hangfrom{\cogsym\space}\fullcite{#4}} + }% + {after upper = {\par\hangfrom{\cogsym\space}\fullcite[#3]{#4}} + ,title = {\texttt{\string\fullcite[#3]\{#4\}}} + } + ,IfNoValueTF={#2}{}% + {overlay = { + \node[anchor=south east,text=teal] at (frame.south east) {#2}; + } + } + ,phantomlabel={ex:#4} + ,IfNoValueTF={#5}{}{#5} + } +\NewTotalTColorBox{\spec}{m}% + {enhanced + ,sharp corners = west + ,colframe = teal + ,colback = teal!5!white + ,toprule = 0pt + ,bottomrule = 0pt + ,rightrule = 0pt + }{#1} +% egcite displays a sample citation: +% (colour)[title]{hand-coded citation text}[additional TCB options] +% Put the citation command in the environment. +\NewTCBListing{egcite}{D(){ok}omo}% + {colframe = #1 + ,colback = #1!5!white + ,listing side text + ,lefthand width = 14em + ,IfNoValueTF={#2}{}{title = #2} + ,before lower = {\raggedright\ifblank{#3}{}{\hangfrom{\booksym\space}#3\par}\hangfrom{\cogsym\space}} + ,IfNoValueTF={#4}{}{#4}} +% egcite* uses upper and lower portions +\NewTCBListing{egcite*}{D(){ok}omo}% + {colframe = #1 + ,colback = #1!5!white + ,IfNoValueTF={#2}{}{title = #2} + ,before lower = {\raggedright\ifblank{#3}{}{\hangfrom{\booksym\space}#3\par}\hangfrom{\cogsym\space}} + ,IfNoValueTF={#4}{}{#4}} + +\frenchspacing + +\usepackage[british]{isodate} +%</driver|doc> +%<*doc> +\usepackage{readprov} +\GetFileInfo{\jobname.tex} +%</doc> +%<*driver> +\usepackage[tightLists=false]{markdown} +\markdownSetup{rendererPrototypes={% + link = {\href{#3}{#1}}% +}} + +% For typesetting the implementation +\makeatletter +\let\docdate\@undefined +\let\theglossary\@undefined +\let\endtheglossary\@undefined +\makeatother +\usepackage{doc} +\makeatletter +\renewenvironment{theglossary}{% + \bgroup + \glossary@prologue + \GlossaryParms \let\item\@idxitem \ignorespaces +}{% + \egroup +} +\renewenvironment{macro}[1]{% + \def\MyName{#1}% + \index{\MyName@\tcbIndexPrintComC {\MyName}|(emph}% +}{% + \ifdef{\MyName}{}{% + \errmessage{You have closed a macro environment you have not opened on \the\inputlineno.}% + } + \index{\MyName@\tcbIndexPrintComC {\MyName}|)}% +} +\renewenvironment{environment}[1]{% + \def\MyName{#1}% + \index{\MyName@\tcbIndexPrintEnvCA {\MyName}|(emph}% + \index{Environments!\MyName@\tcbIndexPrintEnvC {\MyName}|(emph}% +}{% + \ifdef{\MyName}{}{% + \errmessage{You have closed an environment environment you have not opened on \the\inputlineno.}% + } + \index{Environments!\MyName@\tcbIndexPrintEnvC {\MyName}|)}% + \index{\MyName@\tcbIndexPrintEnvCA {\MyName}|)}% +} +\newenvironment{optionkey}[1]{% + \def\MyName{#1}% + \index{\MyName@\tcbIndexPrintKeyCA {\MyName}|(emph}% + \index{Keys!\MyName@\tcbIndexPrintKeyC {\MyName}|(emph}% +}{% + \ifdef{\MyName}{}{% + \errmessage{You have closed an optionkey environment you have not opened on \the\inputlineno.}% + } + \index{Keys!\MyName@\tcbIndexPrintKeyC {\MyName}|)}% + \index{\MyName@\tcbIndexPrintKeyCA {\MyName}|)}% +} +\newenvironment{optionvalue}[1]{% + \def\MyName{#1}% + \index{\MyName@\tcbIndexPrintValCA {\MyName}|(emph}% + \index{Values!\MyName@\tcbIndexPrintValC {\MyName}|(emph}% +}{% + \ifdef{\MyName}{}{% + \errmessage{You have closed an optionvalue environment you have not opened on \the\inputlineno.}% + } + \index{Values!\MyName@\tcbIndexPrintValC {\MyName}|)}% + \index{\MyName@\tcbIndexPrintValCA {\MyName}|)}% +} +\let\PrintMacroName\@gobble +\let\PrintEnvName\@gobble +\renewenvironment{tcb@manual@entry}{\begin{list}{}{% + \setlength{\topsep}{0pt} + \setlength{\partopsep}{0pt} + \setlength{\leftmargin}{\kvtcb@doc@left}% + \setlength{\itemindent}{0pt}% + \setlength{\itemsep}{0pt}% + \setlength{\parsep}{0pt}% + \setlength{\rightmargin}{\kvtcb@doc@right}% + }\item}{\end{list}} +\makeatother +\MakeShortVerb{\|} + +% This bit inspired by ydoc +\makeatletter +\newwrite\ydocwrite +\def\ydocfname{\jobname.listing} +\def\ydoc@catcodes{% + \let\do\@makeother + \dospecials + \catcode`\\=\active + \catcode`\^^M=\active + \catcode`\ =\active +} +\def\macrocode{% + \begingroup + \ydoc@catcodes + \macro@code +} +\def\endmacrocode{} +\begingroup +\endlinechar\m@ne +\@firstofone{% +\catcode`\|=0\relax +\catcode`\(=1\relax +\catcode`\)=2\relax +\catcode`\*=14\relax +\catcode`\{=12\relax +\catcode`\}=12\relax +\catcode`\ =12\relax +\catcode`\%=12\relax +\catcode`\\=\active +\catcode`\^^M=\active +\catcode`\ =\active +}* +|gdef|macro@code#1^^M% \end{macrocode}(* +|endgroup|expandafter|macro@@code|expandafter(|ydoc@removeline#1|noexpand|lastlinemacro)* +)* +|gdef|ydoc@removeline#1^^M(|noexpand|firstlinemacro)* +|gdef|ydoc@defspecialmacros(* +|def^^M(|noexpand|newlinemacro)* +|def (|noexpand|spacemacro)* +|def\(|noexpand|bslashmacro)* +)* +|gdef|ydoc@defrevspecialmacros(* +|def|newlinemacro(|noexpand^^M)* +|def|spacemacro(|noexpand )* +|def|bslashmacro(|noexpand\)* +)* +|endgroup +\def\macro@@code#1{% + {\ydoc@defspecialmacros + \xdef\themacrocode{#1}}% + \PrintMacroCode + \end{macrocode}% +} +\def\PrintMacroCode{% + \begingroup + \let\firstlinemacro\empty + \let\lastlinemacro\empty + \def\newlinemacro{^^J}% + \let\bslashmacro\bslash + \let\spacemacro\space + \immediate\openout\ydocwrite=\ydocfname\relax + \immediate\write\ydocwrite{\themacrocode}% + \immediate\closeout\ydocwrite + \let\input\@input + \tcbinputlisting{breakable,listing only,docexample,listing file=\ydocfname}% + \endgroup +} +\makeatother + +\GetFileInfo{\jobname.dtx} +\title{OXREF -- Biblatex styles inspired by the \emph{Oxford Guide to Style}} +%</driver> +%<doc&n>\title{OXNOTES -- A notes-based style for Biblatex} +%<doc&y>\title{OXYEAR -- An author–year style for Biblatex} +%<*driver|doc> +\author{Alex Ball} +\date{\printdateTeX{\filedate}} +\begin{document} +\thispagestyle{empty} +\begin{adjustwidth}{.2\textwidth}{0pt} + \sffamily\setlength{\parindent}{0pt}% + \LARGE\textsc{oxref bundle} + + \vspace{\stretch{1}} + \LARGE\thetitle + + \bigskip + \Large\theauthor + + \bigskip + \Large\thedate + + \bigskip + \Large\fileversion +\end{adjustwidth} + +\vspace{\stretch{3}} +\noindent +\hspace*{.1\textwidth}\raisebox{0pt}[0pt][0pt]{\rule{\normalrulethickness}{\textheight}} + +\newpage +\tableofcontents* + +%</driver|doc> +%<*driver> +\chapter{Introduction} + +This document provides the documented sources for the \textsf{oxref} +biblography styles: +\begin{itemize} + \item + \textsf{oxnotes}: a style similar to the standard \textsf{verbose}, intended for use with footnotes; + \item + \textsf{oxyear}: a style similar to the standard \textsf{authoryear}, intended for use with parenthetical in-text citations. +\end{itemize} + +\section{Quick start} + +The styles are self-contained, so you can load them with \pkg{biblatex}: + +\begin{multicols}{2} +\begin{tcblisting}{listing only} +\usepackage[style=oxnotes]{biblatex} +\end{tcblisting} + +\addtocounter{FancyVerbLine}{-1}% +\begin{tcblisting}{listing only} +\usepackage[style=oxyear]{biblatex} +\end{tcblisting} +\end{multicols} + +For further information, including some additional options you can set, +please refer to the separate documentation files +\href{./oxnotes-doc.pdf}{\texttt{oxnotes-doc.pdf}} and \href{./oxyear-doc.pdf}{\texttt{oxyear-doc.pdf}} respectively. + +\begin{markdown*}{hybrid=true} +%</driver> +%<*driver|readme> + +## Installation + +### Dependencies + +To compile the documentation you will need to have the [minted] package working, +which in turn relies on Python 2.6+ and Pygments. See the documentation of that +package for details. + +### Automated way + +A makefile is provided which you can use with the Make utility on +UNIX-like systems: + + * Running `make source` generates the derived files + - README.md + - oxref.bbx, oxnotes.bbx, oxyear.bbx + - oxnotes.cbx, oxyear.cbx + - american-oxref.lbx, british-oxref.lbx, english-oxref.lbx + - oxnotes.dbx, oxyear.dbx + - oxref.bib + - oxref.ins + - oxnotes-doc.tex, oxyear-doc.tex + + * Running `make` generates the above files and also oxref.pdf, + oxnotes-doc.pdf, and oxyear-doc.pdf. + + * Running `make inst` installs the files in the user's TeX tree. + You can undo this with `make uninst`. + + * Running `make install` installs the files in the local TeX tree. + You can undo this with `make uninstall`. + + * Running `make clean` removes auxiliary files from the working directory. + + * Running `make distclean` removes the generated files from the working + directory as well. + +### Manual way + +To install the bundle from scratch, follow these instructions. If you have +downloaded the zip file from the [Releases] page on GitHub, you can skip the +first two steps. + + 1. Run `luatex oxref.dtx` to generate the source files. (You can safely skip + this step if you are confident about step 2.) + + 2. Compile oxref.dtx, oxnotes-doc.tex and oxyear-doc.tex with LuaLaTeX and + Biber to generate the documentation. You will need to enable shell escape + so that [minted] can typeset the listings. + + 3. Move the files to your TeX tree as follows: + - `source/latex/biblatex-oxref`: + oxref.dtx, + (oxref.ins) + - `tex/latex/biblatex-oxref`: + american-oxref.lbx, + british-oxref.lbx, + english-oxref.lbx, + oxnotes.bbx, + oxnotes.cbx, + oxnotes.dbx, + oxref.bbx, + oxyear.bbx, + oxyear.cbx, + oxyear.dbx + - `doc/latex/biblatex-oxref`: + README.md, + oxnotes-doc.pdf, + oxnotes-doc.tex, + oxref.bib, + oxref.pdf, + oxyear-doc.pdf, + oxyear-doc.tex + + 4. You may then have to update your installation's file name database + before TeX and friends can see the files. + +[Releases]: https://github.com/alex-ball/biblatex-oxref/releases +[minted]: http://ctan.org/pkg/minted + +## Licence + +Copyright 2016–7 Alex Ball. + +This work consists of the documented LaTeX file oxref.dtx and a Makefile. + +The text files contained in this work may be distributed and/or modified +under the conditions of the [LaTeX Project Public License (LPPL)][lppl], +either version 1.3c of this license or (at your option) any later +version. + +This work is ‘maintained’ (as per LPPL maintenance status) by [Alex Ball][me]. + +[lppl]: http://www.latex-project.org/lppl.txt "LaTeX Project Public License (LPPL)" +[me]: https://alexball.me.uk/ "Alex Ball" + +%</driver|readme> +%<*driver> +\end{markdown*} + +\iffalse % syntax highlighting \fix +%</driver> +%<*doc|bib> +%<*n|y> +\chapter{Introduction} + +\section{Loading the style}\label{sec:loading} + +The style is self-contained, so you can load it with \pkg{biblatex}: +\begin{tcblisting}{listing only} +%<n>\usepackage[style=oxnotes]{biblatex} +%<y>\usepackage[style=oxyear]{biblatex} +\end{tcblisting} + +The style has some options additional to the regular \pkg{biblatex} ones: + +\begin{docKey}{altthesis}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}} + Puts the thesis type inside, rather than outside, the parenthetical publication block. +\end{docKey} + +\begin{docKey}{anon}{=\val{literal}|\val{long}|\val{short}}{default \val{short}, initially \val{literal}} + Affects what happens if the author name matches the value of \cs{oxrefanon}. + By default, this is ‘Anonymous’, but you could change it a different word (such as ‘Anonimo’) instead. + \begin{itemize} + \item\docValue{literal} + means no special handling is used. + \item\docValue{long} + will print the unabbreviated localization string \code{anon} (‘Anonymous’) instead of the author name +%<y> in citations and the bibliography. +%<n> in the bibliography, but neither are printed in citations. + \item\docValue{short} + will print the abbreviated localization string \code{anon} (‘Anon.\@’) instead of the author name +%<y> in citations and the bibliography. +%<n> in the bibliography, but neither are printed in citations. + \end{itemize} +\end{docKey} + +\begin{docKey}{court-plain}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}} + Prints courts of decision without parentheses. +\end{docKey} + +\begin{docKey}{dashed}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}} + In the biblography, replaces recurring author\slash editor names with a dash. +\end{docKey} + +\begin{docKey}{ecli}{=\val{yes}|\val{only}|\val{no}}{default \val{yes}, initially \val{yes}} + Determines when ECLI numbers for EU legal cases are printed (if provided). + \begin{itemize} + \item\docValue{yes} + prints the ECLI number in addition to the official report. + \item\docValue{only} + prints the ECLI number instead of the official report. + \item\docValue{no} + only prints the ECLI number if the case is otherwise unreported. + \end{itemize} +\end{docKey} + +\begin{docKey}{isourls}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}} + Surrounds URLs with angle brackets. +\end{docKey} + +\begin{docKey}{issuestyle}{=\val{slash}|\val{colon}|\val{comma}|\val{parens}}{default \val{slash}, initially \val{slash}} + Affects how journal volumes and numbers are printed. + \begin{itemize} + \item\docValue{slash} + separates the two with a solidus, e.g. ‘23/2’. + \item\docValue{colon} + separates the two with a colon and space, e.g. ‘23: 2’. +%<y> It is intended for use with \textsf{oxnotes} and not recommended for this style. + \item\docValue{comma} + separates the two with a comma and space, e.g. ‘23, 2’. + \item\docValue{parens} + sets off the issue number in parentheses, e.g. ‘23 (2)’. +%<n> It is intended for use with \textsf{oxyear} and not recommended for this style. + \end{itemize} +\end{docKey} + +%<*y> +\begin{docKey}{mergedate}{=\val{maximum}|\val{compact}|\val{basic}|\val{minimum}|\val{year}|\val{false}}{default \val{year}, initially \val{year}} + Affects how the date at the start of the references relates to the date in the ‘normal’ position. + The standard option values are available but not well tested; I recommend you stick with the default of \val{year}. + If you do select \val{maximum} or \val{compact}, I recommend you also select \key{labeldate}\texttt{=}\val{comp} to avoid loss of information. +\end{docKey} +%</y> + +\begin{docKey}{nolocation}{}{no value, initially unset} + Replaces missing locations with ‘n.p.’ or the localized equivalent in books, collections, reference works, proceedings, and similar entry types. Once set, this option cannot be overridden. + Alternatively, it may be set on a per-entry basis. +\end{docKey} + +\begin{docKey}{nopublisher}{}{no value, initially unset} + Removes publisher name from all entries. Once set, this option cannot be overridden. +\end{docKey} + +\begin{docKey}{relationpunct}{=\val{period}|\val{comma}|\val{semicolon}|\val{colon}|\val{space}}{default \val{semicolon}, initially \val{semicolon}} + Sets the punctuation that precedes the \code{relatedtype} localization string. + An additional space is assumed unless the value is \val{space}. + This can also be set on a per-type and per-entry basis. + Note that the general and per-type settings are ignored for some values of \code{relatedtype}, + but the per-entry setting is always effective. +\end{docKey} + +%<*n> +\begin{docKey}{scnames}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}} + Prints initial author or editor names in bibliography entries in small capitals. +\end{docKey} +%</n> + +\begin{docKey}{timefirst}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}} + Prints the time (if provided) before the date instead of after it. + This can also be set on a per-type and per-entry basis. +\end{docKey} + +\begin{docKey}{usenametitles}{=\val{true}|\val{false}}{default \val{true}, initially \val{true}} + Controls whether personal titles such as Revd, Dr, Mrs, Sir, and so on are printed. + (There is an example of how to supply titles in the \hyperref[ex:lewis1981lww]{Lewis reference} on \cpageref{ex:lewis1981lww}.) + This can also be set on a per-type and per-entry basis. +\end{docKey} + +\begin{docKey}{varissuedate}{=\val{true}|\val{false}}{default \val{true}, initially \val{false}} + Removes the parentheses around the date of a periodical without a volume number. + This can also be set on a per-type and per-entry basis. +\end{docKey} + +\textsf{Oxref} makes use of Biber-specific techniques to solve some of the challenges presented by Oxford style. +It will not stop you from using Bib\TeX\ instead but, if you do, only simple and standard entries will work. +In particular, manuscripts, legal references and anything involving related entries will be adversely affected. + +\section{How to use this document} + +Bibliographical items are given throughout this document, and serve three purposes: + +\begin{itemize} + \item + To demonstrate which of the variations discussed by the + \emph{Oxford Guide to Style} and \emph{New Hart's Rules} have been chosen + in this style. + \item + To help me, as package author, check that the style is working as intended. + \item + To show you, as document author, how to use the style to get the effect you want. +\end{itemize} + +Examples that follow standard \textsf{biblatex} semantics, and are therefore +(mostly) portable to other styles, are in green: + +\begin{tcolorbox}% + [bicolor + ,colframe = ok + ,colback = ok!5!white + ,colbacklower = white + ,fontlower = \footnotesize\ttfamily + ,overlay = {\node[anchor=south east,text=teal] at (frame.south east) {Source};} + ] + \hangfrom{\booksym\space} Reference text as it should look.\par + \hangfrom{\cogsym\space} Reference text as generated by \textsf{biblatex}. + \tcblower + Code used in bibliography file. +\end{tcolorbox} + +Examples that have been ‘hacked’ in some way, and are therefore not portable +to other styles, are in amber: + +\begin{tcolorbox}% + [bicolor + ,colframe = hacked + ,colback = hacked!5!white + ,colbacklower = white + ,fontlower = \footnotesize\ttfamily + ,overlay = {\node[anchor=south east,text=teal] at (frame.south east) {Source};} + ] + \hangfrom{\booksym\space} Reference text as it should look.\par + \hangfrom{\cogsym\space} Reference text as generated by \textsf{biblatex}. + \tcblower + Code used in bibliography file. +\end{tcolorbox} + +Where a source is provided, it refers to a section from one of the reference works below: + +\begin{description} +\item[OGS] +\fullcite{ritter2002ogs} + +\item[NHR] +\fullcite{waddingham2014nhr} +\end{description} + +Where the source is starred (*), this indicates the example is not quite how it appears in the book, +usually because the original is demonstrating an option that is not the \textsf{oxref} default. +%<*y> +Where the source is marked with a dagger (\textdagger), +this indicates that the example has been coverted from an \textsf{oxnotes}-style one, +since the guides provide relatively few for author-year references. +%</y> + +\section{Design philosophy} + +The stipulations given by the \emph{Oxford Guide to Style} regarding citations and references +amount not so much to a consistent style as a body of advice for creating one. +Unlike the style manuals published by the American Psychological Association, +the Modern Language Association, and the University of Chicago to name but three, +the emphasis of the Oxford guide is to describe good practice rather than prescribe a particular style. +This means that when it comes to \textsf{oxref}, there are decisions to be made +as to which variations to support by default, which to support as options, +and which to ignore quietly. + +The situation is complicated further by the nature of the available versions. +The 2002 guide remains the most comprehensive in terms of rules, principles and examples. +The succeeding versions, under the title \emph{New Hart's Rules}, +update the aspects of the 2002 guide that now seem somewhat dated, +such as its handling of URLs and DOIs, +and have more of an eye on machine processing of bibliographies. +They do, however, introduce additional variations with less of a steer on what is preferred, +and are considerably shorter with fewer examples. + +The approach of \textsf{oxref} is to follow the 2014 \emph{New Hart's Rules} as much as possible, +but where variations are given without strong preference, or where guidance is lacking, +to follow the preferences of the 2002 guide. +Where the practices of the humanities and the sciences are contrasted, +the former are followed for \textsf{oxnotes} and the latter for \textsf{oxyear}. +Where neither version gives explicit guidance on citing a resource supported by \textsf{biblatex}, +\textsf{oxref} extrapolates from what is provided, guided by standard \textsf{biblatex} +and other major referencing styles. + +Where it is practical to do so, +ways and means of achieving the variations defined by the two guides are provided, +but by no means all of them will be supported. + +\section{Technical documentation} + +For information on installing the styles, and for the documented source code, +see the separate documentation file \href{./oxref.pdf}{\texttt{oxref.pdf}} + +\section{To do} + +The \textsf{oxref} family of styles is currently at \fileversion. +As mentioned above, what the styles \emph{should} be doing is open to some +interpretation, so at the moment I am open to the idea of changing how the +styles handle cases not covered by the two style manuals. Please leave your +thoughts on the GitHub issue tracker.\footnote{\url{https://github.com/alex-ball/biblatex-oxref/issues}} +At some point version 1.0 will be released, after which the default (expected) +behaviour of the styles will be fixed, though alternative behaviour may be added. + +I do not have any examples to work from for the following entry types, so they +are currently untested. If you have strong feelings about how they should be +rendered in Oxford style and can provide me with a sample reference or several, +I would be most glad to hear from you: + +\begin{multicols}{3} + \begin{itemize}\firmlist + \item suppbook + \item booklet + \item suppcollection + \item patent + \item suppperiodical + \item artwork + \item commentary + \item letter + \item performance + \item standard + \end{itemize} +\end{multicols} + +It is not possible at the moment to use numeric or alphabetic citation styles +with \textsf{oxref}, but that might change in the future. + +You are of course encouraged to report any bugs you discover on the +\href{https://github.com/alex-ball/biblatex-oxref/issues}{GitHub issue tracker} +as well. + + + +\chapter{Citations and common formatting}\label{sec:citing} + +%<*n> +The \textsf{oxnotes} bibliography style is intended for use with a footnote or endnote citation style, +and indeed loads a generic \textsf{biblatex} one. +While the note text generated by the style is very similar to that which appears in the bibliography, +there is a difference in how author names are printed. +%</n> +%<*y> +The \textsf{oxyear} bibliography style is intended for use with an author–year citation style, +and indeed loads a tweaked version of a generic \textsf{biblatex} one. +%</y> + +\section{Test citations} + +%<*n> +Following the advice of \emph{New Hart's Rules}, \textsf{oxnotes} loads by default the standard \textsf{verbose} citation style, in which repeated citations are abbreviated to the author surname and a short title. + +%</n> +%</n|y> +%<*bib> +@book{faith1997epg, + author = {R. J. Faith}, + title = {The {English} Peasantry and the Growth of Lordship}, + shorttitle = {{English} Peasantry}, + date = {1997}} +@book{knowles.hadcock1953mrh, + author = {D. Knowles and R. N. Hadcock}, + title = {Medieval Religious Houses}, + subtitle = {England and Wales}, + date = {1953}} +@book{kershaw1973bp, + author = {I. Kershaw}, + title = {Bolton Priory}, + date = {1973}} +@article{cobban, + author = {Cobban}, + title = {Colleges and halls}} +%</bib> +%<*n|y> +%<*n> +\begin{egcite}{} +Test\footcite{faith1997epg} +Test\footcite[49-50]{faith1997epg} +\end{egcite} +\begin{egcite}{} +\cites[80 (Westminster), 66 + (Glastonbury), 149 (Osney), 128 + (Bolton)]{knowles.hadcock1953mrh}% + [186]{kershaw1973bp}[609]{cobban} +\end{egcite} +\addtocategory{hidden}{cobban} + +Both the \emph{Oxford Guide to Style} and \emph{New Hart's Rules} describe an alternative system that uses the abbreviations ‘ibid.\@’, ‘op.\@ cit.\@’, ‘loc.\@ cit.\@’, and ‘id.\@’ and friends, though with underwhelming enthusiasm. If you would like to use these abbreviations, load the \textsf{verbose-trad1} citation scheme instead (and remember to use the \code{gender} field): + +\begin{tcblisting}{listing only} +\usepackage[bibstyle=oxnotes,citestyle=verbose-trad1]{biblatex} +\end{tcblisting} + +%</n> +%<*y> +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. Pages are set off with a colon, and multiple works are separated with a semicolon. + +\begin{egcite}{Hankinson (1988: 93, 96; 1989: 72)} +\textcites% + [93, 96]{hankinson1988mmm}% + [72]{hankinson1989gba} +\end{egcite} + +Up to two author names are given, after which ‘et al.’ is used. + +\begin{egcite}{(Barnes and Griffin 1989; Brady et al. 1994)} +\parencite{barnes.griffin1989pte,% + brady.etal1994hehsa} +\end{egcite} + +If different authors have the same surname, they are distiguished by their initial. +If there is no date, the replacement text is separated from the name by a comma. + +%</y> +%</n|y> +%<*bib> +@inbook{smithFCct, + author = {P. Smith}, + title = {The Case of {Tigray}}, + bookauthor = {P. Smith}, + booktitle = {Gender and Famine}, + volume = {2}, + pages = {76-94}, + location = {London}, + pubstate = {forthcoming}} +%</bib> +%<*n|y> +%<*y> +\nocite{smithFCct} +\begin{egcite}{(P. Smith, forthcoming \emph{a}; T. Smith 1988)} +\parencite{smithFCgaf,smith1988fag} +\end{egcite} + +If a short author label is provided, it is used in place of the full author. + +\begin{egcite}{(WHO 1986)} +\parencite{who1986nde} +\end{egcite} + +\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. +%</y> + +\section{Missing and inferred attribution} + +\subsection{Missing attribution} +%<*n> +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 ‘Anonymous’ (or ‘Anon.\@’ in the latter case) in the bibliography. +%</n> +%<*y> +The \emph{Oxford Guide to Style} prefers anonymous works to have ‘Anonymous’ in place of the author name, while \emph{New Hart's Rules} suggests using ‘Anon.\@’ or a short title. +%</y> + +\tip{\textsf{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 ‘Anonymous’ (or whatever \cs{oxrefanon} is set to) in your .bib file to either the long or short localization string \code{anon}. +%<n> Doing this will automatically suppress the printing of the anonymous author in notes. +} + +%<*n> +\begin{egcite}{} +\cite{anon1822san}. +\cite{anon1956lu}. +\end{egcite} + +%</n> +\begin{bibexbox} +%<n><OGS \S15.2.1> +%<y><OGS \S15.2.1\textdagger> +{anon1822san} +%<n>\textsc{Anon.}, \emph{Stories after Nature} (London: Allman, 1822). +%<y>Anon.\@ (1822), \emph{Stories after Nature} (London: Allman). +\toggletrue{blx@bibliography} +\tcblower +\begin{Verbatim} +%</n|y> +@book{anon1822san, + author = {Anonymous}, + title = {Stories after Nature}, + location = {London}, + publisher = {Allman}, + date = {1822}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><OGS \S15.2.1> +%<y><OGS \S15.2.1\textdagger> +{anon1956lu} +%<n>\textsc{Anon.}, \emph{Liber usualis} (Tournai: Desclée, 1956). +%<y>Anon.\@ (1956), \emph{Liber usualis} (Tournai: Desclée). +\toggletrue{blx@bibliography} +\tcblower +\begin{Verbatim} +%</n|y> +@book{anon1956lu, + author = {Anonymous}, + title = {Liber usualis}, + location = {Tournai}, + publisher = {Desclée}, + year = {1956}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<*y> +\begin{egcite}{(Anon.\@ 1822; 1956)} +\parencite{anon1822san,anon1956lu} +\end{egcite} + +%</y> + +\subsection{Pseudepigraphy} +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 +%<n>to add the prefix ‘Pseudo-’ before the name in notes, and +to put ‘(Ps.-)’ after the name in the bibliography. + +\tip{With \textsf{oxref}, you can achieve this by annotating the name with the keyword \code{pseudo}. +%<n>Since this mechanism is aimed at ancient texts, it has only been designed to work with single-part names +%<n>(i.e. either a single word, or a whole name wrapped in braces). +} + +%<*n> +\begin{egcite}{} +\cite{boethius1976dds} +\end{egcite} + +%</n> +%<*y> +\begin{egcite}{} +\parencite{boethius1976dds} +\end{egcite} + +%</y> +\begin{bibexbox} +%<n><OGS \S15.2.1> +%<y><OGS \S15.2.1\textdagger> +{boethius1976dds} +%<n>\textsc{Boethius (Ps.-)}, \emph{De disciplina scolarium: Édition critique, introduction et notes}, ed. Olga Weijers (Leiden, 1976).\toggletrue{blx@bibliography} +%<y>Boethius (Ps.-) (1976), \emph{De disciplina scolarium: Édition critique, introduction et notes}, ed. O.\ Weijers (Leiden). +\tcblower +\begin{Verbatim} +%</n|y> +@book{boethius1976dds, + author = {Boethius}, + author+an = {1=pseudo}, + title = {De disciplina scolarium}, + subtitle = {Édition critique, introduction et notes}, + editor = {Olga Weijers}, + location = {Leiden}, + date = {1976}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\subsection{Inferred attribution} + +If the attribution is missing from the work but may be inferred from other sources, +Oxford style is to give the attribution in square brackets. + +\tip{With \textsf{oxref}, you can achieve this by annotating the whole name field + (usually \code{author} or \code{editor}) with the keyword \code{inferred}. + You can also annotate names individually within the list, if only some of them should be taken as inferred.} + +\begin{bibexbox} +%<n><OGS \S15.2.1> +%<y><OGS \S15.2.1\textdagger> +{balfour1768pe} +%<n>{[James Balfour]}, \emph{Philosophical Essays} (Edinburgh, 1768). +%<y>{[Balfour, J.]} (1768), \emph{Philosophical Essays} (Edinburgh). +\tcblower +\begin{Verbatim} +%</n|y> +@book{balfour1768pe, + author = {James Balfour}, + author+an = {=inferred}, + title = {Philosophical Essays}, + location = {Edinburgh}, + date = {1768}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{You can also use the syntax from \textsf{biblatex-realauthor}. + 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}. + The equivalent is true for \code{realeditor}. + Note, however, that \textsf{oxref} does not recognize the \code{userealauthor} and \code{userealeditor} options.} + +\subsection{Pseudonyms} + +If an author publishes under a pen name, and you want to link the names in the bibliography, +the name as given in the work should be given first, immediately followed by the other name +in parentheses (\emph{Oxford Guide to Style}) or brackets (\emph{New Hart's Rules}). + +\tip{If you don't mind the second name being printed as-is, + the canonical place to include it is the \code{nameaddon} field.} + +\begin{bibexbox} +%<n><NHR \S18.2.2> +%<y><NHR \S18.2.2\textdagger> +{dodgson1896sl} +%<n>C. L. Dodgson [Lewis Carroll], \emph{Symbolic Logic} (Oxford, 1896). +%<y>Dodgson, C. L. [Lewis Carroll] (1896), \emph{Symbolic Logic} (Oxford). +\tcblower +\begin{Verbatim} +%</n|y> +@book{dodgson1896sl, + author = {C. L. Dodgson}, + nameaddon = {Lewis Carroll}, + title = {Symbolic Logic}, + location = {Oxford}, + date = {1896}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{You can switch to using parentheses for name addons by changing the \code{nameaddon} field format.} + +\begin{tcblisting}{listing only} +\DeclareFieldFormat{nameaddon}{\mkbibparens{#1}} +\end{tcblisting} + +\tip{If you do want the second name to be normalized, or you are dealing with a list of names, + you can use the (non-standard) \code{authoraddon} and \code{editoraddon} fields. The addon + name will be printed after the corresponding name in the regular name list, using the + \code{nameaddon} field format, but only if it is different.} + +\begin{bibexbox} +%<n><NHR \S18.2.2> +%<y><NHR \S18.2.2\textdagger> +{lauder1965lss} +%<n>Afferbeck Lauder [Alistair Morrison], \emph{Let Stalk Strine} (Sydney, 1965). +%<y>Lauder, A. [Morrison, A.] (1965), \emph{Let Stalk Strine} (Sydney). +\tcblower +\begin{Verbatim} +%</n|y> +@book{lauder1965lss, + author = {Afferbeck Lauder}, + authoraddon = {Alistair Morrison}, + title = {Let Stalk Strine}, + location = {Sydney}, + date = {1965}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{Again, you can also use the syntax from \textsf{biblatex-realauthor}. + If you specify the \code{author}, then \code{realauthor} is treated as an alias for \code{authoraddon}. + The equivalent is true for \code{realeditor}.} + +\section{Name variants} + +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. +%<n>This is only supposed to to printed in the bibliography, not in notes. + +\tip{To trigger this formatting, annotate the relevant name in \code{authoraddon} or \code{editoraddon} with the keyword \code{variant}.} + +%<*n> +\begin{egcite*}{} +\cite{joukovsky1967gdd} +\end{egcite*} +%</n> +%<*y> +\begin{egcite}{} +\parencite{joukovsky1967gdd} +\end{egcite} +%</y> + +\begin{bibexbox} +%<n><OGS \S15.17.4> +%<y><OGS \S15.17.4\textdagger> +{joukovsky1967gdd} +%<n>\toggletrue{blx@bibliography}\textsc{Joukovsky, F.} (= \textsc{Joukovsky-Micha, 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. +%<y>\toggletrue{blx@bibliography}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. +\tcblower +\begin{Verbatim} +%</n|y> +@article{joukovsky1967gdd, + author = {F. Joukovsky}, + authoraddon = {F. Joukovsky-Micha}, + authoraddon+an = {1=variant}, + title = {La Guerre des dieux et des géants chez les poètes francais du XVI\textsuperscript{e} + siècle (1500\textendash 1585)}, + journaltitle = {Bibliothèque d'Humanisme et Renaissance}, + volume = {29}, + date = {1967}, + langid = {french}, + pages = {55-92}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Author-translators and author-revisers} + +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: + +%<*n> +\begin{egcite*}{} +\cite{kuehner.blass1890ef} +\end{egcite*} +%</n> +%<*y> +\begin{egcite}{} +\parencite{kuehner.blass1890ef} +\end{egcite} +%</y> + +\begin{bibexbox} +{kuehner.blass1890ef} +%<n>\textsc{Kühner, Raphael}, rev. \textsc{Blass, Friedrich}, \emph{Ausführliche grammatik der griechischen sprache}, i: \emph{Elementar- und Formenlehre} (Hannover: Hahnsche Buchhandlung, 1890-2).\toggletrue{blx@bibliography} +%<y>Kühner, R., rev. Blass, F. (1890-2), \emph{Ausführliche grammatik der griechischen sprache}, i: \emph{Elementar- und Formenlehre} (Hannover: Hahnsche Buchhandlung). +\tcblower +\begin{Verbatim} +%</n|y> +@mvbook{kuehner.blass1890ef, + author = {Raphael Kühner}, + editor = {Friedrich Blass}, + editor+an = {=jointauthor}, + editortype = {reviser}, + shortauthor = {Kühner--Blass}, + title = {Elementar- und Formenlehre}, + maintitle = {Ausführliche grammatik der griechischen sprache}, + volume = {1}, + location = {Hannover}, + publisher = {Hahnsche Buchhandlung}, + date = {1890/1892}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\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). Note that you have to supply a suitable \code{shortauthor} value yourself; \textsf{oxref} does not calculate it for you.} + + +\section{Works in foreign languages} + +If you used a foreign language work, you might want to recommend a good translation. + +\tip{Add the translation in \code{related}, and set \code{relatedtype} to \code{translationas}.} + +\begin{bibexbox} +%<n><NHR \S18.2.5*> +%<y><NHR \S18.2.5*\textdagger> +{tschichold1955tg} +%<n>J. Tschichold, \emph{Typographische Gestaltung} (Basle, 1955); Eng. trans. as \emph{Asymmetric Typography} (London, 1967). +%<y>Tschichold, J. (1955), \emph{Typographische Gestaltung} (Basle); Eng. trans. as \emph{Asymmetric Typography} (London, 1967). +\tcblower +\begin{Verbatim} +%</n|y> +@book{tschichold1955tg, + author = {J. Tschichold}, + title = {Typographische Gestaltung}, + location = {Basle}, + date = {1955}, + related = {tschichold1967tg}, + relatedtype = {translationas}} +@book{tschichold1967tg, + title = {Asymmetric Typography}, + location = {London}, + date = {1967}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{To specify the translator up front, set the \code{relatedtype} to \code{bytranslator} instead.} + +\begin{bibexbox} +%<n><NHR \S18.2.14> +%<y><NHR \S18.2.14\textdagger> +{sarrau1975ta} +%<n>José Sarrau, \emph{Tapas y aperitivos} (Madrid, 1975); trans. Francesca Piemonte Slesinger as \emph{Tapas and Appetizers} (New York, 1987). +%<y>Sarrau, J. (1975), \emph{Tapas y aperitivos} (Madrid); trans. F. P. Slesinger as \emph{Tapas and Appetizers} (New York, 1987). +\tcblower +\begin{Verbatim} +%</n|y> +@book{sarrau1975ta, + author = {José Sarrau}, + title = {Tapas y aperitivos}, + location = {Madrid}, + date = {1975}, + related = {sarrau1987ta}, + relatedtype = {bytranslator}} +@book{sarrau1987ta, + author = {José Sarrau}, + translator = {Francesca Piemonte Slesinger}, + title = {Tapas and Appetizers}, + location = {New York}, + date = {1987}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +If you used the translation, you might want to give the original publication as well. + +\tip{Add the original in \code{related}, and set \code{relatedtype} to \code{translationof}.} + +\begin{bibexbox} +%<n><NHR \S18.2.5> +%<y><NHR \S18.2.5\textdagger> +{metz1938hyb} +%<n>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)] +%<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)] +\tcblower +\begin{Verbatim} +%</n|y> +@book{metz1938hyb, + author = {R. Metz}, + title = {A Hundred Years of British Philosophy}, + editor = {J. H. Muirhead}, + translator = {J. W. Harvey}, + date = {1938}, + related = {metz1935psg}, + relatedtype = {translationof}} +@book{metz1935psg, + title = {Die philosophischen Strömungen der Gegenwart in Grossbritannien}, + date = {1935}, + language = {german}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +It is often helpful to provide an informative translation of foreign language titles. + +\tip{Put the translation in \code{titleaddon}.} + +\begin{bibexbox} +%<n><NHR \S18.2.5> +%<y><NHR \S18.2.5\textdagger> +{nissan1965hnm} +%<n>Nissan Motor Corporation, \emph{Nissan Jidosha 30nen shi} [A 30-year history of Nissan Motors] (1965). +%<y>Nissan Motor Corporation (1965), \emph{Nissan Jidosha 30nen shi} [A 30-year history of Nissan Motors]. +\tcblower +\begin{Verbatim} +%</n|y> +@book{nissan1965hnm, + author = {{Nissan Motor Corporation}}, + title = {Nissan Jidosha 30nen shi}, + titleaddon = {A 30-year history of Nissan Motors}, + date = {1965}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +Conversely, it might be helpful to provide the English original of a translated title. + +\begin{bibexbox} +%<n><OGS \S15.2.1> +%<y><OGS \S15.2.1\textdagger> +{milne1938pb} +%<n>A. A. Milne, \emph{Pu der Bär} [Ger. trans. of \emph{Winnie the Pooh}] (Potsdam: Williams, 1938). +%<y>Milne, A. A. (1938), \emph{Pu der Bär} [Ger. trans. of \emph{Winnie the Pooh}] (Potsdam: Williams). +\tcblower +\begin{Verbatim} +%</n|y> +@book{milne1938pb, + author = {A. A. Milne}, + title = {Pu der Bär}, + language = {german}, + origtitle = {Winnie the Pooh}, + location = {Potsdam}, + publisher = {Williams}, + date = {1938}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Missing place of publication} + +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}). + +\tip{To have \textsf{oxref} automatically insert \enquote{n.p.\@} or the localized equivalent for books, collections, reference works, proceedings and similar entry types, use the \code{nolocation} bibliography option.} + +\tip{To have \textsf{oxref} automatically insert \enquote{n.p.\@} or the localized equivalent for only a specific entry, use the \code{nolocation} entry option instead. + This has the feature of hiding the \enquote{n.p.\@} from other styles that do not follow the same convention.} + +\begin{bibexbox} +%<n><NHR \S18.2.9> +%<y><NHR \S18.2.9\textdagger> +{padua1961p} +%<n>Marchetto of Padua, \emph{Pomerium}, ed. Guiseppe Vecchi (n.p., 1961). +%<y>Marchetto of Padua (1961), \emph{Pomerium}, ed. G. Vecchi (n.p.). +\tcblower +\begin{Verbatim} +%</n|y> +@book{padua1961p, + author = {{Marchetto of Padua}}, + title = {Pomerium}, + editor = {Guiseppe Vecchi}, + date = {1961}, + options = {nolocation}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\chapter{Articles and periodicals}\label{sec:article} +\chapterprecis{article, periodical, suppperiodical, review} + + +\section{Articles in periodicals with volumes/numbers} + +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{oxyear} which uses a colon to demarcate the page numbers. These variations are implemented as the option \textsf{issuestyle}; see \autoref{sec:loading} for details. + +%<n>\spec{Author, \enquote{Title}, \emph{JournalTitle}, Vol/Number (Year), Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, Vol/Number: Pages.} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.4.1> +{goldblatt1973dmm} +Robert Goldblatt, \enquote{Diodorean Modality in Minkowski Space-Time}, \emph{Studia Logica}, 39/3 (1973), 219--36. +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@article{goldblatt1973dmm, + author = {Robert Goldblatt}, + title = {Diodorean Modality in Minkowski Space-Time}, + journaltitle = {Studia Logica}, + volume = {39}, + number = {3}, + date = {1973}, + pages = {219-236}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{hollingsworth1957dsb} +Hollingsworth, T. H. (1957), \enquote{A Demographic Study of the British Ducal Families}, \emph{Population Studies}, 11/1: 4–26. +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@article{hollingsworth1957dsb, + author = {T. H. Hollingsworth}, + date = {1957}, + title = {A Demographic Study of the British Ducal Families}, + journaltitle = {Population Studies}, + volume = {11}, + number = {1}, + pages = {4-26}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n> +% Internal quotes, subtitle, no number +\begin{bibexbox}<OGS \S15.4.1> +{inalcik1992csm} +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. +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@article{inalcik1992csm, + author = {Halil Inalcik}, + title = {Comments on \enquote{Sultanism}}, + subtitle = {Max Weber's Typification of the Ottoman Polity}, + journaltitle = {Princeton Papers in Near Eastern Studies}, + volume = {1}, + date = {1992}, + pages = {49-72}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +% Subtitle +\begin{bibexbox}<NHR \S17.3.2*> +{unwin1994sce} +Unwin, T. (1994), \enquote{Structural Change in Estonian Agriculture: From Command Economy to Privatisation}, \emph{Geography}, 79/3: 246–61. +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@article{unwin1994sce, + author = {Tim Unwin}, + date = {1994}, + title = {Structural Change in Estonian Agriculture}, + subtitle = {From Command Economy to Privatisation}, + journaltitle = {Geography}, + volume = {79}, + number = {3}, + pages = {246-261}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} +%</y> +%<*n|y> + +% Many authors, 'von' part, no number +\begin{bibexbox} +%<n><OGS \S15.2.1> +%<y><OGS \S15.2.1\textdagger> +{vaucouleurs1975nmn} +%<n>Gerald de Vaucouleurs et al., \enquote{The New Martian Nomenclature of the International Astronomical Union}, \emph{Icarus}, 26 (1975), 85--98. +%<y>Vaucouleurs, G. de, et al. (1975), \enquote{The New Martian Nomenclature of the International Astronomical Union}, \emph{Icarus}, 26: 85--98. +\tcblower +\begin{Verbatim} +%</n|y> +@article{vaucouleurs1975nmn, + author = {Gerald de Vaucouleurs and J. Blunck and M. Davies and A. Dollfus and I. Koval and + G. Kuiper and H. Masursky and S. Miyamoto and V Moroz and Carl Sagan}, + title = {The New {Martian} Nomenclature of the {International} {Astronomical} {Union}}, + journaltitle = {Icarus}, + volume = {26}, + date = {1975}, + pages = {85-98}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +% DOI +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{druin2002rcd} +%<n>A. Druin, \enquote{The Role of Children in the Design of New Technology}, \emph{Behaviour \& Information Technology}, 21/1 (2002), 1–25. doi: \path{10.1080/01449290110108659} +%<y>Druin, A. (2002), \enquote{The Role of Children in the Design of New Technology}, \emph{Behaviour \& Information Technology}, 21/1: 1–25. doi: \path{10.1080/01449290110108659} +\tcblower +\begin{Verbatim} +%</n|y> +@article{druin2002rcd, + author = {A. Druin}, + title = {The Role of Children in the Design of New Technology}, + journaltitle = {Behaviour \& Information Technology}, + volume = {21}, + number = {1}, + date = {2002}, + pages = {1-25}, + doi = {10.1080/01449290110108659}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +% Electronic identifier instead of a page range +\begin{bibexbox}(hacked) +%<n><NHR \S18.8.5*> +%<y><NHR \S18.8.5*\textdagger> +{li.etal2013flh} +%<n>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: \path{10.1371/journal.pone.0078188} +%<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: \path{10.1371/journal.pone.0078188} +\tcblower +\begin{Verbatim} +%</n|y> +@article{li.etal2013flh, + author = {Shu Li and Chungkun Shih and Chen Wang and Hong Pang and Dong Ren}, + title = {Forever Love}, + subtitle = {The Hitherto Earliest Record of Copulating Insects from the Middle Jurassic of China}, + journaltitle = {{PLoS ONE}}, + volume = {8}, + number = {11}, + date = {2013}, + eid = {e78188}, + doi = {10.1371/journal.pone.0078188}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\hack{If the last\slash only word of the journal title is abbreviated (indicated by point or capital letter), it does not need a comma after it. \textsf{Oxref} will try to detect this; if it gets it wrong, 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.} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.4.1> +{lindars1965eir} +B. Lindars, \enquote{Ezechiel and Individual Responsibility}, \emph{VT} 15 (1965), 452--67. +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@article{lindars1965eir, + author = {B. Lindars}, + title = {Ezechiel and Individual Responsibility}, + journaltitle = {VT}, + volume = {15}, + date = {1965}, + pages = {452-467}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} +%</n> +%<*n|y> + +% Unsigned, with month as issue name +\begin{bibexbox} +%<n><OGS \S15.4.1*> +%<y><OGS \S15.4.1*\textdagger> +{jsr1990spt} +%<n>\enquote{Solar Photon Thruster}, \emph{Journal of Spacecraft and Rockets}, 28/4 (July–Aug. 1990), 411–6. +%<y>\enquote{Solar Photon Thruster} (1990), \emph{Journal of Spacecraft and Rockets}, 28/4 (July–Aug.): 411–6. +\tcblower +\begin{Verbatim} +%</n|y> +@article{jsr1990spt, + title = {Solar Photon Thruster}, + journaltitle = {Journal of Spacecraft and Rockets}, + volume = {28}, + number = {4}, + date = {1990-07/1990-08}, + pages = {411-416}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Articles in periodicals with series} + +%<n>\spec{Author, \enquote{Title}, \emph{JournalTitle}, nth \lit{ser}., Vol/Number (Year), Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, nth \lit{ser}., Vol/Number: Pages.} + +\begin{bibexbox} +%<n><NHR \S18.3.3> +%<y><NHR \S18.3.3\textdagger> +{moody1953mdb} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@article{moody1953mdb, + author = {T. W. Moody}, + title = {Michael Davitt and the British Labour Movement, 1882–1906}, + journaltitle = {Transactions of the Royal Historical Society}, + series = {5}, + volume = {3}, + date = {1953}, + pages = {53-76}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{Author, \enquote{Title}, \emph{JournalTitle}, \textsc{ns} Vol/Number (Year), Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, \textsc{ns} Vol/Number, Pages.} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.4.3> +{barnes1971has} +J. Barnes, \enquote{Homonymy in Aristotle and Speusippus}, \emph{Classical Quarterly}, \textsc{ns} 21 (1971), 65--80. +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@article{barnes1971has, + author = {J. Barnes}, + title = {Homonymy in Aristotle and Speusippus}, + journaltitle = {Classical Quarterly}, + series = {newseries}, + volume = {21}, + date = {1971}, + pages = {65--80}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.19.2*> +{hankinson1989gba} +Hankinson, R. J. (1989), \enquote{Galen and the Best of All Possible Worlds}, \emph{CQ}, \textsc{ns} 39: 43–76. +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@article{hankinson1989gba, + author = {R. J. Hankinson}, + date = {1989}, + title = {Galen and the Best of All Possible Worlds}, + journaltitle = {CQ}, + series = {newseries}, + volume = {39}, + pages = {43–76}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} +%</y> +%<*n|y> + + +\section{Articles in issues identified by date alone} + +%<n>\spec{Author, \enquote{Title}, \emph{JournalTitle}, Day Month Year, Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, Day Month: Pages.} + +%</n|y> +%<*n> +% No author +\begin{bibexbox}<OGS \S15.4.1> +{bw1984wen} +\enquote{Who's Excellent Now?}, \emph{Business Week}, 5 Nov. 1984, 76--86. +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@article{bw1984wen, + title = {Who's Excellent Now?}, + journaltitle = {Business Week}, + date = {1984-11-05}, + pages = {76-86}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +% No pages +\begin{bibexbox}<OGS \S15.4.1> +{lee1995ehf} +Alan Lee, \enquote{England Haunted by Familiar Failings}, \emph{The Times}, 23 June 1995. +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@article{lee1995ehf, + author = {Alan Lee}, + title = {England Haunted by Familiar Failings}, + journaltitle = {The Times}, + date = {1995-06-23}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.19.2*> +{marx1842kaa} +Marx, K. (1842), \enquote{Der Kommunismus und die Augsburger \enquote{Allgemeine Zeitung}}, \emph{Rheinische Zeitung}, 16 Oct.: 1–2. +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@article{marx1842kaa, + author = {Karl Marx}, + title = {Der Kommunismus und die Augsburger \enquote{Allgemeine Zeitung}}, + journaltitle = {Rheinische Zeitung}, + date = {1842-10-16}, + pages = {1-2}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +\info{The above example as it appears in the \emph{Oxford Guide to Style} is both incomplete and wildly inaccurate. + I have completed and corrected it as best I can ascertain.} + +% No pages +\begin{bibexbox}<OGS \S15.19.2> +{who1983nsb} +WHO (World Health Organization) (1983), \enquote{Nutrition: Sex Bias of Nutritional Status of Children 0–4 Years}, \emph{Weekly Epidemiologial Record}, 20 May. +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@article{who1983nsb, + shortauthor = {WHO}, + author = {{World Health Organization}}, + date = {1983-05-20}, + title = {Nutrition}, + subtitle = {Sex Bias of Nutritional Status of Children 0–4 Years}, + journaltitle = {Weekly Epidemiologial Record}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +% Year as volume number +\begin{bibexbox} +%<n><OGS \S15.3> +%<y><OGS \S15.3\textdagger> +{boyce1957pgi} +%<n>M. Boyce, \enquote{The Parthian \emph{Gsn} and Iranian Minstrel Tradition}, \emph{Journal of the Royal Asiatic Society}, 1957, 10--45. +%<y>Boyce, M. (1957), \enquote{The Parthian \emph{Gsn} and Iranian Minstrel Tradition}, \emph{Journal of the Royal Asiatic Society}: 10--45. +\tcblower +\begin{Verbatim} +%</n|y> +@article{boyce1957pgi, + author = {M. Boyce}, + title = {The Parthian \emph{Gsn} and Iranian Minstrel Tradition}, + journaltitle = {Journal of the Royal Asiatic Society}, + date = {1957}, + pages = {10-45}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Works published as an issue} + +These examples illustrate where a book is also published as a whole +issue of a periodical, and show how you may reference both at once. +You can either add the periodical details to a book entry +or add the book details to a periodical entry. + +%<n>\spec{Author, \emph{Title} = \emph{JournalTitle}, Vol/Number (Location: Publisher, Year), pages.} +%<y>\spec{Author (Year), \emph{Title} = \emph{JournalTitle}, Vol/Number (Location: Publisher), pages.} + +\tip{Use \code{equals} as the \code{relatedtype}.} + +\begin{bibexbox} +%<n><OGS \S15.4.1> +%<y><OGS \S15.4.1\textdagger> +{bec1976isc} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@collection{bec1976isc, + editor = {C. Bec}, + title = {Italie 1500--1550}, + subtitle = {Une situation de crise?}, + related = {aujm1975.2}, + relatedtype = {equals}, + series = {Langues étrangères}, + number = {2}, + location = {Lyon}, + date = {1976}, + pages = {99--109}} +@periodical{aujm1975.2, + title = {Annales de l'Université Jean Moulin}, + volume = {1975}, + number = {2}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{Author, \emph{Title} = \emph{JournalTitle}, Vol/Number (Year).} +%<y>\spec{Author (Year), \emph{Title} = \emph{JournalTitle}, Vol/Number.} + +\tip{Use \code{issuetitle} instead of \code{title} to get the right formatting.} + +\begin{bibexbox} +%<n><OGS \S15.4.1> +%<y><OGS \S15.4.1\textdagger> +{trisoglio1973gnq} +%<n>F. Trisoglio, \emph{Gregorio di Nazianzo in un quarentennio di recherche (1925--1965)} = \emph{Rivista Iasalliana}, 40 (1973). +%<y>Trisoglio, F. (1973), \emph{Gregorio di Nazianzo in un quarentennio di recherche (1925--1965)} = \emph{Rivista Iasalliana}, 40. +\tcblower +\begin{Verbatim} +%</n|y> +@article{trisoglio1973gnq, + author = {F. Trisoglio}, + issuetitle = {Gregorio di Nazianzo in un quarentennio di recherche (1925--1965)}, + journaltitle = {Rivista Iasalliana}, + volume = {40}, + date = {1973}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Articles in an issue that is a supplement to another issue} + +\DeclareNumChars*{S} + +%<n>\spec{Author, \enquote{Title}, \emph{JournalTitle}, Vol/Number (Year); \lit{Supplement to} \emph{MainJournalTitle} Vol/Number, Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \emph{JournalTitle}, Vol/Number; \lit{Supplement to} \emph{MainJournalTitle} Vol/Number: Pages.} + +\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}.} + +\begin{bibexbox} +%<n><OGS \S15.4.1> +%<y><OGS \S15.4.1\textdagger> +{zhentao.etal1989ars} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@article{zhentao.etal1989ars, + author = {X. Zhentao and K. K. C. Yau and F. R. Stephenson}, + title = {Astronomical Records on the Shang Dynasty Oracle Bones}, + journaltitle = {Archaeoastronomy}, + volume = {14}, + date = {1989}, + related = {jha1989}, + relatedtype = {suppto}, + pages = {S61-S72}, + bookpagination = {page}} +@periodical{jha1989, + title = {Journal for the History of Astronomy}, + volume = {20}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{Use \code{bookpagination} to force the display of ‘pp.’ (since the number format is odd), and \cs{DeclareNumChars*}\brackets{S} to ensure that \code{S61} is recognized as a number.}% + + +\section{Articles that span multiple issues} + +\tip{Use the key \code{serialarticle} as the \code{relatedtype}.} + +%</n|y> +%<*y> +\begin{bibexbox}<NHR \S 17.3*> +{stookey1974ssp} +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. +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@article{stookey1974ssp, + author = {R. W. Stookey}, + date = {1974}, + title = {Social Structure and Politics in the Yemen Arab Republic}, + journaltitle = {Middle East Journal}, + volume = {28}, + number = {3}, + pages = {248-260}, + related = {stookey1974ssp2}, + relatedtype = {serialarticle}} +@article{stookey1974ssp2, + crossref = {stookey1974ssp}, + options = {dataonly}, + volume = {28}, + number = {4}, + pages = {409-419}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} +%</y> + +%<*n|y> + +\section{Accepted journal articles, pre-publication} + +%<n>\spec{Author, \enquote{Title}, \lit{to be published in} \emph{JournalTitle}, Year.} +%<y>\spec{Author (Year), \enquote{Title}, \lit{to be published in} \emph{JournalTitle}.} + +\begin{bibexbox} +{briscoe2008esp} +(not in book) +\tcblower +\begin{Verbatim} +%</n|y> +@article{briscoe2008esp, + author = {Robert Briscoe}, + title = {Egocentric Spatial Representation in Action and Perception}, + journaltitle = {Philosophy and Phenomenological Research}, + url = {http://cogprints.org/5780/1/ECSRAP.F07.pdf}, + pubstate = {inpress}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Reviews} + +%<n>\spec{Author, \enquote{Title}, \lit{review of} ReviewedWork, \lit{in} \emph{JournalTitle}, Vol/Number (Year), Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \lit{review of} ReviewedWork, \lit{in} \emph{JournalTitle}, Vol/Number: Pages.} + +\tip{To get this format, use a separate entry for the reviewed item, reference it in the ‘related’ field, and use the key ‘reviewof’ as the ‘relatedtype’.} + +\begin{bibexbox} +%<n><OGS \S15.4.4> +%<y><OGS \S15.4.4\textdagger> +{dean1995rpb} +%<n>J. Dean, review of Philippe Basiron, \emph{My Early Life} (Bourges, 1994), in \emph{Res facta}, 17 (1995), 56--9. +%<y>Dean, J. (1995), review of P. Basiron (1994), \emph{My Early Life} (Bourges), in \emph{Res facta}, 17: 56--9. +\tcblower +\begin{Verbatim} +%</n|y> +@review{dean1995rpb, + author = {J. Dean}, + related = {basiron1994mel}, + relatedtype = {reviewof}, + journaltitle = {Res facta}, + volume = {17}, + date = {1995}, + pages = {56-59}} +@book{basiron1994mel, + author = {Philippe Basiron}, + title = {My Early Life}, + location = {Bourges}, + date = {1994}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><OGS \S15.4.4> +%<y><OGS \S15.4.4\textdagger> +{jocelyn1989pav} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@review{jocelyn1989pav, + author = {H. D. Jocelyn}, + title = {Probus and Virgil}, + related = {delvigo1987tvt}, + relatedtype = {reviewof}, + journaltitle = {CR}, + series = {newseries}, + volume = {39}, + date = {1989}, + pages = {27-28}} +@book{delvigo1987tvt, + author = {Maria Luisa Delvigo}, + title = {Testo virgiliano e tradizione indiretta}, + location = {Pisa}, + date = {1987}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\chapter{Books}\label{sec:book} +\chapterprecis{book, mvbook, collection, mvcollection, reference, mvreference} + +\section{Monographs} + +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. + +\subsection{Basic form} + +%<n>\spec{Author, \emph{Title} (Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title} (Location: Publisher).} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.2.1> +{eliot1977m} +George Eliot, \emph{Middlemarch} (New York: W. W. Norton, 1977). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@book{eliot1977m, + author = {George Eliot}, + title = {Middlemarch}, + location = {New York}, + publisher = {W. W. Norton}, + date = {1977}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox}<OGS \S15.2.2> +{benvenuti1986op} +Antonia Tissoni Benvenuti, \emph{L'\emph{Orfeo} del Poliziano} (Padua: Editrice Antenore, 1986). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@book{benvenuti1986op, + author = {Antonia Tissoni Benvenuti}, + title = {L'\emph{Orfeo} del Poliziano}, + location = {Padua}, + publisher = {Editrice Antenore}, + date = {1986}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox}<OGS \S15.2.2> +{oconor1977sjf} +Roderick O'Conor, \emph{A Sentimental Journal through \enquote{Finnegan's Wake}, with a Map of the Liffey} (Dublin: HCE Press, 1977). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@book{oconor1977sjf, + author = {Roderick O'Conor}, + title = {A Sentimental Journal through \enquote{Finnegan's Wake}, with a Map of the {Liffey}}, + location = {Dublin}, + publisher = {HCE Press}, + date = {1977}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<NHR \S18.5> +{lyons1981lli} +Lyons, J. (1981\emph{a}), \emph{Language and Linguistics: An Introduction} (Cambridge: Cambridge University Press). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@book{lyons1981lli, + author = {John Lyons}, + date = {1981}, + title = {Language and Linguistics}, + subtitle = {An Introduction}, + location = {Cambridge}, + publisher = {Cambridge University Press}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox}<NHR \S18.5> +{lyons1981lmc} +Lyons, J. (1981\emph{b}), \emph{Language, Meaning and Context} (London: Fontana Paperbacks). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@book{lyons1981lmc, + author = {John Lyons}, + date = {1981}, + title = {Language, Meaning and Context}, + location = {London}, + publisher = {Fontana Paperbacks}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +\subsection{No publisher} + +%<n>\spec{Author, \emph{Title} (Location, Year).} +%<y>\spec{Author (Year), \emph{Title} (Location).} + +%</n|y> +%<*n> +\begin{bibexbox}<NHR \S18.1.3> +{rogers1986tmp} +C.~D.~Rogers, \emph{Tracing Missing Persons} (Manchester, 1986). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@book{rogers1986tmp, + author = {C. D. Rogers}, + title = {Tracing Missing Persons}, + location = {Manchester}, + date = {1986}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{smith1988fag} +Smith, T. (1988), \emph{Famine and Gender} (New Haven, Conn.). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@book{smith1988fag, + author = {Smith, T.}, + title = {Famine and Gender}, + date = {1988}, + location = {New Haven, Conn.}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +\subsection{Edited book} + +%<n>\spec{Author, \emph{Title}, \lit{ed.} Editor(s) (Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title}, \lit{ed.} Editor(s) (Location: Publisher).} + +%<n>\spec{\emph{Title}, \lit{ed.} Editor(s) (Location: Publisher, Year).} +%<y>\spec{\emph{Title} (Year), \lit{ed.} Editor(s) (Location: Publisher).} + +\begin{bibexbox} +%<n><OGS \S15.2.1> +%<y><OGS \S15.2.1\textdagger> +{boas.botschuyver1952dc} +%<n>\emph{Distichia Catonis}, ed. Marcus Boas and Henricus Johannes Botschuyver (Amsterdam, 1952). +%<y>\emph{Distichia Catonis} (1952), ed. M.\ Boas and H.\ J.\ Botschuyver (Amsterdam). +\tcblower +\begin{Verbatim} +%</n|y> +@book{boas.botschuyver1952dc, + title = {Distichia Catonis}, + editor = {Marcus Boas and Henricus Johannes Botschuyver}, + location = {Amsterdam}, + date = {1952}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Collections} + +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. + +%<n>\spec{Editor (\lit{ed.}), \emph{Title} (Location: Publisher, Year).} +%<y>\spec{Editor (Year) (\lit{ed.}), \emph{Title} (Location: Publisher).} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.2.1> +{stewart.etal1994mb} +Rosemary Stewart et al. (eds.), \emph{Managing in Britain} (London, 1994). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@collection{stewart.etal1994mb, + editor = {Rosemary Stewart and Jean-Louis Barsoux and Alfred Kieser and Hans-Dieter Ganter and Peter Walgenbach}, + title = {Managing in {Britain}}, + location = {London}, + date = {1994}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{barnes.griffin1989pte} +Barnes, J., and Griffin, M. T. (1989) (eds.), \emph{Philosophia Togata: Essays on Philosophy and Roman Society} (Oxford). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@collection{barnes.griffin1989pte, + editor = {Jonathan Barnes and Miriam T. Griffin}, + date = {1989}, + title = {Philosophia Togata}, + subtitle = {Essays on Philosophy and Roman Society}, + location = {Oxford}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y>% + +%</n|y> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{hankinson1988mmm} +Hankinson, R. J. (1988) (ed.), \emph{Method, Medicine, and Metaphysics} (Edmonton, Alta.). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@collection{hankinson1988mmm, + editor = {R. J. Hankinson}, + date = {1988}, + title = {Method, Medicine, and Metaphysics}, + location = {Edmonton, Alta.}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +\section{Reference works} + +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). + +\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. \textsf{Oxref} takes the former approach, but you can switch to the latter by setting the \texttt{useeditor} option back to true for this type.} + +\begin{tcblisting}{listing only} +\ExecuteBibliographyOptions[reference,mvreference]{useeditor=true} +\end{tcblisting} + +%<n>\spec{\emph{Title}, \lit{ed.} Editor(s) (Location: Publisher, Year).} +%<y>\spec{\emph{Title} (Year), \lit{ed.} Editor(s) (Location: Publisher).} + +\begin{bibexbox} +%<n><OGS \S15.2.1> +%<y><OGS \S15.2.1\textdagger> +{fortenbaugh.etal1991tes} +%<n>\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). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@mvreference{fortenbaugh.etal1991tes, + title = {{Theophrastus} of {Eresus}}, + subtitle = {Sources for his Life, Writings, Thought, and Influence}, + editor = {William W. Fortenbaugh and Pamela M Huby and Robert W. Sharples and Dimitri Gutas + and others}, + volumes = {2}, + series = {Philosophia Antiqua}, + number = {54}, + location = {Leiden}, + date = {1991}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Multi-volume works} + +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. + +\subsection{All volumes} + +Where all volumes were published consistently, the following form is used: + +%<n>\spec{Author, \emph{Title}, n \lit{vols.} (Location: Publisher, Year), VolNo. Pages.} +%<y>\spec{Author (Year), \emph{Title}, n \lit{vols.} (Location: Publisher), VolNo. Pages.} + +%<*n> +\begin{egcite}{\dots(Brussels, 1867--88), ii. 367--8} +\cite[ii.~\mkcomprange{367-368}]% + {straeten1867lmp} +\end{egcite} +%</n> +%<*y> +\begin{egcite}{} +\parencite[ii.~\mkcomprange{367-368}]{straeten1867lmp} +\end{egcite} +%</y> + +\begin{bibexbox} +%<n><OGS \S15.2.6> +%<y><OGS \S15.2.6\textdagger> +{straeten1867lmp}% +%<n>Edmond Vander Straeten, \emph{La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle}, 8 vols. (Brussels, 1867--88). +%<y>Vander Straeten, E. (1867--88), \emph{La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle}, 8 vols. (Brussels). +\tcblower +\begin{Verbatim} +%</n|y> +@mvbook{straeten1867lmp, + author = {Edmond {Vander Straeten}}, + title = {La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle}, + volumes = {8}, + location = {Brussels}, + date = {1867/1888}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +Where the publisher changed between volumes, the following form is used: + +%<n>\spec{Author, \emph{Title}, VolNo, n \lit{vols.} (Location: Publisher and Location: Publisher, Year–Year).} +%<y>\spec{Author (Year–Year), \emph{Title}, VolNo, n \lit{vols.} (Location: Publisher and Location: Publisher).} + +\begin{bibexbox} +%<n><OGS \S15.2.6*> +%<y><OGS \S15.2.6*\textdagger> +{ritter1838hap} +%<n>Heinrich Ritter, \emph{The History of Ancient Philosophy}, trans. Alexander J. W. Morrison, 4~vols. (Oxford: Talboys and London: Bohn, 1838--46). +%<y>Ritter, H. (1838--46), \emph{The History of Ancient Philosophy}, trans. A. J. W. Morrison, 4~vols. (Oxford: Talboys and London: Bohn). +\tcblower +\begin{Verbatim} +%</n|y> +@mvbook{ritter1838hap, + author = {Heinrich Ritter}, + title = {The History of Ancient Philosophy}, + translator = {Alexander J. W. Morrison}, + volumes = {4}, + location = {Oxford and London}, + publisher = {Talboys and Bohn}, + date = {1838/1846}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\info{In the \emph{Oxford Style Manual}, the translator in the above reference + is in parentheses; this occurs in one other reference (\S15.2.2, Lawrence 1992), + but in many more does not (\S15.2.15, Bischoff 1990; \S15.8, Auden 1990; + all in \S13.11.1). I am therefore choosing to ignore this unnecessary + complication.} + +%</n|y> +%<*n> +\tip{You can alternatively use the standard \textsf{biblatex} relation type \code{multivolume}. Note that this construction is not portable to \textsf{oxyear}.} + +\begin{bibexbox} +<OGS \S15.2.6*> +{ritter1838hap1-3} +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). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@mvbook{ritter1838hap1-3, + author = {Heinrich Ritter}, + title = {The History of Ancient Philosophy}, + translator = {Alexander J. W. Morrison}, + volumes = {4}, + volume = {1-3}, + location = {Oxford}, + publisher = {Talboys}, + date = {1838/1839}, + related = {ritter1838hap4}, + relatedtype = {multivolume}} +@mvbook{ritter1838hap4, + author = {Heinrich Ritter}, + title = {The History of Ancient Philosophy}, + translator = {Alexander J. W. Morrison}, + volumes = {4}, + volume = {4}, + location = {London}, + publisher = {Bohn}, + date = {1846}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*n|y> +\subsection{One volume from several} + +Where the volumes are merely numbered, the following form is used: + +%<n>\spec{Author, \emph{Title}, VolNo (Location: Publisher, Year), Pages.} +%<y>\spec{Author (Year), \emph{Title}, VolNo (Location: Publisher), Pages.} + +\tip{To get this format, do not use \code{maintitle}: put the title of the whole work in \code{title}.} + +%</n|y> +%<*n> +\begin{egcite}{\dots ii (Brussels, 1867--88), 367--8} +\cite[367--368]{straeten1867lmp.ii} +\end{egcite} + +\begin{bibexbox}<OGS \S15.2.6> +{straeten1867lmp.ii} +Edmond Vander Straeten, \emph{La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle}, ii (Brussels, 1867--88). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@mvbook{straeten1867lmp.ii, + author = {Edmond {Vander Straeten}}, + title = {La Musique aux Pays-Bas avant le XIX\textsuperscript{e} siècle}, + volume = {2}, + location = {Brussels}, + date = {1867/1888}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{annas1983osa} +Annas, J. (1983) (ed.), \emph{Oxford Studies in Ancient Philosophy}, i (Oxford). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@mvcollection{annas1983osa, + editor = {Annas, Julia}, + date = {1983}, + title = {Oxford Studies in Ancient Philosophy}, + volume = {1}, + location = {Oxford}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} +%</y> +%<*n|y> + +Where the volumes each have their own (sub)title, +and they were all published at once (more or less), +the following form is used: + +%<n>\spec{Author, \emph{Title}, VolNo: \emph{VolTitle} (Location: Publisher, Year), Pages.} +%<y>\spec{Author (Year), \emph{Title}, VolNo: \emph{VolTitle} (Location: Publisher), Pages.} + +\tip{To get this format, use \code{title} for the volume title and \code{maintitle} for the whole work.} + +\begin{bibexbox} +%<n><OGS \S15.2.2> +%<y><OGS \S15.2.2\textdagger> +{brady.etal1994hehsa} +%<n>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). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@mvcollection{brady.etal1994hehsa, + editor = {Brady, Jr., Thomas A. and Heiko A. Oberman and James D. Tracy}, + maintitle = {Handbook of European History, 1400–1600}, + mainsubtitle = {{Late} {Middle} {Ages,} {Renaissance} and {Reformation}}, + volume = {1}, + title = {Structures and Assertions}, + location = {Leiden}, + publisher = {E. J. Brill}, + date = {1994}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<*n> +\begin{egcite}{\dots (Cambridge: CUP, 1932), 42--56} +\cite[42-56]{ward.waller1932che} +\end{egcite} +%</n> +%<*y> +\begin{egcite}{} +\parencite[42-56]% + {ward.waller1932che} +\end{egcite} +%</y> + +\begin{bibexbox} +%<n><OGS \S15.2.6> +%<y><OGS \S15.2.6\textdagger> +{ward.waller1932che} +%<n>A. W. Ward and A. E. Waller (eds.), \emph{The Cambridge History of English Literature}, xii: \emph{The Nineteenth Century} (Cambridge: CUP, 1932). +%<y>Ward, A. W., and Waller, A. E. (1932) (eds.), \emph{The Cambridge History of English Literature}, xii: \emph{The Nineteenth Century} (Cambridge: CUP). +\tcblower +\begin{Verbatim} +%</n|y> +@mvcollection{ward.waller1932che, + editor = {A. W. Ward and A. E. Waller}, + maintitle = {The Cambridge History of English Literature}, + volume = {12}, + title = {The Nineteenth Century}, + location = {Cambridge}, + publisher = {CUP}, + date = {1932}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +Where the volumes each have their own (sub)title, +and there are many volumes spanning years and possibly publishers, +the following form is used: + +%<n>\spec{Author, \emph{VolTitle}, (\lit{vol.} VolNo \lit{of} Title) (Location: Publisher, Year), Pages.} +%<y>\spec{Author (Year), \emph{VolTitle}, (\lit{vol.} VolNo \lit{of} Title) (Location: Publisher), Pages.} + +\tip{To get this format, use \code{book} instead of \code{mvbook}.} + +\begin{bibexbox} +%<n><NHR \S18.2.7> +%<y><NHR \S18.2.7\textdagger> +{fischer1989asf} +%<n>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). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@book{fischer1989asf, + author = {David Hackett Fischer}, + title = {Albion’s Seed}, + subtitle = {Four British Folkways in America}, + volume = {1}, + maintitle = {America}, + mainsubtitle = {A Cultural History}, + location = {New York}, + publisher = {Oxford University Press}, + date = {1989}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Additions, translations, and revisions} + +Where works have significant introductions, forewords, afterwords, illustrations, etc.\ this may be noted as follows: + +%<n>\spec{Author, \emph{Title}, \lit{with an} Addition \lit{by} Contributor (Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title}, \lit{with an} Addition \lit{by} Contributor (Location: Publisher).} + +\begin{bibexbox} +%<n><OGS \S15.2.1> +%<y><OGS \S15.2.1\textdagger> +{twain1971cyk} +%<n>Mark Twain, \emph{A Connecticut Yankee at King Arthur's Court}, with an introduction by Justin Kaplan (Harmondsworth: Penguin, 1971). +%<y>Twain, M. (1971), \emph{A Connecticut Yankee at King Arthur's Court}, with an introduction by J. Kaplan (Harmondsworth: Penguin). +\tcblower +\begin{Verbatim} +%</n|y> +@book{twain1971cyk, + author = {Mark Twain}, + title = {A {Connecticut} Yankee at {King} {Arthur's} Court}, + introduction = {Justin Kaplan}, + location = {Harmondsworth}, + publisher = {Penguin}, + date = {1971}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +Translators are credited as follows: + +%<n>\spec{Author, \emph{Title}, \lit{trans.} Translator(s) (Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title}, \lit{trans.} Translator(s) (Location: Publisher).} + +\begin{bibexbox} +%<n><NHR \S18.2.14> +%<y><NHR \S18.2.14\textdagger> +{bischoff1990lpa} +%<n>Bernhard Bischoff, \emph{Latin Palaeography: Antiquity and the Middle Ages}, trans. Dáibhi Ó Cróinín and David Ganz (Cambridge, 1990). +%<y>Bischoff, B. (1990), \emph{Latin Palaeography: Antiquity and the Middle Ages}, trans. D. Ó Cróinín and D. Ganz (Cambridge). +\tcblower +\begin{Verbatim} +%</n|y> +@book{bischoff1990lpa, + author = {Bernhard Bischoff}, + title = {Latin Palaeography}, + subtitle = {Antiquity and the Middle Ages}, + translator = {Dáibhi Ó Cróinín and David Ganz}, + location = {Cambridge}, + date = {1990}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{Author, \emph{Title}, \lit{trans.\ with} Addition Translator(s) (Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title}, \lit{trans.\ with} Addition Translator(s) (Location: Publisher).} + +\begin{bibexbox} +%<n><NHR \S18.2.14> +%<y><NHR \S18.2.14\textdagger> +{martorell1984tlb} +%<n>Joanat Martorell, \emph{Tirant lo Blanc}, trans. with foreword David H. Rosenthal (London, 1984). +%<y>Martorell, J. (1984), \emph{Tirant lo Blanc}, trans. with foreword D. H. Rosenthal (London). +\tcblower +\begin{Verbatim} +%</n|y> +@book{martorell1984tlb, + author = {Joanat Martorell}, + title = {Tirant lo Blanc}, + translator = {David H. Rosenthal}, + foreword = {David H. Rosenthal}, + location = {London}, + date = {1984}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Editions} + +\subsection{Later edition only} + +Where the author\slash editor is common to both, the following form is used: + +%<n>\spec{Author, \emph{Title} (nth \lit{edn.}, Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title} (nth \lit{edn.}, Location: Publisher).} + +\tip{This is the format used by the entry type \code{book}} + +%</n|y> +%<*n> +\begin{egcite}{\dots (3rd edn., 1990), 419--21} +\cite[419-421]{baker1990iel} +\end{egcite} + +\begin{bibexbox}<OGS \S15.2.3> +{baker1990iel} +J. H. Baker, \emph{An Introduction to English Legal History} (3rd edn., 1990). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@book{baker1990iel, + author = {J. H. Baker}, + title = {An Introduction to {English} Legal History}, + edition = {3}, + date = {1990}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<NHR \S17.3.2*> +{maitland2001mvr} +Maitland, G. (2001), \emph{Maitland's Vertebral Manipulation} (6th edn., Oxford: Butterworth--Heinemann). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@book{maitland2001mvr, + author = {G. Maitland}, + title = {Maitland's Vertebral Manipulation}, + edition = {6}, + publisher = {Butterworth--Heinemann}, + location = {Oxford}, + date = {2001}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{beckford1823v} +%<n>William Beckford, \emph{Vathek} (4th edn., London, 1823) [online facsimile], \url{http://beckford.c18.net/wbvathek1823.html}, accessed 5 Nov. 2013. +%<y>Beckford, W. (1823), \emph{Vathek} (4th edn., London) [online facsimile], \url{http://beckford.c18.net/wbvathek1823.html}, accessed 5 Nov. 2013. +\tcblower +\begin{Verbatim} +%</n|y> +@book{beckford1823v, + author = {William Beckford}, + title = {Vathek}, + edition = {4}, + location = {London}, + date = {1823}, + howpublished = {online facsimile}, + url = {http://beckford.c18.net/wbvathek1823.html}, + urldate = {2013-11-05}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +Where the editor has changed, the following form is used: + +%<n>\spec{\emph{Title}, nth \lit{edn.}, \lit{ed.} Editor (Location: Publisher, Year).} +%<y>\spec{\emph{Title} (Year), nth \lit{edn.}, \lit{ed.} Editor (Location: Publisher).} + +\tip{This format is used by entry type \code{reference}} + +\begin{bibexbox} +%<n><OGS \S15.2.3> +%<y><OGS \S15.2.3\textdagger> +{knowles1999odq} +%<n>\emph{The Oxford Dictionary of Quotations}, 5th edn., ed. Elizabeth Knowles (Oxford, 1999). +%<y>\emph{The Oxford Dictionary of Quotations} (1999), 5th edn., ed. E. Knowles (Oxford). +\tcblower +\begin{Verbatim} +%</n|y> +@reference{knowles1999odq, + title = {The {Oxford} Dictionary of Quotations}, + edition = {5}, + editor = {Elizabeth Knowles}, + publisher = {Oxford}, + date = {1999}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\subsection{Both first and later edition} + +%<n>\spec{Author, \emph{Title} (Year; nth \lit{edn.}, Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title} (Year; nth \lit{edn.}, Location: Publisher).} + +\tip{Use the \code{orig} fields for the earlier edition.} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.2.3> +{denniston1934gp} +J. D. Denniston, \emph{The Greek Particles} (1934; 2nd edn., Oxford, 1954). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@book{denniston1934gp, + author = {J. D. Denniston}, + title = {The Greek Particles}, + origdate = {1934}, + edition = {2}, + location = {Oxford}, + date = {1954}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +\tip{Use the localization key \code{revised} as the edition to get ‘revised edition’. Use the localization key \code{revisedenlarged} as the edition to get ‘revised and enlarged edition’} + +\begin{bibexbox}<OGS \S15.2.1*> +{gibbon1686dfs} +{[John Gibbon]}, \emph{Day-Fatality: Or Some Observations on Days Lucky and Unlucky}, (London, 1678; rev.~edn., 1686). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@book{gibbon1686dfs, + author = {John Gibbon}, + author+an = {=inferred}, + title = {Day-Fatality}, + subtitle = {Or Some Observations on Days Lucky and Unlucky}, + edition = {revised}, + origlocation = {London}, + origdate = {1678}, + date = {1686}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +\info{In the \emph{Oxford Guide to Style}, there is no comma after ‘rev. edn.’ in the above reference; this may be an error.} +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{marx1867ccp} +Marx, K. (1867), \emph{Capital: A Critique of Political Economy}, i, trans. B. Fowkes (New York, 1977). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@mvbook{marx1867ccp, + author = {K. Marx}, + origdate = {1867}, + title = {Capital}, + subtitle = {A Critique of Political Economy}, + volume = {1}, + translator = {B. Fowkes}, + location = {New York}, + date = {1977}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +\subsection{Republications} + +If the publication has not been revised, but has been re-typeset by a different publisher, +the \emph{Oxford Guide to Style} suggests putting the original date in a note at the end, +rather than within the publication block% +%<n>. +%<y>, but this does not affect the author–date style since the original date is at the head of the reference anyway. + +%<n>\spec{Author, \emph{Title} (Location: Publisher, Year) (\lit{first pub.} Year).} +%<y>\spec{Author (OrigYear), \emph{Title} (Location: Publisher).} + +%<n>\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.} + +\begin{bibexbox} +%<n><OGS \S15.2.3> +%<y><OGS \S15.2.3\textdagger> +{bettelheim1976uem} +%<n>Bruno Bettelheim, \emph{The Uses of Enchantment: The Meaning and Importance of Fairy Tales} (Harmondsworth: Penguin Books, 1988) (first pub. 1976). +%<y>Bettelheim, B. (1976), \emph{The Uses of Enchantment: The Meaning and Importance of Fairy Tales} (Harmondsworth: Penguin Books, 1988). +\tcblower +\begin{Verbatim} +%</n|y> +@book{bettelheim1976uem, + author = {Bruno Bettelheim}, + title = {The Uses of Enchantment}, + subtitle = {The Meaning and Importance of Fairy Tales}, + location = {Harmondsworth}, + publisher = {Penguin Books}, + date = {1988}, + origdate = {1976}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\subsection{Reprints} + +%<n>\spec{Author, \emph{Title} (Location: Publisher, Year; \lit{repr.} Location: Publisher, Year).} +%<y>\spec{Author (Year/Year), \emph{Title} (Location: Publisher; \lit{repr.} Location: Publisher).} + +\tip{Use localization key \code{reprint} as the edition. For a revised reprint, use \code{revisedreprint}.} + +\begin{bibexbox} +%<n><OGS \S15.2.4> +%<y><OGS \S15.2.4\textdagger> +{adam.tannery1897odd} +%<n>C. Adam and D. Tannery (eds.), \emph{Œuvres de Descartes} (Paris: Cerf, 1897--1913; repr. Paris: J. Vrin, CNRS, 1964--76). +%<y>Adam, C. and Tannery, D. (1897--1913) (eds.), \emph{Œuvres de Descartes} (Paris: Cerf; repr. Paris: J. Vrin, CNRS, 1964--76). +\tcblower +\begin{Verbatim} +%</n|y> +@collection{adam.tannery1897odd, + editor = {C. Adam and D. Tannery}, + title = {Œuvres de Descartes}, + origlocation = {Paris}, + origpublisher = {Cerf}, + origdate = {1897/1913}, + edition = {reprint}, + location = {Paris}, + publisher = {J. Vrin, CNRS}, + date = {1964/1976}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><OGS \S15.2.4> +%<y><OGS \S15.2.4\textdagger> +{southern1991sap} +%<n>R. W. Southern, \emph{Saint Anselm: A Portrait in a Landscape} (rev. repr., Cambridge: Cambridge University Press, 1991). +%<y>Southern, R. W. (1991), \emph{Saint Anselm: A Portrait in a Landscape} (rev. repr., Cambridge: Cambridge University Press). +\tcblower +\begin{Verbatim} +%</n|y> +@book{southern1991sap, + author = {R. W. Southern}, + title = {Saint Anselm}, + subtitle = {A Portrait in a Landscape}, + edition = {revisedreprint}, + location = {Cambridge}, + publisher = {Cambridge University Press}, + date = {1991}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{Author, \emph{Title} (Location: Publisher, Year; \lit{facs. edn.}, Location: Publisher, Year).} +%<y>\spec{Author (Year/Year), \emph{Title} (Location: Publisher; \lit{facs. edn.}, Location: Publisher).} + +\tip{Use localization key \code{facsimile} as the edition.} + +\begin{bibexbox} +%<n><OGS \S15.2.4> +%<y><OGS \S15.2.4\textdagger> +{allen1594kkk} +%<n>E. Allen, \emph{A Knack to Know a Knave} (London, 1594; facs. edn., Oxford: Malone Society Reprints, 1963). +%<y>Allen, E. (1594), \emph{A Knack to Know a Knave} (London; facs. edn., Oxford: Malone Society Reprints, 1963). +\tcblower +\begin{Verbatim} +%</n|y> +@book{allen1594kkk, + author = {E. Allen}, + title = {A Knack to Know a Knave}, + origlocation = {London}, + origdate = {1594}, + edition = {facsimile}, + location = {Oxford}, + publisher = {Malone Society Reprints}, + date = {1963}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\subsection{Title changes} + +\emph{New Hart's Rules} recommends giving the original publication details first, +then the new title and its details after a semicolon. + +\tip{The standard \code{relatedtype} value \code{reprintas} is supported.} + +\begin{bibexbox} +%<n><NHR \S18.2.13> +%<y><NHR \S18.2.13\textdagger> +{hare1949wwb} +%<n>Cyril Hare, \emph{When the Wind Blows} (London, 1949); repr. as \emph{The Wind Blows Death} (London, 1987). +%<y>Hare, C. (1949), \emph{When the Wind Blows} (London); repr. as \emph{The Wind Blows Death} (London, 1987). +\tcblower +\begin{Verbatim} +%</n|y> +@book{hare1949wwb, + author = {Cyril Hare}, + title = {When the Wind Blows}, + location = {London}, + date = {1949}, + related = {hare1987wbd}, + relatedtype = {reprintas}} +@book{hare1987wbd, + author = {Cyril Hare}, + title = {The Wind Blows Death}, + location = {London}, + date = {1987}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{A more generalized version of this relation is available. + If you set the \code{relatedtype} to the \textsf{oxref}-specific keyword \code{editedas}, + the edition and any editorial contributions will be printed in the linking text.} + +\begin{bibexbox} +%<n><NHR \S18.2.12*> +%<y><NHR \S18.2.128\textdagger> +{berkenhout1769onh} +%<n>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). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@mvbook{berkenhout1769onh, + author = {John Berkenhout}, + title = {Outlines of the Natural History of Great Britain}, + volumes = {3}, + location = {London}, + date = {1769/1772}, + related = {berkenhout1789snh}, + relatedtype = {editedas}} +@mvbook{berkenhout1789snh, + author = {John Berkenhout}, + title = {A Synopsis of the Natural History of Great Britain}, + volumes = {2}, + edition = {revised}, + location = {London}, + date = {1789}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR \S18.2.13> +%<y><NHR \S18.2.13\textdagger> +{lower1665dtw} +%<n>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). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@book{lower1665dtw, + author = {Richard Lower}, + title = {Diatribæ Thomæ Willisii Doct. Med. \& Profess. Oxon. De febribus Vindicatio adversus + Edmundum De Meara Ormoniensem Hibernum M.D.}, + location = {London}, + date = {1665}, + related = {dewhurst1983rlv}, + relatedtype = {editedas}} +@book{dewhurst1983rlv, + author = {Richard Lower}, + introduction = {Kenneth Dewhurst}, + editor = {Kenneth Dewhurst}, + translator = {Kenneth Dewhurst}, + title = {Richard Lower's \enquote{Vindicatio}}, + subtitle = {A Defence of the Experimental Method}, + edition = {facsimile}, + location = {Oxford}, + date = {1983}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\subsection{Co-publications\slash co-editions} + +%</n|y> +%<*y> +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}. + +%</y> +%<*n> +If the same book has been co-published by multiple publishers at approximately the same time, +you can express this by putting multiple sets of details in the publication block. +You should not do this, however, if you might want to switch to using the \textsf{oxyear} style at some point, +since it does not really work for author–year styles. + +\spec{Author, \emph{Title} (Location: Publisher, Year; Location: Publisher, Year).} + +\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}.} + +\begin{bibexbox} +<OGS \S15.2.5>{holfordstrevens1988ag1} +L. A. Holford-Strevens, \emph{Aulus Gellius} (London: Duckworth, 1988; Chapel Hill: University of North Carolina Press, 1989). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@book{holfordstrevens1988ag1, + author = {L. A. Holford-Strevens}, + title = {Aulus Gellius}, + location = {London}, + publisher = {Duckworth}, + date = {1988}, + related = {holfordstrevens1988ag2}, + relatedtype = {copub}} +@book{holfordstrevens1988ag2, + location = {Chapel Hill}, + publisher = {University of North Carolina Press}, + date = {1989}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*n|y> +If the work is published under two different titles, it is a good idea to +provide both to make it easier to locate. + +\tip{Use a generic relation and specify the country details in the \code{relatedstring}.} + +\begin{bibexbox} +%<n><OGS \S15.2.5> +%<y><OGS \S15.2.5\textdagger> +{salinger1953ns} +%<n>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). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@book{salinger1953ns, + author = {J. D. Salinger}, + title = {Nine Stories}, + location = {Boston}, + publisher = {Little, Brown}, + date = {1953}, + related = {salinger1953few}, + relatedstring = {published in the UK as}, + options = {relationpunct=comma}} +@book{salinger1953few, + title = {For {Esmé}---With Love and Squalor, and Other Stories}, + location = {London}, + publisher = {Hamish Hamilton}, + date = {1953}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Works from a series} + +%<n>\spec{Author, \emph{Title} (Series; Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title} (Series; Location: Publisher).} +%<n>\spec{Author, \emph{Title} (Series, Number; Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title} (Series, Number; Location: Publisher).} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.2.7> +{garlandia1972dmm} +Johannes de Garlandia, \emph{De mensurabili musica}, ed. Erich Reimer, 2 vols. (Beihefte zum Archiv für Musikwissenschaft, 10--11; Wiesbaden, 1972). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@mvbook{garlandia1972dmm, + author = {Johannes de Garlandia}, + title = {De mensurabili musica}, + editor = {Erich Reimer}, + volumes = {2}, + series = {Beihefte zum Archiv für Musikwissenschaft}, + number = {10--11}, + publisher = {Wiesbaden}, + date = {1972}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{barnes1982ari} +Barnes, J. (1982), \emph{Aristotle} (Past Masters; Oxford). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@book{barnes1982ari, + author = {Jonathan Barnes}, + date = {1982}, + title = {Aristotle}, + series = {Past Masters}, + location = {Oxford}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +%<n>\spec{Author, \emph{Title} (nth \lit{ser.}, Year).} +%<y>\spec{Author (Year), \emph{Title} (nth \lit{ser.}).} + +\section{Pre-publication book} + +%<n>\spec{Author, \emph{Title} (Location: Publisher, \lit{forthcoming}).} +%<y>\spec{Author (\lit{forthcoming}), \emph{Title} (Location: Publisher).} + +%</n|y> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{smithFCgaf} +Smith, P. (forthcoming \emph{a}), \emph{Gender and Famine}, 2 vols. (London). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@mvbook{smithFCgaf, + author = {P. Smith}, + title = {Gender and Famine}, + volumes = {2}, + location = {London}, + pubstate = {forthcoming}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +\chapter{Works within books}\label{sec:inbook} +\chapterprecis{inbook, bookinbook, suppbook, incollection, suppcollection, inreference} + +\section{Works in collections of a single author's works} + +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. + +%<n>\spec{Author, \enquote{Title}, \lit{in id.}, \emph{BookTitle}, \lit{ed.} Editor(s) (Location: Publisher, Year), Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \lit{in id.}, \emph{BookTitle}, \lit{ed.} Editor(s) (Location: Publisher), Pages.} + +\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.} + +\begin{bibexbox} +%<n><OGS \S15.2.11*> +%<y><OGS \S15.2.11*\textdagger> +{kristeller1979thm} +%<n>Paul Oskar Kristeller, \enquote{The Aristotelian Tradition}, in id., \emph{Renaissance Thought and Its Sources}, ed. Michael Mooney (New York: Columbia University Press, 1979). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@inbook{kristeller1979thm, + author = {Paul Oskar Kristeller}, + gender = {sm}, + title = {The Aristotelian Tradition}, + bookauthor = {Paul Oskar Kristeller}, + booktitle = {Renaissance Thought and Its Sources}, + editor = {Michael Mooney}, + location = {New York}, + publisher = {Columbia University Press}, + date = {1979}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{Author, \enquote{Title}, \lit{in} \emph{BookTitle}, \lit{ed.} Editor(s) (Location: Publisher, Year), Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \lit{in} \emph{BookTitle}, \lit{ed.} Editor(s) (Location: Publisher), Pages.} + +\begin{bibexbox} +%<n><NHR \S18.2.6*> +%<y><NHR \S18.2.6*\textdagger> +{ashton1991d} +%<n>John Ashton, \enquote{Dualism}, in \emph{Understanding the Fourth Gospel} (Oxford, 1991), 205–37. +%<y>Ashton, J. (1991), \enquote{Dualism}, in \emph{Understanding the Fourth Gospel} (Oxford), 205–37. +\tcblower +\begin{Verbatim} +%</n|y> +@inbook{ashton1991d, + author = {John Ashton}, + title = {Dualism}, + booktitle = {Understanding the Fourth Gospel}, + location = {Oxford}, + date = {1991}, + pages = {205-237}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Works in collections} + +The \code{incollection} entry type is intended for citing one of a collection of self-contained works by different authors. + +\subsection{Works in a mixed collection} + +%<n>\spec{Author, \enquote{Title}, \lit{in} Editors (\lit{eds.}), \emph{BookTitle} (Location: Publisher, Year), Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \lit{in} Editors (\lit{eds.}), \emph{BookTitle} (Location: Publisher), Pages.} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.3> +{shearman1993vsf} +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. +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@incollection{shearman1993vsf, + author = {John Shearman}, + title = {The Vatican Stanze}, + subtitle = {Functions and Decoration}, + editor = {George Holmes}, + booktitle = {Art and Politics in Renaissance Italy}, + booksubtitle = {British Academy Lectures}, + location = {Oxford}, + publisher = {Clarendon Press}, + date = {1993}, + pages = {185-240}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<NHR \S17.3.2> +{magarey1988ect} +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. +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@incollection{magarey1988ect, + author = {M. E. Magarey}, + date = {1988}, + title = {Examination of the Cervical and Thoracic Spine}, + editor = {R. Grant}, + booktitle = {Physical Therapy of the Cervical and Thoracic Spine}, + location = {New York}, + publisher = {Churchill Livingstone}, + pages = {81-109}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox}<NHR \S17.3.2> +{jessop1997gcc} +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). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@incollection{jessop1997gcc, + author = {Bob Jessop}, + date = {1997}, + title = {The Governance of Complexity and Complexity of Governance}, + editor = {Ash Amin and Jerzy Hausner}, + booktitle = {Beyond Markets and Hierarchy}, + location = {Aldershot}, + publisher = {Edward Elgar}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +\subsection{Works by the editor in a mixed collection} + +%<n>\spec{Author, \enquote{Title}, \lit{in id.} (\lit{ed.}), \emph{BookTitle} (Location: Publisher, Year), Pages.} +%<y>\spec{Author (Year), \enquote{Title}, \lit{in id.} (\lit{ed.}), \emph{BookTitle} (Location: Publisher), Pages.} + +\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.} + +\begin{bibexbox} +%<n><OGS \S15.3> +%<y><OGS \S15.3\textdagger> +{todd1974dhp} +%<n>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). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@incollection{todd1974dhp, + author = {W. B. Todd}, + gender = {sm}, + title = {David Hume}, + subtitle = {A Preliminary Bibliography}, + editor = {W. B. Todd}, + booktitle = {Hume and the Enlightenment}, + booksubtitle = {Essays Presented to Ernest Campbell Mossner}, + location = {Edinburgh}, + publisher = {Edinburgh University Press}, + date = {1974}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Anthologies of independently published works} + +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. + +\subsection{Later version more accessible} + +\tip{Use \code{origdate} to give the date of original publication.} + +\begin{bibexbox} +%<n><OGS \S15.3> +%<y><OGS \S15.3\textdagger> +{frege1892osr} +%<n>G. Frege, \enquote{On Sense and Reference}, in id., \emph{Philosophical Writings}, trans. and ed. P. T. Geach and M. Black (Oxford: Blackwell, 1952) (originally pub. 1892). +%<y>Frege, G. (1892), \enquote{On Sense and Reference}, in id., \emph{Philosophical Writings}, trans. and ed. P. T. Geach and M. Black (Oxford: Blackwell, 1952). +\tcblower +\begin{Verbatim} +%</n|y> +@bookinbook{frege1892osr, + author = {G. Frege}, + gender = {sm}, + title = {On Sense and Reference}, + bookauthor = {G. Frege}, + booktitle = {Philosophical Writings}, + translator = {P. T. Geach and M. Black}, + editor = {P. T. Geach and M. Black}, + location = {Oxford}, + publisher = {Blackwell}, + date = {1952}, + origdate = {1892}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\subsection{Both versions equally accessible} + +\tip{Put the key of the original work in \code{related}, and in \code{relatedtype} use the keyword \code{reprintfrom}.} + +\begin{bibexbox} +%<n><OGS \S15.3> +%<y><OGS \S15.3\textdagger> +{owen1986pi} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@bookinbook{owen1986pi, + author = {G. E. L. Owen}, + gender = {sm}, + title = {Philosophical Invective}, + booktitle = {Logic, Science and Dialectic}, + bookauthor = {G. E. L. Owen}, + editor = {M. Nussbaum}, + location = {Ithaca, NY}, + publisher = {Cornell University Press}, + date = {1986}, + pages = {347-364}, + related = {owen1983pi}, + relatedtype = {reprintfrom}} +@article{owen1983pi, + author = {G. E. L. Owen}, + title = {Philosophical Invective}, + journaltitle = {Oxford Studies in Ancient Philosophy}, + volume = {1}, + date = {1983}, + pages = {1-25}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Articles in yearbooks and works of reference} + +Yearbooks may be treated either as collections or periodicals; the distinction boils down to whether you want to print the location and publisher. + +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}. + +\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}.} + +\begin{bibexbox} +%<n><OGS \S15.3> +%<y><OGS \S15.3\textdagger> +{dahlhaus1971mmf} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@inreference{dahlhaus1971mmf, + author = {Carl Dahlhaus}, + title = {Miszellen zur Musiktheorie des 15.\@ Jahrhunderts}, + booktitle = {Jahrbuch des Staatlichen Instituts für Musikforschung Preußischer Kulturbesitz, + 1970}, + location = {Berlin}, + date = {1971}, + pages = {21-33}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Supplementary works in books and collections} + +\begin{bibexbox} +%<n><NHR \S18.2.6*> +%<y><NHR \S18.2.6*\textdagger> +{gill1987intro} +%<n>Roma Gill, introduction in \emph{The Complete Works of Christopher Marlow}, i (Oxford, 1987; repr.\@ 2001). +%<y>Gill, R. (1987), introduction in \emph{The Complete Works of Christopher Marlow}, i (Oxford; repr.\@ 2001). +\tcblower +\begin{Verbatim} +%</n|y> +@suppbook{gill1987intro, + author = {Roma Gill}, + title = {introduction}, + booktitle = {The Complete Works of Christopher Marlow}, + volume = {1}, + origlocation = {Oxford}, + origdate = {1987}, + edition = {reprint}, + date = {2001}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\chapter{Works presented at meetings}\label{sec:proceedings} +\chapterprecis{proceedings, mvproceedings, inproceedings, unpublished} + +\section{Single volume proceedings} + +The \code{proceedings} entry type is intended for a set of conference papers that have been collected together into a single volume. + +%<n>\spec{\emph{Title}, \lit{ed.} Editor (Location: Publisher, Year).} +%<y>\spec{\emph{Title} (Year), \lit{ed.} Editor (Location: Publisher).} + +\begin{bibexbox} +%<n><OGS \S15.2.12> +%<y><OGS \S15.2.12\textdagger> +{icp1975pic} +%<n>\emph{Proceedings of the XIV International Congress of Papyrologists: Oxford, 24--31 July 1974} (London, 1975). +%<y>\emph{Proceedings of the XIV International Congress of Papyrologists: Oxford, 24--31 July 1974} (1975) (London). +\tcblower +\begin{Verbatim} +%</n|y> +@proceedings{icp1975pic, + title = {Proceedings of the {XIV} {International} {Congress} of {Papyrologists}}, + subtitle = {{Oxford}, 24--31 {July} 1974}, + location = {London}, + date = {1975}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\info{The \code{organization} is automatically converted into an \code{author}.} + +%<*n> +\begin{egcite}{\dots Imperial College Bookstall, 1922), 1.52–3} +\cite[1.52-3]{iau1922tia} +\end{egcite} +%</n> +%<*y> +\begin{egcite}{} +\parencite[1.52-3]{iau1922tia} +\end{egcite} +%</y> + +\begin{bibexbox} +%<n><OGS \S15.2.13> +%<y><OGS \S15.2.13\textdagger> +{iau1922tia} +%<n>International Astronomical Union, \emph{Transactions of the International Astronomical Union, Rome}, 12--20 May 1922 (London: Imperial College Bookstall, 1922). +%<y>International Astronomical Union (1922), \emph{Transactions of the International Astronomical Union, Rome}, 12--20 May 1922 (London: Imperial College Bookstall). +\tcblower +\begin{Verbatim} +%</n|y> +@proceedings{iau1922tia, + organization = {{International Astronomical Union}}, + title = {Transactions of the {International} {Astronomical} {Union}, {Rome}}, + eventdate = {1922-05-12/1922-05-20}, + location = {London}, + publisher = {Imperial College Bookstall}, + date = {1922}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +Sometimes the title of the proceedings does not relate to the conference; in which case the following form might be used: + +%<n>\spec{\emph{Title}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher, Year).} +%<y>\spec{\emph{Title} (Year), EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher).} + +\begin{bibexbox} +{ecdl2009} +(not in book) +\tcblower +\begin{Verbatim} +%</n|y> +@proceedings{ecdl2009, + editor = {Maristella Agosti and José Borbinha and Sarantos Kapidakis and Christos + Papatheodorou and Giannis Tsakonas}, + title = {Research and Advanced Technology for Digital Libraries}, + eventtitle = {13th European Conference, ECDL 2009}, + venue = {Corfu, Greece}, + eventdate = {2009-09-27/2009-10-02}, + series = {Lecture Notes in Computer Science}, + number = {5714}, + location = {Berlin}, + publisher = {Springer}, + date = {2009}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Multi-volume proceedings} + +\textsf{Biblatex} provides \code{mvproceedings} for multi-volume proceedings. +The examples here are a combination of Oxford style for proceedings and multi-volume books. + +\subsection{All volumes} + +%<n>\spec{\emph{Title}, EventTitle, Venue, ConfDate, \lit{ed.} Editor, n \lit{vols.} (Series, Number; Location: Publisher, Year).} +%<y>\spec{\emph{Title} (Year), EventTitle, Venue, ConfDate, \lit{ed.} Editor, n \lit{vols.} (Series, Number; Location: Publisher).} + +\begin{bibexbox} +{iced2009} +(not in book) +\tcblower +\begin{Verbatim} +%</n|y> +@mvproceedings{iced2009, + title = {Proceedings of the 17th International Conference on Engineering Design (ICED ’09)}, + volumes = {10}, + editor = {Margareta Norell Bergendahl and Martin Grimheden and Larry Leifer}, + venue = {Stanford, CA}, + eventdate = {2009-08-24/2009-08-27}, + location = {Glasgow}, + publisher = {Design Society}, + date = {2009}, + isbn = {978-1-904670-12-4}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\subsection{One volume} + +%<n>\spec{\emph{Title}, VolNo: \emph{VolTitle}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher, Year).} +%<y>\spec{\emph{VolTitle} (Year), VolNo \lit{of} \emph{Title}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher).} + +\begin{bibexbox} +{iced2009dik} +(not in book) +\tcblower +\begin{Verbatim} +%</n|y> +@mvproceedings{iced2009dik, + maintitle = {Proceedings of the 17th International Conference on Engineering Design (ICED ’09)}, + title = {Design Information and Knowledge}, + volume = {8}, + editor = {Margareta Norell Bergendahl and Martin Grimheden and Larry Leifer}, + venue = {Stanford, CA}, + eventdate = {2009-08-24/2009-08-27}, + location = {Glasgow}, + publisher = {Design Society}, + date = {2009}, + isbn = {978-1-904670-12-4}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Published conference paper} + +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). + +%<n>\spec{Author, \enquote{Title}, \lit{in} \emph{BookTitle}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher, Year).} +%<y>\spec{Author (Year), \enquote{Title}, \lit{in} \emph{BookTitle}, EventTitle, Venue, ConfDate, \lit{ed.} Editor (Series, Number; Location: Publisher).} + +\begin{bibexbox} +{tonkin.strelnikov2009iem} +(not in book) +\tcblower +\begin{Verbatim} +%</n|y> +@inproceedings{tonkin.strelnikov2009iem, + author = {Emma Tonkin and Alexey Strelnikov}, + title = {Information Environment Metadata Schema Registry}, + editor = {Maristella Agosti and José Borbinha and Sarantos Kapidakis and Christos Papatheodorou and Giannis Tsakonas}, + booktitle = {Research and Advanced Technology for Digital Libraries}, + eventtitle = {13th European Conference, ECDL 2009}, + venue = {Corfu, Greece}, + eventdate = {2009-09-27/2009-10-02}, + series = {Lecture Notes in Computer Science}, + number = {5714}, + location = {Berlin}, + publisher = {Springer}, + date = {2009}, + pages = {487-488}, + isbn = {978-3-642-04345-1}, + issn = {0302-9743}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{Author, \enquote{Title}, \lit{in} \emph{BookTitle}, EventTitle, Venue, ConfDate, \lit{ed.} Editor, n \lit{vols.} (Series, Number; Location: Publisher, Year), VolNo. Pages.} +%<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.} + +\begin{bibexbox} +{ding.etal2009sfc} +(not in book) +\tcblower +\begin{Verbatim} +%</n|y> +@inproceedings{ding.etal2009sfc, + author = {Lian Ding and Alex Ball and Manjula Patel and Jason Matthews and Glen Mullineux}, + title = {Strategies for the Collaborative Use of CAD Product Models}, + maintitle = {Proceedings of the 17th International Conference on Engineering Design (ICED ’09)}, + booktitle = {Design Information and Knowledge}, + volume = {8}, + editor = {Margareta Norell Bergendahl and Martin Grimheden and Larry Leifer}, + venue = {Stanford, CA}, + eventdate = {2009-08-24/2009-08-27}, + location = {Glasgow}, + publisher = {Design Society}, + date = {2009}, + pages = {123-134}, + isbn = {978-1-904670-12-4}, + url = {http://opus.bath.ac.uk/14285}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Published orations, addresses, lectures, and speeches} + +%<n>\spec{Author, \emph{Title}, Type, Venue, Date (Location: Publisher, Year).} +%<y>\spec{Author (Year), \emph{Title}, Type, Venue, Date (Location: Publisher).} + +\begin{bibexbox} +%<n><OGS \S15.6> +%<y><OGS \S15.6\textdagger> +{gombrich1957as} +%<n>E. H. Gombrich, \emph{Art and Scholarship}, Inaugural Lecture, University College London, 14 Feb. 1957 (London: H. K. Lewis, 1957). +%<y>Gombrich, E. H. (1957), \emph{Art and Scholarship}, Inaugural Lecture, University College London, 14 Feb. 1957 (London: H. K. Lewis). +\tcblower +\begin{Verbatim} +%</n|y> +@proceedings{gombrich1957as, + author = {E. H. Gombrich}, + title = {Art and Scholarship}, + eventtitle = {Inaugural Lecture}, + venue = {University College London}, + eventdate = {1957-02-14}, + location = {London}, + publisher = {H. K. Lewis}, + date = {1957}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{Use the \texttt{eventtitle} field to indicate the type of the oration.} + +\section{Unpublished conference paper} + +%<n>\spec{Author, \enquote{Title}, \lit{paper given at the} ConfTitle, Venue, EventDate.} +%<y>\spec{Author (Year), \enquote{Title}, \lit{paper given at the} ConfTitle, Venue, EventDate.} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.6> +{holfordstrevens1999hlm} +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. +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@unpublished{holfordstrevens1999hlm, + author = {Leofranc Holford-Strevens}, + title = {Humanism and the Language of Music Theory Treatises}, + howpublished = {paper given at the 65th Annual Meeting of the American Musicological Society}, + location = {Kansas City, MO}, + date = {1999-11-04/1999-11-07}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{mason.etal1984nns} +Mason, J. B., Habicht, J. P., and Tabatabai, H. (1984), \enquote{Notes on Nutritional Surveillance}, paper delivered to the WHO conference. +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@unpublished{mason.etal1984nns, + author = {J. B. Mason, and J. P. Habicht and H. Tabatabai}, + date = {1984}, + title = {Notes on Nutritional Surveillance}, + howpublished = {paper delivered to the WHO conference}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +\section{Unpublished orations, addresses, lectures, and speeches} + +%<n>\spec{Author, \enquote{Title}, Description.} +%<y>\spec{Author (Year), \enquote{Title}, Description.} + +%</n|y> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{pritchard.pritchard1990ard} +Pritchard, E., and Pritchard, J. (1990), \enquote{A Reply to Drèze}, unpub.\ paper. +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@unpublished{pritchard.pritchard1990ard, + author = {E. Pritchard and J. Pritchard}, + date = {1990}, + title = {A Reply to Drèze}, + howpublished = {unpub.\ paper}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + + +\chapter{Grey literature}\label{sec:report} +\chapterprecis{booklet, manual, patent, report, thesis, standard} + +\section{One-off reports} + +%<n>\spec{Author, \emph{Title} (Location: Institution, Year).} +%<y>\spec{Author (Year), \emph{Title} (Location: Institution).} + +\begin{bibexbox} +%<n><OGS \S15.2.13> +%<y><OGS \S15.2.13\textdagger> +{botswana1980hdr} +%<n>Government of Botswana, \emph{A Human Drought Relief Programme for Botswana} (Gabarone: Ministry of Local Government and Lands, 1980). +%<y>Government of Botswana (1980), \emph{A Human Drought Relief Programme for Botswana} (Gabarone: Ministry of Local Government and Lands). +\tcblower +\begin{Verbatim} +%</n|y> +@report{botswana1980hdr, + author = {{Government of Botswana}}, + title = {A Human Drought Relief Programme for Botswana}, + location = {Gabarone}, + institution = {Ministry of Local Government and Lands}, + date = {1980}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{If the report does not specify an author, give the publishing institution in the \texttt{author} field. + Some examples in the \emph{Oxford Guide to Style} repeat the institution in the publisher slot + (i.e.\@ the \texttt{institution} field) and some do not.} + +%</n|y> +%<*n> +\begin{bibexbox}<OGS \S15.2.13> +{pac1988upt} +Penal Affairs Consortium, \emph{An Unsuitable Place for Treatment: Diverting Mentally Disordered Offenders from Custody} (London, 1988). +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@report{pac1988upt, + author = {{Penal Affairs Consortium}}, + title = {An Unsuitable Place for Treatment}, + subtitle = {Diverting Mentally Disordered Offenders from Custody}, + location = {London}, + date = {1988}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox}<NHR \S18.8.5> +{unesco2012unw} +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. +\tcblower +\begin{Verbatim} +%</n> +%<*n|bib> +@report{unesco2012unw, + author = {UNESCO}, + maintitle = {The United Nations World Water Development Report 4}, + volume = {1}, + title = {Managing Water under Uncertainty and Risk}, + location = {Paris}, + institution = {UNESCO}, + date = {2012}, + url = {http://unesdoc.unesco.org/images/0021/002156/215644e.pdf}, + urldate = {2013-11-09}} +%</n|bib> +%<*n> +\end{Verbatim} +\end{bibexbox} + +%</n> +%<*y> +\begin{bibexbox}<OGS \S15.9.1> +{who1986nde} +WHO (World Health Organization) (1986), \emph{Nutrition and Development in East Africa} (Geneva: WHO) +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@report{who1986nde, + author = {{World Health Organization}}, + shortauthor = {WHO}, + title = {Nutrition and Development in {East Africa}}, + date = {1986}, + location = {Geneva}, + institution = {WHO}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox}<NHR \S17.3.2> +{cnnr2008tut} +CNNR/GMH (Comisión Nacional de Reparación y Reconciliación y Grupo de Memoria Historica) (2008), \emph{Trujilla: Una Tragedia que no Cesa [Trujilla: A Tragedy Without End]}, (Bogotá, Columbia: CNRR). +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@report{cnnr2008tut, + shortauthor = {CNNR/GMH}, + author = {{Comisión Nacional de Reparación y Reconciliación y Grupo de Memoria Historica}}, + date = {2008}, + title = {Trujilla}, + subtitle = {Una Tragedia que no Cesa}, + titleaddon = {\printtext[title]{{Trujilla:} {A} Tragedy Without End}}, + location = {Bogotá, Columbia}, + institution = {CNRR}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y> + +\section{Reports with a type or series} + +%<n>\spec{Author, \emph{Title}, Series, Number (Location: Institution, Year).} +%<y>\spec{Author (Year), \emph{Title}, Series, Number (Location: Institution).} + +%</n|y> +%<*y> +\begin{bibexbox}<OGS \S15.19.2> +{opcs1979amt} +Office of Population Censuses and Surveys (1979a), \emph{Area Mortality Tables: The Registrar-General's Decennial Supplement for England and Wales 1969–1973}, Series DS, No.~3 (London) +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@report{opcs1979amt, + author = {{Office of Population Censuses and Surveys}}, + date = {1979}, + title = {Area Mortality Tables}, + subtitle = {The Registrar-General's Decennial Supplement for England and Wales 1969–1973}, + series = {Series DS}, + number = {3}, + location = {London}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{Author, \emph{Title}, Type Number (Location: Institution, Year).} +%<y>\spec{Author (Year), \emph{Title}, Type Number (Location: Institution).} + +\begin{bibexbox}<OGS \S15.19.2> +{opcs1979pnc} +Office of Population Censuses and Surveys (1979b), \emph{Projections of the New Commonwealth and Pakistani Population}, OPCS Monitor PP2 79/1 (London) +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@report{opcs1979pnc, + author = {{Office of Population Censuses and Surveys}}, + date = {1979}, + title = {Projections of the {New Commonwealth} and {Pakistani} Population}, + type = {OPCS Monitor}, + number = {PP2 79/1}, + location = {London}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +\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}.} + +\begin{bibexbox}(hacked)<NHR \S17.3.2*> +{rosenblatt.etal1988cap} +Rosenblatt, J., et al. (1988), \emph{The Common Agricultural Policy of the European Community}, International Monetary Fund, occasional paper 62 (Nov.) +\tcblower +\begin{Verbatim} +%</y> +%<*y|bib> +@report{rosenblatt.etal1988cap, + author = {Julius Rosenblatt and others}, + title = {The {Common Agricultural Policy} of the {European Community}}, + date = {1988-11}, + series = {International Monetary Fund}, + type = {occasional paper}, + number = {62}} +%</y|bib> +%<*y> +\end{Verbatim} +\end{bibexbox} + +%</y> +%<*n|y>% + + +\section{Theses} + +%<n>\spec{Author, \enquote{Title}, Type (Institution, Year).} +%<y>\spec{Author (Year), \enquote{Title}, Type (Institution).} + +\begin{bibexbox} +%<n><OGS \S15.5.1> +%<y><OGS \S15.5.1\textdagger> +{blackburn1970tlp} +%<n>Bonnie J. Blackburn, \enquote{The Lupus Problem}, Ph.D. diss. (University of Chicago, 1970). +%<y>Blackburn, B. J. (1970), \enquote{The Lupus Problem}, Ph.D. diss. (University of Chicago). +\tcblower +\begin{Verbatim} +%</n|y> +@thesis{blackburn1970tlp, + author = {Bonnie J. Blackburn}, + title = {The Lupus Problem}, + type = {Ph.D. diss.}, + institution = {University of Chicago}, + date = {1970}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +The following form is also supported: to use it, pass the \texttt{altthesis} option. + +%<n>\spec{Author, \enquote{Title}, (Type, Institution, Year).} +%<y>\spec{Author (Year), \enquote{Title}, (Type, Institution).} + + +\chapter{Audiovisual materials}\label{sec:audiovideo} +\chapterprecis{audio, inaudio, image, movie, music, inmusic, video} + +There are typically many contributors to an audiovisual work, and the priority given to each role is fluid. \textsf{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}. + +\section{Audio recordings} + +The basic structure of audio recording entries is as follows: + +%<n>\spec{Composer, \emph{Title}, Artist, RecordingDate (RecordingCompany Type Number, PublicationDate) [Medium].} +%<y>\spec{Composer (Year), \emph{Title}, Artist, RecordingDate (RecordingCompany Type Number, PublicationDate) [Medium].} + +If the composer's name is not of interest, it may be omitted or replaced by the artist's name. +%<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. + +\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% +%<y>, though this will be suppressed if only the year is given% +.} + +The \emph{Oxford Guide to Style} offers several ways of expressing the recording company: + +\begin{itemize} +\item + a simple label name – e.g.\@ \enquote{Columbia}, \enquote{Hyperion}, \enquote{Archiv} – followed immediately by the type or number +\item + a label name separated from the number by a comma, e.g.\@ \enquote{Valois,} + \enquote{EMI Electrola,} \enquote{EMI Blues Series,} +\item + a compiling organization, semicolon, publishing company, no comma, e.g.\@ \enquote{Smithsonian Institution; Columbia} +\item + a publishing company, colon, label name, comma, e.g.\@ \enquote{Decca Record Company, Ltd.: Éditions de l'Oiseau-lyre,} +\item + a publishing company, comma, location, comma, e.g.\@ \enquote{Christophorus-Verlag Herder, Freiburg im Breisgau,} +\end{itemize} + +\emph{New Hart's Rules} sticks firmly with the first of these, so \textsf{oxref} makes this the easiest choice but provides workarounds to allow you to achieve most of the others if you really need to. + +\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.} + +\tip{To put a comma between the label and the type\slash number, put the label name in \code{series} instead.} + +\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.} + +\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.} + +\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.} + +\begin{bibexbox} +%<n><NHR \S18.7.2*> +%<y><NHR \S18.7.2*\textdagger> +{carter1991fsq} +%<n>Elliott Carter, \emph{The Four String Quartets}, Juilliard String Quartet (Sony S2K 47229, 1991). +%<y>Carter, E. (1991), \emph{The Four String Quartets}, Juilliard String Quartet (Sony S2K 47229). +\tcblower +\begin{Verbatim} +%</n|y> +@music{carter1991fsq, + author = {Elliott Carter}, + title = {The Four String Quartets}, + editor = {{Juilliard String Quartet}}, + editortype = {performer}, + publisher = {Sony}, + number = {S2K 47229}, + date = {1991}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><OGS \S15.14.1> +%<y><OGS \S15.14.1\textdagger> +{hillier1989p} +%<n>Paul Hillier, \emph{Proensa} (ECM Records compact disc ECM 1368, 1989). +%<y>Hillier, P. (1989), \emph{Proensa} (ECM Records compact disc ECM 1368). +\tcblower +\begin{Verbatim} +%</n|y> +@music{hillier1989p, + author = {Paul Hillier}, + title = {Proensa}, + publisher = {ECM Records}, + type = {compact disc}, + number = {ECM 1368}, + date = {1989}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><OGS \S15.14.1> +%<y><OGS \S15.14.1\textdagger> +{couperin1970pdc} +%<n>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). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@music{couperin1970pdc, + author = {Francois Couperin}, + title = {Pièces de clavecin}, + subtitle = {Huit préludes de L'Art de toucher le clavecin. Livre I. Troisième et quatrième + ordres}, + editor = {Huguette Dreyfus}, + editortype = {performer}, + series = {Valois}, + number = {MB 797}, + date = {1970}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><OGS \S15.14.1> +%<y><OGS \S15.14.1\textdagger> +{pageNDmn} +%<n>\emph{The Mirror of Narcissus: Songs by Guillaume de Machaut}, Gothic Voices, dir. Christopher Page (Hyperion compact disc CDA 66087). +%<y>\emph{The Mirror of Narcissus: Songs by Guillaume de Machaut} (n.d.), Gothic Voices, dir. C. Page (Hyperion compact disc CDA 66087). +\tcblower +\begin{Verbatim} +%</n|y> +@music{pageNDmn, + title = {The Mirror of Narcissus}, + subtitle = {Songs by Guillaume do Machaut}, + editor = {{Gothic Voices}}, + editortype = {performer}, + editora = {Christopher Page}, + editoratype = {director}, + publisher = {Hyperion}, + type = {compact disc}, + number = {CDA 66087}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{To describe the medium in a separate note, use the \texttt{howpublished} field.} + +\begin{bibexbox} +%<n><NHR \S18.7.2> +%<y><NHR \S18.7.2\textdagger> +{hopkinsNDcar} +%<n>Lightnin' Hopkins, \emph{The Complete Aladdin Recordings} (EMI Blues Series, CDP-7-96843-2) [2-vol.\@ CD set]. +%<y>Lightnin' Hopkins (n.d.), \emph{The Complete Aladdin Recordings} (EMI Blues Series, CDP-7-96843-2) [2-vol.\@ CD set]. +\tcblower +\begin{Verbatim} +%</n|y> +@music{hopkinsNDcar, + author = {{Lightnin’ Hopkins}}, + title = {The Complete Aladdin Recordings}, + series = {EMI Blues Series}, + number = {CDP-7-96843-2}, + howpublished = {2-vol.\@ CD set}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{To describe the medium as part of the publication statement, use the \texttt{type} field.} + +\begin{bibexbox} +%<n><OGS \S15.14.1> +%<y><OGS \S15.14.1\textdagger> +{lewis1981lww} +%<n>C. S. Lewis, \emph{The Lion, the Witch, and the Wardrobe}, read by Sir Michael Hordern (2 audio cassettes, TO1611, 1981). +%<y>Lewis, C. S. (1981), \emph{The Lion, the Witch, and the Wardrobe}, read by Sir M. Hordern (2 audio cassettes, TO1611). +\tcblower +\begin{Verbatim} +%</n|y> +@audio{lewis1981lww, + author = {C. S. Lewis}, + title = {The Lion, the Witch, and the Wardrobe}, + editor = {title=Sir, given=Michael, family=Hordern}, + editortype = {reader}, + type = {2 audio cassettes}, + number = {TO1611}, + date = {1981}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\subsection{Combination releases} + +Sometimes publishers will put several works on a single release without giving it an overall title. + +\tip{Put the subsequent composer\slash title combinations in new entries, and relate them with a \code{relatedtype} of \code{includes}.} + +\begin{bibexbox} +%<n><NHR \S18.7.2*> +%<y><NHR \S18.7.2*\textdagger> +{dutilleux1987as} +%<n>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). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@audio{dutilleux1987as, + author = {Henri Dutilleux}, + title = {L'Arbre des songes}, + related = {maxwelldavies1987}, + relatedtype = {includes}, + editor = {{Royal Philharmonic Orchestra}}, + editortype = {performer}, + editora = {André Previn}, + editoratype = {conductor}, + editorb = {Isaac Stern}, + editorbtype = {violin}, + publisher = {CBS}, + number = {MK 42449}, + date = {1987}} +@audio{maxwelldavies1987, + author = {Maxwell Davies, Peter}, + title = {Concerto for Violin and Orchestra}, + date = {1987}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\hack{Only the primary work will show up in citations; the subsequent ones will not. + 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.} + +\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.} + +\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).} + + +\subsection{Tracks from an album} + +\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.} + +\begin{bibexbox} +%<n><NHR \S18.7.2*> +%<y><NHR \S18.7.2*\textdagger> +{davis1997sw} +%<n>Miles Davis et al., \enquote{So What}, in \emph{Kind of Blue}, rec. 1959 (Columbia CK 64935, 1997) [CD]. +%<y>Davis, M. et al. (1959), \enquote{So What}, in \emph{Kind of Blue} (Columbia CK 64935, 1997) [CD]. +\tcblower +\begin{Verbatim} +%</n|y> +@inaudio{davis1997sw, + author = {Miles Davis and others}, + title = {So What}, + booktitle = {Kind of Blue}, + origdate = {1959}, + origdatetype = {rec\adddot}, + publisher = {Columbia}, + number = {CK 64935}, + date = {1997}, + howpublished = {CD}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\info{Note the use of \code{origdate} for the date of recording in this example.} + + +\section{Video recordings} + +%<n>\spec{\emph{Title} (Publisher, Number, Year).} +%<y>\spec{\emph{Title} (Year) (Publisher, Number).} + +\begin{bibexbox} +%<n><OGS \S15.14.2> +%<y><OGS \S15.14.2\textdagger> +{bbc1987ava} +%<n>\emph{The Ashes: Victory in Australia} (BBCV 4040, 1987). +%<y>\emph{The Ashes: Victory in Australia} (1987) (BBCV 4040). +\tcblower +\begin{Verbatim} +%</n|y> +@video{bbc1987ava, + title = {The {Ashes}}, + subtitle = {Victory in {Australia}}, + publisher = {BBCV}, + number = {4040}, + date = {1987}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{\enquote{EpisodeTitle}, \emph{SeriesTitle} \lit{series} (Publisher, Number, Year).} +%<y>\spec{\enquote{EpisodeTitle} (Year), \emph{SeriesTitle} \lit{series} (Publisher, Number).} + +\tip{For an episode in a series, set the \code{entrysubtype} to \code{episode} and put the series name in \code{maintitle}.} + +\begin{bibexbox} +%<n><OGS \S15.14.2> +%<y><OGS \S15.14.2\textdagger> +{britt1986pho} +%<n>\enquote{Percy and Harold and Other Stories}, \emph{Thomas the Tank Engine and Friends} series (Britt Allcroft 5-014861-100224, 1986). +%<y>\enquote{Percy and Harold and Other Stories} (1986), \emph{Thomas the Tank Engine and Friends} series (Britt Allcroft 5-014861-100224). +\tcblower +\begin{Verbatim} +%</n|y> +@video{britt1986pho, + entrysubtype = {episode}, + title = {{Percy} and {Harold} and Other Stories}, + maintitle = {Thomas the Tank Engine and Friends \textup{series}}, + publisher = {Britt Allcroft}, + number = {5-014861-100224}, + date = {1986}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{Director (\lit{dir.}), \emph{Title} (Publisher, Number, Year).} +%<y>\spec{Director (Year) (\lit{dir.}), \emph{Title} (Publisher, Number).} + +\tip{Use the \texttt{author} field to place a credit at the head of the reference.} + +\begin{bibexbox} +%<n><OGS \S15.14.2> +%<y><OGS \S15.14.2\textdagger> +{chaplin1936mt} +%<n>Charles Chaplin (dir.), \emph{Modern Times} (United Artists, 1936). +%<y>Chaplin, C. (1936) (dir.), \emph{Modern Times} (United Artists). +\tcblower +\begin{Verbatim} +%</n|y> +@movie{chaplin1936mt, + author = {Charles Chaplin}, + authortype = {director}, + title = {Modern Times}, + publisher = {United Artists}, + date = {1936}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{\emph{Title}, \lit{dir.} Director (Publisher, Number, Year).} +%<y>\spec{\emph{Title} (Year), \lit{dir.} Director (Publisher, Number).} + +\tip{Use the \texttt{editor} field to place a credit after the title.} + +\begin{bibexbox} +%<n><OGS \S15.14.2> +%<y><OGS \S15.14.2\textdagger> +{reiner1983tst} +%<n>\emph{This is Spinal Tap: A Rockumentary by Marti Di Bergi}, dir.\ Rob Reiner (Embassy Pictures, 1983). +%<y>\emph{This is Spinal Tap: A Rockumentary by Marti Di Bergi} (1983), dir.\ R. Reiner (Embassy Pictures). +\tcblower +\begin{Verbatim} +%</n|y> +@movie{reiner1983tst, + title = {This is {Spinal} {Tap}}, + subtitle = {A Rockumentary by {Marti} {Di} {Bergi}}, + editor = {Rob Reiner}, + editortype = {director}, + publisher = {Embassy Pictures}, + date = {1983}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{\emph{Title} (Publisher, Number, Year), Credit.} +%<y>\spec{\emph{Title} (Year) (Publisher, Number), Credit.} + +\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}. + If you do supply a lot of credits, the \emph{Oxford Guide to Style} recommends you shift them to the end of the reference. + You can do this with the \texttt{endeditor} option.} + + +\begin{bibexbox} +%<n><OGS \S15.14.2> +%<y><OGS \S15.14.2\textdagger> +{kaurismaki1989lcg} +%<n>\emph{Leningrad Cowboys Go America} (Villealfa Filmproductions, 1989), dir.\@ and screenplay by Aki Kaurismäki, story by Sakke Järvenpää, Aki Kaurismäki, Mato Valtonen. +%<y>\emph{Leningrad Cowboys Go America} (1989) (Villealfa Filmproductions), dir.\@ and screenplay by A. Kaurismäki, story by S. Järvenpää, A. Kaurismäki, M. Valtonen. +\tcblower +\begin{Verbatim} +%</n|y> +@movie{kaurismaki1989lcg, + title = {Leningrad Cowboys Go America}, + publisher = {Villealfa Filmproductions}, + date = {1989}, + editortype = {dir.\ and screenplay by}, + editor = {Aki Kaurismäki}, + editoratype = {story by}, + editora = {Sakke Järvenpää and Aki Kaurismäki and Mato Valtonen}, + options = {endeditor}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{For an online video, set the \code{entrysubtype} to \code{clip}.} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{bbc2013iim} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@video{bbc2013iim, + entrysubtype = {clip}, + author = {{BBC News}}, + title = {Inside India's Mars Mission HQ}, + date = {2013-11-05}, + url = {http://www.bbc.co.uk/news/world-24826253}, + urldate = {2013-11-05}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{rubinstein1956rpc} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@video{rubinstein1956rpc, + entrysubtype = {clip}, + author = {Arthur Rubinstein}, + title = {Rachmaninoff Piano Concerto No. 2, Op. 18, I Moderato, Allegro (Fritz Reiner)}, + organization = {YouTube}, + origdate = {1956-01-09}, + date = {2011-11-08}, + datetype = {uploaded}, + url = {http://www.youtube.com/watch?v=0Vv0Sy9FJrc&list=PLDB11C4F39E09047F}, + urldate = {2013-11-09}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\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.} + +\section{Broadcasts}\label{sec:broadcasts} + +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. \textsf{Oxref} sides with the latter. + +%<n>\spec{\emph{Title}, Channel (Location, Date, Time).} +%<y>\spec{\emph{Title} (Year), Channel (Location, Day Month, Time).} + +\tip{Put the channel in the \code{organization} field.} + +\begin{bibexbox} +%<n><OGS \S15.14.3*> +%<y><OGS \S15.14.3*\textdagger> +{canal2001ch} +%<n>\emph{Un Cœur in Hiver}, Canal+ (Paris, 15 May 2001, 11.40 p.m.). +%<y>\emph{Un Cœur in Hiver} (2001), Canal+ (Paris, 15 May, 11.40 p.m.). +\tcblower +\begin{Verbatim} +%</n|y> +@video{canal2001ch, + title = {Un Cœur in Hiver}, + organization = {Canal+}, + location = {Paris}, + date = {2001-05-15T23:40:00+02:00}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<n>\spec{\enquote{EpisodeTitle}, \emph{SeriesTitle}, \lit{Episode} EpisodeNumber, Channel, Date.} +%<y>\spec{\enquote{EpisodeTitle} (Year), \emph{SeriesTitle}, \lit{Episode} EpisodeNumber, Channel, Day Month.} + +\tip{If the episode has a true title, the episide descriptor (e.g. ‘Episode 1’) goes in the \code{note} field. + 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. + Alternatively, use the (non-standard) \code{descriptor} field for the episode descriptor in all cases, and \textsf{oxref} will take care of this for you.} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{berger1972ws} +%<n>John Berger, Episode 1, \emph{Ways of Seeing}, BBC (1972), \url{https://www.youtube.com/watch?v=0pDE4VX_9Kk}, accessed 9 Nov. 2013. +%<y>Berger, J. (1972), Episode 1, \emph{Ways of Seeing}, BBC, \url{https://www.youtube.com/watch?v=0pDE4VX_9Kk}, accessed 9 Nov. 2013. +\tcblower +\begin{Verbatim} +%</n|y> +@video{berger1972ws, + entrysubtype = {episode}, + author = {John Berger}, + title = {Episode 1}, + title+an = {=descriptor}, + maintitle = {Ways of Seeing}, + organization = {BBC}, + date = {1972}, + url = {https://www.youtube.com/watch?v=0pDE4VX_9Kk}, + urldate = {2013-11-09}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Podcasts, video podcasts and webcasts} + +\tip{Set the \code{entrysubtype} to \code{podcast} for a podcast.} + +\begin{bibexbox} +%<n><NHR \S18.7.3> +%<y><NHR \S18.7.3\textdagger> +{weldon2010did} +%<n>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}. +%<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}. +\tcblower +\begin{Verbatim} +%</n|y> +@audio{weldon2010did, + entrysubtype = {podcast}, + author = {Fay Weldon}, + descriptor = {interview with {Kirsty Young}}, + maintitle = {Desert Island Discs Archive}, + organization = {BBC Radio 4}, + date = {2010-05-09}, + url = {http://www.bbc.co.uk/podcasts/series/dida05/all}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR \S18.8.5*> +%<y><NHR \S18.8.5*\textdagger> +{perry2013ifm} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@audio{perry2013ifm, + entrysubtype = {podcast}, + author = {Grayson Perry}, + title = {I Found Myself in the Art World}, + note = {Reith Lecture}, + date = {2013-11-05}, + organization = {BBC Radio 4}, + url = {http://downloads.bbc.co.uk/podcasts/radio4/reith/reith_20131105-0940b.mp3}, + urldate = {2013-11-05}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\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.} + +\tip{As for other online videos, set the \code{entrysubtype} to \code{clip} for a video podcast.} + +\begin{bibexbox} +%<n><NHR \S18.8.5*> +%<y><NHR \S18.8.5*\textdagger> +{nicholson2011qsm} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@video{nicholson2011qsm, + entrysubtype = {clip}, + author = {Christie Nicholson}, + title = {A Quirk of Speech May Become a New Vocal Style}, + organization = {\emph{Scientific American}}, + date = {2011-12-17}, + url = {http://www.scientificamerican.com/podcast/episode.cfm?id=a-quirk-of-speech-may-become-a-new-11-12-17}, + urldate = {2013-11-04}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\info{The above is actually an episode of the audio podcast \emph{60-Second Mind} (which would be the \code{maintitle}). + \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.} + +\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.} + +\tip{Set the \code{entrysubtype} to \code{webcast} for a webcast.} + +\begin{bibexbox} +%<n><NHR \S18.8.5*> +%<y><NHR \S18.8.5*\textdagger> +{yousafzai2013mwa} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@video{yousafzai2013mwa, + entrysubtype = {webcast}, + author = {Malala Yousafzai}, + title = {Making a Wish for Action on Global Education}, + subtitle = {Malala Yousafzai Addresses Youth Assembly at UN on her 16th Birthday, 12 July 2013}, + organization = {UN Web TV}, + date = {2013-07-12}, + url = {http://webtv.un.org/search/malala-yousafzai-un-youth-assembly/2542094251001?term=malala}, + urldate = {2015-02-15}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Images} + +\tip{If desired, use \code{titleaddon} to specify the type of image.} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{clarkeNDeci} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@image{clarkeNDeci, + author = {M. Clarke}, + title = {Exports of Coal to the IFS}, + titleaddon = {poster}, + organization = {Manchester Art Gallery}, + url = {http://www.machestergalleries.org/the-collections/search-the-collection/display.php?EMUSESSID=70bd7f1a388d79a82f52ea9aae713ef2&irn=4128}, + urldate = {2013-11-05}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{ibwNDcgs} +%<n>\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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@image{ibwNDcgs, + title = {Christ the Good Shepherd}, + note = {stained glass window, Church of St Erfyl, Llanerfyl, Powys}, + organization = {Imaging the Bible in Wales Database}, + url = {http://imagingthebible.llgc.org.uk/object/1884}, + urldate = {2013-11-10}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\chapter{Digital media}\label{sec:electronic} +\chapterprecis{online, software, dataset} + +In Section 18.8.5 of \emph{New Hart's Rules}, some publication dates are printed in parentheses and some are left bare. +In theory, the difference should be that parentheses indicate ‘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. + +\section{Website articles} + +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. + +\tip{If the piece is unsigned, put the site name in the \code{author} field.} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{bbc2013cgh} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@online{bbc2013cgh, + author = {{BBC News}}, + title = {Colchester General Hospital}, + subtitle = {Police Probe Cancer Treatment}, + date = {2013-11-05}, + url = {http://www.bbc.co.uk/news/uk-england-essex-24819973}, + urldate = {2013-11-05}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{If the piece is signed, put the site name in the \code{organization} field. + The rationale is that \textsf{biblatex} uses this for the organization hosting the site, + and it can get a bit blurry between that and the name of the site itself.} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{hooper2013lfs} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@online{hooper2013lfs, + author = {Richard Hooper}, + title = {Lebanon's Forgotten Space Programme}, + organization = {BBC News Magazine}, + date = {2013-11-14}, + url = {http://www.bbc.co.uk/news/magazine-24735423}, + urldate = {2013-11-14}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{tan2013wdt} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@online{tan2013wdt, + author = {Siu-Lan Tan}, + title = {Why does this Baby Cry when her Mother Sings?}, + titleaddon = {including video}, + organization = {OUPblog}, + date = {2013-11-05}, + url = {http://blog.oup.com/2013/11/why-does-this-baby-cry-when-her-mother-sings-viral-video/}, + urldate = {2013-11-09}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{allaby2013fll} +%<n>Michael Allaby, \enquote{Feathers and Lava Lamps}, Oxford Reference (2013), \url{http://www.oxfordreference.com/page/featherslavalamps}, accessed 9 Nov. 2013. +%<y>Allaby, M. (2013), \enquote{Feathers and Lava Lamps}, Oxford Reference, \url{http://www.oxfordreference.com/page/featherslavalamps}, accessed 9 Nov. 2013. +\tcblower +\begin{Verbatim} +%</n|y> +@online{allaby2013fll, + author = {Michael Allaby}, + title = {Feathers and Lava Lamps}, + organization = {Oxford Reference}, + date = {2013}, + url = {http://www.oxfordreference.com/page/featherslavalamps}, + urldate = {2013-11-09}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\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}.} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{mcewen2013tte} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@article{mcewen2013tte, + author = {Stephen McEwen}, + title = {Tan Twan Eng Interview: \enquote{I Have No Alternative but to Write in English}}, + journaltitle = {The Spectator}, + date = {2013-05-20}, + url = {http://blogs.spectator.co.uk/books/2013/05/tan-twang-eng-interview-i-have-no-alternative-but-to-write-in-english/}, + urldate = {2013-11-09}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Online reference article} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{eb2013gp} +%<n>\enquote{Gunpowder Plot}, \emph{Encyclopaedia Britannica}, \url{http://www.britannica.com/EBchecked/topic/249505/Gunpowder-Plot}, accessed 5 Nov. 2013. +%<y>\enquote{Gunpowder Plot} (n.d.), \emph{Encyclopaedia Britannica}, \url{http://www.britannica.com/EBchecked/topic/249505/Gunpowder-Plot}, accessed 5 Nov. 2013. +\tcblower +\begin{Verbatim} +%</n|y> +@online{eb2013gp, + title = {Gunpowder Plot}, + maintitle = {Encyclopaedia Britannica}, + url = {http://www.britannica.com/EBchecked/topic/249505/Gunpowder-Plot}, + urldate = {2013-11-05}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\info{It is not made explicit why \emph{Encyclopaedia Britannica} is in italics and \emph{Wikipedia} is not. + It might be historical or customary, because \emph{Encyclopaedia Britannica} was established as a print publication and \emph{Wikipedia} has only been online; + it might be because \emph{Encyclopaedia Britannica} is a Latin title; + it might reflect an opinion on the two resources; + or it may just be illustrative of variant practice.} + +\tip{Unlike standard \textsf{biblatex}, \textsf{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.} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{wp2013oup} +%<n>\enquote{Oxford University Press}, Wikipedia (last modified 5 Nov. 2013), \url{http://en.wikipedia.org/wiki/Oxford_University_Press}, accessed 5 Nov. 2013. +%<y>\enquote{Oxford University Press} (2013), Wikipedia (last modified 5 Nov.), \url{http://en.wikipedia.org/wiki/Oxford_University_Press}, accessed 5 Nov. 2013. +\tcblower +\begin{Verbatim} +%</n|y> +@online{wp2013oup, + title = {Oxford University Press}, + organization = {Wikipedia}, + date = {2013-11-05}, + datetype = {last modified}, + url = {http://en.wikipedia.org/wiki/Oxford_University_Press}, + urldate = {2013-11-05}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{Use the (non-standard) \texttt{datetype} field to clarify the event represented by the main date.} + + +\section{Social media} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{obama2013tvd} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@online{obama2013tvd, + entrysubtype = {facebook}, + author = {Barack Obama}, + title = {Tomorrow is Veterans Day}, + date = {2013-11-10}, + url = {https://www.facebook.com/barackobama/photos/a.53081056748.66806.6815841748/10151936988101749/}, + urldate = {2013-11-13}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{harvey2013tfm} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@online{harvey2013tfm, + entrysubtype = {facebook}, + author = {John Harvey}, + title = {\enquote{These are a Few of My Favourite Things}, No.~28}, + date = {2013-11-13}, + url = {https://www.facebook.com/photo.php?fbid=229786530530896&set=a.108896335953250.15125.100004986510149&type=1&theatre}, + urldate = {2013-11-13}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR \S18.8.5*> +%<y><NHR \S18.8.5*\textdagger> +{globe2013otd} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@online{globe2013otd, + entrysubtype = {tweet}, + author = {{Shakespeare's Globe}}, + title = {On this day in 1611 first production of The Tempest was performed by King's Men at Whitehall Palace before James I}, + date = {2013-11-01T05:48:00}, + options = {timefirst}, + url = {https://twitter.com/The_Globe/status/396257422928400385}, + urldate = {2013-11-05}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\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 ‘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}.} + +\begin{bibexbox} +{oup2015tweet} +(not in book) +\tcblower +\begin{Verbatim} +%</n|y> +@online{oup2015tweet, + author = {{Oxford University Press}}, + shortauthor = {OUP}, + descriptor = {Twitter post}, + date = {2015-11-16T01:07:00}, + url = {https://twitter.com/OxUniPress/status/666180787251843072}, + urldate = {2015-12-25}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Software} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{simoga1.1d6} +%<n>Simoga, \emph{Device 6} (version 1.1) [mobile application for iPhone and iPad], downloaded 9 Nov. 2013. +%<y>Simoga (n.d.), \emph{Device 6} (version 1.1) [mobile application for iPhone and iPad], downloaded 9 Nov. 2013. +\tcblower +\begin{Verbatim} +%</n|y> +@software{simoga1.1d6, + author = {Simoga}, + title = {Device 6}, + version = {1.1}, + titleaddon = {mobile application for iPhone and iPad}, + urldate = {2013-11-09}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{eliot1.1.1twl} +%<n>T. S. Eliot, \emph{The Waste Land} (version 1.1.1) [mobile application for iPad] (London: Touch Press, 2013), downloaded 9 Nov. 2013. +%<y>Eliot, T. S. (2013), \emph{The Waste Land} (version 1.1.1) [mobile application for iPad] (London: Touch Press), downloaded 9 Nov. 2013. +\tcblower +\begin{Verbatim} +%</n|y> +@software{eliot1.1.1twl, + author = {T. S. Eliot}, + title = {The Waste Land}, + version = {1.1.1}, + titleaddon = {mobile application for iPad}, + location = {London}, + publisher = {Touch Press}, + date = {2013}, + urldate = {2013-11-09}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Database} + +\begin{bibexbox} +%<n><NHR \S18.8.5> +%<y><NHR \S18.8.5\textdagger> +{un2011wpp} +%<n>United Nations, \emph{World Population Prospects: The 2010 Revision} [CD-ROM] (New York: United Nations Department of Economic and Social Affairs, Population Division, 2011). +%<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). +\tcblower +\begin{Verbatim} +%</n|y> +@dataset{un2011wpp, + author = {{United Nations}}, + title = {World Population Prospects}, + subtitle = {The 2010 Revision}, + titleaddon = {CD-ROM}, + location = {New York}, + publisher = {{United Nations Department of Economic and Social Affairs, Population Division}}, + date = {2011}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\chapter{Legal references}\label{sec:legal} +\chapterprecis{commentary, jurisdiction, legal, legislation} + +\textsf{Oxref} provides only a basic level of support for legal references, in case you need to use some in a mainly non-legal text. +For a more thorough and robust treatment, intended for a specialist readership, I recommend you use the \href{http://www.ctan.org/pkg/oscola}{\textsf{oscola}} style instead. + +Since there is a family resemblence between the \emph{Oxford Guide to Style\slash New Hart's Rules} and the \emph{Oxford Standard for the Citation of Legal Authorities}, \textsf{oxref} largely mimics \textsf{oscola} and its data model, though there are some small formatting differences. What you should \emph{not} expect from \textsf{oxref} are facilities for compiling specialist indices of sources, or anything special regarding the handling of postnotes. + +%<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. + +\section{Cases} + +\subsection{Reported cases} + +Use the \code{jurisdiction} entry type for citing cases. + +\tip{Use the \code{keyword} field to specify the jurisdiction. The following are recognized: + \begin{itemize} + \item\val{gb} + United Kingdom + \item\val{en}: + England (default) + \item\val{cy}: + Wales + \item\val{sc}: + Scotland + \item\val{ni}: + Northern Ireland + \item\val{eu}: + European Union (including the EEC, EC, ECSC and EURATOM) + \item\val{echr}: + Organs of the Council of Europe dealing with the European Convention on Human Rights + \item\val{int}: + (Public) international law cases and materials + \item\val{us}: + United States of America + \item\val{ca}: + Canada + \item\val{aus}: + Australia + \item\val{nz}: + New Zealand + \end{itemize} +} + +\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.} + +\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.} + +\tip{Several additional pagination types are defined for use with legal citations: + \val{article}, \val{clause}, \val{regulation}, and \val{rule} all work as normal. + The default is a bare number (\val{none}), indicating a page reference, though EU and ECHR cases default to using the ‘para’ (\val{paragraph}) prefix. + There is also an alternative pagination type for paragraphs, \val{[]}, which prints the number in square brackets instead of giving it a prefix. +} + +\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.} + +\tip{If you need to, use either the (non-standard) \code{court} or \code{institution} field for the court that decided the case.} + +\tip{Use the \code{location} field for the location of the court in American, Australian or Canadian cases.} + +%<*n> +\begin{egcite}{\emph{Ridge v Baldwin} [1964] AC 40 at 78–9} +\cite[78-79]{ridge1964} +\end{egcite} +%</n> +%<*y> +\begin{egcite}{(\emph{Ridge v Baldwin} 1964: 78–9)} +\parencite[78-79]{ridge1964} +\end{egcite} +%</y> + +\begin{bibexbox} +%<n><NHR \S13.4.1> +%<y><NHR \S13.4.1\textdagger> +{ridge1964} +%<n>\emph{Ridge v Baldwin} [1964] AC 40 +%<y>\emph{Ridge v Baldwin} [1964] AC 40 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{ridge1964, + title = {Ridge v. Baldwin}, + keywords = {gb}, + date = {1964}, + journaltitle = {A.C.}, + pages = {40}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\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. + There is a similar \key{paryear-essential} option for the parallel year.} + +\begin{bibexbox} +<NHR \S13.4.1> +{lambert2001} +\emph{R v Lambert} [2001] 2 WLR 211 (QBD) +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{lambert2001, + title = {R v Lambert}, + keywords = {gb}, + date = {2001}, + volume = {2}, + journaltitle = {WLR}, + pages = {211}, + institution = {QBD}, + options = {year-essential=true}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +<NHR \S13.4.1> +{badische1897} +\emph{Badische v Soda-Fabrics} (1897) 14 RPC 919 (HL) +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{badische1897, + title = {Badische v. Soda-Fabrics}, + date = {1897}, + journaltitle = {RPC}, + volume = {14}, + pages = {919}, + institution = {HL}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{Use the (non-standard) \code{neutralcite} or \code{number} field for the neutral citation or case number.} + +\begin{bibexbox} +<NHR \S13.4.1> +{rvg2004} +\emph{R v G} [2003] UKHL 50, [2004] 1 AC 1034 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{rvg2004, + title = {R. v. G.}, + number = {[2003] UKHL 50}, + date = {2004}, + journaltitle = {A.C.}, + volume = {1}, + pages = {1034}, + options = {year-essential}, + pagination = {[]}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<*n> +\begin{egcite}{} +Test\footcite[13]{rvg2004} +\end{egcite} +%</n> +%<*y> +\begin{egcite}{} +\parencite[13]{rvg2004} +\end{egcite} +%</y> + +\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.} + +\begin{bibexbox} +<NHR \S13.4.3> +{smith2001} +\emph{Smith v Jones} [2001] (1948) 2 All ER 431 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{smith2001, + title = {Smith v Jones}, + date = {2001}, + origdate = {1948}, + journaltitle = {All ER}, + volume = {2}, + pages = {431}, + options = {year-essential}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +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 \textsf{oxref} is to use parentheses as per the \emph{Oxford Standard for the Citation of Legal Authorities}. + +\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.} + +\begin{bibexbox} +<NHR \S13.4.3> +{bowman1978} +\emph{Bowman v Fussy} [1978] RPC 545, HL +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{bowman1978, + title = {Bowman v Fussy}, + keywords = {gb}, + date = {1978}, + journaltitle = {RPC}, + pages = {545}, + institution = {HL}, + options = {court-plain}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +<NHR \S13.4.1> +{hughes1907} +\emph{Hughes v Stewart}, 1907 SC 791 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{hughes1907, + title = {Hughes v. Stewart}, + date = {1907}, + reporter = {SC}, + pages = {791}, + keywords = {sc}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +<NHR \S13.4.1> +{corcoran1932} +\emph{Corcoran v HM Advocate}, 1932 JC 42 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{corcoran1932, + title = {Corcoran v. H.M. Advocate}, + date = {1932}, + reporter = {JC}, + pages = {42}, + keywords = {sc}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +<NHR \S13.4.1> +{michael1976} +\emph{Michael v Johnson}, 426 US 346 (1976) +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{michael1976, + title = {Michael v. Johnson}, + volume = {426}, + reporter = {U.S.}, + pages = {346}, + date = {1976}, + keywords = {us}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\subsection{Unreported cases} + +\tip{For cases reported in newspapers, set the \code{entrysubtype} to \code{newspaper}.} + +\begin{bibexbox} +<NHR \S13.4.2*> +{powick1993} +\emph{Powick v Malvern Wells Water Co}, The Times, 28 Sept.\@ 1993 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{powick1993, + entrysubtype = {newspaper}, + title = {Powick v. Malvern Wells Water Co}, + date = {1993-09-28}, + journaltitle = {The Times}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +<NHR \S13.4.2*> +{marianishi1965} +\emph{R v Marianishi, ex p London Borough of Camden} (CA, 13 Apr.\@ 1965) +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{marianishi1965, + title = {R v Marianishi, ex p London Borough of Camden}, + date = {1965-04-13}, + institution = {C.A.}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\subsection{European cases} + +\tip{You can record the European Case Law Identifier for a case using the \code{ecli} field. + The \key{ecli} option determines under what circumstances the identifier is printed.} + +\tip{European cases still get sorted by title, even if the entry begins with the case number. + Use \code{sorttitle} if you would rather they were sorted under ‘Case’ or ‘Joined Cases’.} + +\begin{bibexbox} +<OGS \S13.4.4> +{C118/07} +Case C–118/07 \emph{Commission of the European Communities v Finland} [2002] ECR I–10889 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{C118/07, + keywords = {eu}, + title = {Commission of the European Communities v. Finland}, + sorttitle = {Case C0118/0007}, + number = {C\textendash 118/07}, + journaltitle = {ECR}, + volume = {I}, + pages = {10889}, + date = {2002}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{Indicate Commission Decisions by putting \code{commission} in the \code{institution} field. If a decision has a formal decision number, put this in the \code{number} field. Put the case number (including the word ‘Case’ if needed) in either the \code{titleaddon}, \code{parvolume}, or \code{userb} field.} + +\tip{An unfortunate side effect of this is that is not possible to use either the parallel or neutral citation idiom to get a reference to look like the following. In such cases, use the \code{note} field to provide the second citation.} + +\begin{bibexbox} +<OGS \S13.2.6> +{alcatel} +\emph{Alcatel/Telettra} (Case IV/M042) [1991] OJ L122/48, [1991] 4 CLMR 391 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{alcatel, + keywords = {eu}, + title = {Alcatel/Telettra}, + parvolume = {Case IV/M042}, + institution = {commission}, + date = {1991}, + journaltitle = {OJ}, + series = {L}, + volume = {122}, + pages = {48}, + note = {[1991] 4 CLMR 391}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{For ECHR cases, put the application number in the \code{number} field.} + +\begin{bibexbox} +<NHR \S13.4.5> +{young1982} +\emph{Young, James and Webster v UK} (App no 7601/76) (1982) 4 EHRR 38 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{young1982, + title = {Young, James and Webster v. UK}, + number = {7601/76}, + reporter = {EHRR}, + volume = {4}, + date = {1982}, + pages = {38}, + keywords = {echr}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{Special formatting is triggered if you specify \code{Series A} or \code{ECHR} as the \code{journaltitle} or \code{reporter}.} + +\begin{bibexbox} +<NHR \S13.4.5> +{plattform1988} +\emph{Plattform \enquote{Artze für das Leben} v Austria} (App no 10126/82) (1988) Series A no 139 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{plattform1988, + title = {Plattform \enquote{Artze für das Leben} v. Austria}, + number = {10126/82}, + reporter = {Series A}, + date = {1988}, + pages = {139}, + keywords = {echr}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +<NHR \S13.4.5> +{osman1998} +\emph{Osman v UK} (App no 23452/94) ECHR 1998–VIII 3124 +\tcblower +\begin{Verbatim} +%</n|y> +@jurisdiction{osman1998, + title = {Osman v UK}, + number = {23452/94}, + reporter = {ECHR}, + date = {1998}, + volume = {8}, + pages = {3124}, + institution = {ECtHR}, + keywords = {echr}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\section{Legislation} + +Use the \code{legislation} entry type for citing Acts, Bills, Orders, Measures, and the like. + +\subsection{UK legislation} + +\tip{Specify an \code{entrysubtype} of \code{primary} for primary legislation. + This ensures only the title and year are printed.} + +\begin{bibexbox} +<OGS \S13.2.3> +{fwa1891} +Factory and Workshop Act 1891 +\tcblower +\begin{Verbatim} +%</n|y> +@legislation{fwa1891, + entrysubtype = {primary}, + title = {Factory and Workshop Act}, + shorttitle = {FWA 91}, + date = {1891}, + pagination = {section}, + keywords = {en}, + number = {54 \& 55 Vict, c. 75}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{Specify an \code{entrysubtype} of \code{secondary} for secondary legislation. + The number is then printed as well.} + +\begin{bibexbox} +<NHR \S13.5.1> +{lap1897} +Local Authority Precepts Order 1897, SR~\&~O 1897/201 +\tcblower +\begin{Verbatim} +%</n|y> +@legislation{lap1897, + entrysubtype = {secondary}, + title = {Local Authority Precepts Order}, + date = {1897}, + number = {SR~\&~O 1897\slash 201}, + pagination = {rule}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +<NHR \S13.5.1> +{ccsga1987} +Community Charge Support Grant (Abolition) Order 1987, SI 1987/466 +\tcblower +\begin{Verbatim} +%</n|y> +@legislation{ccsga1987, + entrysubtype = {secondary}, + title = {Community Charge Support Grant (Abolition) Order}, + date = {1987}, + number = {SI 1987\slash 466}, + pagination = {regulation}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\subsection{European legislation} + +As with European cases, European legislation should be given the \val{eu} keyword. +This is currently the only keyword that makes a difference to the formatting. + +According to both the \emph{Oxford Guide to Style} and \emph{New Hart's Rules}, +you can provide an even sparser reference for primary European legislation. + +%<*n> +\begin{egcite}{EC Treaty (Treaty of Rome, as amended), art.\@ 3b} +\cite[\pno~3b]{ECT:Rome} +\end{egcite} +%</n> +%<*y> +\begin{egcite}{} +\parencite[\pno~3b]{ECT:Rome} +\end{egcite} +%</y> + +\begin{bibexbox} +%<n><OGS \S13.2.7*> +%<y><OGS \S13.2.7*\textdagger> +{ECT:Rome}% +EC Treaty +\tcblower +\begin{Verbatim} +%</n|y> +@legislation{ECT:Rome, + entrysubtype = {eu-treaty}, + title = {EC Treaty}, + shorthandintro = {Treaty of Rome, as amended}, + shorthand = {EC Treaty}, + pagination = {article}, + keywords = {eu}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +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. + +Secondary legislation should always have a full reference. + +\begin{bibexbox} +<NHR \S13.5.2> +{EC:97/1} +Council Directive (EC) 97/1 on banking practice [1997] OJ L234/3 +\tcblower +\begin{Verbatim} +%</n|y> +@legislation{EC:97/1, + title = {Council Directive (EC) 97/1 on banking practice}, + date = {1997}, + journaltitle = {OJ}, + series = {L}, + issue = {234}, + pages = {3}, + pagination = {article}, + keywords = {eu}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +<NHR \S13.5.2> +{EEC:1017/68} +Council Regulation (EEC) 1017/68 applying rules of competition to transport [1968] OJ Spec Ed 302 +\tcblower +\begin{Verbatim} +%</n|y> +@legislation{EEC:1017/68, + title = {Council Regulation (EEC) 1017/68 applying rules of competition to transport}, + date = {1968}, + journaltitle = {OJ Spec Ed}, + pages = {302}, + pagination = {article}, + keywords = {eu}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{Add amendment notices to the \code{note} field; \textsf{oxref} does not, sadly, provide a clever way of constructing these from their component parts so you have to write them verbatim.} + +\begin{bibexbox} +<NHR \S13.5.2> +{ECN:1986} +Commission Notice on agreements of minor importance [1986] OJ C231/2, as amended [1994] OJ C368/20 +\tcblower +\begin{Verbatim} +%</n|y> +@legislation{ECN:1986, + title = {Commission Notice on agreements of minor importance}, + date = {1986}, + journaltitle = {OJ}, + series = {C}, + issue = {231}, + pages = {2}, + note = {as amended [1994] OJ C368/20}, + keywords = {eu}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Treaties} + +Treaties use the \code{legal} entry type, with \code{piltreaty} as the \code{entrysubtype}. + +\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.} + +\begin{bibexbox} +<NHR \S13.6*> +{refugees} +Convention Relating to the Status of Refugees (adopted 28 July 1951, entered into force 22 Apr.\@ 1954) 189 UNTS 137 +\tcblower +\begin{Verbatim} +%</n|y> +@legal{refugees, + entrysubtype = {piltreaty}, + title = {Convention Relating to the Status of Refugees}, + shorthand = {Refugee Convention}, + execution = {adopted=1951-07-28 and inforce=1954-04-22}, + pagination = {article}, + volume = {189}, + journaltitle = {UNTS}, + pages = {137}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<*y> +\tip{Since the lack of a \code{date} field may cause an inaccurate ‘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.} + +\begin{egcite}{(Refugee Convention: art.\@ 24)} + \parencite[24]{refugees} +\end{egcite} + +%</y> + +\section{Hansard} + +References to Hansard use the \code{legal} entry type, with \code{parliamentary} as the \code{entrysubtype}. + +\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.} + +\tip{Put the column numbers in the \code{pages} field, and put \code{column} in the \code{bookpagination} field.} + +\begin{bibexbox} +<NHR \S13.7.3*> +{hc357} +Hansard, HC vol.\@ 357, cols.\@ 234–45 (13 Apr.\@ 1965) +\tcblower +\begin{Verbatim} +%</n|y> +@legal{hc357, + entrysubtype = {parliamentary}, + title = {Hansard}, + type = {HC}, + volume = {357}, + pages = {234-245}, + date = {1965-04-13}, + bookpagination = {column}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\tip{For debates before 1909, give \code{Parl. Deb.} as the \code{title}.} + +\begin{bibexbox} +<NHR \S13.7.3*> +{pd4/24} +Parl.\@ Deb.\@ (series 4) vol.\@ 24, col.\@ 234 (24 Mar.\@ 1895) +\tcblower +\begin{Verbatim} +%</n|y> +@legal{pd4/24, + entrysubtype = {parliamentary}, + title = {Parl. Deb.}, + series = {4}, + volume = {24}, + pages = {234}, + date = {1895-03-24}, + bookpagination = {column}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Legal reports} + +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}. + +\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}.} + +\begin{bibexbox} +%<n><NHR \S13.7.2> +%<y><NHR \S13.7.2\textdagger> +{lc2009icl} +%<n>Law Commission, \emph{Intoxication and Criminal Liability} (Law Comm No 314, Cm 7526, 2009) para 1.15 +%<y>Law Commission (2009), \emph{Intoxication and Criminal Liability} (Law Comm No 314, Cm 7526) para 1.15 +\tcblower +\begin{Verbatim} +%</n|y> +@report{lc2009icl, + entrysubtype = {legal}, + author = {{Law Commission}}, + title = {Intoxication and Criminal Liability}, + number = {Law Comm No 314, Cm 7526}, + date = {2009}, + pages = {1.15}, + bookpagination = {paragraph}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Commentaries} + +\textsf{Oxref} does not provide any special formatting for legal commentaries; +it provides the \code{commentary} entry type simply as an alias for \code{book}. + + +\chapter{Specialist materials}\label{sec:special} +\chapterprecis{misc, unpublished, letter} + +\section{Poems}\label{sec:poem} + +\subsection{Short poems} + +\tip{Use the \code{incollection} entry type for a poem in a collection. + If it appears in an article or a work that is itself in a collection, + use the \code{misc} entry type for the poem, with a relation of type \code{in} pointing to the containing work.} + +\begin{bibexbox} +%<n><OGS \S15.8> +%<y><OGS \S15.8\textdagger> +{auden1990era} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@misc{auden1990era, + author = {W. H. Auden}, + title = {Es regnet auf mir in den Schottische Lände}, + titleaddon = {\emph{sic}}, + related = {constantine1990gas}, + relatedtype = {in}, + pages = {6}} +@incollection{constantine1990gas, + title = {The {German} {Auden}}, + subtitle = {Six Early Poems}, + author = {David Constantine}, + authortype = {translator}, + options = {useauthor=false}, + editor = {Katherine Bucknell and Nicholas Jenkins}, + booktitle = {W. H. Auden, \enquote{The Map of All my Youth}}, + booksubtitle = {Early Works, Friends, and Influences}, + series = {Auden Studies}, + number = {1}, + location = {Oxford}, + date = {1990}, + pages = {1-15}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\begin{bibexbox} +%<n><OGS \S15.8> +%<y><OGS \S15.8\textdagger> +{blois1993qff} +%<n>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. +%<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. +\tcblower +\begin{Verbatim} +%</n|y> +@misc{blois1993qff, + author = {{William of Blois}}, + title = {The Quarrel of the Flea and the Fly}, + origtitle = {Pulicis et musce iurgia}, + related = {ziolkowski1993tam}, + relatedtype = {in}, + relatedstring = {trans.\@ in}, + pages = {274-278}} +@book{ziolkowski1993tam, + author = {Jan M. Ziolkowski}, + title = {Talking Animals}, + subtitle = {Medieval Latin Beast Poetry, 750-1150}, + series = {Middle Ages Series}, + serieseditor = {Edward Peters}, + location = {Philadelphia}, + publisher = {University of Pennsylvania Press}, + date = {1993}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\subsection{Long poems} + +If a poem is divided into cantos, the title is set in italics rather than quoted. + +\tip{To achieve this, use the entry type \code{book} if the poem is published on its own, + and \code{bookinbook} with entry subtype \code{poem} if the poem is published in an anthology.} + +\tip{To assist with quoting passages, \textsf{oxref} provides the additional pagination types + \code{book}, \code{canto}, and \code{stanza} (\code{line} is already defined), + though in reality you are probably better off doing it by hand.} + +%<*n> +\begin{egcite}{\dots 1590–6), bk. ii, canto vi, stanza iii} +\cite[\pno~ii, canto vi, stanza iii]{spenser1965fq} +\end{egcite} +%</n> +%<*y> +\begin{egcite}{} +\parencite[\pno~ii, canto vi, stanza iii]{spenser1965fq} +\end{egcite} +%</y> + +\begin{bibexbox} +%<n><OGS \S15.8*> +%<y><OGS \S15.8*\textdagger> +{spenser1965fq}% +%<n>Edmund Spenser, \emph{The Faerie Queene} (Everyman's Library, 443–4; London: Dent, 1965–6) (originally pub. 1590–6). +%<y>Spenser, E. (1590–6), \emph{The Faerie Queene} (Everyman's Library, 443–4; London: Dent, 1965–6). +%<y> +\tcblower +\begin{Verbatim} +%</n|y> +@book{spenser1965fq, + author = {Edmund Spenser}, + title = {The Faerie Queene}, + shorttitle = {Faerie Queene}, + series = {Everyman's Library}, + number = {443–4}, + location = {London}, + publisher = {Dent}, + date = {1965/1966}, + origdate = {1590/1596}, + pagination = {book}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + + +\section{Plays}\label{sec:play} + +Play titles, like those of epic poems, are set in italics rather than quoted. + +\tip{To achieve this, use the entry type \code{book} if the play is published on its own, + and \code{bookinbook} with entry subtype \code{play} if the play is published in an anthology.} + +\tip{To assist with quoting passages, \textsf{oxref} provides the additional pagination types + \code{act} and \code{scene} (\code{line} is already defined), + though in reality you are probably better off doing it by hand.} + +\section{Manuscripts}\label{sec:ms} + +%<*y> +An author–date system like \textsf{oxyear} does not really lend itself to manuscript references, +but support is provided anyway for the sake of completeness. + +%</y> +%<n>\spec{Author, Title/Descriptor, Date, Archive, Location, Collection Series, Shelfmark, Folios.} +%<y>\spec{Author, Title/Descriptor, Date, Archive, Location, Collection Series, Shelfmark, Folios.} + +With \textsf{oxref}, you can enter manuscripts in either of two ways. The first uses the \code{unpublished} entry type. + +\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 (\textsf{oxref}-specific) \code{descriptor} field, and \textsf{oxref} will handle all this for you.} + +\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.} + +\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.} + +\tip{Put the collection name in the \code{series} field and the shelfmark in the \code{number} field.} + +\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}.} + +\tip{You can use the \code{folio} key in the \code{pagination} and \code{bookpagination} fields.} + +\begin{bibexbox} +%<n><NHR 18.6.3*> +%<y><NHR 18.6.3*\textdagger> +{smithMS23116} +%<n>Francis Smith, travel diaries, 1912–7, British Library, Add. MS 23116. +%<y>Smith, F. [1912–7], travel diaries, British Library, Add. MS 23116. +\tcblower +\begin{Verbatim} +%</n|y> +@unpublished{smithMS23116, + author = {Francis Smith}, + descriptor = {travel diaries}, + date = {1912/1917}, + library = {British Library}, + series = {Add. MS}, + number = {23116}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +The second uses the dedicated \code{manuscript} entry type from \textsf{biblatex-manuscripts-philology}. +\textsf{Oxref} does not have all the bells and whistles of that style, but it understands a subset of its data model. + +\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}.)} + +\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} + +\tip{Put the collection name in the \code{collection} field and the shelfmark in the \code{shelfmark} field.} + +\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.} + +\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}.} + +\tip{You can specify the number of columns (either \code{1} or \code{2}) in the \code{columns} field.} + +\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.} + +\tip{You can specify the writing support material in the \code{support} field. Three special keys – \code{papyrus}, \code{paper}, and \code{pergament} – are recognized and (potentially) translated, but other values will be printed as-is.} + +\begin{bibexbox} +%<n><NHR 18.6.2> +%<y><NHR 18.6.2\textdagger> +{chaundlerMS288} +%<n>Thomas Chaundler, \enquote{Collocutiones}, Balliol College, Oxford, MS288. +%<y>Chaundler, T. [n.d.], \enquote{Collocutiones}, Balliol College, Oxford, MS288. +\tcblower +\begin{Verbatim} +%</n|y> +@manuscript{chaundlerMS288, + author = {Thomas Chaundler}, + title = {Collocutiones}, + library = {Balliol College}, + location = {Oxford}, + shelfmark = {MS288}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR 18.6.2> +%<y><NHR 18.6.2\textdagger> +{exchequerE311} +%<n>exchequer accounts, Dec. 1798, Cheshire Record Office, E311. +%<y>exchequer accounts [1798], Dec., Cheshire Record Office, E311. +\tcblower +\begin{Verbatim} +%</n|y> +@manuscript{exchequerE311, + descriptor = {exchequer accounts}, + date = {1798-12}, + library = {Cheshire Record Office}, + shelfmark = {E311}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR 18.6.3> +%<y><NHR 18.6.3\textdagger> +{blcBOX19d} +%<n>Bearsden Ladies' Club minutes, 12 June 1949, Bearsden and Milngavie District Libraries, box 19/d. +%<y>Bearsden Ladies' Club minutes [1949], 12 June, Bearsden and Milngavie District Libraries, box 19/d. +\tcblower +\begin{Verbatim} +%</n|y> +@manuscript{blcBOX19d, + title = {Bearsden Ladies' Club minutes}, + title+an = {=descriptor}, + date = {1949-06-12}, + library = {Bearsden and Milngavie District Libraries}, + shelfmark = {box 19/d}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +%<n><NHR 18.6.5> +%<y><NHR 18.6.5\textdagger> +{bodMSrawl-d520} +%<n>Bodleian Library, Oxford, MS Rawlinson D. 520, fo. 7. +%<y>Bodleian Library [n.d.], Oxford, MS Rawlinson D. 520, fo. 7. +\tcblower +\begin{Verbatim} +%</n|y> +@manuscript{bodMSrawl-d520, + library = {Bodleian Library}, + location = {Oxford}, + collection = {MS Rawlinson D.}, + shelfmark = {520}, + pages = {7}, + bookpagination = {folio}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +\begin{bibexbox} +{cantabAGM4429} +(not in book) +\tcblower +\begin{Verbatim} +%</n|y> +@manuscript{cantabAGM4429, + library = {University Library}, + location = {Cambridge}, + collection = {Add. Greek MS}, + shelfmark = {4489}, + support = {pergament}, + dating = {8th--9th c.}, + pagetotal = {16}, + columns = {1}, + pages = {11\recto-11\verso}, + layer = {inf}, + bookpagination = {folio}} +%<*n|y> +\end{Verbatim} +\end{bibexbox} + +%<*y> +\begin{egcite}{(Bodleian Library, n.d.; Chaundler, n.d.; exchequer accounts 1798)} +\parencite{chaundlerMS288,% + exchequerE311,% + bodMSrawl-d520} +\end{egcite} +%</y> + +\printbibliography[notcategory=hidden] +%</n|y> +%</doc|bib> +%<*driver> +\fi +\DocInput{\jobname.dtx} +%</driver> +%<*driver|doc> +\end{document} +%</driver|doc> +%<*bbx> +% \fi +% \chapter{Bibliography styles} +% +% \settocdepth{subsection} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%<*o> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% \section{Base style: oxref.bbx} +% +% \setcounter{FancyVerbLine}{19} +% +% \subsection{Loading dependencies, setting up languages, applying options} +% +% Dependencies: +% \begin{itemize} +% \item +% For ease of maintenance, we will patch some definitions with \pkg{xpatch} +% instead of writing out our own in full. +% \item +% We will manipulate strings with \pkg{xstring}. +% \item +% We will use \pkg{graphicx} for stretching \cs{bibnamedash}es +% \end{itemize} +% +% \begin{macrocode} +\RequirePackage{xpatch} +\RequirePackage{xstring} +\RequirePackage{graphicx} +% \end{macrocode} +% +% Language support may be widened in future, but for now we support the +% following: +% +% \begin{macrocode} +\DeclareLanguageMapping{english}{british-oxref} +\DeclareLanguageMapping{british}{british-oxref} +\DeclareLanguageMapping{american}{american-oxref} +% \end{macrocode} +% +% We provide some additional bibliography strings: +% +% \begin{itemize} +% \item roles expressed as functions; +% \end{itemize} +% +% \begin{macrocode} +\NewBibliographyString{% + director, performer, reader, conductor, +% \end{macrocode} +% +% \begin{itemize} +% \item roles expressed as actions; +% \end{itemize} +% +% \begin{macrocode} + bydirector, byperformer, byreader, byconductor, byserieseditor, +% \end{macrocode} +% +% \begin{itemize} +% \item publication details; +% \end{itemize} +% +% \begin{macrocode} + facsimile, revised, revisedenlarged, revisedreprint, suppto, equals, original, +% \end{macrocode} +% +% \begin{itemize} +% \item publication state; +% \end{itemize} +% +% \begin{macrocode} + inpressin, +% \end{macrocode} +% +% \begin{itemize} +% \item pagination; +% \end{itemize} +% +% \begin{macrocode} + book, books, canto, cantos, stanza, stanzas, act, acts, scene, scenes, folio, folios, + article, articles, clause, clauses, regulation, regulations, rule, rules, +% \end{macrocode} +% +% \begin{itemize} +% \item types; +% \end{itemize} +% +% \begin{macrocode} + facebook, tweet, podcast, clip, webcast, poster, +% \end{macrocode} +% +% \begin{itemize} +% \item miscellaneous; +% \end{itemize} +% +% \begin{macrocode} + nolocation, recorded, uploaded, +% \end{macrocode} +% +% \begin{itemize} +% \item labels; +% \end{itemize} +% +% \begin{macrocode} + anon, pseudo, urldown, +% \end{macrocode} +% +% \begin{itemize} +% \item borrowed from other styles. +% \end{itemize} +% +% \begin{macrocode} + 1column, 2column, inflayer, suplayer, paper, papyrus, pergament, + eucase, eujoinedcases, commissiondecision, application, + order, bill, draft, opened, signed, adopted, inforce, +} +% \end{macrocode} +% +% We base our styles on the standard on the principle of least surprise +% (and to aid with maintenance in the face of new \pkg{biblatex} versions). +% We set some defaults different to the standard ones, but the author can +% still override them. +% +% \begin{macrocode} +\RequireBibliographyStyle{standard} +\ExecuteBibliographyOptions{urldate=comp,pagetracker,timezeros=false,time=12h,isbn=false} +% \end{macrocode} +% +% Here are the new default punctuation conventions. The new \cs{relatedtypepunct} +% is for before the |relatedtype| localization string. +% +% \begin{macrocode} +\renewcommand*{\labelnamepunct}{\addcomma\space} +\renewcommand*{\newunitpunct}{\addcomma\space} +\renewcommand*{\subtitlepunct}{\addcolon\space} +\renewcommand*{\intitlepunct}{\nopunct\space} +\renewcommand*{\bibnamedash}{\resizebox{2em}{\height}{\textemdash}\addthinspace} +\renewcommand*{\revsdnamedelim}{\addcomma} +\newcommand*{\recordseriespunct}{\addcomma\space} +\newcommand*{\relatedtypepunct}{\addsemicolon\space} +\renewcommand*{\relateddelim}{\addsemicolon\space} +% \end{macrocode} +% +% \subsection{Names} +% +% We declare some new name formats so that authors/editors/others who appear +% mid-reference can be handled differently from those that appear at the +% head of the reference. +% +% \begin{macrocode} +\DeclareNameAlias{bookauthor}{default} +\DeclareNameAlias{bookeditor}{default} +% \end{macrocode} +% +% Traditionally, Oxford style (for the humanities) prints author names in +% small capitals in the bibliography, but in normal case in citations. This is +% falling out of fashion, so we introduce it as an option. +% +% \begin{macrocode} +\newtoggle{blx@ox@scnames} +\DeclareBibliographyOption[boolean]{scnames}[true]{% + \settoggle{blx@ox@scnames}{#1} +} +% \end{macrocode} +% +% The style manuals prefer to omit titles but accept they may need to be +% included in some circumstances. There are some titles that are only used +% with full names and some that may be used with initials, so we provide an +% option for manually switching them off. +% +% \begin{macrocode} +\newtoggle{blx@ox@nametitle}\toggletrue{blx@ox@nametitle}% +\DeclareBibliographyOption[boolean]{usenametitles}[true]{% + \settoggle{blx@ox@nametitle}{#1}} +\DeclareEntryOption[boolean]{usenametitles}[true]{% + \settoggle{blx@ox@nametitle}{#1}} +% \end{macrocode} +% +% We provide some additional macros for formatting names with titles. +% Here is the one for natural name order. +% +% \begin{macrocode} +\newbibmacro*{name:title-given-family}[5]{% + \usebibmacro{name:delim}{#2#3#1}% + \usebibmacro{name:hook}{#2#3#1}% + \ifdefvoid{#5}{}{\iftoggle{blx@ox@nametitle}{\mkbibnametitle{#5}\isdot\bibnamedelimd}{}}% + \ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot\bibnamedelimd}% + \ifdefvoid{#3}{}{% + \mkbibnameprefix{#3}\isdot + \ifprefchar + {} + {\ifuseprefix{\bibnamedelimc}{\bibnamedelimd}}}% + \mkbibnamefamily{#1}\isdot + \ifdefvoid{#4}{}{\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}\isdot}} +% \end{macrocode} +% +% Here is the one for inverted name order. +% +% \begin{macrocode} +\newbibmacro*{name:family-title-given}[5]{% + \ifuseprefix{% + \usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifdefvoid{#3}{}{% + \ifcapital{% + \mkbibnameprefix{\MakeCapital{#3}}\isdot + }{% + \mkbibnameprefix{#3}\isdot}% + \ifprefchar{}{\bibnamedelimc}}% + \mkbibnamefamily{#1}\isdot + \ifdefvoid{#4}{}{\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}\isdot}% + \ifdefvoid{#5}{}{\ifgiveninits{}{\mkbibnametitle{#5}\isdot\bibnamedelimd}}% + \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{#2}\isdot}% + }{% + \usebibmacro{name:delim}{#1}% + \usebibmacro{name:hook}{#1}% + \mkbibnamefamily{#1}\isdot + \ifdefvoid{#4}{}{\bibnamedelimd\mkbibnamesuffix{#4}\isdot}% + \ifboolexpe{% + test {\ifdefvoid{#2}} + and + test {\ifdefvoid{#3}}% + }{}{% + \revsdnamepunct}% + \ifdefvoid{#5}{}{\iftoggle{blx@ox@nametitle}{\mkbibnametitle{#5}\isdot\bibnamedelimd}{}}% + \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{#2}\isdot}% + \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnameprefix{#3}\isdot}}} +% \end{macrocode} +% +% Oxford style (for the humanities) is to write author names surname first in +% the bibliography, but in natural order in citations. We implement this, along +% with the case changing option, in the following name format. We also add a +% second hash for checking if names (e.g.\ |author| and |authoraddon|) are the +% same. +% +% \begin{macrocode} +\def\blx@ox@lasthash{} +\DeclareNameFormat{bib-family-given/cite-given-family}{% + \iffieldannotation{inferred}{\ifnumequal{\value{listcount}}{1}{\bibopenbracket}{}}{}% + \ifitemannotation{inferred}{\bibopenbracket}{}% + \ifbibliography{% + \iftoggle{blx@ox@scnames}{% + \renewcommand*{\mkbibnamefamily}[1]{\textsc{##1}}% + \renewcommand*{\mkbibnamegiven}[1]{\textsc{##1}}% + \renewcommand*{\mkbibnameprefix}[1]{\textsc{##1}}% + \renewcommand*{\mkbibnamesuffix}[1]{\textsc{##1}}% + \renewcommand*{\mkbibnametitle}[1]{##1}% + }{}% + \ifgiveninits{% + \usebibmacro{name:family-title-given}% + {\namepartfamily}% + {\namepartgiveni}% + {\namepartprefix}% + {\namepartsuffix}% + {\nameparttitle}% + }{% + \usebibmacro{name:family-title-given}% + {\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% + {\nameparttitle}% + }% + \savefield{hash}{\blx@ox@lasthash}% + \ifitemannotation{pseudo}{% + \addspace\printtext[parens]{% + \iftoggle{blx@ox@scnames}{% + \textsc{\bibsstring{pseudo}}% + }{% + \bibsstring{pseudo}% + }}% + }{}% + \iftoggle{blx@ox@scnames}{% + \renewcommand*{\mkbibnamefamily}[1]{##1}% + \renewcommand*{\mkbibnamegiven}[1]{##1}% + \renewcommand*{\mkbibnameprefix}[1]{##1}% + \renewcommand*{\mkbibnamesuffix}[1]{##1}% + \renewcommand*{\mkbibnametitle}[1]{##1}% + }{}% + }{% + \ifgiveninits{% + \usebibmacro{name:title-given-family}% + {\ifitemannotation{pseudo}{\biblstring{pseudo}}{}\namepartfamily}% + {\namepartgiveni}% + {\namepartprefix}% + {\namepartsuffix}% + {\nameparttitle}% + }{% + \usebibmacro{name:title-given-family}% + {\ifitemannotation{pseudo}{\biblstring{pseudo}}{}\namepartfamily}% + {\namepartgiven}% + {\namepartprefix}% + {\namepartsuffix}% + {\nameparttitle}% + }% + \savefield{hash}{\blx@ox@lasthash}% + }% + \ifitemannotation{inferred}{\bibclosebracket}{}% + \usebibmacro{name:andothers}% + \iffieldannotation{inferred}{% + \ifboolexpr{ + test {\ifnumequal{\value{listcount}}{\value{maxnames}}} + or + test {\ifnumequal{\value{listcount}}{\value{listtotal}}} + or ( + test {\ifnumequal{\value{listcount}}{\value{minnames}}} + and + test {\ifnumgreater{\value{listtotal}}{\value{maxnames}}} + ) + }{\bibclosebracket}{}% + }{}% +} +% \end{macrocode} +% +% We change the regular |given-family| format to include the alternative-name +% hash and use the title-enhanced name format. We also add a toggle for +% triggering special formatting if |authoraddon| or |editoraddon| are annotated +% with |variant|. +% +% \begin{macrocode} +\newtoggle{blx@ox@variantname} +\DeclareNameFormat{given-family}{% + \ifgiveninits + {\usebibmacro{name:title-given-family} + {\namepartfamily} + {\namepartgiveni} + {\namepartprefix} + {\namepartsuffix} + {\nameparttitle}} + {\usebibmacro{name:title-given-family} + {\namepartfamily} + {\namepartgiven} + {\namepartprefix} + {\namepartsuffix} + {\nameparttitle}}% + \savefield{hash}{\blx@ox@lasthash}% + \ifitemannotation{variant}{% + \global\settoggle{blx@ox@variantname}{true}% + }{% + \global\settoggle{blx@ox@variantname}{false}}% + \usebibmacro{name:andothers}} +% \end{macrocode} +% +% We do likewise for the regular |family-given| format. +% +% \begin{macrocode} +\DeclareNameFormat{family-given}{% + \ifgiveninits + {\usebibmacro{name:family-title-given} + {\namepartfamily} + {\namepartgiveni} + {\namepartprefix} + {\namepartsuffix} + {\nameparttitle}} + {\usebibmacro{name:family-title-given} + {\namepartfamily} + {\namepartgiven} + {\namepartsuffix} + {\nameparttitle}}% + \savefield{hash}{\blx@ox@lasthash}% + \ifitemannotation{variant}{% + \global\settoggle{blx@ox@variantname}{true}% + }{% + \global\settoggle{blx@ox@variantname}{false}}% + \usebibmacro{name:andothers}} +% \end{macrocode} +% +% There is no comma before numeric suffixes, but there is before textual +% ones (e.g. ‘junior’). +% +% \begin{macrocode} +\xpatchbibmacro{name:given-family}% + {\bibnamedelimd\mkbibnamesuffix{#4}}% + {\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}}{}{} +\xpatchbibmacro{name:family-given}% + {\bibnamedelimd\mkbibnamesuffix{#4}}% + {\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}}{}{} +% \end{macrocode} +% +% Pseudonyms are printed after the main name, enclosed in parentheses (OGS) or +% brackets (NHR). \pkg{Biblatex} provides the |nameaddon| field for this +% use case, but it is a literal field (it doesn't format the name provided). +% +% \begin{macrocode} +\DeclareFieldFormat{nameaddon}{\mkbibbrackets{#1}} +\DeclareFieldFormat{namevariant}{\mkbibparens{\bibstring{equals}\space #1}} +% \end{macrocode} +% +% We provide an alternative method that uses new name fields |authoraddon| and +% |editoraddon|. To do this, we define a bibmacro that reimplements the loopcode +% logic of \cs{printnames}, but operates on two name lists simultaneously; we use +% saveboxes to extract the hashes, and only print the alternative name if it has +% a different hash. The same technique is used by \textsf{oxyear} below to pair +% up names with the short form used in references, so this bibmacro is written +% to handle both cases. +% +% The |namepairs| bibmacro takes two arguments: the data fields holding the main +% name and alternative name respectively. +% +% \begin{macrocode} +\newcounter{namepairs} +\newsavebox{\blx@ox@namebox} +\newsavebox{\blx@ox@altnamebox} +\newbibmacro*{namepairs}[2]{% + \setcounter{namepairs}{0}% + \savebibmacro{name:andothers}% + \renewbibmacro*{name:andothers}{}% + \whileboolexpr{% + test {\ifnumless{\value{namepairs}}{\value{#1}}} + and ( + test {\ifdefvoid{\c@maxnames}} + or + test {\ifnumequal{\c@maxnames}{0}} + or + test {\ifnumless{\value{#1}}{\c@maxnames}} + or + test {\ifnumequal{\value{#1}}{\c@maxnames}} + or + test {\ifdefvoid{\c@minnames}} + or + test {\ifnumequal{\c@minnames}{0}} + or + test {\ifnumless{\value{namepairs}}{\c@minnames}} + ) + }{% + \stepcounter{namepairs}% + \ifnumgreater{\value{namepairs}}{1}{% + \ifnumequal{\value{#1}}{2}{% + \setunit*{\addspace\bibstring{and}\addspace}% + }{% + \ifnumequal{\value{namepairs}}{\value{#1}}{% + \setunit*{\addcomma\space\bibstring{and}\addspace}% + }{% + \setunit*{\addcomma\space}% + }% + }% + }{}% + \savebox{\blx@ox@namebox}{% + \printnames[#1][\value{namepairs}-\value{namepairs}]{#1}% + }% + \let\blx@ox@firsthash=\blx@ox@lasthash +% \end{macrocode} +% +% This is the part intended for |authoraddon| and |editoraddon|. Note that it +% contains an additional test for the variant name toggle. +% +% \begin{macrocode} + \IfEndWith{#2}{addon}{% + \savebox{\blx@ox@altnamebox}{% + \printnames[by#1][\value{namepairs}-\value{namepairs}]{#2}% + }% + \let\blx@ox@secondhash=\blx@ox@lasthash + \ifdefstrequal{\blx@ox@firsthash}{\blx@ox@secondhash}{% + \unhbox\blx@ox@namebox + }{% + \unhbox\blx@ox@namebox\addspace + \iftoggle{blx@ox@variantname}{% + \ifbibliography{% + \printtext[namevariant]{\printnames[#1][\value{namepairs}-\value{namepairs}]{#2}}% + }{}% + }{% + \printtext[nameaddon]{\unhbox\blx@ox@altnamebox}% + }% + }% +% \end{macrocode} +% +% This is the part intended for |shortauthor| and |shorteditor|. There are +% differences in the formatting, and the alternative name is actually printed +% before the main name. +% +% \begin{macrocode} + }{% + \savebox{\blx@ox@altnamebox}{% + \printnames[#1][\value{namepairs}-\value{namepairs}]{#2}% + }% + \let\blx@ox@secondhash=\blx@ox@lasthash + \ifdefstrequal{\blx@ox@firsthash}{\blx@ox@secondhash}{% + \unhbox\blx@ox@namebox + }{% + \unhbox\blx@ox@altnamebox + \addspace\mkbibparens{\unhbox\blx@ox@namebox}% + }% + }% + }% +% \end{macrocode} +% +% Now we return to common code. +% +% \begin{macrocode} + \ifboolexpr{ + test {\ifnumequal{\value{namepairs}}{\c@minnames}} + and + test {\ifnumgreater{\value{#1}}{\c@maxnames}} + }{% + \ifnumgreater{\c@minnames}{1}{% + \finalandcomma + }{}% + \andothersdelim\bibstring{andothers}% + }{}% + \restorebibmacro{name:andothers}% +} +% \end{macrocode} +% +% We use this now for authors. We provide additional handling to support +% printing editors or translators promoted to joint authorship status. +% +% \begin{macrocode} +\newbibmacro*{author+altauthor}{% + \ifboolexpr{ + test {\ifnameundef{authoraddon}} + and + test {\ifnameundef{jointauthor}} + }{% + \printnames{author}% + }{% + \ifnumequal{\value{authoraddon}}{\value{author}}{% + \usebibmacro{namepairs}{author}{authoraddon}% + }{% + \printnames{author}% + \ifnameundef{authoraddon}{}{% + \setunit*{\addspace}% + \printtext[nameaddon]{\printnames[byauthor]{authoraddon}}}% + }% + \ifnameundef{jointauthor}{}{% + \setunit{\addcomma\space}% + \iffieldundef{jointauthortype}{% + \bibstring{byeditor}% + }{% + \printfield{jointauthortype}}% + \setunit{\addspace}% + \printnames[author]{jointauthor}% + }% + }% +} +\DeclareFieldFormat{jointauthortype}{% + \ifbibstring{by#1}{\bibstring{by#1}}{#1}} +% \end{macrocode} +% +% This is the (simpler) implementation for editors. +% +% \begin{macrocode} +\newbibmacro*{editor+alteditor}{% + \ifnameundef{editoraddon}{% + \printnames{editor}% + }{ + \ifnumequal{\value{editoraddon}}{\value{editor}}{% + \usebibmacro{namepairs}{editor}{editoraddon}% + }{% + \printnames{editor}% + \setunit*{\addspace}% + \printtext[nameaddon]{\printnames[byeditor]{editoraddon}}% + }% + }% +} +% \end{macrocode} +% +% Traditional Oxford style is to use dashes instead of repeating author +% names, but NHR recommends abandoning the practice as it interferes +% with text mining. We therefore turn this feature off by default, but allow +% authors to switch it on with |dashed=true|. +% +% \begin{macrocode} +\newbibmacro*{bbx:savehash}{} +\DeclareBibliographyOption{dashed}[true]{% + \ifstrequal{#1}{true}{% + \ExecuteBibliographyOptions{pagetracker}% + \renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}% + }{% + \renewbibmacro*{bbx:savehash}{}% + }% +} +\InitializeBibliographyStyle{% + \global\undef\bbx@lasthash} +\newbibmacro*{bbx:dashcheck}[2]{% + \ifboolexpr{ + test {\iffieldequals{fullhash}{\bbx@lasthash}} + and + not test \iffirstonpage + and + ( + not bool {bbx@inset} + or + test {\iffieldequalstr{entrysetcount}{1}} + ) + }{#1}{#2}% +} +% \end{macrocode} +% +% The following is used in the |authortitle| and |authoryear| styles to +% switch off the dash check macro for reference sets. +% +% \begin{macrocode} +\newbool{bbx@inset} +\DeclareBibliographyDriver{set}{% + \booltrue{bbx@inset}% + \entryset{}{}% + \newunit\newblock + \usebibmacro{setpageref}% + \finentry} +% \end{macrocode} +% +% We provide options for how to handle the author name ‘Anonymous’. +% +% \begin{macrocode} +\newtoggle{blx@ox@autoanon} +\newtoggle{blx@ox@abbranon} +\DeclareBibliographyOption[string]{anon}[short]{% + \ifcsdef{blx@ox@opt@anon@#1}{% + \csuse{blx@ox@opt@anon@#1}% + }{% + \PackageError{oxref} + {Invalid option 'anon=#1'} + {Valid values are 'long', 'short', and 'literal'.}}} +\csdef{blx@ox@opt@anon@literal}{\togglefalse{blx@ox@autoanon}} +\csdef{blx@ox@opt@anon@long}{\toggletrue{blx@ox@autoanon}\togglefalse{blx@ox@abbranon}} +\csdef{blx@ox@opt@anon@short}{\toggletrue{blx@ox@autoanon}\toggletrue{blx@ox@abbranon}} +% \end{macrocode} +% +% We copy the |author| to |rawauthor| for easier testing. +% +% \begin{macrocode} +\DeclareStyleSourcemap{ + \maps[datatype=bibtex]{% + \map{% + \step[fieldsource=author]% + \step[fieldset=rawauthor, origfieldval]% + } + }% +} +% \end{macrocode} +% +% The |author| macro is enhanced from the standard version by +% \begin{itemize} +% \item +% checking if the author name is ‘Anonymous’; +% \item +% including a dash check, to see if the name(s) should be replaced +% with a dash (as in |authortitle| and |authoryear|); +% \item +% inserting the |nameaddon| field if provided; +% \item +% inserting the author type if provided (as in |authoryear|). +% \end{itemize} +% +% \begin{macrocode} +\newcommand*{\oxrefanon}{Anonymous} +\newtoggle{blx@ox@isanon} +\renewbibmacro*{author}{% + \iffieldequals{rawauthor}{\oxrefanon}{% + \toggletrue{blx@ox@isanon}% + }{% + \togglefalse{blx@ox@isanon}}% + \ifboolexpr{ + test \ifuseauthor + and + ( not test {\ifnameundef{author}} ) + and ( + ( not togl {blx@ox@isanon} ) + or + ( not togl {blx@ox@autoanon} ) + or + test {\ifbibliography} + ) + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\usebibmacro{bbx:savehash}% + \ifboolexpr{ + togl {blx@ox@autoanon} + and + togl {blx@ox@isanon} + }{% + \iftoggle{blx@ox@abbranon}{\bibcpsstring{anon}}{\bibcplstring{anon}}% + }{% + \usebibmacro{author+altauthor}% + }% + \iffieldundef{nameaddon} + {} + {\setunit{\addspace}% + \printfield{nameaddon}}% + \setunit{\addspace}}% + \iffieldundef{authortype} + {} + {\usebibmacro{authorstrg}% + \setunit{\addspace}}}% + {\global\undef\bbx@lasthash}} +\DeclareFieldFormat{authortype}{\mkbibparens{#1}} +% \end{macrocode} +% +% Following |authortitle| and |authoryear|, we redefine the |editor| and +% |editor+others| macros to use a common |bbx:editor| macro. The macro +% we use is the same as the usual one except the editor type is set off +% using parentheses instead of a comma. +% +% \begin{macrocode} +\renewbibmacro*{editor}{% + \usebibmacro{bbx:editor}{editorstrg}} +\renewbibmacro*{editor+others}{% + \usebibmacro{bbx:editor}{editor+othersstrg}} +\newbibmacro*{bbx:editor}[1]{% + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\usebibmacro{editor+alteditor}% + \setunit{\addspace}% + \usebibmacro{bbx:savehash}}% + \usebibmacro{#1}% + \clearname{editor}} + {\global\undef\bbx@lasthash}} +\DeclareFieldFormat{editortype}{\mkbibparens{#1}} +% \end{macrocode} +% +% We do the same for |translator| as well. +% +% \begin{macrocode} +\renewbibmacro*{translator}{% + \usebibmacro{bbx:translator}{translatorstrg}} +\renewbibmacro*{translator+others}{% + \usebibmacro{bbx:translator}{translator+othersstrg}} +\newbibmacro*{bbx:translator}[1]{% + \ifboolexpr{ + test \ifusetranslator + and + not test {\ifnameundef{translator}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\printnames{translator}% + \setunit{\addspace}% + \usebibmacro{bbx:savehash}}% + \usebibmacro{#1}% + \clearname{translator}% + \setunit{\addspace}}% + {\global\undef\bbx@lasthash}} +\xpatchbibmacro{translatorstrg}% + {\bibstring}% + {\bibstring[\mkbibparens]}{}{}% +\xpatchbibmacro{translator+othersstrg}% + {\bibstring}% + {\bibstring[\mkbibparens]}{}{}% +% \end{macrocode} +% +% When referencing one work from a collection by the same author, +% Oxford style traditionally puts \enquote{id.} in the |bookauthor| +% position (instead of omitting it as in standard \pkg{biblatex}). +% +% \begin{macrocode} +\renewbibmacro*{bybookauthor}{% + \ifnamesequal{author}{bookauthor}% + {\bibstring{idem\thefield{gender}}}% + {\printnames{bookauthor}}} +% \end{macrocode} +% +% Similarly, with mixed collections, if referencing a work by the editor +% of the collection, the editor name is replaced with \enquote{id.}. We +% insert this logic into a copy of the |editor+others| macro, which will +% \emph{not} get a year inserted into it by \textsf{oxyear}. +% +% \begin{macrocode} +\newbibmacro*{bookeditor}{% + \global\undef\bbx@lasthash + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + }{% + \ifnamesequal{author}{editor}{% + \bibstring{idem\thefield{gender}}% + \setunit{\addspace}% + \usebibmacro{editor+othersstrg}% + \clearname{editor}% + }{% + \printnames[bookeditor]{editor}% + \setunit*{\addspace}% + \usebibmacro{editor+othersstrg}% + \clearname{editor}% + }% + }{}} +% \end{macrocode} +% +% We provide a macro for printing series editors. +% +% \begin{macrocode} +\newbibmacro*{byserieseditor}{% + \ifnameundef{serieseditor} + {} + {\usebibmacro{bytypestrg}{serieseditor}{serieseditor}% + \setunit{\addspace}% + \printnames[byeditor]{serieseditor}% + \newunit}} + +% \end{macrocode} +% +% \subsection{Titles} +% +% Title handling is mostly as it is in the standard styles, except +% that the |titleaddon| is printed in square brackets; it is not +% preceeded by punctuation. +% +% \begin{macrocode} +\renewbibmacro*{title}{% + \ifboolexpr{ + test {\iffieldundef{title}} + and + test {\iffieldundef{subtitle}} + } + {} + {\printtext[title]{% + \printfield[titlecase]{title}% + \setunit{\subtitlepunct}% + \printfield[titlecase]{subtitle}}% + \setunit{\addspace}}% + \usebibmacro{origtitle}% + \setunit*{\addspace}% + \printfield{titleaddon}% + \iffieldequalstr{relatedtype}{equals}{% + \iftoggle{bbx:related}{% + \usebibmacro{related:init}% + \usebibmacro{related}% + \clearfield{related}% + }{}% + }{}% +} +\DeclareFieldFormat{titleaddon}{\mkbibbrackets{#1}} +% \end{macrocode} +% +% The |origtitle| field is used for translated works. If the cited work is a +% native language translation of a foreign work, the original title is given +% in parentheses. If the cited work is foreign translation of a native language +% work, the original title is printed in square brackets, preceded by the name +% of the foreign language and \enquote{translation of}. +% +% \begin{macrocode} +\DeclareFieldFormat{origtitle}{\mkbibemph{#1}} +\newbibmacro*{origtitle}{% + \iffieldundef{origtitle}{}{% + \iflistundef{language}{% + \printtext[parens]{\printfield{origtitle}}% + }{% + \printtext[brackets]{% + \printlist{language}\space + \bibstring{translationof}\space + \printfield{origtitle}}}}} +% \end{macrocode} +% +% \subsection{Dates and times} +% +% Year ranges are truncated (e.g.~2012–3). Therefore, we provide a command that +% compares two years, and outputs a full or truncated version of the second +% year, depending on how similar it is to the first. It is extracted and adapted +% from code by Marco Daniel.\footnote{\url{http://tex.stackexchange.com/questions/23483/}} +% +% \begin{macrocode} +\newcommand{\blx@ox@compyear}[2]{% + \def\num@one{#1}% + \def\num@two{#2}% + \StrLen{\num@one}[\num@one@len]% + \StrLen{\num@two}[\num@two@len]% + \IfEq{\num@one@len}{\num@two@len}% + {\StrCompare{\num@one}{\num@two}[\Result]% + \ifnum\num@two@len>3% + \IfStrEq{\Result}{2}{\def\Result{1}}{}% + \fi + \StrGobbleLeft{0\num@two}{\Result}}% + {\num@two}% +} +% \end{macrocode} +% +% We patch the truncated date formats from |biblatex.sty| to use the +% above function. +% +% \begin{macrocode} +\patchcmd{\mkdaterangetrunc}{% + \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}% +}{% + \iffieldundef{#2endmonth}% + {\blx@ox@compyear{\thefield{#2year}}{\thefield{#2endyear}}}% + {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}% +}{}{} +\patchcmd{\mkdaterangetruncextra}{% + \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}% +}{% + \iffieldundef{#2endmonth}% + {\blx@ox@compyear{\thefield{#2year}}{\thefield{#2endyear}}}% + {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}% +}{}{} +% \end{macrocode} +% +% We provide a way of prefacing dates (and times) with a type. This is mainly +% intended for online resources. +% +% \begin{macrocode} +\DeclareFieldFormat{datetype}{% + \ifbibstring{#1}{\bibstring{#1}}{#1\isdot}% +} +\newtoggle{blx@ox@timefirst} +\DeclareBibliographyOption{timefirst}[true]{% + \settoggle{blx@ox@timefirst}{#1}} +\DeclareEntryOption{timefirst}[true]{% + \settoggle{blx@ox@timefirst}{#1}} +\newbibmacro*{date+time}{% + \ifboolexpr{ + test {\iffieldundef{year}} + and + test {\iffieldundef{month}} + and + test {\iffieldundef{hour}} + }{}{% + \printfield{datetype}}% + \setunit*{\addspace}% + \iftoggle{blx@ox@timefirst}{% + \printtime + \setunit*{\addcomma\space}}{}% + \printdate + \iftoggle{blx@ox@timefirst}{}{% + \setunit*{\addcomma\space}% + \printtime}% +} +\renewbibmacro*{date}{\usebibmacro{date+time}} +% \end{macrocode} +% +% We provide an equivalent for origdate. This is mainly intended for +% audiovisual resources (for the date of recording). +% +% \begin{macrocode} +\DeclareFieldFormat{origdatetype}{% + \ifbibstring{#1}{\bibstring{#1}}{#1\isdot}% +} +\newbibmacro*{origdate+time}[1][]{% + \ifboolexpr{ + test {\iffieldundef{origyear}} + and + test {\iffieldundef{origmonth}} + and + test {\iffieldundef{orighour}} + }{}{% + \ifstrempty{#1}{% + \printfield{origdatetype}% + }{% + \iffieldundef{origdatetype}% + {\bibstring{#1}}% + {\printfield{origdatetype}}}}% + \setunit*{\addspace}% + \iftoggle{blx@ox@timefirst}{% + \printorigtime + \setunit*{\addcomma\space}}{}% + \printorigdate + \iftoggle{blx@ox@timefirst}{}{% + \setunit*{\addcomma\space}% + \printorigtime}% +} +% \end{macrocode} +% +% \subsection{Editions, pages, and other number-like fields} +% +% We let |edition| take a localization key as well as a number. +% +% \begin{macrocode} +\xpatchfieldformat{edition}{% + #1\isdot +}{% + \ifbibstring{#1}{\bibstring{#1}}{#1\isdot}% +}{}{} +% \end{macrocode} +% +% Page ranges are compressed, but are not usually marked with +% \enquote{pp.}. The exception is if the page numbers are not obviously +% numbers. +% +% \begin{macrocode} +\DeclareFieldFormat{pages}{% + \iffieldundef{bookpagination}% + {\mkcomprange{#1}}% + {\mkcomprange[{\mkpageprefix[bookpagination]}]{#1}}% +} +% \end{macrocode} +% +% The same is true in citations. +% +% \begin{macrocode} +\DeclareFieldFormat{postnote}{% + \iffieldundef{pagination}% + {\mkcomprange{#1}}% + {\mkcomprange[{\mkpageprefix}]{#1}}% +} + +% \end{macrocode} +% +% \subsection{Publishers} +% +% The \emph{Oxford Guide to Style} says it is fine to omit publisher +% names uniformly from bibliographic information. This is odd, but we +% can support it with a simple option. +% +% \begin{macrocode} +\DeclareBibliographyOption{nopublisher}[true]{% + \DeclareFieldInputHandler{publisher}{\def\NewValue{}}% +} +% \end{macrocode} +% +% The style guides are less forgiving about omitting the place of publication. +% We provide a bibliography option that fills in such gaps with the |nolocation| +% localization string for selected entry types. It works using a source map, +% which is a clean solution but cannot easily be switched off again or used on a +% per-type basis. +% +% \begin{macrocode} +\DeclareBibliographyOption{nolocation}[true]{% + \DeclareStyleSourcemap{ + \maps[datatype=bibtex]{ + \map{ + \pertype{book} + \pertype{mvbook} + \pertype{bookinbook} + \pertype{inbook} + \pertype{suppbook} + \pertype{collection} + \pertype{mvcollection} + \pertype{incollection} + \pertype{suppcollection} + \pertype{reference} + \pertype{mvreference} + \pertype{inreference} + \pertype{proceedings} + \pertype{mvproceedings} + \pertype{inproceedings} + \step[notfield=location, fieldset=location, fieldvalue={\noexpand\bibstring{nolocation}}] + } + } + }% +} +% \end{macrocode} +% +% We also provide an entry option that has the same effect; this works using +% the \cs{restorelist} mechanism instead. +% +% \begin{macrocode} +\newtoggle{blx@ox@noloc} +\def\blx@ox@noloc{{\bibstring{nolocation}}} +\DeclareEntryOption{nolocation}[true]{% + \settoggle{blx@ox@noloc}{#1}% + \iflistundef{location}{% + \iftoggle{blx@ox@noloc}{\restorelist{location}{\blx@ox@noloc}}{}% + }{}} +% \end{macrocode} +% +% \subsection{URLs} +% +% The OGS recommends the ISO convention of enclosing URLs in angle +% brackets, but NHR recommends leaving URLs bare so as not to interfere +% with text-mining. The latter is the default. +% +% \begin{macrocode} +\DeclareBibliographyOption{isourls}[true]{% + \ifstrequal{#1}{true} + {\DeclareFieldFormat{url}{$\langle$\url{##1}$\rangle$}} + {\DeclareFieldFormat{url}{\url{##1}}}% +} +\ExecuteBibliographyOptions{isourls=false} +% \end{macrocode} +% +% NHR specifies that URLs should be broken across lines after slashes +% and percents, and before other punctuation. They should never break +% after hyphens. +% +% \begin{macrocode} +\renewcommand*{\biburlsetup}{% + \Urlmuskip=0mu plus 2mu\relax + \mathchardef\UrlBigBreakPenalty=100\relax + \mathchardef\UrlBreakPenalty=200\relax + \def\UrlBigBreaks{\do\/\do\:}% + \def\UrlNoBreaks{\do\(\do\[\do\{\do\<}% + \def\UrlBreaks{% + \do\>\do\}\do\]\do\)\do\\\do\|% + \do\'\do\$\do\*\do\^\do\"}% + \appto\UrlSpecials{% + \do\!{\mathbin{}\mskip-\Urlmuskip\mathchar`\!\mskip\Urlmuskip}% + \do\&{\mathbin{}\mskip-\Urlmuskip\mathchar`\&\mskip\Urlmuskip}% + \do\+{\mathbin{}\mskip-\Urlmuskip\mathchar`\+\mskip\Urlmuskip}% + \do\,{\mathbin{}\mskip-\Urlmuskip\mathchar`\,\mskip\Urlmuskip}% + \do\-{\mathbin{}\mskip-\Urlmuskip\mathchar`\-\mskip\Urlmuskip}% + \do\.{\mathbin{}\mskip-\Urlmuskip\mathchar`\.\mskip\Urlmuskip}% + \do\;{\mathbin{}\mskip-\Urlmuskip\mathchar`\;\mskip\Urlmuskip}% + \do\={\mathbin{}\mskip-\Urlmuskip\mathchar`\=\mskip\Urlmuskip}% + \do\?{\mathbin{}\mskip-\Urlmuskip\mathchar`\?\mskip\Urlmuskip}% + \do\_{\mathbin{}\mskip-\Urlmuskip\_\mskip\Urlmuskip}% + \do\@{\mathbin{}\mskip-\Urlmuskip\@\mskip\Urlmuskip}% + \do\#{\mathbin{}\mskip-\Urlmuskip\#\mskip\Urlmuskip}% + }% + \ifnumgreater{\value{biburlnumpenalty}}{0} + {\def\do##1{\appto\UrlSpecials{\do##1{\mathchar`##1 \penalty\value{biburlnumpenalty}}}}% + \do\1\do\2\do\3\do\4\do\5\do\6\do\7\do\8\do\9\do\0} + {}% + \ifnumgreater{\value{biburlucpenalty}}{0} + {\def\do##1{\appto\UrlSpecials{\do##1{\mathchar`##1 \penalty\value{biburlucpenalty}}}}% + \do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J + \do\K\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T + \do\U\do\V\do\W\do\X\do\Y\do\Z} + {}% + \ifnumgreater{\value{biburllcpenalty}}{0} + {\def\do##1{\appto\UrlSpecials{\do##1{\mathchar`##1 \penalty\value{biburllcpenalty}}}}% + \do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j + \do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t + \do\u\do\v\do\w\do\x\do\y\do\z} + {}% + \let\do=\noexpand} +% \end{macrocode} +% +% URL dates are set off with a comma rather than parentheses. +% +% \begin{macrocode} +\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1} +\xpatchbibmacro{url+urldate}% + {\setunit*{\addspace}}% + {\setunit*{\addcomma\addspace}}{}{} +% \end{macrocode} +% +% The DOI is introduced by \enquote{doi} in lowercase. +% +% \begin{macrocode} +\xpatchfieldformat{doi}% + {\mkbibacro{DOI}}% + {\printtext{doi}}{}{} +% \end{macrocode} +% +% Unlike URLs, DOIs are preceded by a full stop. +% +% \begin{macrocode} +\xpatchbibmacro{doi+eprint+url}% + {\printfield{doi}}% + {\setunit{\addperiod\space}\printfield{doi}}{}{} + +% \end{macrocode} +% +% \subsection{Addenda} +% +% The publication state is given in parentheses. Other addenda are added +% plain. +% +% \begin{macrocode} +\renewbibmacro*{addendum+pubstate}{% + \ifboolexpr{ + test {\iffieldundef{pubstate}} + or + test {\iffieldequalstr{labeldatesource}{pubstate}} + }{}{% + \nopunct + \ifbibstring{\thefield{pubstate}}{% + \printtext[pubstate]{\bibstring{\thefield{pubstate}}}% + }{% + \printfield{pubstate}}}% + \setunit{\addsemicolon\addspace}\newblock + \printfield{addendum}} +\DeclareFieldFormat{pubstate}{\mkbibparens{#1}} +% \end{macrocode} +% +% Publication descriptions are printed plain for unpublished works, and in +% brackets for other entry types. +% +% \begin{macrocode} +\DeclareFieldFormat{howpublished}{\mkbibbrackets{#1}} +\DeclareFieldFormat[misc,unpublished]{howpublished}{#1} +% \end{macrocode} +% +% \subsection{Articles and periodicals} +% +% Subtypes for articles and similar are in square brackets. +% +% \begin{macrocode} +\DeclareFieldFormat[article,periodical,review]{entrysubtype}{\mkbibbrackets{#1}} +% \end{macrocode} +% +% We provide a command for testing if a title is abbreviated. +% +% \begin{macrocode} +\newcommand*{\ifabbrev}[3]{% + \StrRight{#1}{1}[\blx@ox@lastchar]% + \IfSubStr{AÂBCÇDEFGĞHIİÎJKLMNOÖÔPQRSŞTUÜÛVWXYZ.}{\blx@ox@lastchar}{#2}{#3}} +% \end{macrocode} +% +% We renew the |journal+issuetitle| macro so that if a work takes up a +% whole issue (signified by using |issuetitle| \emph{instead} of +% |title|), the title and journal title are separated by \enquote{=} +% instead of the usual punctuation. It also inserts an appropriate localization +% string if the publication status demands it. +% We insert a comma after the journal title, regardless of what follows. +% There is also a comma after numeric (but not textual) series. +% +% \begin{macrocode} +\renewbibmacro*{journal+issuetitle}{% + \ifboolexpr{ + test {\iffieldundef{title}} + and + not test {\iffieldundef{issuetitle}} + }{% + \usebibmacro{issue}% + \setunit{\addspace =\addspace}% + }{% + \ifboolexpr{ + ( not test {\iffieldundef{pubstate}} ) + and + test {\ifbibxstring{\thefield{pubstate}in}} + }{% + \printtext{\bibstring{\thefield{pubstate}in}\space}% + \clearfield{pubstate}% + }{}}% + \usebibmacro{journal}% + \iffieldundef{journalsubtitle}{% + \ifabbrev{\thefield{journaltitle}}{\setunit{\addspace}}{\newunit}% + }{% + \ifabbrev{\thefield{journalsubtitle}}{\setunit{\addspace}}{\newunit}}% + \iffieldundef{series}{}{% + \newunit\newblock + \printfield{series}% + \ifbibxstring{\thefield{series}}{% + \setunit{\addspace}% + }{% + \newunit}}% + \usebibmacro{volume+number+eid}% + \setunit{\addspace}% + \usebibmacro{issue+date}% + \newunit} +% \end{macrocode} +% +% We renew the |title+issuetitle| macro (for whole periodical issues) to apply +% the same punctuation changes after the periodical name and series. At the +% same time, we delegate handling of volume and issue numbers to the appropriate +% macro so we can customize it. +% +% \begin{macrocode} +\renewbibmacro*{title+issuetitle}{% + \usebibmacro{periodical}% + \iffieldundef{subtitle}{% + \ifabbrev{\thefield{title}}{\setunit{\addspace}}{\newunit}% + }{% + \ifabbrev{\thefield{subtitle}}{\setunit{\addspace}}{\newunit}}% + \iffieldundef{series}{}{% + \newunit\newblock + \printfield{series}% + \ifbibxstring{\thefield{series}}{% + \setunit{\addspace}% + }{% + \newunit}}% + \usebibmacro{volume+number+eid}% + \setunit{\addspace}% + \usebibmacro{issue+date}% + \newunit} +% \end{macrocode} +% +% OGS and NHR provide plentiful options for formatting volume and issue +% numbers. We implement four of them here as options. The default is to +% use a slash between volume and issue number. Note that we prevent the +% |volume+number+eid| macro from actually printing the EID; this is printed +% by |issue+date| instead (see below). +% +% \begin{macrocode} +\DeclareBibliographyOption{issuestyle}[slash]{% + \ifcsdef{blx@ox@issuestyle@#1}{% + \csuse{blx@ox@issuestyle@#1}% + }{% + \PackageError{biblatex} + {Invalid option 'issuestyle=#1'} + {Valid values are 'slash', 'colon', 'comma', 'parens'}% + }% +} +\csdef{blx@ox@issuestyle@slash}{% + \renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \setunit*{\addslash}% + \printfield{number}% + }% +} +\csdef{blx@ox@issuestyle@colon}{% + \renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \setunit*{\addcolon\space}% + \printfield{number}% + }% +} +\csdef{blx@ox@issuestyle@comma}{% + \renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \setunit*{\addcomma\space}% + \printfield{number}% + }% +} +\csdef{blx@ox@issuestyle@parens}{% + \renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \setunit*{\addspace}% + \printfield[parens]{number}% + }% +} +\ExecuteBibliographyOptions{issuestyle=slash} +% \end{macrocode} +% +% OGS consistently prints dates of newspapers and magazines bare, but those +% of academic journals in parentheses. NHR seems to favour printing dates in +% parentheses regardless, but notes that some publishing houses take the OGS +% approach. +% +% We provide an option for switching between the two approaches. If active +% and an issue has no volume or issue numbers (first block), the season +% and date are printed bare. Otherwise (second block) they are printed +% in parentheses just as in the standard version of the macro. +% +% \begin{macrocode} +\newtoggle{blx@ox@varissuedate} +\DeclareBibliographyOption[boolean]{varissuedate}[true]{% + \settoggle{blx@ox@varissuedate}{#1}} +\DeclareEntryOption[boolean]{varissuedate}[true]{% + \settoggle{blx@ox@varissuedate}{#1}} +\renewbibmacro*{issue+date}{% + \ifboolexpr{ + test {\iffieldundef{issue}} + and + test {\iffieldundef{year}} + and + test {\iffieldundef{month}} + }{}{% + \ifboolexpr{ + togl {blx@ox@varissuedate} + and + test {\iffieldundef{volume}} + and + test {\iffieldundef{number}} + }{% + \newunit + \printtext{% + \iffieldundef{issue}{% + \usebibmacro{date} + }{% + \printfield{issue}% + \setunit*{\addspace}% + \usebibmacro{date}}}% + }{% + \printtext[parens]{% + \iffieldundef{issue}{% + \usebibmacro{date}% + }{% + \printfield{issue}% + \setunit*{\addspace}% + \usebibmacro{date}}}}}% + \newunit + \printfield{eid}% +} +% \end{macrocode} +% +% Our |article| driver is like the standard one except +% \begin{itemize} +% \item it has no \enquote{in} macro; +% \item there is a handler for the suppto relation; +% \item there is no language macro; +% \item the punctuation before related items is configurable. +% \end{itemize} +% +% \begin{macrocode} +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock + \usebibmacro{journal+issuetitle}% + \newunit + \usebibmacro{byeditor+others}% + \iffieldequalstr{relatedtype}{suppto}{% + \setunit{\addsemicolon\space}% + \iftoggle{bbx:related}{% + \usebibmacro{related:init}% + \usebibmacro{related}% + \clearfield{related}% + }{}% + }{}% + \newunit + \usebibmacro{note+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Similar changes are made to the |periodical| driver. +% +% \begin{macrocode} +\DeclareBibliographyDriver{periodical}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{editor}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title+issuetitle}% + \newunit\newblock + \usebibmacro{byeditor}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% \subsection{Books and works in books} +% +% By default, editors do not appear before the title in book or reference +% entries. +% +% \begin{macrocode} +\ExecuteBibliographyOptions[book,mvbook,reference,mvreference]{useeditor=false,usetranslator=false} +% \end{macrocode} +% +% The titles of books that have been collected into an anthology are +% treated like regular chapters and set in quotes. Poems and plays, +% however, are set in italics. +% +% \begin{macrocode} +\DeclareFieldFormat[bookinbook]{citetitle}{% + \ifboolexpr{ + test {\iffieldequalstr{entrysubtype}{poem}} + or + test {\iffieldequalstr{entrysubtype}{play}} + }{% + \mkbibemph{#1}% + }{% + \mkbibquote{#1\isdot}}} +\DeclareFieldFormat[bookinbook]{title}{% + \ifboolexpr{ + test {\iffieldequalstr{entrysubtype}{poem}} + or + test {\iffieldequalstr{entrysubtype}{play}} + }{% + \mkbibemph{#1}% + }{% + \mkbibquote{#1\isdot}}} +% \end{macrocode} +% +% Unlike the standard styles, we have a separate driver for |inreference|, +% so we need to change the title style accordingly. +% +% \begin{macrocode} +\DeclareFieldFormat[inreference]{title}{\mkbibquote{#1\isdot}} +% \end{macrocode} +% +% Volume numbers in monograph-style entries are formatted as roman +% numerals. +% +% \begin{macrocode} +\DeclareFieldFormat[book,mvbook,bookinbook,inbook,suppbook,% +collection,mvcollection,incollection,suppcollection,% +proceedings,mvproceedings,inproceedings,% +reference,mvreference,inreference]{volume}{% +\IfSubStr{#1}{-}{% + \StrCount{#1}{-}[\blx@ox@dashnum]% + \StrBefore{#1}{-}[\blx@ox@volnum]% + \Rn{\blx@ox@volnum}\bibrangedash + \StrBehind[\blx@ox@dashnum]{#1}{-}[\blx@ox@volnum]% + \Rn{\blx@ox@volnum}% +}{% + \Rn{#1}}} +% \end{macrocode} +% +% Where a multi-volume work is more like a series, the volume number and +% main title are put in a bracketted block between the volume title +% and the usual publication block. +% +% \begin{macrocode} +\newbibmacro*{maintitle+volume}{% + \ifboolexpr{ + test {\iffieldundef{maintitle}} + or + test {\iffieldundef{volume}} + }{}% + {\printtext[maintitle+volume]{% + \bibstring{volume}\addspace + \printfield{volume}\printfield{part}\addspace + \bibstring{ofseries}\addspace + \usebibmacro{maintitle}}} +} +\DeclareFieldFormat{maintitle+volume}{\mkbibbrackets{#1}} +% \end{macrocode} +% +% The |in| before the booktitle is suppressed for works in yearbooks. +% +% \begin{macrocode} +\renewbibmacro*{in:}{% + \iffieldequalstr{entrysubtype}{yearbook}{}{% + \printtext{\bibstring{in}\intitlepunct}}} +% \end{macrocode} +% +% Oxford style signifies formal publication by putting the relevant +% details in parentheses. +% +% \begin{macrocode} +\DeclareFieldFormat{publication}{\mkbibparens{#1}} +% \end{macrocode} +% +% Standard \pkg{biblatex} puts a space between series name and number. +% OGS separates them with a comma. It also has an example with a series editor. +% +% \begin{macrocode} +\renewbibmacro*{series+number}{% + \printfield{series}% + \setunit*{\addcomma\space}% + \usebibmacro{byserieseditor}% + \setunit*{\addcomma\space}% + \printfield{number}} +% \end{macrocode} +% +% When citing both the first and a later edition, the first one comes +% first, and the later one comes after a semicolon. As per standard +% \pkg{biblatex}, the elements of a single edition are separated by commas +% except that the publisher is preceded by a colon. The origdate is only +% printed here if at least one of the edition, the origlocation or the +% origpublisher is also specified. +% +% \begin{macrocode} +\newcounter{locpubpairs} +\newbibmacro*{edition+publisher+location+date}{% + \printlist{origlocation}% + \iflistundef{origpublisher}% + {\setunit*{\addcomma\space}}% + {\setunit*{\addcolon\space}}% + \printlist{origpublisher}% + \setunit*{\addcomma\space}% + \ifboolexpr{ + test {\iflistundef{origlocation}} + and + test {\iflistundef{origpublisher}} + and + test {\iffieldundef{edition}} + }{}{% + \printorigdate}% + \setunit{\addsemicolon\space}% + \printfield{edition}% + \setunit*{\addcomma\space}% +% \end{macrocode} +% +% If there are the same number of locations and publishers, and there +% are more than one pair, we print them pairwaise rather than in two +% separate lists. This uses the same principle as the |namepairs| bibmacro, +% but does not have the list truncation apparatus. +% +% \begin{macrocode} + \ifboolexpr{% + test {\ifnumcomp{\value{publisher}}{>}{1}} + and + test {\ifnumequal{\value{location}}{\value{publisher}}} + }{% + \setcounter{locpubpairs}{0}% + \savebibmacro{list:andothers}% + \renewbibmacro*{list:andothers}{}% + \whileboolexpr{% + test {\ifnumcomp{\value{locpubpairs}}{<}{\value{publisher}}} + }{% + \stepcounter{locpubpairs}% + \ifnumcomp{\value{locpubpairs}}{>}{1}{% + \ifnumequal{\value{publisher}}{2}{% + \setunit*{\addspace\bibstring{and}\addspace}% + }{% + \ifnumequal{\value{locpubpairs}}{\value{publisher}}{% + \setunit*{\addcomma\space\bibstring{and}\addspace}% + }{% + \setunit*{\addcomma\space}% + }% + }% + }{}% + \printlist[][\value{locpubpairs}-\value{locpubpairs}]{location}% + \setunit*{\addcolon\space}% + \printlist[][\value{locpubpairs}-\value{locpubpairs}]{publisher}% + }% + \restorebibmacro{list:andothers}% + }{% + \printlist{location}% + \iflistundef{publisher}% + {\setunit*{\addcomma\space}}% + {\setunit*{\addcolon\space}}% + \printlist{publisher}% + }% + \setunit*{\addcomma\space}% + \usebibmacro{date}% +} +% \end{macrocode} +% +% Oxford style is to provide publication details – +% series name and number, edition, publisher, location, date – +% in a parenthetical block after the title information. +% +% \begin{macrocode} +\newbibmacro*{series+number+edition+publisher+location+date}{% + \ifboolexpr{ + test {\iffieldundef{series}} + and + test {\iffieldundef{number}} + and + test {\iffieldundef{edition}} + and + test {\iflistundef{publisher}} + and + test {\iflistundef{location}} + and + test {\iffieldundef{year}} + and + test {\iffieldundef{month}} + }{}{% + \nopunct + \printtext[publication]{% + \usebibmacro{series+number}% + \setunit{\addsemicolon\addspace}% + \usebibmacro{edition+publisher+location+date}% + \usebibmacro{copub}}}% + \iffieldequalstr{relatedtype}{copub}{\clearfield{related}}% + \setunit{\addspace}\newblock + \usebibmacro{origpub}% +} +% \end{macrocode} +% +% The edition information for reference works is recorded earlier in the +% reference, so we provide a variant that excludes it from the +% publication block. +% +% \begin{macrocode} +\newbibmacro*{series+number+publisher+location+date}{% + \ifboolexpr{ + test {\iffieldundef{series}} + and + test {\iffieldundef{number}} + and + test {\iflistundef{publisher}} + and + test {\iflistundef{location}} + and + test {\iffieldundef{year}} + and + test {\iffieldundef{month}} + }{}{% + \nopunct + \printtext[publication]{% + \usebibmacro{series+number}% + \setunit{\addsemicolon\addspace}% + \usebibmacro{publisher+location+date}% + \usebibmacro{copub}}}% + \iffieldequalstr{relatedtype}{copub}{\clearfield{related}}% + \setunit{\addspace}\newblock + \usebibmacro{origpub}% +} +% \end{macrocode} +% +% The |copub| macro prints co-publication details. +% +% \begin{macrocode} +\newbibmacro*{copub}{% + \ifboolexpr{ + togl {bbx:related} + and + test {\iffieldequalstr{relatedtype}{copub}} + }{% + \setunit{\addsemicolon\space}% + \usebibmacro{related:init}% + \usebibmacro{related}% + }{}% +} +% \end{macrocode} +% +% The |origpub| macro prints the origdate field if it has not yet been cleared. +% +% \begin{macrocode} +\newbibmacro*{origpub}{% + \ifboolexpr{ + test {\iflistundef{origlocation}} + and + test {\iflistundef{origpublisher}} + and + test {\iffieldundef{edition}} + and + ( not test {\iffieldundef{origyear}} ) + }{% + \printtext[parens]{\bibstring{origpubin}\space\printorigdate}% + }{}% +} +% \end{macrocode} +% +% The changes to the |book| driver compared to the standard style are as +% follows: +% \begin{itemize} +% \item +% |maintitle| is processed with |volume| just before |series|, instead +% of with |title|; +% \item +% |edition| is processed where the standard style processes |note|, +% and vice versa; +% \item +% |volumes| is omitted; +% \item +% |series| to |date| information is delegated to a separate macro; +% \item +% support is added for |howpublished| field; +% \end{itemize} +% +% \begin{macrocode} +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{maintitle+volume}% + \newunit + \usebibmacro{series+number+edition+publisher+location+date}% + \setunit{\addspace}% + \printfield{howpublished}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Unlike the standard styles, we have a separate driver for |mvbook| +% which behaves slightly differently. It is in fact closer to the +% standard |book| driver. The changes are as follows: +% \begin{itemize} +% \item +% |volume|/|part| is processed just after |maintitle+title|; +% \item +% |edition| is processed where the standard style processes |note|; +% \item +% |note| is processed after |volumes|; +% \item +% |series| to |date| information is delegated to a separate macro; +% \end{itemize} +% +% \begin{macrocode} +\DeclareBibliographyDriver{mvbook}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{maintitle+title}% + \newunit + \ifboolexpr{ + test {\iffieldequalstr{relatedtype}{multivolume}} + or + ( not test {\iffieldundef{maintitle}} ) + }{}{% + \printfield{volume}% + \printfield{part}}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \ifboolexpr{ + test {\iffieldequalstr{relatedtype}{multivolume}} + and + test {\iffieldundef{maintitle}} + }{% + \printfield{volume}% + \printfield{part}% + }{}% + \newunit\newblock + \usebibmacro{series+number+edition+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Our |inbook| driver modifies the standard one in just the same way as +% our |mvbook| driver modifies the standard |book|. +% +% \begin{macrocode} +\DeclareBibliographyDriver{inbook}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{bybookauthor}% + \newunit\newblock + \usebibmacro{maintitle+booktitle}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock% + \usebibmacro{series+number+edition+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +\DeclareFieldFormat[suppbook]{title}{#1\nopunct} +% \end{macrocode} +% +% We also provide a |bookinbook| driver that handles \code{origdate} +% differently. +% +% \begin{macrocode} +\DeclareBibliographyDriver{bookinbook}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{bybookauthor}% + \newunit\newblock + \usebibmacro{maintitle+booktitle}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{series+number+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Our |collection| driver modifies the standard one in just the same way +% as our |book| driver. +% +% \begin{macrocode} +\DeclareBibliographyDriver{collection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{editor+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{maintitle+volume}% + \newunit + \usebibmacro{series+number+edition+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Our |mvcollection| driver modifies the standard |collection| driver +% in just the same way as our |mvbook| driver modifies the standard +% |book|. +% +% \begin{macrocode} +\DeclareBibliographyDriver{mvcollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{editor+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{maintitle+title}% + \newunit + \ifboolexpr{ + test {\iffieldequalstr{relatedtype}{multivolume}} + or + ( not test {\iffieldundef{maintitle}} ) + }{}{% + \printfield{volume}% + \printfield{part}}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \ifboolexpr{ + test {\iffieldequalstr{relatedtype}{multivolume}} + and + test {\iffieldundef{maintitle}} + }{% + \printfield{volume}% + \printfield{part}% + }{}% + \newunit\newblock + \usebibmacro{series+number+edition+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Our |incollection| driver modifies the standard one in the same way as +% our |mvbook| driver modifies the standard |book|. In addition, the +% |bookeditor| macro precedes |maintitle| instead of |byeditor+others| +% following it. +% +% \begin{macrocode} +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{bookeditor}% + \newunit\newblock + \usebibmacro{maintitle+booktitle}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock% + \usebibmacro{series+number+edition+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Unlike the standard styles, we provide a separate driver for +% |reference|. It is just like |book| except that |edition| is given +% directly after the title. +% +% \begin{macrocode} +\DeclareBibliographyDriver{reference}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \printfield{edition}% + \newunit + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{maintitle+volume}% + \newunit + \usebibmacro{series+number+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Similarly, |mvreference| is just like |mvbook| except that |edition| +% is given directly after the title. +% +% \begin{macrocode} +\DeclareBibliographyDriver{mvreference}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{maintitle+title}% + \newunit + \ifboolexpr{ + test {\iffieldequalstr{relatedtype}{multivolume}} + or + ( not test {\iffieldundef{maintitle}} ) + }{}{% + \printfield{volume}% + \printfield{part}}% + \newunit\newblock + \printfield{edition}% + \newunit + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \ifboolexpr{ + test {\iffieldequalstr{relatedtype}{multivolume}} + and + test {\iffieldundef{maintitle}} + }{% + \printfield{volume}% + \printfield{part}% + }{}% + \newunit\newblock + \usebibmacro{series+number+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Our |inreference| driver is just like |inbook| except |bookeditor| +% replaces |bybookauthor| and |edition| is given just before +% |byeditor+others|. +% +% \begin{macrocode} +\DeclareBibliographyDriver{inreference}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \iffieldundef{editor}{}{% + \usebibmacro{in:}% + \usebibmacro{bookeditor}% + \newunit\newblock}% + \usebibmacro{maintitle+booktitle}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit\newblock + \printfield{edition}% + \newunit + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock% + \usebibmacro{series+number+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% \subsection{Works presented at meetings} +% +% By default, editors do not appear before the title in proceedings +% entries. +% +% \begin{macrocode} +\ExecuteBibliographyOptions[proceedings,mvproceedings]{useeditor=false,usetranslator=false} +% \end{macrocode} +% +% In our version of the |event+venue+date| macro, the venue and date +% are set off with commas respectively instead of +% parentheses. A bit of jiggery-pokery is used to make the colon italic +% if it follows italic text. +% +% \begin{macrocode} +\renewbibmacro*{event+venue+date}{% + \printfield{eventtitle}% + \newunit + \printfield{eventtitleaddon}% + \ifboolexpr{ + test {\iffieldundef{venue}} + and + test {\iffieldundef{eventyear}} + }{}{% + \iffieldundef{eventtitle}{% + \setunit{\mkbibemph{\addcomma}\space}% + }{% + \newunit}% + \printfield{venue}% + \newunit% + \printeventdate}% + \newunit} +% \end{macrocode} +% +% The changes to the |proceedings| driver compared to the standard style +% are as follows: +% \begin{itemize} +% \item +% We support the concept of an |author| before the title, +% which is usually the |organization|; +% \item +% |editor| comes after the title, not before; +% \item +% |volume|/|part| is processed just after |maintitle+title|; +% \item +% |note| is moved to before |series|; +% \item +% |series| to |date| information is delegated to a separate macro; +% \end{itemize} +% +% As in the (inherited) standard style, |mvproceedings| is an alias for this +% driver, since it is unlikely that the proceedings of a single meeting will +% be split into long series of independently published volumes! +% +% \begin{macrocode} +\DeclareBibliographyDriver{proceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \newunit + \usebibmacro{maintitle+title}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit\newblock + \usebibmacro{event+venue+date}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \printlist{organization}% + \newunit + \usebibmacro{series+number+edition+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% Our |inproceedings| driver modifies the standard one in the same way +% as our |proceedings| driver modifies the standard one. +% +% \begin{macrocode} +\DeclareBibliographyDriver{inproceedings}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{maintitle+booktitle}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit\newblock + \usebibmacro{event+venue+date}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \printlist{organization}% + \newunit + \usebibmacro{series+number+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% \subsection{Grey literature} +% +% We provide a macro for handling |type+number|. We provide some extra +% logic to insert \enquote{No.\@} before the number if there is no type. +% +% \begin{macrocode} +\newbibmacro*{series+type+number}{% + \ifboolexpr{ + test {\iffieldundef{series}} + and + test {\iffieldundef{type}} + }{}{% + \printfield{series}% + \newunit + \ifboolexpr{% + test {\iffieldundef{type}} + and + not test {\iffieldundef{number}} + }{% + \bibcpstring{number} + }{% + \printfield{type}% + }% + \setunit*{\addspace}% + \printfield{number}}} +% \end{macrocode} +% +% Our version of the |institution+location+date| macro is just like the +% standard one except it is wrapped in parentheses, and the preceding +% punctuation is therefore suppressed. This is used by the standard +% |thesis| driver, which also works well for us, and the |report| driver. +% +% \begin{macrocode} +\renewbibmacro*{institution+location+date}{% + \ifboolexpr{ + test {\iffieldundef{type}} + and + test {\iffieldundef{series}} + and + test {\iffieldundef{number}} + and + test {\iflistundef{institution}} + and + test {\iflistundef{location}} + and + test {\iffieldundef{year}} + and + test {\iffieldundef{month}} + }{}{% + \nopunct + \printtext[publication]{% + \ifboolexpr{ + test {\iffieldundef{series}} + and + test {\iffieldundef{type}} + }{% + \printfield{number}% + \setunit*{\addcomma\space}% + }{}% + \printlist{location}% + \iflistundef{institution}% + {\setunit*{\addcomma\space}}% + {\setunit*{\addcolon\space}}% + \printlist{institution}% + \setunit*{\addcomma\space}% + \usebibmacro{date}}}} +% \end{macrocode} +% +% We provide a slightly more complicated version with the type included +% at the beginning. It is used by the |thesis| driver. We provide two +% versions: one with the type outside and one with it inside the +% parentheses. +% +% \begin{macrocode} +\newtoggle{blx@ox@altthesis} +\DeclareBibliographyOption[boolean]{altthesis}[true]{% + \settoggle{blx@ox@altthesis}{#1} +} +\newbibmacro*{type+institution+location+date}{% + \iftoggle{blx@ox@altthesis}{% + \ifboolexpr{ + test {\iffieldundef{type}} + and + test {\iflistundef{institution}} + and + test {\iflistundef{location}} + and + test {\iffieldundef{year}} + and + test {\iffieldundef{month}} + }{}{% + \nopunct + \printtext[publication]{% + \printfield{type}% + \setunit*{\addcomma\space}% + \printlist{location}% + \iflistundef{institution}{% + \setunit*{\addcomma\space}% + }{% + \setunit*{\addcolon\space}}% + \printlist{institution}% + \setunit*{\addcomma\space}% + \usebibmacro{date}}} + }{% + \printfield{type}% + \newunit + \usebibmacro{institution+location+date}}} +% \end{macrocode} +% +% We provide an even more convoluted version that also includes |series|, +% |title| and |number|, and uses the more common |publisher| in place of +% |institution|. We also include some logic that means |organization| +% is used instead of |publisher| if no |publisher| is provided; +% otherwise it is printed before |location|. This is used by the +% |manual| driver. +% +% \begin{macrocode} +\newbibmacro*{type+series+number+edition+organization+publisher+location+date}{% + \ifboolexpr{ + test {\iffieldundef{type}} + and + test {\iffieldundef{series}} + and + test {\iffieldundef{number}} + and + test {\iffieldundef{edition}} + and + test {\iflistundef{organization}} + and + test {\iflistundef{publisher}} + and + test {\iflistundef{location}} + and + test {\iffieldundef{year}} + and + test {\iffieldundef{month}} + }{}{% + \nopunct + \printtext[publication]{% + \usebibmacro{series+type+number}% + \setunit{\addsemicolon\space}% + \printfield{edition}% + \setunit*{\addcomma\space}% + \iflistundef{publisher}{}{% + \printlist{organization}% + \setunit*{\addcomma\space}}% + \printlist{location}% + \iflistundef{publisher}{% + \iflistundef{organization}{% + \setunit*{\addcomma\space}% + }{% + \setunit*{\addcolon\space}% + \printlist{organization}}% + }{% + \setunit*{\addcolon\space}% + \printlist{publisher}}% + \setunit*{\addcomma\space}% + \usebibmacro{date}}}} +% \end{macrocode} +% +% The changes to the |report| driver compared to the standard style +% are as follows: +% \begin{itemize} +% \item +% support is added for |volume|, |maintitle| and |series|; +% \item +% |type| and |number| are moved to just before the publication +% information block; +% \item +% the punctuation is slightly different for the |legal| entry subtype. +% \end{itemize} +% +% \begin{macrocode} +\newcommand*{\legreport}{legal} +\DeclareBibliographyDriver{report}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{maintitle+title}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{version}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{series+type+number}% + \setunit{\addspace}% + \usebibmacro{institution+location+date}% + \iffieldequals{entrysubtype}{\legreport}{% + \setunit{\addspace}\nopunct + }{% + \newunit\newblock}% + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isrn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% We patch the thesis driver to use our slightly more complex version. +% +% \begin{macrocode} +\xpatchbibdriver{thesis}{% + \printfield{type}% + \newunit + \usebibmacro{institution+location+date}% +}{% + \usebibmacro{type+institution+location+date}% +}{}{} +% \end{macrocode} +% +% The main change to the |manual| driver compared to the standard style is +% that |type|, |series|, |number|, |edition| and |organization| are moved into +% the publication information block with |publisher|, |location| and |date|; +% +% \begin{macrocode} +\DeclareBibliographyDriver{manual}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor}% + \newunit\newblock + \printfield{type}% + \newunit + \printfield{version}% + \newunit + \printfield{note}% + \newunit\newblock + \usebibmacro{type+series+number+edition+organization+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% \subsection{Audiovisual materials} +% +% The publication block for audiovisual resources is quite different +% from the normal, as the |type|, |series| and |number| come +% between the |publisher| and |date|. The punctuation or otherwise between +% elements depends on the combination present. The date and time of recording +% is given before the block if a |number| is provided (indicating a published +% recording) but within it otherwise. +% +% \begin{macrocode} +\newbibmacro*{publisher+type+series+number+date}{% + \iffieldundef{number}{}{% + \setunit{\addcomma\space}% + \usebibmacro{origdate+time}[recorded]% + }% + \ifboolexpr{% + test {\iflistundef{origpublisher}} + and + test {\iflistundef{location}} + and + test {\iflistundef{publisher}} + and + test {\iffieldundef{type}} + and + test {\iffieldundef{series}} + and + test {\iffieldundef{number}} + and + test {\iffieldundef{year}} + and + test {\iffieldundef{month}} + and + test {\iffieldundef{eventyear}} + and + test {\iffieldundef{eventmonth}} + and + test {\iffieldundef{hour}} + }{}{% + \nopunct + \printtext[publication]{% + \printlist{origpublisher}% + \setunit*{\addsemicolon\space}% + \printlist{location}% + \iflistundef{publisher}% + {\setunit*{\addcomma\space}}% + {\setunit*{\addcolon\space}}% + \printlist{publisher}% + \iffieldundef{series}% + {\setunit*{\addspace}}% + {\setunit*{\recordseriespunct}}% + \printfield{series}% + \setunit*{\addcomma\space}% + \printfield{type}% + \iflistundef{publisher}% + {\setunit*{\addcomma\space}}% + {\setunit*{\addspace}}% + \printfield{number}% + \iffieldundef{number}{% + \setunit{\addcomma\space}% + \usebibmacro{origdate+time}[recorded]% + }{}% + \setunit{\addcomma\space}% + \usebibmacro{date+time}}}} +% \end{macrocode} +% +% We provide the \texttt{endeditor} option to determine if credits should be +% placed before or after the publication block. +% +% \begin{macrocode} +\newtoggle{blx@ox@endeditor} +\DeclareEntryOption[boolean]{endeditor}[true]{% + \settoggle{blx@ox@endeditor}{#1}} +\newbibmacro*{pre-byeditor+others}{% + \iftoggle{blx@ox@endeditor}{}{% + \usebibmacro{byeditor+others}% + }} +\newbibmacro*{post-byeditor+others}{% + \iftoggle{blx@ox@endeditor}{% + \usebibmacro{byeditor+others}% + }{}} +% \end{macrocode} +% +% We provide a specialist |audio| driver. It borrows elements from the |book| +% and |online| drivers, and incorporates the above variations. +% +% \begin{macrocode} +\DeclareBibliographyDriver{audio}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit + \usebibmacro{maintitle}% + \iffieldequalstr{relatedtype}{includes}{% + \iftoggle{bbx:related}{% + \newunit\newblock + \usebibmacro{related:init}% + \usebibmacro{related}% + \clearfield{related}% + }{}% + }{}% + \setunit{\addspace} + \usebibmacro{onlinetype}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{pre-byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock% + \printlist{organization}% + \newunit\newblock% + \usebibmacro{publisher+type+series+number+date}% + \setunit{\addspace}% + \printfield{howpublished}% + \newunit\newblock + \usebibmacro{post-byeditor+others}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% The same driver will do very well for |music|, |video| and |movie|. +% +% \begin{macrocode} +\DeclareBibliographyAlias{music}{audio} +\DeclareBibliographyAlias{movie}{audio} +\DeclareBibliographyAlias{video}{audio} +% \end{macrocode} +% +% In parallel with book-like entries, we provide an |inaudio| driver for citing +% tracks from an album. +% +% \begin{macrocode} +\DeclareBibliographyDriver{inaudio}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{in:}% + \usebibmacro{bybookauthor}% + \newunit\newblock + \usebibmacro{maintitle+booktitle}% + \iffieldequalstr{relatedtype}{includes}{% + \iftoggle{bbx:related}{% + \newunit\newblock + \usebibmacro{related:init}% + \usebibmacro{related}% + \clearfield{related}% + }{}% + }{}% + \setunit{\addspace} + \usebibmacro{onlinetype}% + \newunit\newblock + \usebibmacro{pre-byeditor+others}% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \printfield{note}% + \newunit\newblock% + \printlist{organization}% + \newunit\newblock% + \usebibmacro{publisher+type+series+number+date}% + \setunit{\addspace}% + \printfield{howpublished}% + \newunit\newblock + \usebibmacro{post-byeditor+others}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% The same driver will do very well for |inmusic|, |invideo| and |inmovie|. +% The latter two are for completeness but probably not useful. +% +% \begin{macrocode} +\DeclareBibliographyAlias{inmusic}{inaudio} +\DeclareBibliographyAlias{inmovie}{inaudio} +\DeclareBibliographyAlias{invideo}{inaudio} +% \end{macrocode} +% +% We set up appropriate inheritance rules. +% +% \begin{macrocode} +\DeclareDataInheritance{audio,music,movie,video}{inaudio,inmusic,inmovie,invideo}{% + \inherit{title}{booktitle} + \inherit{subtitle}{booksubtitle} + \inherit{titleaddon}{booktitleaddon} + \noinherit{shorttitle} + \noinherit{sorttitle} + \noinherit{indextitle} + \noinherit{indexsorttitle} +} +% \end{macrocode} +% +% Titles for videos do not have a consistent format, so we define some +% |entrysubtype|-based variation. We also allow the use of descriptors; +% note that the title is transformed into a descriptor by means of +% an annotation, rather than using a dedicated field. This greatly +% simplifies the code used elsewhere. +% +% \begin{macrocode} +\DeclareFieldFormat[audio,music]{title}{% + \def\currentfield{title}% + \iffieldannotation{descriptor}{#1}{% + \iffieldequalstr{entrysubtype}{podcast}{% + \mkbibquote{#1\isdot}% + }{% + \mkbibemph{#1}}}% + \undef\currentfield} +\DeclareFieldFormat[movie,video]{title}{% + \def\currentfield{title}% + \iffieldannotation{descriptor}{#1}{% + \ifboolexpr{ + test {\iffieldequalstr{entrysubtype}{episode}} + or + test {\iffieldequalstr{entrysubtype}{clip}} + or + test {\iffieldequalstr{entrysubtype}{webcast}} + }{% + \mkbibquote{#1\isdot}% + }{% + \mkbibemph{#1}}}% + \undef\currentfield} +\DeclareFieldFormat[inaudio,inmusic,inmovie,invideo]{title}{% + \def\currentfield{title}% + \iffieldannotation{descriptor}{#1}{% + \mkbibquote{#1\isdot}% + }% + \undef\currentfield} +\DeclareFieldFormat[inaudio,inmusic]{booktitle}{% + \def\currentfield{booktitle}% + \iffieldannotation{descriptor}{#1}{% + \iffieldequalstr{entrysubtype}{podcast}{% + \mkbibquote{#1\isdot}% + }{% + \mkbibemph{#1}}}% + \undef\currentfield} +\DeclareFieldFormat[inmovie,invideo]{booktitle}{% + \def\currentfield{booktitle}% + \iffieldannotation{descriptor}{#1}{% + \ifboolexpr{ + test {\iffieldequalstr{entrysubtype}{episode}} + or + test {\iffieldequalstr{entrysubtype}{clip}} + or + test {\iffieldequalstr{entrysubtype}{webcast}} + }{% + \mkbibquote{#1\isdot}% + }{% + \mkbibemph{#1}}}% + \undef\currentfield} + +% \end{macrocode} +% +% The examples of image references in \emph{New Hart's Rules} are all for online +% images, and the |online| driver seems to work well for them. The main +% difference is that they use a different format for the title. +% +% \begin{macrocode} +\DeclareBibliographyAlias{image}{online} +\DeclareFieldFormat[image]{title}{\mkbibquote{#1\isdot}} + +% \end{macrocode} +% +% \subsection{Digital media} +% +% \subsubsection{Website articles and social media} +% +% The titles of web pages and similar intrinsically online resources +% are written in roman text within quotes. +% +% \begin{macrocode} +\DeclareFieldFormat[online]{title}{% + \def\currentfield{title}% + \iffieldannotation{descriptor}{#1}{\mkbibquote{#1\isdot}}% + \undef\currentfield} + +% \end{macrocode} +% +% We provide an |onlinetype| macro for clarifying the type of online +% material. It is triggered by appropriate values of |entrysubtype|. +% +% \begin{macrocode} +\newbibmacro*{onlinetype}{% + \ifboolexpr{ + test {\iffieldundef{url}} + or + test {\iffieldundef{entrysubtype}} + }{}{% + \ifbibxstring{\thefield{entrysubtype}}{% + \printtext[brackets]{\bibstring{\thefield{entrysubtype}}}% + }{}}} +% \end{macrocode} +% +% The changes to the |online| driver compared to the standard style +% are as follows: +% \begin{itemize} +% \item +% We support the use of |maintitle| for, say, the title of the wesbite +% in which the web page is located. This comes after |title|. +% \item +% We insert the aforementioned |onlinetype| macro after |maintitle|. +% \item +% The date is wrapped in parentheses if present. +% \item +% We support displaying a publisher after the date; this is a legacy feature +% based on examples that are now deprecated. +% \end{itemize} +% +% \begin{macrocode} +\DeclareBibliographyDriver{online}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit + \usebibmacro{maintitle} + \setunit{\addspace}% + \usebibmacro{onlinetype}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{version}% + \newunit + \printfield{note}% + \newunit\newblock + \printlist{organization}% + \iffieldundef{year}{}{% + \setunit{\addspace}\newblock + \printtext[parens]{\usebibmacro{date+time}}% + }% + \newunit\newblock + \printlist{publisher}% + \newunit\newblock + \iftoggle{bbx:eprint} + {\usebibmacro{eprint}} + {}% + \newunit\newblock + \usebibmacro{url+urldate}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% \subsubsection{Software} +% +% The version for software goes between the \texttt{title} and \texttt{titleaddon}. +% +% \begin{macrocode} +\newbibmacro*{title+version}{% + \ifboolexpr{ + test {\iffieldundef{title}} + and + test {\iffieldundef{subtitle}} + } + {} + {\printtext[title]{% + \printfield[titlecase]{title}% + \setunit{\subtitlepunct}% + \printfield[titlecase]{subtitle}}% + \setunit{\addspace}}% + \printfield{version}% + \setunit{\addspace}% + \printfield{titleaddon}% +} +\DeclareFieldFormat[software]{version}{\mkbibparens{\bibstring{version}~#1}} +% \end{macrocode} +% +% The url date string is different for software: \enquote{downloaded} rather +% than \enquote{accessed}. +% +% \begin{macrocode} +\DeclareFieldFormat[software]{urldate}{\bibstring{urldown}\space#1} +% \end{macrocode} +% +% The software driver is based loosely on the manual driver. +% +% \begin{macrocode} +\DeclareBibliographyDriver{software}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title+version}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor}% + \newunit\newblock + \printfield{type}% + \newunit + \printfield{note}% + \newunit\newblock + \usebibmacro{type+series+number+edition+organization+publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% \subsubsection{Datasets} +% +% Datasets are currently treated like manuals +% +% \begin{macrocode} +\DeclareBibliographyAlias{dataset}{manual} +% \end{macrocode} +% +% \subsection{Legal references} +% +% Legal references are a law unto themselves, and thus require extensive +% fiddly coding. This entire section is adapted from \textsf{oscola} by +% Paul Stanley. +% +% \subsubsection{Entry options} +% +% \begin{macrocode} +\newtoggle{bbx:scotstyle} +\DeclareEntryOption{scottish-style}[true]{% + \settoggle{bbx:scotstyle}{#1}} +\newboolean{bbx@year-essential}\setboolean{bbx@year-essential}{false} +\DeclareEntryOption{year-essential}[true]{% + \setboolean{bbx@year-essential}{#1}} +\newboolean{bbx@paryear-essential}\setboolean{bbx@paryear-essential}{false} +\DeclareEntryOption{paryear-essential}[true]{% + \setboolean{bbx@paryear-essential}{#1}} +\newtoggle{blx@ox@nopostnotedelim} +\newtoggle{bbx:altcourt} +\DeclareBibliographyOption{court-plain}[true]{% + \settoggle{bbx:altcourt}{#1}} +\DeclareEntryOption{court-plain}[true]{% + \settoggle{bbx:altcourt}{#1}} +\newtoggle{bbx@ecliuse} +\newtoggle{bbx@eclionly} +\DeclareBibliographyOption{ecli}[yes]{% + \ifstrequal{#1}{no}{% + \global\togglefalse{bbx@ecliuse}% + \global\togglefalse{bbx@eclionly}% + }{% + \global\toggletrue{bbx@ecliuse}% + \ifstrequal{#1}{only}{% + \global\toggletrue{bbx@eclionly}% + }{}}} +% \end{macrocode} +% +% \subsubsection{Field formats} +% +% \begin{macrocode} +\DeclareFieldFormat{casenotetitle}{\mkbibquote{\mkbibemph{#1}}} +\DeclareFieldFormat[jurisdiction,legislation,legal]{journaltitle}{#1} +\DeclareFieldFormat[jurisdiction]{volume}{#1} +\DeclareFieldFormat[jurisdiction]{titleaddon}{\mkbibparens{#1}} +\DeclareFieldFormat{romanvol}{\RN{#1}} +\DeclareListFormat[jurisdiction]{listb}{} +\DeclareFieldFormat{usseries}{\ifinteger{#1}{\mkusbibordinal{#1}}{#1}} +\DeclareFieldFormat{verba}{#1} + +\DeclareListFormat{echrinst}{% + \ifboolexpr{% + test {\ifnumequal{\value{listtotal}}{1}} + or + test {\ifnumequal{\value{listcount}}{\value{listtotal}}} + }{% + \ifboolexpr{ + test {\ifdefstring{\Commission}{#1}} + or + test {\ifdefstring{\commission}{#1}}% + }{% + \bibstring{commissiondecision}% + }{#1}% + }{% + \setcounter{blx@tmpcnt}{\value{listcount}}% + \addtocounter{blx@tmpcnt}{1}% + \ifnumequal{\value{blx@tmpcnt}}{\value{listtotal}}{% + #1\space\bibstring{and}\addspace + }{% + #1\addcomma\space}}}% + +\newcommand*{\commission}{commission} +\newcommand*{\Commission}{Commission} +\DeclareListFormat{ecthr}{% + \ifboolexpr{ + test {\ifdefstring{\Commission}{#1}} + or + test {\ifdefstring{\commission}{#1}} + }{\bibstring[\mkbibparens]{commissiondecision}\toggletrue{blx@ox@nopostnotedelim}}{}} + +\newcommand*{\pcijrep}{PCIJ Rep} +\DeclareFieldFormat{international}{% + \iffieldequals{journaltitle}{\pcijrep}{% + \bibcplstring{jourser}\space #1% + }{#1}} + +\DeclareListFormat{checkcontains}{% + \bbx@check{#1}} +\newtoggle{bbx@institutiontoggle} +\newcommand\iflistcontains[2]{% + \global\togglefalse{bbx@institutiontoggle}% + \def\bbx@check##1{% + \ifdefstring{#2}{##1}{\global\toggletrue{bbx@institutiontoggle}}{}}% + \printlist[checkcontains]{#1}% + \iftoggle{bbx@institutiontoggle}} + +\DeclareFieldFormat{draftleg}{% + \StrBefore{#1}{ Bill}} + +\DeclareListFormat{billprinting}{% + \ifstrequal{#1}{HC}{% + \mkbibbrackets{\strfield{number}}% + \toggletrue{blx@ox@nopostnotedelim}% + }{% + \strfield{number}% + \togglefalse{blx@ox@nopostnotedelim}}} + +\newcommand*{\treatypartysep}{\allowbreak ---\allowbreak} +\DeclareListFormat{treaty}{% + \ifmoreitems{}{% + \ifnumequal{\value{listcount}}{1}{% + \bibopenparen + }{}% + \ifnumgreater{\value{liststop}}{\value{listcount}}{% + #1\treatypartysep + }{% + #1\bibcloseparen}}} + +\def\siganddate#1{% + \def\bbx@tempa{#1}% + \expandafter\bbx@signeddatei#1/relax} +\def\bbx@signeddatei#1=#2/relax{% + \def\bbx@tempa{#2-}% + \bibstring{#1}\space\expandafter\makebbx@datei\bbx@tempa} +\def\makebbx@datei#1-#2-#3-{% + \makebbx@dateii{#1}{#2}{#3}} +\def\makebbx@dateii#1#2#3{% + \blx@imc@stripzeros{#3}~\mkbibmonth{#2}% + \space + #1} +\DeclareListFormat{treatydates}{% + \ifnumequal{\value{listcount}}{1}{% + \siganddate{#1}% + }{% + \addcomma\space\siganddate{#1}}} + +% \end{macrocode} +% +% \subsubsection{Pagination formats} +% +% We define an alternative to \cs{mkpageprefix} that takes a pagination key +% directly. +% +% \begin{macrocode} +\newrobustcmd*{\mkrawpageprefix}[1][none]{% + \begingroup + \def\blx@tempa{\blx@mkpageprefix@i}% + \ifstrequal{#1}{none}{}{% + \ifbibstring{#1}{% + \def\blx@tempa{\blx@mkpageprefix{#1}}% + }{% + \blx@warning@entry{Unknown pagination type '#1'}}}% + \@ifnextchar[%] + {\blx@tempa} + {\blx@tempa[\@firstofone]}} + +\newcommand*\paragraphmarkings{[]} +\DeclareFieldFormat[jurisdiction,legislation,legal]{postnote}{% + \iffieldundef{pagination}{% + \ifboolexpr{ + test {\ifkeyword{eu}} + or + test {\ifkeyword{echr}} + }{% + \mkcomprange[{\mkrawpageprefix[paragraph]}]{#1}% + }{% + \mkcomprange{#1}}% + }{% + \iffieldequals{pagination}{\paragraphmarkings}{% + \mkcomprange[\mkbibbrackets]{#1}% + }{% + \mkcomprange[{\mkpageprefix[pagination]}]{#1}}}} +% \end{macrocode} +% +% \subsubsection{Shorthands} +% +% With legal references, the introduction of shorthands is less verbose. +% +% \begin{macrocode} +\renewbibmacro*{shorthandintro}{% + \iffieldundef{shorthandintro} + {\iffieldundef{shorthand} + {} + {\setunit{\addspace}% + \printtext[parens]{% + \ifboolexpr{ + test {\ifentrytype{jurisdiction}} + or + test {\ifentrytype{legal}} + or + test {\ifentrytype{legislation}} + }{}{% + \bibstring{citedas}\space}% + \printfield{shorthand}}}} + {\setunit{\addspace}% + \printtext[parens]{\printfield{shorthandintro}}}} + +% \end{macrocode} +% +% \subsubsection{Common macros} +% +% \begin{macrocode} +\newbibmacro*{issue/volume}{% + \iffieldundef{volume}% + {\iffieldundef{issue}% + {}% + {\printfield{issue}}}% + {\printfield[default]{volume}}} +\newcommand*{\subtypenewsp}{newspaper} +\newbibmacro*{year+vol+report}[1][default]{% + \iffieldequals{entrysubtype}{\subtypenewsp}{% + \setunit{\addcomma\space}% + }{% + \usebibmacro{journaldate}% + \setunit{\addspace}% + \printfield[parens]{origyear}% + \setunit{\addspace}% + \printfield{volume}% + \setunit{\addspace}}% + \printfield{journaltitle}% + \setunit*{\addspace}% + \iffieldundef{series}{}{% + \setunit{\addspace}% + \printfield[#1]{series}% + \setunit{\addspace}}% + \iffieldequals{entrysubtype}{\subtypenewsp}{% + \setunit{\addcomma\space}% + \printdate% + }{}} +\newbibmacro*{journaldate}[1][]{% + \ifboolexpr{ + test {\iffieldundef{#1volume}} + or + bool {bbx@#1year-essential} + }{% + \ifboolexpr{ + test {\ifkeyword{sc}} + or + test {\iftoggle{bbx:scotstyle}} + }{% + \setunit{\addcomma\space}% + \printfield{#1year}% + }{% + \printfield[brackets]{#1year}}% + }{% + \printfield[parens]{#1year}}} +\newcommand*{\casenote}{casenote} +\newcommand{\casenotetext}{\bibstring{casenote}} +\newbibmacro{journaltitle}{% + \iffieldequals{entrysubtype}{\casenote}{% + \iffieldundef{crossref}{% + \usebibmacro{title}% + }{% + \iffieldundef{note}{% + \restorefield{note}{\casenotetext}% + }{}% + \ifboolexpr{ + test {\iffootnote} + and test {\iftoggle{bbx@samefootnote}} + and test {\iffieldequals{crossref}{\blx@lastkey@foot}}% + }{}{\printfield[casenotetitle]{title}}}% + }{% + \usebibmacro{title}}} +\newbibmacro*{unreported}[1][default]{% + \iffieldundef{verba}{% + \ifboolexpr{ + test {\iflistundef{institution}} + and + test {\iffieldundef{date}} + and + test {\iffieldundef{year}} + }{}{% + \ifboolexpr{ + test {\iffieldundef{date}} + and + test {\iffieldundef{year}} + }{% + \mkbibparens{\printlist[jurisdiction]{institution}}% + }{% + \toggletrue{blx@ox@nopostnotedelim}% + \iflistundef{institution}{% + \mkbibparens{\usebibmacro{date}}% + }{% + \printtext[parens]{% + \printlist[#1]{institution}% + \setunit{\addcomma\space} + \usebibmacro{date}}}}}% + }{% + \iftoggle{bbx@ecliuse}{}{% + \printfield{verba}}}} +\newbibmacro{court-note}{% + \iffieldundef{note}% + {}% + {\printfield{note}% + \toggletrue{blx@ox@nopostnotedelim}}} +\newbibmacro*{jurisdictionpages}{% + \iffieldequals{entrysubtype}{\subtypenewsp}{}{% + \setunit{\addspace}% + \printfield{pages}}} +\newbibmacro{pcitenote}{% + \iffieldundef{userc}{}{% parreporter + \setunit{\addcomma\space}% + \iffieldundef{postnote}{}{% + \printfield{postnote}% + \clearfield{postnote}% + \setunit{\addsemicolon\space}}}} +\newbibmacro*{courtid}{% + \iffieldundef{number}{% + \ifboolexpr{ + test {\iflistundef{institution}} + and + test {\iffieldundef{location}}% + }{% + \togglefalse{blx@ox@nopostnotedelim}% + }{% + \ifboolexpr{% + test {\iffieldundef{journaltitle}} + or + not togl {bbx:altcourt} + }{% + \printtext[parens]{% + \printfield{location}% + \setunit{\addspace}% + \printlist{institution}% + \usebibmacro{unrep:date}}% + \toggletrue{blx@ox@nopostnotedelim} + }{% + \setunit{\addcomma\space}% + \printfield{location}% + \setunit*{\addspace}% + \printlist{institution}}}% + }{% + \togglefalse{blx@ox@nopostnotedelim}}} +\newbibmacro*{unrep:date}{% + \ifboolexpr{ + test {\iffieldundef{journaltitle}}% + and + test {\iffieldundef{number}}% + }{% + \setunit{\addcomma\space}% + \usebibmacro{date}% + }{}} + +% \end{macrocode} +% +% \subsubsection{Legal cases} +% +% There are different formats depending on the jurisdiction. +% +% \begin{macrocode} +\DeclareBibliographyDriver{jurisdiction}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{juriscitation}% + \usebibmacro{doi+eprint+url}% + \setunit{\addspace}%\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\addspace}%\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +\newtoggle{bbx@juriscitedone} +\newbibmacro{juriscitation}{% + \togglefalse{bbx@juriscitedone}% + \renewcommand{\do}[1]{% + \ifkeyword{##1}{% + \toggletrue{bbx@juriscitedone}\usebibmacro{##1juriscitation}% + \listbreak + }{}}% + \docsvlist{eu,echr,int,ca,us}% + \iftoggle{bbx@juriscitedone}{}{\usebibmacro{enjuriscitation}}% +} +% \end{macrocode} +% +% Here is the format for EU cases. +% +% \begin{macrocode} +\newbibmacro*{eujuriscitation}{% + \iflistcontains{institution}{\commission}{}{% + \usebibmacro{eucasenumber}}% + \usebibmacro{title}% + \setunit{\addspace}% + \iflistcontains{institution}{\commission}{% + \usebibmacro{eucommissiondecision}}{}% + \setunit{\addspace}% + \usebibmacro{eu:reportinfo}% + \iflistcontains{institution}{\commission}{% + \setunit{\addcomma\space}% + }{% + \setunit{\addspace}}% + \usebibmacro{court-note}% +} +\newbibmacro{eucasenumber}{% + \iffieldundef{type}{% + \ifboolexpr{ + test {\IfSubStr{\thefield{number}}{,}} + or + test {\IfSubStr{\thefield{number}}{--}} + or + test {\IfSubStr{\thefield{number}}{ and }} + }{% + \bibstring{eujoinedcases}% + }{% + \bibstring{eucase}}% + }{% + \printfield{type}}% + \setunit{\addnbspace}% + \printfield{number}% + \setunit{\addspace}} +\newbibmacro{eucommissiondecision}{% + \iffieldundef{userb}{}{% + \printfield[parens]{userb}}% + \setunit{\addspace}% + \iffieldundef{number}{}{% + \iffieldundef{type}{% + \setunit{\addspace\bibstring{commissiondecision}\addspace}% + }{% + \setunit{\addspace\printfield{type}\addspace}}% + \printfield{number}}} +\newbibmacro*{eu:reportinfo}{% + \iftoggle{bbx@eclionly}{% + \iffieldundef{verba}{% + \usebibmacro{eu:osreport} + }{% + \printfield{verba}}% + }{% + \usebibmacro{eu:osreport}}} +\newbibmacro*{eu:osreport}{% + \iftoggle{bbx@ecliuse}{% + \iffieldundef{verba}{}{% + \printfield{verba}% + \setunit{\addcomma\space}}% + }{}% + \iffieldundef{journaltitle}{% + \usebibmacro{unreported}% + }{% + \usebibmacro{eu:year+vol+report}}} +\newcommand*\officialjournaltitle{OJ} +\newcommand*\ecrreporttitle{ECR} +\newbibmacro*{eu:year+vol+report}{% + \iffieldequals{journaltitle}{\ecrreporttitle}{% + \printfield[brackets]{year}% + \setunit{\addspace}% + \printfield{journaltitle}% + \setunit{\addspace}% + \printfield{volume}% + \setunit*{\printtext{--\allowbreak}}% + \printfield{pages}% + }{% + \iffieldequals{journaltitle}{\officialjournaltitle}{% + \printfield[brackets]{year}% + \setunit{\addspace}% + \printfield{journaltitle}% + \setunit{\addspace}% + \printfield[default]{series}% + \usebibmacro{issue/volume}% + \setunit{\printtext{\slash}}% + \printfield{pages}% + }{% + \usebibmacro{year+vol+report}}}} + +% \end{macrocode} +% +% Here is the format for European Human Rights cases. +% +% \begin{macrocode} +\newbibmacro*{echrjuriscitation}{% + \usebibmacro{title}% + \setunit{\addspace}\newblock + \iffieldundef{number}{}{% + \printtext[parens]{% + \def\adddot{}% + \bibstring{application}\space + \bibstring{number}\space + \printfield{number}}% + \setunit{\addspace}\newblock}% + \iffieldundef{journaltitle}{% + \usebibmacro{unreported}[echrinst]% + }{% + \usebibmacro{echr:year+vol+report} + \setunit{\addspace}\newblock + \usebibmacro{echr:courtid}}% + \setunit{\addspace}% + \usebibmacro{court-note}% + \newblock + \setunit{\addspace}} +\newcommand*{\seriesa}{Series A} +\newcommand*{\echrreports}{ECHR} +\newbibmacro*{echr:year+vol+report}{% + \iffieldequals{journaltitle}{\seriesa}{% + \usebibmacro{seriesareport}% + }{% + \iffieldequals{journaltitle}{\echrreports}{% + \usebibmacro{echrreports}% + }{% + \usebibmacro{year+vol+report} + \setunit{\addspace}% + \printfield{pages}}}} +\newbibmacro*{seriesareport}{% + \printfield[parens]{year}% + \setunit{\addspace}% + \printfield{journaltitle}% + \setunit{\addspace}% + \printtext{\def\adddot{}\bibstring{number}\addspace}% + \printfield{pages}} +\newbibmacro*{echrreports}{% + \printfield{journaltitle}% + \setunit{\addspace}% + \printfield{year}% + \iffieldundef{volume}{}{% + \printtext{--}\printfield[romanvol]{volume}} + \setunit{\addspace}% + \printfield{pages}} +\newcommand*{\decisionsandreports}{DR} +\newcommand*{\collectionofdecisions}{CD} +\newbibmacro*{echr:courtid}{% + \ifboolexpr{ + test {\iffieldequals{journaltitle}{\decisionsandreports}} + or + test {\iffieldequals{journaltitle}{\collectionofdecisions}}% + }{}{% + \printlist[ecthr]{institution}}} + +% \end{macrocode} +% +% Here is the format for international cases. +% +% \begin{macrocode} +\newbibmacro*{intjuriscitation}{% + \iflistundef{institution}{% + \setunit{}\printtext{}% + }{% + \printlist{institution}% + \setunit{\addcomma\space}}% + \usebibmacro{int:title}% + \setunit{\addspace}\newblock + \iffieldundef{journaltitle}{% + \printfield{number}% + \setunit{\addspace}\newblock + \printtext[parens]{\printdate}% + }{% + \usebibmacro{year+vol+report}[international]% + }% + \setunit{\addspace}% + \usebibmacro{int:jurisdictionpages}% + \setunit{\addspace}\newblock + \usebibmacro{court-note}% +} +\newbibmacro*{int:title}{% + \ifboolexpr{ + test {\iffieldundef{title}} + and + test {\iffieldundef{subtitle}} + }{}{% + \printtext[title]{% + \printfield[titlecase]{title}% + \setunit{\addspace}% + \printfield[parens]{subtitle}}}% + \setunit{\addspace}% + \printfield{titleaddon}% +} +\newbibmacro*{int:jurisdictionpages}{% + \iffieldequals{journaltitle}{\pcijrep}{% + \printtext{\bibcpstring{number}\addspace}% + \iffieldundef{pages}{% + \printfield{number}% + }{% + \printfield{pages}}% + }{% + \printfield{pages}}} + +% \end{macrocode} +% +% Here is the format for Canadian cases. +% +% \begin{macrocode} +\newbibmacro{canjuriscitation}{% + \usebibmacro{title}% + \setunit{\addspace}\newblock + \printfield{number}% + \setunit{\addcomma\space}% + \iffieldundef{journaltitle}{}{% + \usebibmacro{can:year+vol+report}}% + \usebibmacro{jurisdictionpages}% + \usebibmacro{pcitenote}% + \usebibmacro{altreportdetails}% + \unspace\printlist[jurisdiction][1-\value{listtotal}]{listb}% + \newunit\newblock + \usebibmacro{courtid}% + \newunit% + \usebibmacro{court-note}% + \newblock% + \newunit} +\newbibmacro*{can:year+vol+report}{% + \iffieldundef{number}{% + \setunit{\addspace}% + }{% + \ifboolexpr{ + test {\iffieldundef{volume}} + or + bool {bbx@year-essential}% + }{}{% + \clearfield{year}}}% + \iffieldequals{entrysubtype}{\subtypenewsp}{}{% + \iffieldundef{year}{}{% + \usebibmacro{journaldate}% + \setunit{\addspace}}} + \printfield{volume}% + \setunit{\addspace}% + \printfield{journaltitle}% + \setunit*{\addspace}% + \iffieldundef{series}{}{% + \setunit{\addspace}% + \printtext[parens]{\printfield[usseries]{series}}% + \setunit{\addspace}}% + \iffieldequals{entrysubtype}{\subtypenewsp}{% + \setunit{\addcomma\space}% + \usebibmacro{newspaperdate}% + }{}} +% \end{macrocode} +% +% Here is the format for American cases. +% +% \begin{macrocode} +\newbibmacro{usjuriscitation}{% + \usebibmacro{title}% + \setunit{\addcomma\space}\newblock% + \iffieldundef{journaltitle}{% + \printfield{number}% + \setunit{\addcomma\space}% + \printfield[default]{eprint}% + \clearfield{eprint}% + }{ + \usebibmacro{us:vol+report}}% + \setunit{\addspace}% + \usebibmacro{jurisdictionpages}% + \usebibmacro{us:postnote}% + \usebibmacro{altreportdetails}% + \setunit{\addspace}\newblock + \unspace\printlist[jurisdiction][1-\value{listtotal}]{listb}% + \setunit{\addspace}% + \usebibmacro{us:courtid+date}% + \setunit{\addspace}% + \usebibmacro{court-note}% + \newblock + \setunit{\addspace}} +\newbibmacro{us:vol+report}{% + \printfield{volume}% + \setunit{\addspace}% + \printfield{journaltitle}% + \iffieldundef{series}{}{% + \setunit{\addspace}% + \printfield[usseries]{series}}} +\newbibmacro{us:postnote}{% + \iffieldundef{postnote}{}{% + \setunit{\addcomma\space}% + \printfield{postnote}% + \clearfield{postnote}% + }} +\newbibmacro{us:courtid+date}{% + \ifboolexpr{ + test {\iflistundef{institution}} + and + test {\iflistundef{location}} + and + test {\iffieldundef{year}} + }{}{% + \printtext[parens]{% + \printlist{location}% + \setunit*{\addspace}% + \printlist{institution}% + \setunit{\addspace}% + \printfield{year}% + \nopunct}}} + +% \end{macrocode} +% +% Here is the format for English cases. +% +% \begin{macrocode} +\newbibmacro{enjuriscitation}{% + \usebibmacro{title}% + \setunit{\addspace}\newblock + \printfield{number}% + \setunit*{\addcomma\space}% + \iffieldundef{journaltitle}{}{% + \usebibmacro{year+vol+report}}% + \usebibmacro{jurisdictionpages}% + \usebibmacro{pcitenote}% + \usebibmacro{altreportdetails}% + \unspace\printlist[jurisdiction][1-\value{listtotal}]{listb}% additionalreports + \setunit{\addspace}\newblock + \usebibmacro{courtid}% + \setunit{\addspace}% + \usebibmacro{court-note}} +\newbibmacro{altreportdetails}{% + \restorefield{prenote}{\postnotesecond}% + \iffieldundef{userc}{}{% parreporter + \usebibmacro{journaldate}[par]% + \setunit{\addspace}\newblock + \usebibmacro{altreportvolume}% + \setunit{\addspace}\newblock + \usebibmacro{altjournaltitle}% + \setunit{\addspace}\newblock + \usebibmacro{altseries}% + \setunit{\addspace}\newblock + \usebibmacro{altjurisdictionpages}% + \iffieldundef{prenote}{}{% + \setunit{\addcomma\space}% + \printfield[postnote]{prenote}}}} +\newbibmacro*{altreportvolume}{% + \iffieldundef{userb}{% parvolume + \printfield{volume}% + }{% + \printfield{userb}}} +\newbibmacro*{altjournaltitle}{% + \iffieldundef{userc}{% parreporter + \printfield{journaltitle}% + \setunit{\addspace}% + }{ + \printfield{userc}}} +\newbibmacro*{altseries}{% + \iffieldundef{userd}{% parseries + \printfield{series}% + }{% + \printfield{userd}}} +\newbibmacro*{altjurisdictionpages}{% + \iffieldundef{usere}{% parpages + \usebibmacro{jurisdictionpages}% + }{% + \printfield{usere}}}% + +% \end{macrocode} +% +% \subsubsection{Legislation} +% +% Legislation tends to have a more consistent format, though European +% entries need special handling. +% +% \begin{macrocode} +\newcommand*{\subtypecourtrules}{procedure-rule} +\DeclareBibliographyDriver{legislation}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \iffieldequals{entrysubtype}{\subtypecourtrules}{% + \usebibmacro{courtrules}% + }{% + \ifkeyword{draft}{% + \usebibmacro{legislation:bill}% + }{% + \ifkeyword{eu}{% + \usebibmacro{eulegislation}% + }{% + \printfield[default]{title}% + \setunit{\addspace}% + \printfield[default]{year}% + \setunit*{\addspace}% + \usebibmacro{legnumber}% + \setunit{\addspace}\newblock + \usebibmacro{legsupp}}}}% + \setunit{\addcomma\space}% + \printfield{note}% + \setunit{\addspace}% + \usebibmacro{finentry}} +\newbibmacro*{courtrules}{% + \restorefield{prenote}{\postnotesecond}% + \iffieldequalstr{shorttitle}{PD}{% + \printfield{postnote}% + \clearfield{postnote}% + \setunit{\addspace}% + }{}% + \iffieldundef{shorttitle}{% + \printfield[default]{title}% + }{% + \printfield[default]{shorttitle}}% + \setunit{\addspace}\newblock + \iffieldundef{postnote}{% + \toggletrue{blx@ox@nopostnotedelim}% + }{% + \iffieldequalstr{shorttitle}{CPR}{% + \printfield{postnote}% + \setunit{\addspace}% + }{% + \printtext{% + \bibstring{order}\space + \printfield{postnote}% + \setunit{\addcomma\space}}}}% + \restorefield{postnote}{\postnotesecond}% + \usebibmacro{postnote}% + \clearfield{postnote}% + \setunit{\addspace}\newblock} +\newcommand*{\subtypeprimarylegislation}{primary} +\newbibmacro*{legislation:bill}{% + \printfield[draftleg]{title}% + \setunit{\addspace}% + \printlist{institution}% + \setunit*{\addspace}% + \iffieldequals{entrysubtype}{\subtypeprimarylegislation}{% + \bibcpstring{bill}% + \setunit{\addspace}% + \printtext[parens]{\usebibmacro{sessionyear}}% + \setunit{\addspace}% + \iffieldundef{number}{}{% + \printlist[billprinting]{institution}}% + }{% + \printtext[parens]{% + \bibstring{draft}\space + \printdate}} + \setunit{\addspace}} +\newbibmacro*{sessionyear}{% + \iffieldundef{year}{}{% + \printfield{year}% + \iffieldundef{endyear}{}{% + \bibdaterangesep + \blx@ox@compyear{\thefield{year}}{\thefield{endyear}}}}} +\newbibmacro{eulegislation}{% + \printfield[default]{title}% + \setunit{\addspace}\newblock% + \usebibmacro{eulegref}} +\newcommand*{\ojspecedtitle}{OJ Spec Ed} +\newbibmacro*{eulegref}{% + \iffieldequals{journaltitle}{\officialjournaltitle}{% + \printfield[brackets]{year}% + \setunit{\addspace}% + \printfield{journaltitle}% + \setunit{\addspace}% + \iffieldundef{series}{% + \printtext{L}% + }{% + \printfield[default]{series}}% + \usebibmacro{issue/volume}% + \setunit*{\addslash}% + \printfield{pages}% + \togglefalse{blx@ox@nopostnotedelim}% + }{% + \usebibmacro{year+vol+report}% + \setunit*{\addspace}% + \printfield{pages}}} +\newbibmacro*{legnumber}{% + \iffieldequals{entrysubtype}{\subtypeprimarylegislation}{% + \ifboolexpr{( + test {\iffieldundef{number}} + or + not test {\iffieldundef{title}} ) + and not ( + test {\ifkeyword{cy}} + or + test {\ifkeyword{sc}} + or + test {\ifkeyword{ni}} ) + }{}{% + \printtext[parens]{\printfield{number}}% + \toggletrue{blx@ox@nopostnotedelim}}% + }{% + \iffieldundef{number}{}{% + \setunit{\addcomma\addspace}% + \printfield{number}% + \togglefalse{blx@ox@nopostnotedelim}}}} +% \end{macrocode} +% +% This adds additional material for Welsh statutory instruments. +% +% \begin{macrocode} +\newbibmacro*{legsupp}{% + \ifkeyword{cy} + {\iffieldundef{userb} + {} + {\printtext{\mkbibparens{\printfield{userb}}}\toggletrue{blx@ox@nopostnotedelim}}} + {}} + +% \end{macrocode} +% +% \subsubsection{Treaties, explanatory notes and Hansard} +% +% \begin{macrocode} +\newcommand*{\explanatorynote}{explanatory note} +\newcommand*{\parliamentarytype}{parliamentary} +\newcommand*{\treatysubtype}{piltreaty} +\DeclareBibliographyDriver{legal}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \iffieldequals{entrysubtype}{\explanatorynote}{% + \printfield[default]{title}% + \setunit{\addspace}\newblock + }{% + \iffieldequals{entrysubtype}{\parliamentarytype}{% + \usebibmacro{legal:parliamentary}% + }{% + \usebibmacro{treatycitation}}}% + \setunit{\addcomma\space}\newblock + \printfield[default]{note} + \setunit{\addspace}\newblock + \setunit{\bibpagerefpunct}% + \usebibmacro{pageref}% + \usebibmacro{finentry}} +\newbibmacro{legal:parliamentary}{% + \printfield[default]{title}% + \newunit\newblock + \printfield{type}% + \setunit{\addspace}% + \iffieldundef{series}{}{% + \printtext[parens]{% + \biblstring{jourser}\space + \printfield{series}}}% + \setunit{\addspace}% + \printfield{volume}% + \setunit{\addcomma\space}% + \usebibmacro{hansard-ref}% + \setunit{\addspace}% + \iffieldundef{year}{}{% + \printtext[parens]{\usebibmacro{date}}}% + \togglefalse{blx@ox@nopostnotedelim}} +\newbibmacro*{hansard-ref}{% + \iffieldundef{postnote}{% + \iffieldundef{pages}{}{% + \printfield{pages}}% + }{}}% +\newbibmacro{treatycitation}{% + \printfield[default]{title}% + \setunit{\addspace}\newblock% + \printlist[treaty]{institution} + \setunit{\addspace}\newblock + \usebibmacro{treatyinfo}% + \setunit{\addspace}\newblock + \usebibmacro{treaty:year+vol+report}} +\newbibmacro{treatyinfo}{% + \iflistundef{lista}{% execution + \iffieldundef{year}{}{% + \iffieldundef{volume}{}{% + \printtext[parens]{\printdate}}}% + }{% + \printtext[parens]{\printlist[treatydates]{lista}}}} +\newbibmacro{treaty:year+vol+report}{% + \iffieldequals{journaltitle}{\officialjournaltitle}{% + \usebibmacro{eulegref}% + }{% + \usebibmacro{treaty:date}% + \setunit{\addspace}% + \printfield[default]{volume}% + \setunit{\addspace}% + \printfield{journaltitle}% + \setunit*{\addspace}% + \iffieldundef{series}{}{% + \setunit{\addspace}% + \printfield{series}% + \setunit{\addspace}}% + \printfield{pages}}}% +\newbibmacro*{treaty:date}{% + \ifboolexpr{ + test {\iffieldundef{volume}} + or + bool {bbx@year-essential} + }{% + \ifboolexpr{ + test {\ifkeyword{sc}} + or + test {\iftoggle{bbx:scotstyle}} + }{% + \printfield{year}% + }{% + \printfield[brackets]{year}% + }}{}} + +% \end{macrocode} +% +% We don't really deal with commentaries as distinct from books. +% +% \begin{macrocode} +\DeclareBibliographyAlias{commentary}{book} +% \end{macrocode} +% +% \subsection{Manuscripts} +% +% In the spirit of compatibility, this code is adapted from +% \textsf{biblatex-manuscripts-philology} by Maïeul Rouquette. +% +% Here are the additional punctuation commands. +% +% \begin{macrocode} +\newcommand{\locationlibrarypunct}{\addcomma\addspace} +\newcommand{\collectionshelfmarkpunct}{\addspace} +\newcommand{\datingpagespunct}{\addcomma\addspace} +\newcommand{\librarycollectionpunct}{\addcomma\addspace} +\newcommand{\pagetotalpagespunct}{\addcomma\addspace} +\newcommand{\columnslayerpunct}{\addsemicolon\addspace}% +% \end{macrocode} +% +% Here are the configurable macros for the two sides of a folio. +% +% \begin{macrocode} +\def\recto{r} +\def\verso{v} +\NumCheckSetup{\def\recto{r}\def\verso{v}} +\DeclareNumChars*{rv} +% \end{macrocode} +% +% Here are some special field formats for the |manuscript| driver. +% Note that the title is transformed into a descriptor by means of +% an annotation, rather than using a dedicated field. This greatly +% simplifies the code used elsewhere. +% +% \begin{macrocode} +\DeclareFieldFormat[manuscript,unpublished]{title}{% + \def\currentfield{title}% + \iffieldannotation{descriptor}{#1}{\mkbibquote{#1\isdot}}% + \undef\currentfield} +\DeclareFieldFormat{columns+layer}{\mkbibparens{#1}} +\DeclareFieldFormat{columns}{\mkbibparens{#1}} +\DeclareFieldFormat{layer}{\mkbibparens{#1}} +\DeclareFieldFormat{dating}{#1\isdot}% +\DeclareFieldFormat{support}{\ifbibstring{#1}{\bibstring{#1}}{#1}} +% \end{macrocode} +% +% Here are the unique bibmacros used by the |manuscripts| driver. +% We hide the date if there is no author or title to prevent it +% appearing as the first element in the reference. Similarly, we +% hide the (vague) |dating| field if the (exact) |date| is displayed. +% +% \begin{macrocode} +\newbibmacro{manuscript:date}{% + \ifboolexpr{ + test {\ifnameundef{author}} + and + test {\iffieldundef{title}} + }{}{\usebibmacro{date}}} +\newbibmacro{dating}{% + \ifboolexpr{( + test {\ifnameundef{author}} + and + test {\iffieldundef{title}} + ) or + test {\iffieldundef{year}} + }{% + \printfield{dating}% + }{}} +% \end{macrocode} +% +% We follow the structure of the \textsf{biblatex-manuscripts-philology} +% approach to allow special formatting to be applied to the collection +% and shelfmark, but we do not actually apply any. +% +% \begin{macrocode} +\newbibmacro{location+library+collection+shelfmark}{% + \printfield{library}% + \setunit{\locationlibrarypunct}% + \printlist{location}% + \setunit{\librarycollectionpunct}% + \usebibmacro{collection+shelfmark}} +\newbibmacro{collection+shelfmark}{% + \ifboolexpr{ + test {\iffieldundef{collection}} + and + test {\iffieldundef{shelfmark}} + }{}{% + \printtext[collection+shelfmark]{% + \printfield{collection}% + \setunit*{\collectionshelfmarkpunct}% + \printfield{shelfmark}}}} +% \end{macrocode} +% +% Again, following \textsf{biblatex-manuscripts-philology}, we allow +% different formatting to be applied to columns and layers according +% to whether they occur adjacently or not, as they might be separated +% by a page specification. +% +% \begin{macrocode} +\newbibmacro{manuscript:pages}{% + \printfield{pagetotal}% + \setunit{\addspace}% + \iffieldundef{pages}{% + \usebibmacro{manuscript:columns+layer}% + }{% + \usebibmacro{manuscript:columns}% + \setunit{\pagetotalpagespunct}% + \printfield{pages}% + \setunit{\addspace}% + \usebibmacro{manuscript:layer}}} +\newbibmacro{manuscript:columns}{% + \iffieldundef{columns}{}{% + \printtext[columns]{\bibstring{\strfield{columns}column}}}% +}% +\newbibmacro{manuscript:layer}{% + \iffieldundef{layer}{}{% + \printtext[layer]{\bibstring{\strfield{layer}layer}}}% +}% +\newbibmacro{manuscript:columns+layer}{% + \ifboolexpr{ + test {\iffieldundef{columns}} + or + test{\iffieldundef{layer}} + }{% + \usebibmacro{manuscript:columns}% + \usebibmacro{manuscript:layer}% + }{% + \printtext[columns+layer]{% + \bibstring{\strfield{columns}column}% + \setunit*{\columnslayerpunct}% + \bibstring{\strfield{layer}layer}}}}% +% \end{macrocode} +% +% Putting it all together, here is the |manuscript| driver. +% +% \begin{macrocode} +\DeclareBibliographyDriver{manuscript}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{howpublished}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{manuscript:date}% + \newunit\newblock + \usebibmacro{location+library+collection+shelfmark}% + \newunit + \printfield{support}% + \newunit + \usebibmacro{dating}% + \setunit{\datingpagespunct} + \usebibmacro{manuscript:pages} + \newunit\newblock% + \iftoggle{bbx:url}{% + \usebibmacro{url+urldate}% + }{}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related}{% + \usebibmacro{related:init}% + \usebibmacro{related}% + }{}% + \usebibmacro{finentry}} +% \end{macrocode} +% +% We provide an alternative bibmacro for doing much the same but with +% the regular \textsf{biblatex} fields. +% +% \begin{macrocode} +\newbibmacro*{library+location+series+number}{% + \printfield{library}% + \setunit{\locationlibrarypunct}% + \printlist{location}% + \setunit{\librarycollectionpunct}% + \ifboolexpr{ + test {\iffieldundef{series}} + and + test {\iffieldundef{number}} + }{}{% + \printtext[collection+shelfmark]{% + \printfield{series}% + \setunit*{\collectionshelfmarkpunct}% + \printfield{number}}}} +% \end{macrocode} +% +% Lastly, we adapt the |unpublished| driver to allow it to do a similar +% thing but with the regular \textsf{biblatex} fields. The presence of +% the |library| field is what triggers `manuscript mode'. +% +% \begin{macrocode} +\newtoggle{blx@ox@ms} +\DeclareBibliographyDriver{unpublished}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \iffieldundef{library}{\togglefalse{blx@ox@ms}}{\toggletrue{blx@ox@ms}}% + \usebibmacro{author}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{howpublished}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \iftoggle{blx@ox@ms}{% + \usebibmacro{manuscript:date}% + \newunit\newblock + \usebibmacro{library+location+series+number}% + \newunit + \printfield{support}% + \newunit + \usebibmacro{dating}% + \setunit{\datingpagespunct} + \usebibmacro{manuscript:pages} + }{% + \usebibmacro{location+date}% + }% + \newunit\newblock + \iftoggle{bbx:url} + {\usebibmacro{url+urldate}} + {}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +% \end{macrocode} +% +% \subsection{Related entries} +% +% We make the punctuation before related items configurable in remaining drivers +% inherited from the standard style. +% +% \begin{macrocode} +\xpatchbibdriver{booklet}{% + \newunit\newblock + \iftoggle{bbx:related} +}{% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} +}{}{} +\xpatchbibdriver{misc}{% + \newunit\newblock + \iftoggle{bbx:related} +}{% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} +}{}{} +\xpatchbibdriver{patent}{% + \newunit\newblock + \iftoggle{bbx:related} +}{% + \setunit{\relatedtypepunct}\newblock + \iftoggle{bbx:related} +}{}{} +% \end{macrocode} +% +% We provide an option for setting the relatedtype punctuation. +% +% \begin{macrocode} +\DeclareBibliographyOption{relationpunct}[semicolon]{% + \ifcsdef{add#1}{% + \ifstrequal{#1}{space}{% + \renewcommand*{\relatedtypepunct}{\addspace}% + }{% + \renewcommand*{\relatedtypepunct}{\csuse{add#1}\space}}% + }{% + \PackageError{biblatex-oxref}{% + Invalid option 'relationpunct=#1'% + }{% + Valid values are 'dot', 'comma', 'semicolon', 'colon',\MessageBreak + 'period', 'exclam', 'question', and 'space'.}}} +\newtoggle{blx@ox@relpunctset} +\DeclareEntryOption{relationpunct}[semicolon]{% + \ifcsdef{add#1}{% + \ifstrequal{#1}{space}{% + \renewcommand*{\relatedtypepunct}{\addspace}% + }{% + \renewcommand*{\relatedtypepunct}{\csuse{add#1}\space}}% + \toggletrue{blx@ox@relpunctset} + }{% + \PackageError{biblatex-oxref}{% + Invalid option 'relationpunct=#1'% + }{% + Valid values are 'dot', 'comma', 'semicolon', 'colon',\MessageBreak + 'period', 'exclam', 'question', and 'space'.}}} +\newcounter{blx@ox@relitem} +\xapptobibmacro{begrelated}{% + \setcounter{blx@ox@relitem}{0}% + \iftoggle{blx@ox@relpunctset}{}{% + \iffieldequalstr{relatedtype}{in}{% + \setunit{\addcomma\space}}{}% + \iffieldequalstr{relatedtype}{reprintfrom}{% + \setunit{\addperiod\space}}{}% + \iffieldequalstr{relatedtype}{translationof}{% + \setunit{\addspace}}{}% + \iffieldequalstr{relatedtype}{multivolume}{% + \setunit{\addcomma\space}}{}% + }}{}{} + +% \end{macrocode} +% +% \subsubsection{Translations} +% +% Where related item is the translation, the related string is prefaced with the +% language. +% +% \begin{macrocode} +\newbibmacro*{rellanguage}{% + \def\do##1{% + \entrydata{##1}{% + \printlist{language}}}% + \docsvfield{related}% +} +\DeclareFieldFormat{relatedstring:translationof}{% + \usebibmacro{rellanguage}\space + \bibstring{original}\addcomma\space} + +\DeclareFieldFormat{related:translationof}{% + \mkbibbrackets{#1}} +% \end{macrocode} +% +% \subsubsection{Co-publications} +% +% This relation simply prints what would go in the publication block. +% +% \begin{macrocode} +\newbibmacro*{related:copub}[1]{% + \entrydata*{#1}{% + \usebibmacro{publisher+location+date}% + \setunit{\relateddelim}}} +% \end{macrocode} +% +% \subsubsection{Reprints} +% +% The standard styles define a special driver for the |reprintfrom| relation. +% For \textsf{oxref}, the standard generic driver is sufficient, so this code +% reverts the specialization. +% +% \begin{macrocode} +\renewbibmacro*{related:reprintfrom}[1]{% + \entrydata*{#1}{% + \nopunct + \usedriver{% + \ifnameundef{savedauthor}{% + \ifnameundef{savededitor}{}{% + \ifnamesequal{editor}{savededitor}{% + \clearname{editor}% + }{}}% + }{% + \ifnamesequal{author}{savedauthor}{% + \clearname{author}% + }{}}% + \iffieldundef{savedtitle}{}{% + \iffieldsequal{savedtitle}{title}{% + \clearfield{title}% + }{}}% + \renewbibmacro*{related:init}{}% + \DeclareNameAlias{sortname}{default}% + \ifbibmacroundef{date+extrayear}{}{% + \renewbibmacro*{date+extrayear}{}% + \renewbibmacro*{date}{\printdate}}% + \renewbibmacro*{pageref}{}% + }{% + \thefield{entrytype}}}} +% \end{macrocode} +% +% \subsubsection{Articles that span issues} +% +% If an article spans several issues of a journal, we print the second +% reference after the first, omitting any information in common. +% +% \begin{macrocode} +\newbibmacro*{related:serialarticle}[1]{% + \entrydata*{#1}{% + \iffieldundef{savedjournaltitle}{}{% + \iffieldsequal{journaltitle}{savedjournaltitle}{% + \clearfield{journaltitle}% + }{}}% + \iffieldundef{savedjournalsubtitle}{}{% + \iffieldsequal{journalsubtitle}{savedjournalsubtitle}{% + \clearfield{journalsubtitle}% + }{}}% + \iffieldundef{savedseries}{}{% + \iffieldsequal{series}{savedseries}{% + \clearfield{series}% + }{}}% + \iffieldundef{savedyear}{\clearfield{year}}{ + \iffieldsequal{year}{savedyear}{% + \clearfield{year}% + }{}}% + \usebibmacro{journal+issuetitle}% + \newunit + \usebibmacro{note+pages}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}}} +% \end{macrocode} +% +% \subsubsection{Reviews} +% +% We ensure that the field formatting for |review| entries matches that +% for |article| entries. +% +% \begin{macrocode} +\DeclareFieldFormat[review]{title}{\mkbibquote{#1\isdot}} +\DeclareFieldFormat[review]{volume}{#1}% volume of a journal +\DeclareFieldFormat[review]{number}{#1}% number of a journal +\DeclareFieldFormat[review]{series}{% series of a journal + \ifinteger{#1} + {\mkbibordseries{#1}~\bibstring{jourser}} + {\ifbibstring{#1}{\bibstring{#1}}{#1}}} +% \end{macrocode} +% +% We take advantage of the Biber-specific mechanism of relating items +% in order to handle reviews. Compared to the default code, this is +% simpler in that we don't check for repeated authors\slash editors (it +% would be a rather biased review!), we directly set the author format, +% and we don't nullify the \code{date+extrayear} macro. +% +% \begin{macrocode} +\newbibmacro*{related:reviewof}[1]{% + \entrydata*{#1}{% + \usedriver{% + \renewbibmacro*{related:init}{}% + \DeclareNameAlias{author}{given-family}% + \renewbibmacro*{pageref}{}% + }{\thefield{entrytype}}% + }% +} +% \end{macrocode} +% +% Since a review is a special kind of journal article, the |review| +% driver is based on the |article| one, the difference being that the +% |related| macro comes just before |journal+issuetitle|. Oxford style +% links the two with \enquote{in}. +% +% \begin{macrocode} +\DeclareBibliographyDriver{review}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock + \iftoggle{bbx:related}{% + \usebibmacro{related:init}% + \usebibmacro{related}% + }{}% + \newunit\newblock + \usebibmacro{in:}% + \setunit{\addspace}% + \usebibmacro{journal+issuetitle}% + \newunit + \usebibmacro{byeditor+others}% + \iffieldundef{note}% + {\newunit}% + {\setunit{\addsemicolon\addspace}}% + \usebibmacro{note+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + +% \end{macrocode} +% +% \subsubsection{Multiple volumes} +% +% Standard \textsf{biblatex} provides the \code{multivolume} relation for +% different volumes of the same work that have slightly different publication +% details, but it doesn't quite work for Oxford style. This works better. +% +% \begin{macrocode} +\DeclareFieldFormat{related:multivolume}{#1} +\newbibmacro*{related:multivolume}[1]{% + \entrydata*{#1}{% + \printtext{% + \printfield{volume}% + \printfield{part}}% + \setunit*{\addspace}% + \usebibmacro{series+number+edition+publisher+location+date}}} + +% \end{macrocode} +% +% \subsubsection{Related editions} +% +% This macro is based on the ‘bytranslator’ one, but more general. +% +% \begin{macrocode} +\newbibmacro*{related:editedas}[1]{% + \entrydata{#1}{% + \renewbibmacro*{name:hook}[1]{% + \ifnumequal{\value{listcount}}{1}{% + \begingroup + \mkrelatedstring% + \lbx@initnamehook{#1}% + \endgroup + }{}}% + \printfield{edition}% + \setunit{\addspace}% + \usebibmacro{byeditor+others}% + \setunit*{\addcomma\space\bibstring[\mkrelatedstring]{astitle}\space}% + \usebibmacro{maintitle+title}% + \setunit{\addspace}% + \printfield{note}% + \newunit\newblock + \printfield{volumes}% + \newunit + \usebibmacro{series+number+publisher+location+date}}} +\newbibmacro*{related:bytranslator}[1]{% + \entrydata{#1}{% + \renewbibmacro*{name:hook}[1]{% + \ifnumequal{\value{listcount}}{1} + {\begingroup + \mkrelatedstring% + \lbx@initnamehook{#1}% + \endgroup} + {}}% + \printnames[bytranslator]{translator}% + \setunit*{\addspace\bibstring[\mkrelatedstring]{astitle}\space}% + \usebibmacro{maintitle+title}% + \setunit{\addspace}% + \printfield{note}% + \newunit\newblock + \printfield{volumes}% + \newunit + \usebibmacro{series+number+publisher+location+date}}} + +% \end{macrocode} +% +% \subsubsection{Joint releases} +% +% We provide support for CDs (for example) which contain more than one work. +% +% \begin{macrocode} +\newbibmacro*{related:includes}[1]{% + \stepcounter{blx@ox@relitem}% + \ifnumequal{\value{blx@ox@relitem}}{\value{bbx:relatedtotal}}% + {\bibstring{and}\addspace}{}% + \entrydata{#1}{% + \ifbibmacroundef{date+extrayear}{}{% + \renewbibmacro*{date+extrayear}{}}% + \usebibmacro{author}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}}} +% \end{macrocode} +% +% \subsubsection{Subitems} +% +% We provide support for items in items in items. The outer two layers should +% be taken care of with an |incollection| entry or equivalent. The innermost +% item should be a |misc| entry. While we're at it, we provide descriptor +% support for |misc| entries. +% +% \begin{macrocode} +\DeclareFieldFormat[misc]{title}{% + \def\currentfield{title}% + \iffieldannotation{descriptor}{#1}{% + \iffieldequalstr{relatedtype}{in}{% + \mkbibquote{#1\isdot}% + }{% + \mkbibemph{#1}% + }}% + \undef\currentfield} +\newbibmacro*{related:in}[1]{% + \entrydata*{#1}{% + \usedriver + {\ifnameundef{savedauthor} + {\ifnameundef{savededitor} + {} + {\ifnamesequal{editor}{savededitor} + {\clearname{editor}} + {}}} + {\ifnamesequal{author}{savedauthor} + {\clearname{author}} + {}}% + \renewbibmacro*{related:init}{}% + \DeclareNameAlias{sortname}{default}% + \ifbibmacroundef{date+extrayear} + {} + {\renewbibmacro*{date+extrayear}{}% + \renewbibmacro*{date}{\printdate}}% + \renewbibmacro*{pageref}{}} + {\thefield{entrytype}}% + \ifboolexpr{ + test {\iffieldundef{pages}} + or + test {\iffieldundef{savedpages}} + }{% + \newunit\newblock + }{% + \setunit{\addspace}% + \bibstring{thiscite}% + \printunit{\addspace}% + }% + }% + \usebibmacro{chapter+pages}% +} + +% \end{macrocode} +% +% \subsection{Source maps} +% +% We use the source mapping capabilities of Biber to fix the following issues. +% +% \begin{macrocode} +\DeclareStyleSourcemap{% + \maps[datatype=bibtex]{% +% \end{macrocode} +% +% \subsubsection{Sort order} +% +% |proceedings| and |mvproceedings| entries allow an organization to be printed +% in the author position. +% +% \begin{macrocode} + \map{ + \pertype{proceedings} + \pertype{mvproceedings} + \step[notfield=author, + fieldsource=organization, + fieldtarget=author] + } +% \end{macrocode} +% +% \subsubsection{Descriptors} +% +% This map provides a helpful \code{descriptor} field that can simplify the +% provision of descriptors, being notes that can act as titles. +% +% \begin{macrocode} + \map[overwrite=false]{ + \step[fieldsource=descriptor, final] + \step[notfield=title, + fieldset=title+an, + fieldvalue={=descriptor}] + \step[notfield=title, + fieldsource=descriptor, + fieldtarget=title] + \step[fieldsource=descriptor, + fieldtarget=note] + } +% \end{macrocode} +% +% \subsubsection{Pseudonyms and inferred authorship} +% +% These help ensure compatibility with \textsf{biblatex-realauthor}. +% +% \begin{macrocode} + \map[overwrite=false]{ + \step[fieldsource=realauthor, final] + \step[notfield=author, + fieldset=author+an, + fieldvalue={=inferred}] + \step[notfield=author, + fieldsource=realauthor, + fieldtarget=author] + \step[fieldsource=realauthor, + fieldtarget=authoraddon] + } + \map[overwrite=false]{ + \step[fieldsource=realeditor, final] + \step[notfield=editor, + fieldset=editor+an, + fieldvalue={=inferred}] + \step[notfield=editor, + fieldsource=realeditor, + fieldtarget=editor] + \step[fieldsource=realeditor, + fieldtarget=editoraddon] + } +% \end{macrocode} +% +% \subsubsection{Editors as joint authors} +% +% This map provides a more portable interface for declaring a translator +% or revisor to be a joint author. +% +% \begin{macrocode} + \map[overwrite=false]{ + \step[fieldsource=editor+an, + match=\regexp{=jointauthor}, + final] + \step[fieldsource=editor, + fieldtarget=jointauthor] + \step[fieldsource=editortype, + fieldtarget=jointauthortype] + } + \map[overwrite=false]{ + \step[fieldsource=translator+an, + match=\regexp{=jointauthor}, + final] + \step[fieldsource=translator, + fieldtarget=jointauthor] + \step[fieldset=jointauthortype, + fieldvalue={=translator}] + } +% \end{macrocode} +% +% \subsubsection{Legal references} +% +% These help ensure compatibility with \textsf{oscola}. +% +% \begin{macrocode} + \map[overwrite=false]{ + \pertype{jurisdiction} + \step[fieldsource=reporter, + fieldtarget=journaltitle] + \step[fieldsource=parvolume, + fieldtarget=userb] + \step[fieldsource=parreporter, + fieldtarget=userc] + \step[fieldsource=parseries, + fieldtarget=userd] + \step[fieldsource=parpages, + fieldtarget=usere] + \step[fieldsource=court, + fieldtarget=institution] + \step[fieldsource=additionalreports, + fieldtarget=listb] + \step[fieldsource=ecli, + fieldtarget=verba] + }% + \map[overwrite=false]{ + \pertype{legal} + \step[fieldsource=reporter, + fieldtarget=journaltitle] + } + \map[overwrite=true]{ + \pertype{legal} + \step[fieldsource=parties, + fieldtarget=institution] + \step[fieldsource=execution, + fieldtarget=lista] + } +% \end{macrocode} +% +% This is how \textsf{oscola} removes dots from entries. +% +% \begin{macrocode} + \map[overwrite=true]{ + \pertype{jurisdiction} + \pertype{legislation} + \pertype{legal} + \step[fieldsource=title, + match=\regexp{(\d)\.(\d)}, + replace=\regexp{$1.$2}] + \step[fieldsource=title, + match=\regexp{(\D)\.(\d)}, + replace=\regexp{$1 $2}] + \step[fieldsource=title, + match=\regexp{\.(\D)}, + replace=\regexp{$1}] + \step [fieldsource=title, + match=\regexp{(\D)\.}, + replace=\regexp{$1}] + \step[fieldsource=shorttitle, + match=\regexp{(\d)\.(\d)}, + replace=\regexp{$1.$2}] + \step[fieldsource=shorttitle, + match=\regexp{(\D)\.(\d)}, + replace=\regexp{$1 $2}] + \step[fieldsource=shorttitle, + match=\regexp{\.(\D)}, + replace=\regexp{$1}] + \step [fieldsource=shorttitle, + match=\regexp{(\D)\.}, + replace=\regexp{$1}] + \step[fieldsource=userc, + match=\regexp{(\d)\.(\d)}, + replace=\regexp{$1.$2}] + \step[fieldsource=userc, + match=\regexp{(\D)\.(\d)}, + replace=\regexp{$1 $2}] + \step[fieldsource=userc, + match=\regexp{\.(\D)}, + replace=\regexp{$1}] + \step [fieldsource=userc, + match=\regexp{(\D)\.}, + replace=\regexp{$1}] + \step[fieldsource=journaltitle, + match=\regexp{(\d)\.(\d)}, + replace=\regexp{$1.$2}] + \step[fieldsource=journaltitle, + match=\regexp{(\D)\.(\d)}, + replace=\regexp{$1 $2}] + \step[fieldsource=journaltitle, + match=\regexp{\.(\D)}, + replace=\regexp{$1}] + \step [fieldsource=journaltitle, + match=\regexp{(\D)\.}, + replace=\regexp{$1}] + \step[fieldsource=institution, + match=\regexp{(\d)\.(\d)}, + replace=\regexp{$1.$2}] + \step[fieldsource=institution, + match=\regexp{(\D)\.(\d)}, + replace=\regexp{$1 $2}] + \step[fieldsource=institution, + match=\regexp{\.(\D)}, + replace=\regexp{$1}] + \step[fieldsource=institution, + match=\regexp{(\D)\.}, + replace=\regexp{$1}] + \step[fieldsource=publisher, + match=\regexp{(\d)\.(\d)}, + replace=\regexp{$1.$2}] + \step[fieldsource=publisher, + match=\regexp{(\D)\.(\d)}, + replace=\regexp{$1 $2}] + \step[fieldsource=publisher, + match=\regexp{\.(\D)}, + replace=\regexp{$1}] + \step [fieldsource=publisher, + match=\regexp{(\D)\.}, + replace=\regexp{$1}] + \step[fieldsource=location, + match=\regexp{(\d)\.(\d)}, + replace=\regexp{$1.$2}] + \step[fieldsource=location, + match=\regexp{(\D)\.(\d)}, + replace=\regexp{$1 $2}] + \step[fieldsource=location, + match=\regexp{\.(\D)}, + replace=\regexp{$1}] + \step [fieldsource=location, + match=\regexp{(\D)\.}, + replace=\regexp{$1}] + \step[fieldsource=series, + match=\regexp{(\d)\.(\d)}, + replace=\regexp{$1.$2}] + \step[fieldsource=series, + match=\regexp{(\D)\.(\d)}, + replace=\regexp{$1 $2}] + \step[fieldsource=series, + match=\regexp{\.(\D)}, + replace=\regexp{$1}] + \step [fieldsource=series, + match=\regexp{(\D)\.}, + replace=\regexp{$1}] + \step[fieldsource=indextitle, + match=\regexp{(\d)\.(\d)}, + replace=\regexp{$1.$2}] + \step[fieldsource=indextitle, + match=\regexp{(\D)\.(\d)}, + replace=\regexp{$1 $2}] + \step[fieldsource=indextitle, + match=\regexp{\.(\D)}, + replace=\regexp{$1}] + \step [fieldsource=indextitle, + match=\regexp{(\D)\.}, + replace=\regexp{$1}] + } + }% +} +% \end{macrocode} +% +% \subsection{Sorting schemes} +% +% We adjust the sort order to take into account some other fields that might +% end up at the front (library, collection, series). +% +% \begin{macrocode} +\DeclareSortingScheme{nty}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{author} + \field{editor} + \field{translator} + \field{sorttitle} + \field{title} + \field{library} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field{volume} + \literal{0} + } + \sort{ + \field{location} + } + \sort{ + \field{collection} + \field{series} + } +} + +\DeclareSortingScheme{nyt}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{author} + \field{editor} + \field{translator} + \field{sorttitle} + \field{title} + \field{library} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{volume} + \literal{0} + } + \sort{ + \field{location} + } + \sort{ + \field{collection} + \field{series} + } +} +% \end{macrocode} +% +% The following entry types never put editors first. +% +% \begin{macrocode} +\ExecuteBibliographyOptions + [proceedings,report,audio,music,movie,video,manuscript,unpublished,review]% + {useeditor=false} +% \end{macrocode} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</o> +%<*n> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \section{Notes style: oxnotes.bbx} +% +% \setcounter{FancyVerbLine}{19} +% +% \subsection{Preliminaries} +% +% First we load the common \textsf{oxref} features. +% +% \begin{macrocode} +\RequireBibliographyStyle{oxref} +% \end{macrocode} +% +% We apply our special name format to names likely to appear at the start of +% an entry. +% +% \begin{macrocode} +\DeclareNameAlias{author}{bib-family-given/cite-given-family} +\DeclareNameAlias[related:reviewof]{author}{given-family} +\DeclareNameAlias{editor}{bib-family-given/cite-given-family} +\DeclareNameAlias[related:reviewof]{editor}{given-family} +% \end{macrocode} +% +% We ensure the printing of the |anon| localization string matches. +% +% \begin{macrocode} +\xpatchbibmacro{author}{% + \iftoggle{blx@ox@abbranon}{\bibcpsstring{anon}}{\bibcplstring{anon}}% +}{% + \iftoggle{blx@ox@abbranon}{% + \iftoggle{blx@ox@scnames}{\bibcpsstring[\textsc]{anon}}{\bibcpsstring{anon}}% + }{% + \iftoggle{blx@ox@scnames}{\bibcplstring[\textsc]{anon}}{\bibcplstring{anon}}% + }% +}{}{} +% \end{macrocode} +% +% \subsection{Page ranges in citations} +% +% If specifying a page within a range in the course of a citation note, +% Oxford style is to format that as \enquote{\emph{range} at +% \emph{page}}; if no page range is specified, the page is printed as +% normal. +% +% \begin{macrocode} +\renewbibmacro*{postnote}{% + \iffieldundef{postnote}{}{% + \iffieldundef{pages}{% + \setunit{\postnotedelim}% + \printfield{postnote}% + }{% + \printtext{\addspace\bibstring{thiscite}\space}% + \printfield{postnote}}}} +% \end{macrocode} +% +% \subsection{Source maps} +% +% \begin{macrocode} +\DeclareStyleSourcemap{% + \maps[datatype=bibtex]{% +% \end{macrocode} +% +% \subsubsection{Sort order} +% +% For entry types that print the |maintitle| and |volume| before the |title|, +% we need to make sure this is reflected in the sort order. +% +% \begin{macrocode} + \map{ + \pertype{mvbook} + \pertype{mvcollection} + \pertype{mvreference} + \pertype{proceedings} + \pertype{mvproceedings} + \pertype{report} + \step[fieldsource=maintitle]% + \step[fieldset=sorttitle, origfieldval]% + \step[fieldsource=volume]% + \step[fieldset=sorttitle, append, origfieldval]% + \step[fieldsource=title]% + \step[fieldset=sorttitle, append, origfieldval]% + }% + }% +} +% \end{macrocode} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</n> +%<*y> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \section{Author–year style: oxyear.bbx} +% +% \setcounter{FancyVerbLine}{19} +% +% \subsection{Preliminaries} +% +% First we load the common \textsf{oxref} features. +% +% \begin{macrocode} +\RequireBibliographyStyle{oxref} +% \end{macrocode} +% +% Here we set some defaults different to the standard ones. The author +% can still override them. +% +% \begin{macrocode} +\ExecuteBibliographyOptions{uniquename=init,giveninits,labeldateparts,sorting=nyt,pagetracker,maxcitenames=2} +% \end{macrocode} +% +% \subsection{Date merging option} +% +% We provide the |mergedate| option from the |authoryear| style. The OGS and +% NHR consistently use a variant that is between basic and compact, in that the +% year is always moved but the month and day are never moved; this is +% implemented as the |year| value. +% +% \begin{macrocode} +\DeclareBibliographyOption{mergedate}[true]{% + \ifcsdef{bbx@opt@mergedate@#1} + {\csuse{bbx@opt@mergedate@#1}} + {\PackageError{biblatex} + {Invalid option 'mergedate=#1'} + {Valid values are 'maximum', 'compact', 'basic', 'minimum',\MessageBreak + 'year', 'true' (=year), and 'false'.}}} +% \end{macrocode} +% +% The various values affect the definition of the following macro, for +% which we coin the |datelabel| field format. +% +% \begin{macrocode} +\providebibmacro*{date+extrayear}{} +\DeclareFieldFormat{datelabel}{\mkbibparens{#1}} +% \end{macrocode} +% +% We provide a convenience macro for printing date ranges as the date label. +% +% \begin{macrocode} +\newbibmacro*{labelyearrange}{% + \printfield{labelyear}% + \printfield{extrayear}% + \iffieldundef{labelendyear}{}{% + \iffieldsequal{labelyear}{labelendyear}{}{% + \iffieldequalstr{labelendyear}{}{% + \mbox{\bibdaterangesep}% + }{% + \bibdaterangesep + \iffieldundef{extrayear}{% + \blx@ox@compyear + {\thefield{labelyear}}% + {\thefield{labelendyear}}% + }{% + \printfield{labelendyear}}}}}} +% \end{macrocode} +% +% Here we provide the various possible definitions. The |authoryear| +% implementation does it by clearing, changing or restoring the normal +% definitions of the |date| and |issue+date| macros. This is not so great for +% us as our versions of those macros are quite complex (too much to keep +% repeating). There are additional complications that arise from us using +% |origdate| in preference to |date| for the label year, and from our option +% that requires us to print some dates without years. Conceptually it is more +% straightforward to clear the data fields instead. +% +% \begin{itemize} +% \item |true| is the same as |year| (see below). +% \end{itemize} +% +% \begin{macrocode} +\def\bbx@opt@mergedate@true{\bbx@opt@mergedate@year} +% \end{macrocode} +% +% \begin{itemize} +% \item |maximum| merges the |issue| and the whole |date| with the date label. +% Therefore, we clear year, month, and day from the date used for the label, +% as well as the |issue| field. +% \end{itemize} +% +% \begin{macrocode} +\def\bbx@opt@mergedate@maximum{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{labelyear}{}{% + \printtext[datelabel]{% + \printfield{issue}% + \setunit*{\addspace}% + \ifboolexpr{% + not test {\iffieldundef{\thefield{labeldatesource}year}} + and + test {\iffieldsequal{\thefield{labeldatesource}year}{labelyear}} + }{% + \printlabeldateextra + }{% + \printfield{labelyear}% + \printfield{extrayear}}}% + \iffieldundef{\thefield{labeldatesource}year}{% + \iffieldundef{\thefield{labeldatesource}}{}{% + \iffieldequalstr{labeldatesource}{pubstate}{}{% + \clearfield{\thefield{labeldatesource}}}}% + }{% + \clearfield{\thefield{labeldatesource}year}% + \clearfield{end\thefield{labeldatesource}year}% + \clearfield{\thefield{labeldatesource}month}% + \clearfield{end\thefield{labeldatesource}month}% + \clearfield{\thefield{labeldatesource}day}% + \clearfield{end\thefield{labeldatesource}day}% + }% + \clearfield{issue}}}}% +% \end{macrocode} +% +% \begin{itemize} +% \item |compact| merges the whole |date| (but not |issue|) with date label. +% Therefore, we clear year, month, and day from the date used for the label, +% but leave the |issue| field alone. +% \end{itemize} +% +% \begin{macrocode} +\def\bbx@opt@mergedate@compact{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{labelyear}{}{% + \printtext[datelabel]{% + \ifboolexpr{% + not test {\iffieldundef{\thefield{labeldatesource}year}} + and + test {\iffieldsequal{\thefield{labeldatesource}year}{labelyear}} + }{% + \printlabeldateextra + }{% + \printfield{labelyear}% + \printfield{extrayear}}}% + \iffieldundef{\thefield{labeldatesource}year}{% + \iffieldundef{\thefield{labeldatesource}}{}{% + \iffieldequalstr{labeldatesource}{pubstate}{}{% + \clearfield{\thefield{labeldatesource}}}}% + }{% + \clearfield{\thefield{labeldatesource}year}% + \clearfield{end\thefield{labeldatesource}year}% + \clearfield{\thefield{labeldatesource}month}% + \clearfield{end\thefield{labeldatesource}month}% + \clearfield{\thefield{labeldatesource}day}% + \clearfield{end\thefield{labeldatesource}day}% + }}}} +% \end{macrocode} +% +% \begin{itemize} +% \item |year| always merges the year, and only the year, with the label date. +% Other date and time componenents are displayed later in the reference. +% Therefore we clear the year from the date used for the label, but leave +% the month and day alone. +% \end{itemize} +% +% \begin{macrocode} +\def\bbx@opt@mergedate@year{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{labelyear}{}{% + \printtext[datelabel]{% + \usebibmacro{labelyearrange}}% + \iffieldundef{\thefield{labeldatesource}year}{% + \iffieldundef{\thefield{labeldatesource}}{}{% + \iffieldequalstr{labeldatesource}{pubstate}{}{% + \clearfield{\thefield{labeldatesource}}}}% + }{% + \clearfield{\thefield{labeldatesource}year}% + \clearfield{end\thefield{labeldatesource}year}% + }}}} +% \end{macrocode} +% +% \begin{itemize} +% \item |basic| will merge a year-only date with the date label, but will +% otherwise display the label year at the head of the reference and the full +% date later. Therefore we clear the year if and only if there is no month +% component \emph{and} (if this is the regular |date|) no |issue|. +% \end{itemize} +% +% \begin{macrocode} +\def\bbx@opt@mergedate@basic{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{labelyear}{}{% + \printtext[datelabel]{% + \usebibmacro{labelyearrange}}% + \iffieldundef{\thefield{labeldatesource}year}{% + \iffieldundef{\thefield{labeldatesource}}{}{% + \iffieldequalstr{labeldatesource}{pubstate}{}{% + \clearfield{\thefield{labeldatesource}}}}% + }{% + \ifboolexpr{ + test {\iffieldundef{\thefield{labeldatesource}month}} + and ( + test {\iffieldundef{issue}} + or + not test {\iffieldequalstr{labeldatesource}{}} + )}{% + \clearfield{\thefield{labeldatesource}year}% + \clearfield{end\thefield{labeldatesource}year}% + }{}}}}}% +% \end{macrocode} +% +% \begin{itemize} +% \item |minimum| will only merge the |date| with the label date if the two +% are identical, that is, a bare year with no month or disambiguating suffix. +% Therefore we clear the year if and only if there is no month component, no +% |extrayear|, \emph{and} (if this is the regular |date|) no |issue|. +% \end{itemize} +% +% \begin{macrocode} +\def\bbx@opt@mergedate@minimum{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{labelyear}{}{% + \printtext[datelabel]{% + \usebibmacro{labelyearrange}}% + \iffieldundef{\thefield{labeldatesource}year}{% + \iffieldundef{\thefield{labeldatesource}}{}{% + \iffieldequalstr{labeldatesource}{pubstate}{}{% + \clearfield{\thefield{labeldatesource}}}}% + }{% + \ifboolexpr{ + test {\iffieldundef{\thefield{labeldatesource}month}} + and + test {\iffieldundef{extrayear}} + and ( + test {\iffieldundef{issue}} + or + not test {\iffieldequalstr{labeldatesource}{}} + )}{% + \clearfield{\thefield{labeldatesource}year}% + \clearfield{end\thefield{labeldatesource}year}% + }{}}}}}% +% \end{macrocode} +% +% \begin{itemize} +% \item |false| suppresses any merging. We only clear the label date source +% if it is a non-date field other than |pubstate|. +% \end{itemize} +% +% \begin{macrocode} +\def\bbx@opt@mergedate@false{% + \renewbibmacro*{date+extrayear}{% + \iffieldundef{labelyear}{}{% + \printtext[datelabel]{% + \usebibmacro{labelyearrange}}}}% + \iffieldundef{\thefield{labeldatesource}year}{% + \iffieldundef{\thefield{labeldatesource}}{}{% + \iffieldequalstr{labeldatesource}{pubstate}{}{% + \clearfield{\thefield{labeldatesource}}}}}{}} +% \end{macrocode} +% +% We set the default to be |true|/|year|. +% +% \begin{macrocode} +\ExecuteBibliographyOptions{mergedate} +% \end{macrocode} +% +% The \cs{clearfield} commands in the |year| option code would suppress any +% further date information being printed, but we need to allow months and days +% to be printed in the absence of a year. This means adapting the range +% calculation commands defined in |biblatex.sty| for use by +% \cs{printdate} and friends. +% +% \begin{macrocode} +\DeclareRobustCommand*{\mkdaterangefull}[2]{% + \blx@metadateinfo{#2}% + \iffieldundef{#2year}{% + \iffieldundef{#2month}{}{% + \datecircaprint + \printtext[#2date]{% + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{}{#2month}{#2day}% + \blx@printtime{#2}{}% + }{% + \csuse{mkbibseasondate#1}{}{#2season}}% + \dateuncertainprint + \iffieldundef{#2endmonth}{}{% + \iffieldequalstr{#2endmonth}{}{% + \mbox{\bibdaterangesep}% + }{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{}{#2endmonth}{#2endday}% + \blx@printtime{#2}{end}% + }{% + \csuse{mkbibseasondate#1}{}{#2endseason}}% + \enddateuncertainprint}}}}% + }{% + \datecircaprint + \printtext[#2date]{% + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{#2year}{#2month}{#2day}% + \blx@printtime{#2}{}% + }{% + \csuse{mkbibseasondate#1}{#2year}{#2season}}% + \dateuncertainprint + \dateeraprint{#2year}% + \iffieldundef{#2endyear}{}{% + \iffieldequalstr{#2endyear}{}{% + \mbox{\bibdaterangesep}% + }{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}% + \blx@printtime{#2}{end}% + }{% + \csuse{mkbibseasondate#1}{#2endyear}{#2endseason}}% + \enddateuncertainprint + \dateeraprint{#2endyear}}}}}} + +% \end{macrocode} +% +% There is a potential problem for the code below, in that if the year +% and endyear are missing, it cannot tell if they are the same, so if +% the months are the same but the years are different, the range would +% be erroneously compressed. However, the only reason the year should +% be missing is that it is in the label, so we test |labelyear| instead. +% +% \begin{macrocode} +\DeclareRobustCommand*{\mkdaterangetrunc}[2]{% + \blx@metadateinfo{#2}% + \iffieldundef{#2year}{% + \iffieldundef{#2month}{}{% + \datecircaprint + \printtext[#2date]{% + \iffieldundef{#2season}{% + \ifboolexpr{ + test {\iffieldsequal{labelyear}{labelendyear}} + and + test {\iffieldsequal{#2month}{#2endmonth}} + }{% + \csuse{mkbibdate#1}{}{}{#2day}% + }{% + \csuse{mkbibdate#1}{}{#2month}{#2day}}% + }{% + \csuse{mkbibseasondate#1}{}{#2season}}% + \dateuncertainprint + \iffieldundef{#2endmonth}{}{% + \iffieldequalstr{#2endmonth}{}{% + \mbox{\bibdaterangesep}% + }{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{}{#2endmonth}{#2endday}% + }{% + \csuse{mkbibseasondate#1}{}{#2endseason}}% + \enddateuncertainprint}}}}% + }{% + \datecircaprint + \printtext[#2date]{% + \iffieldundef{#2season}{% + \iffieldsequal{#2year}{#2endyear}{% + \iffieldsequal{#2month}{#2endmonth}{% + \csuse{mkbibdate#1}{}{}{#2day}% + }{% + \csuse{mkbibdate#1}{}{#2month}{#2day}}% + }{% + \csuse{mkbibdate#1}{#2year}{#2month}{#2day}% + \iffieldsequal{#2dateera}{#2enddateera}{}{% + \dateeraprint{#2year}}}% + }{% + \iffieldsequal{#2year}{#2endyear}{% + \csuse{mkbibseasondate#1}{}{#2season}% + }{% + \csuse{mkbibseasondate#1}{#2year}{#2season}% + \iffieldsequal{#2dateera}{#2enddateera}{}{% + \dateeraprint{#2year}}}}% + \dateuncertainprint + \iffieldundef{#2endyear}{}{% + \iffieldequalstr{#2endyear}{}{% + \mbox{\bibdaterangesep}% + }{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \iffieldundef{#2endmonth}{% + \blx@ox@compyear{\thefield{#2year}}{\thefield{#2endyear}}% + }{% + \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}% + }{% + \csuse{mkbibseasondate#1}{#2endyear}{#2endseason}}% + \enddateuncertainprint + \dateeraprint{#2endyear}}}}}} + +% \end{macrocode} +% +% The |extra| commands, which print disambiguating labels, should only +% print those labels if the year is present, so the first conditional +% block is the same as for the non-|extra| commands above. +% +% \begin{macrocode} +\DeclareRobustCommand*{\mkdaterangefullextra}[2]{% + \blx@metadateinfo{#2}% + \iffieldundef{#2year}{% + \iffieldundef{#2month}{}{% + \datecircaprint + \printtext[#2date]{% + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{}{#2month}{#2day}% + \blx@printtime{#2}{}% + }{% + \csuse{mkbibseasondate#1}{}{#2season}}% + \dateuncertainprint + \iffieldundef{#2endmonth}{}{% + \iffieldequalstr{#2endmonth}{}{% + \mbox{\bibdaterangesep}% + }{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{}{#2endmonth}{#2endday}% + \blx@printtime{#2}{end}% + }{% + \csuse{mkbibseasondate#1}{}{#2endseason}}% + \enddateuncertainprint}}}}% + }{% + \datecircaprint + \printtext[#2date]{% + \printtext{% + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{#2year}{#2month}{#2day}% + \blx@printtime{#2}{}% + }{% + \csuse{mkbibseasondate#1}{#2year}{#2season}}% + \dateuncertainprint + \dateeraprint{#2year}% + \iffieldundef{#2endyear}{% + \printfield{extrayear}% + }{% + \iffieldequalstr{#2endyear}{}{% + \printfield{extrayear}% + \printtext{\mbox{\bibdaterangesep}}% + }{% + \printtext{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}% + \blx@printtime{#2}{end}% + }{% + \csuse{mkbibseasondate#1}{#2endyear}{#2endseason}}}% + \printfield{extrayear}% + \enddateuncertainprint + \dateeraprint{#2endyear}}}}}}} + +\DeclareRobustCommand*{\mkdaterangetruncextra}[2]{% + \blx@metadateinfo{#2}% + \iffieldundef{#2year}{% + \iffieldundef{#2month}{}{% + \datecircaprint + \printtext[#2date]{% + \iffieldundef{#2season}{% + \iffieldsequal{#2month}{#2endmonth}{% + \csuse{mkbibdate#1}{}{}{#2day}% + }{% + \csuse{mkbibdate#1}{}{#2month}{#2day}}% + }{% + \csuse{mkbibseasondate#1}{}{#2season}}% + \dateuncertainprint + \iffieldundef{#2endmonth}{}{% + \iffieldequalstr{#2endmonth}{}{% + \mbox{\bibdaterangesep}% + }{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{}{#2endmonth}{#2endday}% + }{% + \csuse{mkbibseasondate#1}{}{#2endseason}}% + \enddateuncertainprint}}}}% + }{% + \datecircaprint + \printtext[#2date]{% + \iffieldundef{#2season}{% + \iffieldsequal{#2year}{#2endyear}{% + \iffieldsequal{#2month}{#2endmonth}{% + \csuse{mkbibdate#1}{}{}{#2day}% + }{% + \csuse{mkbibdate#1}{}{#2month}{#2day}}% + }{% + \csuse{mkbibdate#1}{#2year}{#2month}{#2day}% + \iffieldsequal{#2dateera}{#2enddateera}{}{% + \dateeraprint{#2year}}}% + }{% + \iffieldsequal{#2year}{#2endyear}{% + \csuse{mkbibseasondate#1}{}{#2season}% + }{% + \csuse{mkbibseasondate#1}{#2year}{#2season} + \iffieldsequal{#2dateera}{#2enddateera}{}{% + \dateeraprint{#2year}}}}% + \dateuncertainprint + \iffieldundef{#2endyear}{% + \printfield{extrayear}% + }{% + \iffieldequalstr{#2endyear}{}{% + \printfield{extrayear}% + \printtext{\mbox{\bibdaterangesep}}% + }{% + \printtext{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \iffieldundef{#2endmonth}{% + \blx@ox@compyear{\thefield{#2year}}{\thefield{#2endyear}}% + }{% + \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}% + }{% + \csuse{mkbibseasondate#1}{#2endyear}{#2endseason}}}% + \printfield{extrayear}% + \enddateuncertainprint + \dateeraprint{#2endyear}}}}}} + +% \end{macrocode} +% +% The |labelyear| falls back to |pubstate| if provided. +% +% \begin{macrocode} +\DeclareLabeldate{% + \field{origdate} + \field{date} + \field{year} + \field{eventdate} + \field{pubstate} + \literal{nodate} +} +% \end{macrocode} +% +% The |extrayear| string should be printed bare. +% +% \begin{macrocode} +\DeclareFieldFormat{extrayear}{% + \iffieldundef{\thefield{labeldatesource}}{% + \iffieldnums{\thefield{labeldatesource}year}{}{~}% + }{% + \iffieldnums{\thefield{labeldatesource}}{}{~}% + }% + \mkbibemph{\mknumalph{#1}}}% + +% \end{macrocode} +% +% \subsection{Bibliography formatting} +% +% We let \pkg{biblatex} measure shorthands so we can use +% \cs{shorthandwidth} later. +% +% \begin{macrocode} +\DeclareFieldFormat{shorthandwidth}{#1} +% \end{macrocode} +% +% We enhance the |family-given| name format to handle the \texttt{pseudo} +% and \texttt{inferred} annotations. +% +% \begin{macrocode} +\xpretonameformat{family-given}{% + \iffieldannotation{inferred}{\ifnumequal{\value{listcount}}{1}{\bibopenbracket}{}}{}% + \ifitemannotation{inferred}{\bibopenbracket}{}% +}{}{} +\xpatchnameformat{family-given}{% + \usebibmacro{name:andothers}% +}{% + \ifitemannotation{pseudo}{% + \addspace\printtext[parens]{\bibsstring{pseudo}}% + }{}% + \ifitemannotation{inferred}{\bibclosebracket}{}% + \usebibmacro{name:andothers}% + \iffieldannotation{inferred}{% + \ifboolexpr{ + test {\ifnumequal{\value{listcount}}{\value{maxnames}}} + or + test {\ifnumequal{\value{listcount}}{\value{listtotal}}} + or ( + test {\ifnumequal{\value{listcount}}{\value{minnames}}} + and + test {\ifnumgreater{\value{listtotal}}{\value{maxnames}}} ) + }{\bibclosebracket}{}% + }{}% +}{}{} +\DeclareNameAlias{shortauthor}{family-given} +\DeclareNameAlias{shorteditor}{family-given} +% \end{macrocode} +% +% Names at the head of the reference are family-given, but names elsewhere +% are given-family. +% +% \begin{macrocode} +\DeclareNameAlias{sortname}{family-given} +\DeclareNameAlias{author}{family-given} +\DeclareNameAlias{editor}{family-given} +\DeclareNameAlias{translator}{family-given} +% \end{macrocode} +% +% The bibliography formatting is just like |authoryear| except we do not +% eliminate item separation by default. +% +% \begin{macrocode} +\defbibenvironment{bibliography} + {\list + {} + {\setlength{\leftmargin}{\bibhang}% + \setlength{\itemindent}{-\leftmargin}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}} + {\endlist} + {\item} +% \end{macrocode} +% +% The shorthand formatting is just like |authoryear|. +% +% \begin{macrocode} +\defbibenvironment{shorthand} + {\list + {\printfield[shorthandwidth]{shorthand}} + {\setlength{\labelwidth}{\shorthandwidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}% + \renewcommand*{\makelabel}[1]{##1\hss}}} + {\endlist} + {\item} +% \end{macrocode} +% +% \subsection{Name and date formatting} +% +% We set up hashing just as in |authoryear|. +% +% \begin{macrocode} +\InitializeBibliographyStyle{\global\undef\bbx@lasthash} +% \end{macrocode} +% +% We ensure related entries do not interfere with the hashing. +% +% \begin{macrocode} +\xapptobibmacro{begrelated}{% + \booltrue{bbx@inset}}{}{} +\xapptobibmacro{endrelated}{% + \usebibmacro*{bbx:savehash}}{}{} +% \end{macrocode} +% +% We patch the |author| macro so that the date label information appears +% at the end (as in |authoryear|). +% +% \begin{macrocode} +\xpatchbibmacro{author}{% + \iffieldundef{authortype}% +}{% + \usebibmacro{date+extrayear}% + \setunit*{\addspace}% + \iffieldundef{authortype}% +}{}{}% +\xpatchbibmacro{author}{% + \global\undef\bbx@lasthash +}{% + \global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \setunit*{\addspace}% + \usebibmacro{date+extrayear}% +}{}{}% +% \end{macrocode} +% +% We patch it further so that, where an author name has a corresponding +% (different) short author name, the short name is given first and the long +% name given in parentheses. Note that this only affects cases where +% \code{authoraddon} has not been provided. +% +% \begin{macrocode} +\xpatchbibmacro{namepairs}{% + \printnames[by#1]% +}{% + \printnames[#1]% +}{}{} +\xpatchbibmacro{author+altauthor}{% + \printnames{author}% +}{% + \ifboolexpr{% + ( not test {\ifnameundef{shortauthor}} ) + and + test {\ifnumequal{\value{shortauthor}}{\value{author}}} + }{% + \usebibmacro{namepairs}{author}{shortauthor}% + }{% + \printnames{author}% + }% +}{}{}% +% \end{macrocode} +% +% We apply the same patches to |bbx:editor|, but also move the editor +% string to after the date label. +% +% \begin{macrocode} +\xpatchbibmacro{bbx:editor}{% + \usebibmacro{#1}% +}{% + \usebibmacro{date+extrayear}% + \setunit*{\addspace}% + \usebibmacro{#1}% +}{}{}% +\xpatchbibmacro{bbx:editor}{% + \global\undef\bbx@lasthash +}{% + \global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \setunit*{\addspace}% + \usebibmacro{date+extrayear}% +}{}{}% +\xpatchbibmacro{editor+alteditor}{% + \printnames[byeditor]% +}{% + \printnames[editor]% +}{}{} +\xpatchbibmacro{editor+alteditor}{% + \printnames{editor}% +}{% + \ifboolexpr{% + ( not test {\ifnameundef{shorteditor}} ) + and + test {\ifnumequal{\value{shorteditor}}{\value{editor}}} + }{% + \usebibmacro{namepairs}{editor}{shorteditor}% + }{% + \printnames{editor}% + }% +}{}{}% +% \end{macrocode} +% +% We apply the same patches to |bbx:translator| as we do for +% |bbx:editor|, except for the shortening one. +% +% \begin{macrocode} +\xpatchbibmacro{bbx:translator}{% + \global\undef\bbx@lasthash +}{% + \global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \setunit*{\addspace}% + \usebibmacro{date+extrayear}% +}{}{}% +\xpatchbibmacro{bbx:translator}{% + \usebibmacro{#1}% +}{% + \usebibmacro{date+extrayear}% + \setunit*{\addspace}% + \usebibmacro{#1}% +}{}{}% +% \end{macrocode} +% +% The |labeltitle| macro differs from the one from |authoryear| in that +% it also includes the subtitle. We record the fact that we have cleared +% the title. +% +% \begin{macrocode} +\newtoggle{blx@ox@clearedtitle} +\newbibmacro*{labeltitle}{% + \iffieldundef{label}{% + \iffieldundef{shorttitle}{% + \ifboolexpr{ + test {\iffieldundef{title}} + and + test {\iffieldundef{subtitle}} + }{% + \printfield{library}% + \clearfield{library}% + }{% + \printtext[title]{% + \printfield[titlecase]{title}% + \setunit{\subtitlepunct}% + \printfield[titlecase]{subtitle}}% + \clearfield{title}% + \clearfield{subtitle}% + \toggletrue{blx@ox@clearedtitle}% + \setunit{\addspace}% + }% + }{% + \printtext[title]{\printfield[titlecase]{shorttitle}}% + }% + }{% + \printfield{label}% + }% +} +% \end{macrocode} +% +% If the labeltitle pulls the title from a maintitle+title macro, +% we flick a switch to make the driver use maintitle+volume instead. +% +% \begin{macrocode} +\xpretobibmacro{maintitle+title}{% + \iftoggle{blx@ox@clearedtitle}{% + \usebibmacro{maintitle+volume}% + \clearfield{maintitle}% + \clearfield{volume}% + }{}% +}{}{} +\DeclareFieldFormat[mvbook,mvcollection,mvreference,proceedings,mvproceedings]{maintitle+volume}{#1} +% \end{macrocode} +% +% The date of |online| entries is printed in parentheses; as the year +% is moved after the author, this can lead to empty parentheses unless +% a month is printed, so we change the test accordingly. +% +% \begin{macrocode} +\xpatchbibdriver{online}{% + \iffieldundef{year}% +}{% + \iffieldundef{month}% +}{}{} +% \end{macrocode} +% +% We ensure the label title in citations matches the formatting used for +% the equivalent information in the bibliography entry. +% +% \begin{macrocode} +\DeclareFieldFormat[online,image]{citetitle}{\mkbibquote{#1\isdot}} +\DeclareFieldFormat[legislation,legal]{citetitle}{#1} +\DeclareFieldFormat[manuscript,unpublished]{citetitle}{% + \def\currentfield{title}% + \ifboolexpr{ + test {\iffieldannotation{descriptor}} + or ( + test {\iffieldundef{shorttitle}} + and + test {\iffieldundef{title}} + ) + }{#1}{\mkbibquote{#1\isdot}}% + \undef\currentfield} + +% \end{macrocode} +% +% \subsection{Journal division formatting} +% +% \textsf{Oxyear} uses a colon to demarcate page numbers in journal articles. +% +% \begin{macrocode} +\renewcommand*{\bibpagespunct}{% + \ifboolexpr{ + test {\ifentrytype{article}} + or + test {\ifentrytype{suppperiodical}} + or + test {\ifentrytype{review}} + }{% + \addcolon\space + }{% + \addcomma\space + }% +} +% \end{macrocode} +% +% \subsection{Manuscripts} +% +% The dates for manuscripts should not really be in parentheses, but it +% looks really odd to have them bare, when compared to other entries. +% As a compromise, we use square brackets. +% +% \begin{macrocode} +\DeclareFieldFormat[manuscript]{datelabel}{\mkbibbrackets{#1}} +\DeclareFieldFormat[unpublished]{datelabel}{% + \iftoggle{blx@ox@ms}{\mkbibbrackets{#1}}{\mkbibparens{#1}}} +\renewbibmacro*{manuscript:date}{\usebibmacro{date}} +% \end{macrocode} +% +% We include the |library| field as a fallback title. +% +% \begin{macrocode} +\DeclareLabeltitle{% + \field{shorttitle} + \field{title} + \field{maintitle} + \field{library} +} + +% \end{macrocode} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</y> +%</bbx> +%<*cbx> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \chapter{Citation styles} +% +% \settocdepth{section} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%<*n> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \section{Notes style: oxnotes.cbx} +% +% \setcounter{FancyVerbLine}{19} +% +% The standard |verbose| style works without further adjustment. +% +% \begin{macrocode} +\RequireCitationStyle{verbose} +% \end{macrocode} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</n> +%<*y> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \section{Author–year style: oxyear.cbx} +% +% \setcounter{FancyVerbLine}{19} +% +% The standard |authoryear-comp| style is a close match for what we need. +% We patch it with our version of year range compression. +% +% \begin{macrocode} +\RequireCitationStyle{authoryear-comp} +\xpatchbibmacro{cite:labelyear+extrayear}{% + \printfield{labelendyear}% +}{% + \iffieldundef{extrayear}{% + \blx@ox@compyear + {\thefield{labelyear}}% + {\thefield{labelendyear}}% + }{% + \printfield{labelendyear}}% +}{}{} +% \end{macrocode} +% +% We insert anonymous author handling into |cite|. +% +% \begin{macrocode} +\xpatchbibmacro{cite}{% + \printnames{labelname}% +}{% + \ifboolexpr{ + test {\iffieldequalstr{labelnamesource}{author}} + and + togl {blx@ox@autoanon} + and + test {\iffieldequals{rawauthor}{\oxrefanon}} + }{% + \iftoggle{blx@ox@abbranon}{\bibcpsstring{anon}}{\bibcplstring{anon}}% + }{% + \printnames{labelname}% + }% +}{}{} +% \end{macrocode} +% +% The name and year are usually separated by a space, but if the date is +% replaced by a word (e.g. ‘forthcoming’, ‘n.d.’), they are separated by +% a comma. +% +% \begin{macrocode} +\renewcommand*{\nameyeardelim}{% + \iffieldundef{\thefield{labeldatesource}year}% + {\addcomma\space}% + {\addspace}} +\renewcommand*{\nonameyeardelim}{% + \iffieldundef{\thefield{labeldatesource}year}% + {\addcomma\space}% + {\addspace}} +% \end{macrocode} +% +% Compressed citations are delimited with a semicolon, just like +% non-compressed citations. +% +% \begin{macrocode} +\renewcommand*{\compcitedelim}{\addsemicolon\space} +% \end{macrocode} +% +% The page reference postnote is given after a colon. +% +% \begin{macrocode} +\renewcommand*{\postnotedelim}{\addcolon\space} +% \end{macrocode} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</y> +%</cbx> +%<*dbx> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \chapter{Data model adjustments} +% +% \section{oxnotes.dbx and oxyear.dbx} +% +% \setcounter{FancyVerbLine}{19} +% +% We provide an additional name part for handling titles. +% +% \begin{macrocode} +\DeclareDatamodelConstant[type=list]{nameparts}{prefix,family,suffix,given,title} +% \end{macrocode} +% +% The |datetype| and |origdatetype| fields are used for prefixing the date with +% a description. +% +% \begin{macrocode} +\DeclareDatamodelFields[type=field,datatype=literal]{datetype,origdatetype} +% \end{macrocode} +% +% The |authoraddon| and |editoraddon| fields are used for handling +% pseudonyms. The |serieseditor| field is used for the editor of a book series, +% as opposed to the editor of the particular cited work. +% +% \begin{macrocode} +\DeclareDatamodelFields[type=list,datatype=name]{authoraddon,editoraddon,serieseditor} +% \end{macrocode} +% +% The |jointauthor| and |jointauthortype| fields are used for internally for +% handling editors/translators who can be considered joint authors. +% +% \begin{macrocode} +\DeclareDatamodelFields[type=list,datatype=name]{jointauthor} +\DeclareDatamodelFields[type=field,datatype=literal]{jointauthortype} +% \end{macrocode} +% +% The |rawauthor| field is used internally for checking whether an +% the name given in the |author| field is a keyword meaning ‘anonymous’. +% +% \begin{macrocode} +\DeclareDatamodelFields[type=field,datatype=literal]{rawauthor} +\DeclareDatamodelEntryfields{datetype,origdatetype,authoraddon,editoraddon,% + serieseditor,jointauthor,jointauthortype,rawauthor} +% \end{macrocode} +% +% This data model is borrowed from \textsf{biblatex-manuscripts-philology}. +% +% \begin{macrocode} +\DeclareDatamodelEntrytypes{manuscript} +\DeclareDatamodelFields[type=field,datatype=literal]{catalog,dating,% + shortlibrary,columns, collection,shortcollection,usualtitle,shelfmark,% + sortshelfmark,support,columns,layer} +\DeclareDatamodelFields[type=list,datatype=name]{scribe,owner} +\DeclareDatamodelFields[type=list,datatype=literal]{origin} +\DeclareDatamodelEntryfields[manuscript]{catalog,dating,shortlibrary,% + shortcollection,columns,languages, collection,usualtitle,shelfmark,% + sortshelfmark,support,columns,origin,scribe,owner} +% \end{macrocode} +% +% This data model helps with legal citations. +% +% \begin{macrocode} +\DeclareDatamodelFields[type=field,datatype=date]{pardate} +\DeclareDatamodelEntryfields[jurisdiction]{pardate} +% \end{macrocode} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</dbx> +%<*lbx> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \chapter{Localization modules} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%<*en> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \section{English: english-oxref.lbx} +% +% \setcounter{FancyVerbLine}{19} +% +% Here we set some language-specific punctuation and date formatting. +% +% \begin{macrocode} +\InheritBibliographyExtras{english} +\DeclareBibliographyExtras{% + \def\finalandcomma{\addcomma}% + \protected\def\mkusbibordinal#1{% + \begingroup + \@tempcnta0#1\relax\number\@tempcnta + \@whilenum\@tempcnta>100\do{\advance\@tempcnta-100\relax}% + \ifnum\@tempcnta>20 + \@whilenum\@tempcnta>9\do{\advance\@tempcnta-10\relax}% + \fi + \ifcase\@tempcnta th\or st\or d\or d\else th\fi + \endgroup}% +} +% \end{macrocode} +% +% We load the standard set of localization strings, then add our +% adjustments. +% +% \begin{macrocode} +\DeclareBibliographyStrings{% + inherit = {english}, +% \end{macrocode} +% +% These are new strings defined by \textsf{oxref}: +% +% \begin{itemize} +% \item Roles expressed as functions +% \end{itemize} +% +% \begin{macrocode} + director = {{director}{dir\adddot}}, + performer = {{}{}}, + reader = {{reader}{reader}}, + conductor = {{conductor}{cond\adddot}}, +% \end{macrocode} +% +% \begin{itemize} +% \item Roles expressed as actions +% \end{itemize} +% +% \begin{macrocode} + byperformer = {{}{}}, + bydirector = {{directed by}{dir\adddot}}, + byreader = {{read by}{read by}}, + byconductor = {{conducted by}{cond\adddot}}, + byserieseditor = {{edited by}{ed\adddot}}, +% \end{macrocode} +% +% \begin{itemize} +% \item Publication details +% \end{itemize} +% +% \begin{macrocode} + facsimile = {{facsimile edition}{facs\adddotspace edn\adddot}}, + revised = {{revised edition}{rev\adddotspace edn\adddot}}, + revisedenlarged = {{revised and enlarged edition}{rev\adddotspace ane enl\addotspace edn\adddot}}, + revisedreprint = {{revised reprint}{rev\adddotspace repr\adddot}}, + suppto = {{Supplement to}{Supplement to}}, + equals = {{=}{=}}, + original = {{original}{orig\adddot}}, +% \end{macrocode} +% +% \begin{itemize} +% \item Publication state +% \end{itemize} +% +% \begin{macrocode} + inpressin = {{to be published in}{to be published in}}, +% \end{macrocode} +% +% \begin{itemize} +% \item Pagination +% \end{itemize} +% +% \begin{macrocode} + book = {{book}{bk\adddot}}, + books = {{books}{bks\adddot}}, + canto = {{canto}{canto}}, + cantos = {{cantos}{cantos}}, + stanza = {{stanza}{stanza}}, + stanzas = {{stanzas}{stanzas}}, + act = {{Act}{Act}}, + acts = {{Acts}{Acts}}, + scene = {{Scene}{Scene}}, + scenes = {{Scenes}{Scenes}}, + folio = {{folio}{fo\adddot}}, + folios = {{folios}{fos\adddot}}, + article = {{article}{art\adddot}}, + articles = {{articles}{arts\adddot}}, + clause = {{clause}{cl\adddot}}, + clauses = {{clauses}{cls\adddot}}, + regulation = {{regulation}{reg\adddot}}, + regulations = {{regulations}{regs\adddot}}, + rule = {{rule}{r\adddot}}, + rules = {{rules}{rr\adddot}}, +% \end{macrocode} +% +% \begin{itemize} +% \item Types +% \end{itemize} +% +% \begin{macrocode} + facebook = {{Facebook post}{Facebook post}}, + tweet = {{Twitter post}{Twitter post}}, + podcast = {{podcast}{podcast}}, + clip = {{video}{video}}, + webcast = {{webcast}{webcast}}, + poster = {{poster}{poster}}, +% \end{macrocode} +% +% \begin{itemize} +% \item Miscellaneous +% \end{itemize} +% +% \begin{macrocode} + nolocation = {{no place}{n\adddot p\adddot}}, + recorded = {{recorded}{recorded}}, + uploaded = {{uploaded}{uploaded}}, +% \end{macrocode} +% +% \begin{itemize} +% \item Labels +% \end{itemize} +% +% \begin{macrocode} + anon = {{Anonymous}{Anon\adddot}}, + pseudo = {{Pseudo-}{Ps\adddot-}}, + urldown = {{downloaded}{downloaded}}, +% \end{macrocode} +% +% \begin{itemize} +% \item These are borrowed from other styles. +% \end{itemize} +% +% \begin{macrocode} + 1column = {{one column}{1\addnbspace col\adddot}}, + 2column = {{two columns}{2\addnbspace col\adddot}}, + inflayer = {{inferior layer}{inf\adddotspace lay\adddot}}, + suplayer = {{superior layer}{sup\adddotspace lay\adddot}}, + paper = {{paper}{pap\adddot}}, + papyrus = {{papyrus}{papy\adddot}}, + pergament = {{pergament}{perg\adddot}}, + eucase = {{Case}{Case}}, + eujoinedcases = {{Joined Cases}{Joined Cases}}, + commissiondecision = {{Commission Decision}{Commission Decision}}, + application = {{Application}{App\adddot}}, + order = {{Order}{Ord\adddot}}, + bill = {{Bill}{Bill}}, + draft = {{draft}{draft}}, + opened = {{opened for signature}{opened for signature}}, + signed = {{signed}{signed}}, + adopted = {{adopted}{adopted}}, + inforce = {{entered into force}{entered into force}}, +% \end{macrocode} +% +% The rest of these strings are the standard ones, overridden to match the +% examples in the \emph{Oxford Guide to Style} and \emph{New Hart's Rules}. +% Many of these are guesses extrapolated from what is given. +% +% The roles expressed as functions do not need adjusting. The roles +% expressed as actions do not typically end in ‘by’ when abbreviated; +% the ‘with’ parts go first when abbreviated if there is more than one +% editorial role (at least, that is one way of interpreting the examples). +% +% \begin{macrocode} + byeditor = {{edited by}{ed\adddot}}, + bycompiler = {{compiled by}{comp\adddot}}, + byfounder = {{founded by}{found\adddot}}, + bycontinuator = {{continued by}{cont\adddot}}, + byredactor = {{redacted by}{red\adddot}}, + byreviser = {{revised by}{rev\adddot}}, + byreviewer = {{reviewed by}{rev\adddot}}, + bycollaborator = {{in collaboration with}{in collab\adddotspace with}}, + bytranslator = {{translated \lbx@lfromlang\ by}{trans\adddot\ \lbx@sfromlang}}, + bycommentator = {{commented by}{comm\adddot}}, + byannotator = {{annotated by}{annot\adddot}}, + byeditortr = {{edited and translated \lbx@lfromlang\ by}% + {ed\adddotspace and trans\adddot\ \lbx@sfromlang}}, + byeditorco = {{edited and commented by}% + {ed\adddotspace and comm\adddot}}, + byeditoran = {{edited and annotated by}% + {ed\adddotspace and annot\adddot}}, + byeditorin = {{edited, with an introduction, by}% + {ed.\adddotspace with introduction}}, + byeditorfo = {{edited, with a foreword, by}% + {ed.\adddotspace with foreword}}, + byeditoraf = {{edited, with an afterword, by}% + {ed.\adddotspace with afterword}}, + byeditortrco = {{edited, translated \lbx@lfromlang\finalandcomma\ and commented by}% + {ed.,\addabbrvspace trans\adddot\ \lbx@sfromlang\finalandcomma\ and comm\adddot}}, + byeditortran = {{edited, translated \lbx@lfromlang\finalandcomma\ and annotated by}% + {ed.,\addabbrvspace trans\adddot\ \lbx@sfromlang\finalandcomma\ and annot\adddot}}, + byeditortrin = {{edited and translated \lbx@lfromlang, with an introduction, by}% + {with introduction, ed\adddotspace and trans\adddot\ \lbx@sfromlang}}, + byeditortrfo = {{edited and translated \lbx@lfromlang, with a foreword, by}% + {with foreword, ed\adddotspace and trans\adddot\ \lbx@sfromlang}}, + byeditortraf = {{edited and translated \lbx@lfromlang, with an afterword, by}% + {with afterword, ed\adddotspace and trans\adddot\ \lbx@sfromlang}}, + byeditorcoin = {{edited and commented, with an introduction, by}% + {with introduction, ed\adddotspace and comm\adddot}}, + byeditorcofo = {{edited and commented, with a foreword, by}% + {with foreword, ed\adddotspace and comm\adddot}}, + byeditorcoaf = {{edited and commented, with an afterword, by}% + {with afterword, ed\adddotspace and comm\adddot}}, + byeditoranin = {{edited and annotated, with an introduction, by}% + {with introduction, ed\adddotspace and annot\adddot}}, + byeditoranfo = {{edited and annotated, with a foreword, by}% + {with foreword, ed\adddotspace and annot\adddot}}, + byeditoranaf = {{edited and annotated, with an afterword, by}% + {with afterword, ed\adddotspace and annot\adddot}}, + byeditortrcoin = {{edited, translated \lbx@lfromlang\finalandcomma\ and commented, with an introduction, by}% + {with introduction, ed.,\addabbrvspace trans\adddot\ \lbx@sfromlang\finalandcomma\ and comm\adddot}}, + byeditortrcofo = {{edited, translated \lbx@lfromlang\finalandcomma\ and commented, with a foreword, by}% + {with foreword, ed.,\addabbrvspace trans\adddot\ \lbx@sfromlang\finalandcomma\ and comm\adddot}}, + byeditortrcoaf = {{edited, translated \lbx@lfromlang\finalandcomma\ and commented, with an afterword, by}% + {with afterword, ed.,\addabbrvspace trans\adddot\ \lbx@sfromlang\finalandcomma\ and comm\adddot}}, + byeditortranin = {{edited, translated \lbx@lfromlang\finalandcomma\ and annotated, with an introduction, by}% + {with introduction, ed.,\addabbrvspace trans\adddot\ \lbx@sfromlang\finalandcomma\ and annot\adddot}}, + byeditortranfo = {{edited, translated \lbx@lfromlang\finalandcomma\ and annotated, with a foreword, by}% + {with foreword, ed.,\addabbrvspace trans\adddot\ \lbx@sfromlang\finalandcomma\ and annot\adddot}}, + byeditortranaf = {{edited, translated \lbx@lfromlang\finalandcomma\ and annotated, with an afterword, by}% + {with afterword, ed.,\addabbrvspace trans\adddot\ \lbx@sfromlang\finalandcomma\ and annot\adddot}}, + bytranslatorco = {{translated \lbx@lfromlang\ and commented by}% + {trans\adddot\ \lbx@sfromlang\ and comm\adddot}}, + bytranslatoran = {{translated \lbx@lfromlang\ and annotated by}% + {trans\adddot\ \lbx@sfromlang\ and annot\adddot}}, + bytranslatorin = {{translated \lbx@lfromlang, with an introduction, by}% + {trans\adddot\ \lbx@sfromlang\ with introduction}}, + bytranslatorfo = {{translated \lbx@lfromlang, with a foreword, by}% + {trans\adddot\ \lbx@sfromlang\ with foreword}}, + bytranslatoraf = {{translated \lbx@lfromlang, with an afterword, by}% + {trans\adddot\ \lbx@sfromlang\ with afterword}}, + bytranslatorcoin = {{translated \lbx@lfromlang\ and commented, with an introduction, by}% + {with introduction, trans\adddot\ \lbx@sfromlang\ and comm\adddot}}, + bytranslatorcofo = {{translated \lbx@lfromlang\ and commented, with a foreword, by}% + {with foreword, trans\adddot\ \lbx@sfromlang\ and comm\adddot}}, + bytranslatorcoaf = {{translated \lbx@lfromlang\ and commented, with an afterword, by}% + {with afterword, trans\adddot\ \lbx@sfromlang\ and comm\adddot}}, + bytranslatoranin = {{translated \lbx@lfromlang\ and annotated, with an introduction, by}% + {with introduction, trans\adddot\ \lbx@sfromlang\ and annot\adddot}}, + bytranslatoranfo = {{translated \lbx@lfromlang\ and annotated, with a foreword, by}% + {with foreword, trans\adddot\ \lbx@sfromlang\ and annot\adddot}}, + bytranslatoranaf = {{translated \lbx@lfromlang\ and annotated, with an afterword, by}% + {with afterword, trans\adddot\ \lbx@sfromlang\ and annot\adddot}}, +% \end{macrocode} +% +% The roles expressed as objects and terms for supplementary material +% are not abbreviated. +% +% \begin{macrocode} + withintroduction = {{with an introduction by}{with an introduction by}}, + withcommentator = {{with a commentary by}{with a commentary by}}, + withannotator = {{with annotations by}{with annotations by}}, + withintroduction = {{with an introduction by}{with an introduction by}}, + withforeword = {{with a foreword by}{with a foreword by}}, + withafterword = {{with an afterword by}{with an afterword by}}, + introduction = {{introduction}{introduction}}, +% \end{macrocode} +% +% The abbreviations for some publication details are different. +% +% \begin{macrocode} + newseries = {{new series}{\mkbibacro{NS}}}, + oldseries = {{old series}{\mkbibacro{OS}}}, + edition = {{edition}{edn\adddot}}, + reprint = {{reprint\nopunct}{repr\adddot\nopunct}}, + reviewof = {{review of}{review of}}, + reprintas = {{reprinted as}{repr\adddotspace as}}, + reprintfrom = {{from}{from}}, + translationas = {{English translation as}{Eng\adddotspace trans\adddotspace as}}, + origpubin = {{originally published in}{originally pub\adddot}}, +% \end{macrocode} +% +% There is also a different abbreviation for ‘paragraph’. +% +% \begin{macrocode} + paragraph = {{paragraph}{para\adddot}}, + paragraphs = {{paragraphs}{paras\adddot}}, +% \end{macrocode} +% +% \emph{New Hart's Rules} uses ‘accessed’ for URL dates. +% +% \begin{macrocode} + urlseen = {{accessed}{accessed}}, +% \end{macrocode} +% +% Scholarly citation terms are abbreviated. Oxford style is to use ‘henceforth’ +% for shorthands and ‘at’ to cite a page within a range. +% +% \begin{macrocode} + idem = {{idem}{id\adddot}}, + idemsm = {{idem}{id\adddot}}, + idemsf = {{eadem}{ead\adddot}}, + idemsn = {{idem}{id\adddot}}, + idempm = {{eidem}{eid\adddot}}, + idempf = {{eaedem}{eaed\adddot}}, + idempn = {{eadem}{ead\adddot}}, + idempp = {{eidem}{eid\adddot}}, + citedas = {{henceforth}{henceforth}}, + thiscite = {{at}{at}}, +% \end{macrocode} +% +% Languages are abbreviated. +% +% \begin{macrocode} + langamerican = {{English}{Eng\adddot}}, + langbrazilian = {{Brazilian}{Braz\adddot}}, + langcatalan = {{Catalan}{Catal\adddot}}, + langcroatian = {{Croatian}{Croat\adddot}}, + langczech = {{Czech}{Czech}}, + langdanish = {{Danish}{Dan\adddot}}, + langdutch = {{Dutch}{Dutch}}, + langenglish = {{English}{Eng\adddot}}, + langestonian = {{Estonian}{Eston\adddot}}, + langfinnish = {{Finnish}{Finn\adddot}}, + langfrench = {{French}{Fr\adddot}}, + langgerman = {{German}{Ger\adddot}}, + langgreek = {{Greek}{Gr\adddot}}, + langitalian = {{Italian}{It\adddot}}, + langlatin = {{Latin}{Lat\adddot}}, + langnorwegian = {{Norwegian}{Norw\adddot}}, + langpolish = {{Polish}{Pol\adddot}}, + langportuguese = {{Portuguese}{Port\adddot}}, + langrussian = {{Russian}{Russ\adddot}}, + langslovene = {{Slovene}{Slov\adddot}}, + langspanish = {{Spanish}{Sp\adddot}}, + langswedish = {{Swedish}{Swed\adddot}}, +} +% \end{macrocode} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</en> +%<*gb> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \section{British English: british-oxref.lbx} +% +% \setcounter{FancyVerbLine}{19} +% +% Here we set some language-specific punctuation and date formatting. +% +% \begin{macrocode} +\InheritBibliographyExtras{british} +\DeclareBibliographyExtras{% + \protected\def\mkbibdatelong#1#2#3{% + \iffieldundef{#3} + {} + {\stripzeros{\thefield{#3}}% + \iffieldundef{#2}{}{\nobreakspace}}% + \iffieldundef{#2} + {} + {\mkbibmonth{\thefield{#2}}% + \iffieldundef{#1}{}{\space}}% + \stripzeros{\thefield{#1}}}% + \def\finalandcomma{\addcomma}% + \def\bibtimesep{\addperiod}% +} +% \end{macrocode} +% +% We use the British abbreviations for 12-hour clock times. +% +% \begin{macrocode} +\DeclareBibliographyStrings{% + inherit = {english-oxref}, + am = {{a\adddot m\adddot}{a\adddot m\adddot}}, + pm = {{p\adddot m\adddot}{p\adddot m\adddot}}, +} +% \end{macrocode} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</gb> +%<*us> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% \section{American English: american-oxref.lbx} +% +% \setcounter{FancyVerbLine}{19} +% +% \begin{macrocode} +\InheritBibliographyExtras{english-oxref} +\DeclareBibliographyExtras{\uspunctuation} +\InheritBibliographyStrings{english-oxref} +% \end{macrocode} +% +% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%</us> +%</lbx> +% \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/Master/texmf-dist/source/latex/biblatex-oxref/oxref.ins b/Master/texmf-dist/source/latex/biblatex-oxref/oxref.ins new file mode 100644 index 00000000000..d5cbd9cca53 --- /dev/null +++ b/Master/texmf-dist/source/latex/biblatex-oxref/oxref.ins @@ -0,0 +1,62 @@ +%% +%% This is file `oxref.ins', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% oxref.dtx (with options: `install') +%% ---------------------------------------------------------------- +%% biblatex-oxref --- Biblatex styles inspired by the Oxford Guide to Style +%% Author: Alex Ball +%% E-mail: a.j.ball@bath.ac.uk +%% License: Released under the LaTeX Project Public License v1.3c or later +%% See: http://www.latex-project.org/lppl.txt +%% ---------------------------------------------------------------- +%% +\input docstrip.tex +\keepsilent +\askforoverwritefalse + +\nopreamble\nopostamble + +\usedir{doc/latex/\jobname} +\generate{ + \file{README.md}{\from{\jobname.dtx}{readme}} + \file{\jobname.bib}{\from{\jobname.dtx}{bib}} +} + +\preamble +---------------------------------------------------------------- +biblatex-oxref --- Biblatex styles inspired by the Oxford Guide to Style +Author: Alex Ball +E-mail: a.j.ball@bath.ac.uk +License: Released under the LaTeX Project Public License v1.3c or later +See: http://www.latex-project.org/lppl.txt +---------------------------------------------------------------- + +\endpreamble +\postamble + +Copyright (C) 2016 Alex Ball +\endpostamble + +\usedir{tex/latex/\jobname} +\generate{ + \file{\jobname.bbx}{\from{\jobname.dtx}{bbx,o}} + \file{oxnotes.bbx}{\from{\jobname.dtx}{bbx,n}} + \file{oxyear.bbx}{\from{\jobname.dtx}{bbx,y}} + \file{oxnotes.cbx}{\from{\jobname.dtx}{cbx,n}} + \file{oxyear.cbx}{\from{\jobname.dtx}{cbx,y}} + \file{oxnotes.dbx}{\from{\jobname.dtx}{dbx,n}} + \file{oxyear.dbx}{\from{\jobname.dtx}{dbx,y}} + \file{american-\jobname.lbx}{\from{\jobname.dtx}{lbx,us}} + \file{british-\jobname.lbx}{\from{\jobname.dtx}{lbx,gb}} + \file{english-\jobname.lbx}{\from{\jobname.dtx}{lbx,en}} + \file{oxnotes-doc.tex}{\from{\jobname.dtx}{doc,n}} + \file{oxyear-doc.tex}{\from{\jobname.dtx}{doc,y}} +} +\endbatchfile +%% +%% Copyright (C) 2016 Alex Ball +%% +%% End of file `oxref.ins'. |