summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/biblatex-oxref
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-02-18 23:00:12 +0000
committerKarl Berry <karl@freefriends.org>2019-02-18 23:00:12 +0000
commit38be0a44ee9d2d9158e4fbc11cf492dbe2f68abe (patch)
tree61def877562c6db28c4370b42be5b1cba35af5b3 /Master/texmf-dist/source/latex/biblatex-oxref
parent9f39ddd0d3a11b7172e79c4c22f952c611492bc5 (diff)
biblatex-oxref (19feb19)
git-svn-id: svn://tug.org/texlive/trunk@50053 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/biblatex-oxref')
-rw-r--r--Master/texmf-dist/source/latex/biblatex-oxref/Makefile71
-rw-r--r--Master/texmf-dist/source/latex/biblatex-oxref/oxref.dtx404
-rw-r--r--Master/texmf-dist/source/latex/biblatex-oxref/oxref.ins4
3 files changed, 309 insertions, 170 deletions
diff --git a/Master/texmf-dist/source/latex/biblatex-oxref/Makefile b/Master/texmf-dist/source/latex/biblatex-oxref/Makefile
new file mode 100644
index 00000000000..f4f53aa573f
--- /dev/null
+++ b/Master/texmf-dist/source/latex/biblatex-oxref/Makefile
@@ -0,0 +1,71 @@
+NAME = oxref
+PFX = biblatex-
+STY1 = oxnotes
+STY2 = oxyear
+STY3 = oxnum
+STY4 = oxalph
+SHELL = bash
+PWD = $(shell pwd)
+TEMP := $(shell mktemp -d -t tmp.XXXXXXXXXX)
+TDIR = $(TEMP)/$(NAME)
+VERS = $(shell ltxfileinfo -v $(NAME).dtx)
+LOCAL = $(shell kpsewhich --var-value TEXMFLOCAL)
+UTREE = $(shell kpsewhich --var-value TEXMFHOME)
+
+.PHONY: source clean distclean inst uninst install uninstall zip ctan
+
+all: $(NAME).pdf $(STY1)-doc.pdf $(STY2)-doc.pdf $(STY3)-doc.pdf $(STY4)-doc.pdf clean
+ @exit 0
+
+source $(NAME).bbx american-$(NAME).lbx british-$(NAME).lbx english-$(NAME).lbx $(STY1)-doc.tex $(STY1).bbx $(STY1).cbx $(STY1).dbx $(STY2)-doc.tex $(STY2).bbx $(STY2).cbx $(STY2).dbx $(STY3)-doc.tex $(STY3).bbx $(STY3).cbx $(STY3).dbx $(STY4)-doc.tex $(STY4).bbx $(STY4).cbx $(STY4).dbx: $(NAME).dtx
+ luatex -interaction=nonstopmode $(NAME).dtx >/dev/null
+
+$(NAME).pdf: $(NAME).dtx $(NAME).bbx $(STY1).bbx $(STY1).cbx american-$(NAME).lbx british-$(NAME).lbx english-$(NAME).lbx
+ latexmk -silent -lualatex -shell-escape -interaction=nonstopmode $(NAME).dtx >/dev/null
+$(STY1)-doc.pdf: $(STY1)-doc.tex $(NAME).bbx $(STY1).bbx $(STY1).cbx american-$(NAME).lbx british-$(NAME).lbx english-$(NAME).lbx
+ latexmk -silent -lualatex -shell-escape -interaction=nonstopmode $(STY1)-doc.tex >/dev/null
+$(STY2)-doc.pdf: $(STY2)-doc.tex $(NAME).bbx $(STY2).bbx $(STY2).cbx american-$(NAME).lbx british-$(NAME).lbx english-$(NAME).lbx
+ latexmk -silent -lualatex -shell-escape -interaction=nonstopmode $(STY2)-doc.tex >/dev/null
+$(STY3)-doc.pdf: $(STY3)-doc.tex $(NAME).bbx $(STY3).bbx $(STY3).cbx american-$(NAME).lbx british-$(NAME).lbx english-$(NAME).lbx
+ latexmk -silent -lualatex -shell-escape -interaction=nonstopmode $(STY3)-doc.tex >/dev/null
+$(STY4)-doc.pdf: $(STY4)-doc.tex $(NAME).bbx $(STY4).bbx $(STY4).cbx american-$(NAME).lbx british-$(NAME).lbx english-$(NAME).lbx
+ latexmk -silent -lualatex -shell-escape -interaction=nonstopmode $(STY4)-doc.tex >/dev/null
+
+clean:
+ for log in *.log; do grep "WARNING: biblatex-oxref" $$log; test $$? -eq 1; done
+ rm -f {$(NAME),$(STY1)-doc,$(STY2)-doc,$(STY3)-doc,$(STY4)-doc}.{aux,bbl,bcf,blg,doc,fdb_latexmk,fls,glo,gls,hd,idx,ilg,ind,listing,log,nav,out,run.xml,snm,synctex.gz,toc,vrb}
+ rm -f {$(STY1),$(STY2),$(STY3),$(STY4),american-$(NAME),british-$(NAME),english-$(NAME)}.doc
+ rm -rf _minted-*
+ rm -f $(NAME).markdown.in
+ rm -rf _markdown_*
+distclean: clean
+ rm -f $(NAME).{bbx,bib,ins,pdf} {$(STY1),$(STY2),$(STY3),$(STY4)}.{b,c,d}bx {american,british,english}-$(NAME).lbx {$(STY1),$(STY2),$(STY3),$(STY4)}-doc.{tex,pdf}
+
+inst: all
+ mkdir -p $(UTREE)/{tex,source,doc}/latex/$(PFX)$(NAME)
+ cp $(NAME).{dtx,ins} $(UTREE)/source/latex/$(PFX)$(NAME)
+ cp $(NAME).bbx {$(STY1),$(STY2),$(STY3),$(STY4)}.{b,c,d}bx {american,british,english}-$(NAME).lbx $(UTREE)/tex/latex/$(PFX)$(NAME)
+ cp $(NAME).{bib,pdf} {$(STY1),$(STY2),$(STY3),$(STY4)}-doc.{tex,pdf} $(UTREE)/doc/latex/$(PFX)$(NAME)
+ mktexlsr
+uninst:
+ rm -r $(UTREE)/{tex,source,doc}/latex/$(PFX)$(NAME)
+ mktexlsr
+
+install: all
+ sudo mkdir -p $(LOCAL)/{tex,source,doc}/latex/$(PFX)$(NAME)
+ sudo cp $(NAME).{dtx,ins} $(LOCAL)/source/latex/$(PFX)$(NAME)
+ sudo cp $(NAME).bbx {$(STY1),$(STY2),$(STY3),$(STY4)}.{b,c,d}bx {american,british,english}-$(NAME).lbx $(LOCAL)/tex/latex/$(PFX)$(NAME)
+ sudo cp $(NAME).{bib,pdf} {$(STY1),$(STY2),$(STY3),$(STY4)}-doc.{tex,pdf} $(LOCAL)/doc/latex/$(PFX)$(NAME)
+ sudo mktexlsr
+uninstall:
+ sudo rm -r $(LOCAL)/{tex,source,doc}/latex/$(PFX)$(NAME)
+ sudo mktexlsr
+
+zip: all
+ mkdir $(TDIR)
+ cp $(NAME).{dtx,pdf} {$(STY1),$(STY2),$(STY3),$(STY4)}-doc.pdf README.md Makefile $(NAME).bbx {$(STY1),$(STY2),$(STY3),$(STY4)}.{b,c,d}bx {american,british,english}-$(NAME).lbx $(TDIR)
+ cd $(TEMP); zip -Drq $(PWD)/$(PFX)$(NAME)-$(VERS).zip $(NAME)
+ctan: all
+ mkdir $(TDIR)
+ cp $(NAME).{dtx,pdf} {$(STY1),$(STY2),$(STY3),$(STY4)}-doc.pdf README.md Makefile $(TDIR)
+ cd $(TEMP); zip -Drq $(PWD)/$(PFX)$(NAME)-$(VERS).zip $(NAME)
diff --git a/Master/texmf-dist/source/latex/biblatex-oxref/oxref.dtx b/Master/texmf-dist/source/latex/biblatex-oxref/oxref.dtx
index eb2bf8d58a2..e9d5b7cc4c3 100644
--- a/Master/texmf-dist/source/latex/biblatex-oxref/oxref.dtx
+++ b/Master/texmf-dist/source/latex/biblatex-oxref/oxref.dtx
@@ -1,6 +1,6 @@
% \iffalse
%<*internal|bbx|cbx|dbx|lbx|doc>
-\def\Version{2018/03/03 v0.12}
+\def\Version{2019/02/15 v1.0}
%</internal|bbx|cbx|dbx|lbx|doc>
%<*internal>
\iffalse
@@ -95,9 +95,6 @@ stipulations and examples provided by the 2014 *New Hart's Rules* and the 2002
* `oxyear` is a style similar to the standard `authoryear`,
intended for use with parenthetical in-text citations.
-These 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>
@@ -149,7 +146,7 @@ See: http://www.latex-project.org/lppl.txt
\endpreamble
\postamble
-Copyright (C) 2016–2018 Alex Ball
+Copyright (C) 2016–2019 Alex Ball
\endpostamble
\usedir{tex/latex/\jobname}
@@ -416,7 +413,7 @@ Copyright (C) 2016–2018 Alex Ball
% 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}%
+\NewTCBListing{egcite}{D(){ok} o m !o}%
{colframe = #1
,colback = #1!5!white
,listing side text
@@ -425,7 +422,7 @@ Copyright (C) 2016–2018 Alex Ball
,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}%
+\NewTCBListing{egcite*}{D(){ok} o m !o}%
{colframe = #1
,colback = #1!5!white
,IfNoValueTF={#2}{}{title = #2}
@@ -782,7 +779,7 @@ first two steps.
## Licence
-Copyright 2016–2018 Alex Ball.
+Copyright 2016–2019 Alex Ball.
This work consists of the documented LaTeX file oxref.dtx and a Makefile.
@@ -1053,19 +1050,19 @@ see the separate documentation file \href{./oxref.pdf}{\texttt{oxref.pdf}}
\section{Stability}
The \pkg[biblatex]{oxref} family of styles is currently at \fileversion.
-I have no further features planned, so unless there is popular demand otherwise,
-it should be bug-fix releases only between now and the release of version 1.0.
-When that happens, the default (expected) behaviour of the styles will be frozen,
-meaning I will do my best to avoid backwards-incompatible changes, though
-alternative behaviour may be added. If you spot any aspects of the styles that
-could be improved before then, especially for the 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}}
-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.
+I have no plans to change the default (expected) behaviour of the styles,
+and will do my best to avoid backwards-incompatible changes, though
+alternative behaviour may be added. If changes are introduced that alter
+the advertised output, this will be signalled by a change in major
+version number.
+Please report any bugs you discover on the
+\href{https://github.com/alex-ball/biblatex-oxref/issues}{GitHub issue tracker}.%
+\footnote{Issue tracker for \pkg[biblatex]{oxref}:
+\url{https://github.com/alex-ball/biblatex-oxref/issues}}
+You are also welcome to leave your thoughts there on how the styles could
+be improved, especially for the cases not covered by the two style manuals.
\chapter{Citations and common formatting}\label{sec:citing}
@@ -1147,7 +1144,7 @@ Test \parencites%
\end{egcite}
%</m|a>
%<*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.
+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.
If there is no date, the replacement text is separated from the name by a comma.
\begin{egcite}{(Anon.\@ 1956), (Marx 1867), (Clarke, n.d.).}
@@ -1453,7 +1450,7 @@ In cases where an author changes the name under which they publish (e.g.\ due to
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)},
+ siècle (1500--1585)},
journaltitle = {Bibliothèque d'Humanisme et Renaissance},
volume = {29},
date = {1967},
@@ -1486,20 +1483,20 @@ If the contribution of the translators or revisers is so great they could be joi
\begin{bibexbox}
{kuehner.blass1890ef}
-%<n|m>\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).
-%<a|y>Kühner, R., rev. Blass, F. (1890-2), \emph{Ausführliche grammatik der griechischen sprache}, i: \emph{Elementar- und Formenlehre} (Hannover: Hahnsche Buchhandlung).
+%<n|m>\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).
+%<a|y>Kühner, R., rev. Blass, F. (1890–2), \emph{Ausführliche grammatik der griechischen sprache}, i: \emph{Elementar- und Formenlehre} (Hannover: Hahnsche Buchhandlung).
\toggletrue{blx@bibliography}
\tcblower
\begin{Verbatim}
%</n|m|a|y>
@mvbook{kuehner.blass1890ef,
- author = {Raphael Kühner},
+ author = {Raphael Kühner},
editor = {Friedrich Blass},
editor+an = {=jointauthor},
editortype = {reviser},
- shortauthor = {Kühner--Blass},
+ shortauthor = {Kühner--Blass},
title = {Elementar- und Formenlehre},
- maintitle = {Ausführliche grammatik der griechischen sprache},
+ maintitle = {Ausführliche grammatik der griechischen sprache},
volume = {1},
location = {Hannover},
publisher = {Hahnsche Buchhandlung},
@@ -1950,14 +1947,14 @@ B. Lindars, \enquote{Ezechiel and Individual Responsibility}, \emph{VT} 15 (1965
%<n|m><NHR \S18.3.3>
%<a|y><NHR \S18.3.3\textdagger>
{moody1953mdb}
-%<n|m>T. W. Moody, \enquote{Michael Davitt and the British Labour Movement, 1882–1906}, \emph{Transactions of the Royal Historical Society}, 5th ser., 3 (1953), 53--76.
-%<a|y>Moody, T. W. (1953), \enquote{Michael Davitt and the British Labour Movement, 1882–1906}, \emph{Transactions of the Royal Historical Society}, 5th ser., 3: 53--76.
+%<n|m>T. W. Moody, \enquote{Michael Davitt and the British Labour Movement, 1882--1906}, \emph{Transactions of the Royal Historical Society}, 5th ser., 3 (1953), 53–76.
+%<a|y>Moody, T. W. (1953), \enquote{Michael Davitt and the British Labour Movement, 1882--1906}, \emph{Transactions of the Royal Historical Society}, 5th ser., 3: 53–76.
\tcblower
\begin{Verbatim}
%</n|m|a|y>
@article{moody1953mdb,
author = {T. W. Moody},
- title = {Michael Davitt and the British Labour Movement, 1882–1906},
+ title = {Michael Davitt and the British Labour Movement, 1882--1906},
journaltitle = {Transactions of the Royal Historical Society},
series = {5},
volume = {3},
@@ -1986,7 +1983,7 @@ J. Barnes, \enquote{Homonymy in Aristotle and Speusippus}, \emph{Classical Quart
series = {newseries},
volume = {21},
date = {1971},
- pages = {65--80}}
+ pages = {65-80}}
%</n|m|bib>
%<*n|m>
\end{Verbatim}
@@ -2008,7 +2005,7 @@ Hankinson, R. J. (1989), \enquote{Galen and the Best of All Possible Worlds}, \e
journaltitle = {CQ},
series = {newseries},
volume = {39},
- pages = {43–76}}
+ pages = {43-76}}
%</a|y|bib>
%<*a|y>
\end{Verbatim}
@@ -2086,7 +2083,7 @@ Marx, K. (1842), \enquote{Der Kommunismus und die Augsburger \enquote{Allgemeine
% 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.
+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}
%</a|y>
@@ -2096,7 +2093,7 @@ WHO (World Health Organization) (1983), \enquote{Nutrition: Sex Bias of Nutritio
author = {{World Health Organization}},
date = {1983-05-20},
title = {Nutrition},
- subtitle = {Sex Bias of Nutritional Status of Children 0–4 Years},
+ subtitle = {Sex Bias of Nutritional Status of Children 0--4 Years},
journaltitle = {Weekly Epidemiologial Record}}
%</a|y|bib>
%<*a|y>
@@ -2157,7 +2154,7 @@ or add the book details to a periodical entry.
number = {2},
location = {Lyon},
date = {1976},
- pages = {99--109}}
+ pages = {99-109}}
@periodical{aujm1975.2,
title = {Annales de l'Université Jean Moulin},
volume = {1975},
@@ -2877,14 +2874,14 @@ the following form is used:
%<n|m><OGS \S15.2.2>
%<a|y><OGS \S15.2.2\textdagger>
{brady.etal1994hehsa}
-%<n|m>Thomas A. Brady, Jr., Heiko A. Oberman, and James D. Tracy (eds.), \emph{Handbook of European History, 1400–1600: Late Middle Ages, Renaissance and Reformation}, i: \emph{Structures and Assertions} (Leiden: E. J. Brill, 1994).
-%<a|y>Brady, Jr., T. A., Oberman, H. A., and Tracy, J. D. (1994) (eds.), \emph{Handbook of European History, 1400–1600: Late Middle Ages, Renaissance and Reformation}, i: \emph{Structures and Assertions} (Leiden: E. J. Brill).
+%<n|m>Thomas A. Brady, Jr., Heiko A. Oberman, and James D. Tracy (eds.), \emph{Handbook of European History, 1400--1600: Late Middle Ages, Renaissance and Reformation}, i: \emph{Structures and Assertions} (Leiden: E. J. Brill, 1994).
+%<a|y>Brady, Jr., T. A., Oberman, H. A., and Tracy, J. D. (1994) (eds.), \emph{Handbook of European History, 1400--1600: Late Middle Ages, Renaissance and Reformation}, i: \emph{Structures and Assertions} (Leiden: E. J. Brill).
\tcblower
\begin{Verbatim}
%</n|m|a|y>
@mvcollection{brady.etal1994hehsa,
editor = {Brady, Jr., Thomas A. and Heiko A. Oberman and James D. Tracy},
- maintitle = {Handbook of European History, 1400–1600},
+ maintitle = {Handbook of European History, 1400--1600},
mainsubtitle = {{Late} {Middle} {Ages,} {Renaissance} and {Reformation}},
volume = {1},
title = {Structures and Assertions},
@@ -4371,7 +4368,7 @@ CNNR/GMH (Comisión Nacional de Reparación y Reconciliación y Grupo de Memoria
%<*a|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)
+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}
%</a|y>
@@ -4380,7 +4377,7 @@ Office of Population Censuses and Surveys (1979a), \emph{Area Mortality Tables:
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},
+ subtitle = {The Registrar-General's Decennial Supplement for England and Wales 1969--1973},
series = {Series DS},
number = {3},
location = {London}}
@@ -5773,9 +5770,9 @@ Standard \textsf{biblatex} only provides for one title for online resources, whi
\chapterprecis{commentary, jurisdiction, legal, legislation}
\pkg[biblatex]{Oxref} provides only a basic level of support for legal references, in case you need to use some in a mainly non-legal text.
-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.
+For a more thorough and robust treatment, intended for a specialist readership, I recommend you use the \pkg{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}, \pkg[biblatex]{oxref} largely mimics \textsf{oscola} and its data model, though there are some small formatting differences. What you should \emph{not} expect from \pkg[biblatex]{oxref} are facilities for compiling specialist indices of sources, or anything special regarding the handling of postnotes.
+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}, \pkg[biblatex]{oxref} largely mimics \pkg{oscola} and its data model, though there are some small formatting differences. What you should \emph{not} expect from \pkg[biblatex]{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.
@@ -6087,6 +6084,9 @@ Both the \emph{Oxford Guide to Style} and \emph{New Hart's Rules} are inconsiste
\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 \enquote{Case} or \enquote{Joined Cases}.}
+\tip{For ECR cases, you can use either \code{number} or the non-standard \code{casenumber} field
+ for the case number.}
+
\begin{bibexbox}
<OGS \S13.4.4>
{C118/07}
@@ -6098,7 +6098,7 @@ Case C–118/07 \emph{Commission of the European Communities v Finland} [2002] E
keywords = {eu},
title = {Commission of the European Communities v. Finland},
sorttitle = {Case C0118/0007},
- number = {C\textendash 118/07},
+ number = {C--118/07},
journaltitle = {ECR},
volume = {I},
pages = {10889},
@@ -6107,9 +6107,7 @@ Case C–118/07 \emph{Commission of the European Communities v Finland} [2002] E
\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 \enquote{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.}
+\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, and put the case number in the (non-standard) \code{casenumber} field or (\pkg{oscola}-supported) \code{userb} field. If wider portability is an issue, you can put the case number, including the word \enquote{Case} if needed, in the \code{titleaddon} field instead.}
\begin{bibexbox}
<OGS \S13.2.6>
@@ -6121,14 +6119,18 @@ Case C–118/07 \emph{Commission of the European Communities v Finland} [2002] E
@jurisdiction{alcatel,
keywords = {eu},
title = {Alcatel/Telettra},
- parvolume = {Case IV/M042},
- institution = {commission},
+ casenumber = {IV/M042},
+ institution = {Commission},
date = {1991},
journaltitle = {OJ},
series = {L},
volume = {122},
pages = {48},
- note = {[1991] 4 CLMR 391}}
+ pardate = {1991},
+ parreporter = {CLMR},
+ parvolume = {4},
+ parpages = {391},
+ options = {paryear-essential}}
%<*n|m|a|y>
\end{Verbatim}
\end{bibexbox}
@@ -6592,8 +6594,8 @@ If a poem is divided into cantos, the title is set in italics rather than quoted
%<n|m><OGS \S15.8*>
%<a|y><OGS \S15.8*\textdagger>
{spenser1965fq}%
-%<n|m>Edmund Spenser, \emph{The Faerie Queene} (Everyman's Library, 443–4; London: Dent, 1965–6) (originally pub. 1590–6).
-%<a|y>Spenser, E. (1590–6), \emph{The Faerie Queene} (Everyman's Library, 443–4; London: Dent, 1965–6).
+%<n|m>Edmund Spenser, \emph{The Faerie Queene} (Everyman's Library, 443--4; London: Dent, 1965–6) (originally pub. 1590–6).
+%<a|y>Spenser, E. (1590–6), \emph{The Faerie Queene} (Everyman's Library, 443--4; London: Dent, 1965–6).
\tcblower
\begin{Verbatim}
%</n|m|a|y>
@@ -6602,7 +6604,7 @@ If a poem is divided into cantos, the title is set in italics rather than quoted
title = {The Faerie Queene},
shorttitle = {Faerie Queene},
series = {Everyman's Library},
- number = {443–4},
+ number = {443--4},
location = {London},
publisher = {Dent},
date = {1965/1966},
@@ -7263,10 +7265,12 @@ will trigger the use of parentheses.
% \begin{macrocode}
\xpatchbibmacro{name:given-family}%
{\bibnamedelimd\mkbibnamesuffix{#4}}%
- {\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}}{}{}
+ {\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}}%
+{}{\wlog{WARNING: biblatex-oxref failed to patch name:given-family}}
\xpatchbibmacro{name:family-given}%
{\bibnamedelimd\mkbibnamesuffix{#4}}%
- {\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}}{}{}
+ {\ifnumeral{#4}{}{\addcomma}\bibnamedelimd\mkbibnamesuffix{#4}}%
+{}{\wlog{WARNING: biblatex-oxref failed to patch name:family-given}}
% \end{macrocode}
%
% Pseudonyms are printed after the main name, enclosed in parentheses (OGS) or
@@ -7636,7 +7640,8 @@ will trigger the use of parentheses.
{\global\undef\bbx@lasthash}}
\xpatchbibmacro{translatorstrg}%
{\bibstring}%
- {\bibstring[\mkbibparens]}{}{}%
+ {\bibstring[\mkbibparens]}%
+{}{\wlog{WARNING: biblatex-oxref failed to patch translatorstrg}}%
\xpatchbibmacro{translator+othersstrg}%
{\bibstring}%
{\bibstring[\mkbibparens]}{}{}%
@@ -7749,8 +7754,8 @@ will trigger the use of parentheses.
%
% 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/}}
+% year, depending on how similar it is to the first. It is adapted from code by
+% Marco Daniel.\footnote{\url{http://tex.stackexchange.com/questions/23483/}}
%
% \begin{macrocode}
\newcommand{\blx@ox@compyear}[2]{%
@@ -7758,14 +7763,35 @@ will trigger the use of parentheses.
\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]%
+% \end{macrocode}
+%
+% The year is only trimmed if it is greater than, but has the same number of
+% digits as, the comparison number.
+%
+% \begin{macrocode}
+ \ifboolexpr{
+ test {\ifnumequal{\num@one@len}{\num@two@len}}
+ and
+ test {\ifnumless{\num@one}{\num@two}}
+ }{%
+% \end{macrocode}
+%
+% For years since 1000, at least two digits must be the same before trimming
+% occurs.
+%
+% \begin{macrocode}
+ \StrCompare{\num@one}{\num@two}[\Result]%
\ifnum\num@two@len>3%
- \IfStrEq{\Result}{2}{\def\Result{1}}{}%
+ \IfStrEq{\Result}{2}{\def\Result{1}}{}%
\fi
- \StrGobbleLeft{0\num@two}{\Result}}%
- {\num@two}%
-}
+% \end{macrocode}
+%
+% Since \cs{Result} is the number of digits to trim from the left hand side of
+% the year, plus one, we provide an extra sacrificial zero before trimming.
+%
+% \begin{macrocode}
+ \StrGobbleLeft{0\num@two}{\Result}%
+ }{\num@two}}
% \end{macrocode}
%
% We patch the date range formats from |biblatex.sty| to use the
@@ -7890,11 +7916,10 @@ will trigger the use of parentheses.
% We let |edition| take a localization key as well as a number.
%
% \begin{macrocode}
-\xpatchfieldformat{edition}{%
- #1\isdot
-}{%
- \ifbibstring{#1}{\bibstring{#1}}{#1\isdot}%
-}{}{}
+\xpatchfieldformat{edition}%
+ {#1\isdot}%
+ {\ifbibstring{#1}{\bibstring{#1}}{#1\isdot}}%
+{}{\wlog{WARNING: biblatex-oxref failed to patch edition}}
% \end{macrocode}
%
% Page ranges are compressed, but are not usually marked with
@@ -8045,7 +8070,8 @@ will trigger the use of parentheses.
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}
\xpatchbibmacro{url+urldate}%
{\setunit*{\addspace}}%
- {\setunit*{\addcomma\addspace}}{}{}
+ {\setunit*{\addcomma\addspace}}%
+{}{\wlog{WARNING: biblatex-oxref failed to patch url+urldate}}
% \end{macrocode}
%
% The DOI is introduced by \enquote{doi} in lowercase.
@@ -8053,7 +8079,8 @@ will trigger the use of parentheses.
% \begin{macrocode}
\xpatchfieldformat{doi}%
{\mkbibacro{DOI}}%
- {\printtext{doi}}{}{}
+ {\printtext{doi}}%
+{}{\wlog{WARNING: biblatex-oxref failed to patch doi}}
% \end{macrocode}
%
% Unlike URLs, DOIs are preceded by a full stop.
@@ -8061,7 +8088,8 @@ will trigger the use of parentheses.
% \begin{macrocode}
\xpatchbibmacro{doi+eprint+url}%
{\printfield{doi}}%
- {\setunit{\addperiod\space}\printfield{doi}}{}{}
+ {\setunit{\addperiod\space}\printfield{doi}}%
+{}{\wlog{WARNING: biblatex-oxref failed to patch doi+eprint+url}}
% \end{macrocode}
%
@@ -9565,11 +9593,12 @@ reference,mvreference,inreference]{volume}{%
% \begin{macrocode}
\renewbibmacro*{institution+location+date}{%
\ifboolexpr{
- test {\iffieldundef{type}}
- and
- test {\iffieldundef{series}}
- and
- test {\iffieldundef{number}}
+ ( test {\iffieldundef{number}}
+ or
+ not test {\iffieldundef{type}}
+ or
+ not test {\iffieldundef{series}}
+ )
and
test {\iflistundef{institution}}
and
@@ -9626,7 +9655,7 @@ reference,mvreference,inreference]{volume}{%
}{%
\togglefalse{blx@ox@altthesis}%
\ifstrequal{#1}{out}{}{%
- \PackageError{oxref}
+ \PackageError{biblatex-oxref}
{Invalid option 'bookseries=#1'}
{Valid values are 'in', 'out', and 'plain'.}}}}}
\newbibmacro*{type+institution+location+date}{%
@@ -9784,7 +9813,7 @@ reference,mvreference,inreference]{volume}{%
\usebibmacro{institution+location+date}%
}{%
\usebibmacro{type+institution+location+date}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref failed to patch thesis}}
% \end{macrocode}
%
% We give booklet entries descriptor support.
@@ -10321,7 +10350,7 @@ reference,mvreference,inreference]{volume}{%
% performances and exhibitions.
%
% \begin{macrocode}
-\renewbibmacro*{event+venue+location+date}{%
+\newbibmacro*{event+venue+location+date}{%
\printfield{eventtitle}%
\newunit
\printfield{eventtitleaddon}%
@@ -10478,7 +10507,7 @@ reference,mvreference,inreference]{volume}{%
% \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
+% fiddly coding. This entire section is adapted from \pkg{oscola} by
% Paul Stanley.
%
% \subsubsection{Entry options}
@@ -10774,7 +10803,7 @@ reference,mvreference,inreference]{volume}{%
\setunit{\addspace}%
\printfield{pages}}}
\newbibmacro{pcitenote}{%
- \iffieldundef{userc}{}{% parreporter
+ \iffieldundef{parreporter}{}{%
\setunit{\addcomma\space}%
\iffieldundef{postnote}{}{%
\printfield{postnote}%
@@ -10855,22 +10884,32 @@ reference,mvreference,inreference]{volume}{%
% Here is the format for EU cases.
%
% \begin{macrocode}
+\newtoggle{bbx@commissiondecision}
\newbibmacro*{eujuriscitation}{%
- \iflistcontains{institution}{\commission}{}{%
+ \ifboolexpr{
+ test {\iflistcontains{institution}{\commission}}
+ or
+ test {\iflistcontains{institution}{\Commission}}
+ }{%
+ \toggletrue{bbx@commissiondecision}%
+ }{%
+ \togglefalse{bbx@commissiondecision}}%
+ \iftoggle{bbx@commissiondecision}{}{%
\usebibmacro{eucasenumber}}%
\usebibmacro{title}%
\setunit{\addspace}%
- \iflistcontains{institution}{\commission}{%
+ \iftoggle{bbx@commissiondecision}{%
\usebibmacro{eucommissiondecision}}{}%
\setunit{\addspace}%
\usebibmacro{eu:reportinfo}%
- \iflistcontains{institution}{\commission}{%
+ \iftoggle{bbx@commissiondecision}{%
\setunit{\addcomma\space}%
}{%
\setunit{\addspace}}%
+ \usebibmacro{altreportdetails}%
\usebibmacro{court-note}%
}
-\newbibmacro{eucasenumber}{%
+\newbibmacro{eucasetype}{%
\iffieldundef{type}{%
\ifboolexpr{
test {\IfSubStr{\thefield{number}}{,}}
@@ -10884,19 +10923,33 @@ reference,mvreference,inreference]{volume}{%
\bibstring{eucase}}%
}{%
\printfield{type}}%
+}
+\newbibmacro{eucasenumber}{%
+ \usebibmacro{eucasetype}%
\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}}}
+ \iffieldundef{userb}{%
+ \iffieldundef{number}{}{%
+ \printtext[parens]{%
+ \usebibmacro{eucasetype}%
+ \setunit{\addnbspace}%
+ \printfield{number}}}%
+ }{%
+ \printtext[parens]{%
+ \usebibmacro{eucasetype}%
+ \setunit{\addnbspace}%
+ \printfield{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}{%
@@ -11175,7 +11228,7 @@ reference,mvreference,inreference]{volume}{%
\usebibmacro{court-note}}
\newbibmacro{altreportdetails}{%
\restorefield{prenote}{\postnotesecond}%
- \iffieldundef{userc}{}{% parreporter
+ \iffieldundef{parreporter}{}{%
\usebibmacro{journaldate}[par]%
\setunit{\addspace}\newblock
\usebibmacro{altreportvolume}%
@@ -11189,26 +11242,17 @@ reference,mvreference,inreference]{volume}{%
\setunit{\addcomma\space}%
\printfield[postnote]{prenote}}}}
\newbibmacro*{altreportvolume}{%
- \iffieldundef{userb}{% parvolume
- \printfield{volume}%
- }{%
- \printfield{userb}}}
+ \iffieldundef{parvolume}{}{%
+ \printfield{parvolume}}}
\newbibmacro*{altjournaltitle}{%
- \iffieldundef{userc}{% parreporter
- \printfield{journaltitle}%
- \setunit{\addspace}%
- }{
- \printfield{userc}}}
+ \iffieldundef{parreporter}{}{
+ \printfield{parreporter}}}
\newbibmacro*{altseries}{%
- \iffieldundef{userd}{% parseries
- \printfield{series}%
- }{%
- \printfield{userd}}}
+ \iffieldundef{parseries}{}{%
+ \printfield{parseries}}}
\newbibmacro*{altjurisdictionpages}{%
- \iffieldundef{usere}{% parpages
- \usebibmacro{jurisdictionpages}%
- }{%
- \printfield{usere}}}%
+ \iffieldundef{parpages}{}{%
+ \printfield{parpages}}}%
% \end{macrocode}
%
@@ -11713,14 +11757,14 @@ reference,mvreference,inreference]{volume}{%
}{%
\setunit{\relatedtypepunct}\newblock
\iftoggle{bbx:related}
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref failed to patch booklet}}
\xpatchbibdriver{misc}{%
\newunit\newblock
\iftoggle{bbx:related}
}{%
\setunit{\relatedtypepunct}\newblock
\iftoggle{bbx:related}
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref failed to patch misc}}
% \end{macrocode}
%
% We provide an option for setting the relatedtype punctuation.
@@ -11776,7 +11820,7 @@ reference,mvreference,inreference]{volume}{%
\setunit{\addspace}}{}%
\iffieldequalstr{relatedtype}{multivolume}{%
\setunit{\addcomma\space}}{}%
- }}{}{}
+}}{}{\wlog{WARNING: biblatex-oxref failed to append to begrelated}}
% \end{macrocode}
%
@@ -12234,14 +12278,6 @@ reference,mvreference,inreference]{volume}{%
\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,
@@ -12263,7 +12299,7 @@ reference,mvreference,inreference]{volume}{%
}
% \end{macrocode}
%
-% This is how \textsf{oscola} removes dots from entries.
+% This is how \pkg{oscola} removes dots from entries.
%
% \begin{macrocode}
\map[overwrite=true]{
@@ -12294,16 +12330,16 @@ reference,mvreference,inreference]{volume}{%
\step [fieldsource=shorttitle,
match=\regexp{(\D)\.},
replace=\regexp{$1}]
- \step[fieldsource=userc,
+ \step[fieldsource=parreporter,
match=\regexp{(\d)\.(\d)},
replace=\regexp{$1.$2}]
- \step[fieldsource=userc,
+ \step[fieldsource=parreporter,
match=\regexp{(\D)\.(\d)},
replace=\regexp{$1 $2}]
- \step[fieldsource=userc,
+ \step[fieldsource=parreporter,
match=\regexp{\.(\D)},
replace=\regexp{$1}]
- \step [fieldsource=userc,
+ \step [fieldsource=parreporter,
match=\regexp{(\D)\.},
replace=\regexp{$1}]
\step[fieldsource=journaltitle,
@@ -12379,8 +12415,20 @@ reference,mvreference,inreference]{volume}{%
match=\regexp{(\D)\.},
replace=\regexp{$1}]
}
+% \end{macrocode}
+%
+% If |casenumber| is given, it is converted to |number| or, if the |number| is
+% already set, |userb|.
+%
+% \begin{macrocode}
+ \map[overwrite=false]{
+ \step[fieldsource=casenumber, final]
+ \step[notfield=number, fieldsource=casenumber, fieldtarget=number]
+ \step[fieldsource=casenumber, fieldtarget=userb]
+ }
}%
}
+
% \end{macrocode}
%
% \subsection{Sorting schemes}
@@ -12550,7 +12598,7 @@ reference,mvreference,inreference]{volume}{%
}{%
\iftoggle{blx@ox@scnames}{\bibcplstring[\textsc]{anon}}{\bibcplstring{anon}}%
}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxnotes) failed to patch author}}
% \end{macrocode}
%
% \subsection{Page ranges in citations}
@@ -12640,7 +12688,7 @@ reference,mvreference,inreference]{volume}{%
}{%
\iftoggle{blx@ox@scnames}{\bibcplstring[\textsc]{anon}}{\bibcplstring{anon}}%
}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxnum) failed to patch author}}
% \end{macrocode}
%
% \subsection{Label numbers}
@@ -13088,25 +13136,25 @@ reference,mvreference,inreference]{volume}{%
%
% \begin{macrocode}
\xpatchcmd{\mkdaterangefull}{%
- \iffieldundef{#2year} {}%
+ \iffieldundef{#2year} {\blx@nounit}%
}{%
\iffieldundef{#2year} {\mknoyeardaterangefull{#1}{#2}}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch mkdaterangefull}}
\xpatchcmd{\mkdaterangetrunc}{%
- \iffieldundef{#2year} {}%
+ \iffieldundef{#2year} {\blx@nounit}%
}{%
\iffieldundef{#2year} {\mknoyeardaterangetrunc{#1}{#2}}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch mkdaterangetrunc}}
\xpatchcmd{\mkdaterangefullextra}{%
- \iffieldundef{#2year} {}%
+ \iffieldundef{#2year} {\blx@nounit}%
}{%
\iffieldundef{#2year} {\mknoyeardaterangefull{#1}{#2}}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch mkdaterangefullextra}}
\xpatchcmd{\mkdaterangetruncextra}{%
- \iffieldundef{#2year} {}%
+ \iffieldundef{#2year} {\blx@nounit}%
}{%
\iffieldundef{#2year} {\mknoyeardaterangetrunc{#1}{#2}}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch mkdaterangetruncextra}}
% \end{macrocode}
%
@@ -13126,7 +13174,7 @@ reference,mvreference,inreference]{volume}{%
\xpretonameformat{family-given}{%
\iffieldannotation{inferred}{\ifnumequal{\value{listcount}}{1}{\bibopenbracket}{}}{}%
\ifitemannotation{inferred}{\bibopenbracket}{}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to prepend to family-given}}
\xpatchnameformat{family-given}{%
\usebibmacro{name:andothers}%
}{%
@@ -13146,7 +13194,7 @@ reference,mvreference,inreference]{volume}{%
test {\ifnumgreater{\value{listtotal}}{\value{maxnames}}} )
}{\bibclosebracket}{}%
}{}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch family-given}}
\DeclareNameAlias{shortauthor}{family-given}
\DeclareNameAlias{shorteditor}{family-given}
% \end{macrocode}
@@ -13205,9 +13253,11 @@ reference,mvreference,inreference]{volume}{%
%
% \begin{macrocode}
\xapptobibmacro{begrelated}{%
- \booltrue{bbx@inset}}{}{}
+ \booltrue{bbx@inset}}%
+{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to append to begrelated}}
\xapptobibmacro{endrelated}{%
- \usebibmacro*{bbx:savehash}}{}{}
+ \usebibmacro*{bbx:savehash}}%
+{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to append to endrelated}}
% \end{macrocode}
%
% We patch the |author| macro so that the date label information appears
@@ -13220,7 +13270,7 @@ reference,mvreference,inreference]{volume}{%
\usebibmacro{date+extradate}%
\setunit*{\addspace}%
\iffieldundef{authortype}%
-}{}{}%
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch author (authortype)}}%
\xpatchbibmacro{author}{%
\global\undef\bbx@lasthash
}{%
@@ -13228,7 +13278,7 @@ reference,mvreference,inreference]{volume}{%
\usebibmacro{labeltitle}%
\setunit*{\addspace}%
\usebibmacro{date+extradate}%
-}{}{}%
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch author (lasthash)}}%
% \end{macrocode}
%
% We patch it further so that, where an author name has a corresponding
@@ -13241,7 +13291,7 @@ reference,mvreference,inreference]{volume}{%
\printnames[by#1]%
}{%
\printnames[#1]%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch namepairs}}
\xpatchbibmacro{author+altauthor}{%
\printnames{author}%
}{%
@@ -13254,7 +13304,7 @@ reference,mvreference,inreference]{volume}{%
}{%
\printnames{author}%
}%
-}{}{}%
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch author+altauthor}}%
% \end{macrocode}
%
% We apply the same patches to |bbx:editor|, but also move the editor
@@ -13267,7 +13317,7 @@ reference,mvreference,inreference]{volume}{%
\usebibmacro{date+extradate}%
\setunit*{\addspace}%
\usebibmacro{#1}%
-}{}{}%
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch bbx:editor}}%
\xpatchbibmacro{bbx:editor}{%
\global\undef\bbx@lasthash
}{%
@@ -13275,12 +13325,12 @@ reference,mvreference,inreference]{volume}{%
\usebibmacro{labeltitle}%
\setunit*{\addspace}%
\usebibmacro{date+extradate}%
-}{}{}%
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch bbx:editor (lasthash)}}%
\xpatchbibmacro{editor+alteditor}{%
\printnames[byeditor]%
}{%
\printnames[editor]%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch editor+alteditor}}
\xpatchbibmacro{editor+alteditor}{%
\printnames{editor}%
}{%
@@ -13293,7 +13343,7 @@ reference,mvreference,inreference]{volume}{%
}{%
\printnames{editor}%
}%
-}{}{}%
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch editor+alteditor (shorteditor)}}%
% \end{macrocode}
%
% We apply the same patches to |bbx:translator| as we do for
@@ -13307,14 +13357,14 @@ reference,mvreference,inreference]{volume}{%
\usebibmacro{labeltitle}%
\setunit*{\addspace}%
\usebibmacro{date+extradate}%
-}{}{}%
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch bbx:translator (lasthash)}}%
\xpatchbibmacro{bbx:translator}{%
\usebibmacro{#1}%
}{%
\usebibmacro{date+extradate}%
\setunit*{\addspace}%
\usebibmacro{#1}%
-}{}{}%
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch bbx:translator}}%
% \end{macrocode}
%
% The |labeltitle| macro differs from the one from |authoryear| in that
@@ -13362,7 +13412,7 @@ reference,mvreference,inreference]{volume}{%
\clearfield{maintitle}%
\clearfield{volume}%
}{}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to prepend to maintitle+title}}
\DeclareFieldFormat[mvbook,mvcollection,mvreference,proceedings,mvproceedings]{maintitle+volume}{#1}
% \end{macrocode}
%
@@ -13379,7 +13429,7 @@ reference,mvreference,inreference]{volume}{%
and
test {\iffieldundef{month}}
}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch online}}
% \end{macrocode}
%
% We ensure the label title in citations matches the formatting used for
@@ -13582,22 +13632,22 @@ reference,mvreference,inreference]{volume}{%
\printdateextra
}{%
\printdate
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxalph) failed to patch bbx@opt@mergedate@maximum (print)}}
\xpatchcmd{\bbx@opt@mergedate@maximum}{%
- \csuse{print\thefield{labeldatesource}dateextra}
+ \csuse{print\thefield{labeldatesource}dateextra}%
}{%
- \csuse{print\thefield{labeldatesource}date}
-}{}{}
+ \csuse{print\thefield{labeldatesource}date}%
+}{}{\wlog{WARNING: biblatex-oxref (oxalph) failed to patch bbx@opt@mergedate@maximum (label)}}
\xpatchcmd{\bbx@opt@mergedate@compact}{%
- \csuse{print\thefield{labeldatesource}dateextra}
+ \csuse{print\thefield{labeldatesource}dateextra}%
}{%
- \csuse{print\thefield{labeldatesource}date}
-}{}{}
+ \csuse{print\thefield{labeldatesource}date}%
+}{}{\wlog{WARNING: biblatex-oxref (oxalph) failed to patch bbx@opt@mergedate@compact}}
\xpatchbibmacro{labeldate}{%
\printlabeldateextra
}{%
\printlabeldate
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxalph) failed to patch labeldate}}
\ExecuteBibliographyOptions{mergedate}
% \end{macrocode}
@@ -13757,7 +13807,7 @@ reference,mvreference,inreference]{volume}{%
}{%
\printnames{labelname}%
}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref (oxyear) failed to patch cite}}
% \end{macrocode}
%
% The name and year are usually separated by a space, but if the date is
@@ -13875,7 +13925,7 @@ reference,mvreference,inreference]{volume}{%
}{%
\printnames{labelname}%
}%
-}{}{}
+}{}{\wlog{WARNING: biblatex-oxref failed to patch textcite}}
% \end{macrocode}
%
% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -13952,7 +14002,11 @@ reference,mvreference,inreference]{volume}{%
%
% \begin{macrocode}
\DeclareDatamodelFields[type=field,datatype=date]{pardate}
-\DeclareDatamodelEntryfields[jurisdiction]{pardate}
+\DeclareDatamodelFields[type=field,datatype=literal]{parreporter,parseries}
+\DeclareDatamodelFields[type=field,datatype=integer]{parvolume}
+\DeclareDatamodelFields[type=field,datatype=range]{parpages}
+\DeclareDatamodelEntryfields[jurisdiction]{pardate,parreporter,parseries,%
+ parvolume,parpages}
% \end{macrocode}
%
% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -14362,6 +14416,12 @@ reference,mvreference,inreference]{volume}{%
% \begin{macrocode}
\InheritBibliographyExtras{british}
\DeclareBibliographyExtras{%
+% \end{macrocode}
+%
+% The only difference from the standard British date format is that we print it
+% \enquote{clean}, with a cardinal instead of an ordinal day.
+%
+% \begin{macrocode}
\protected\def\mkbibdatelong#1#2#3{%
\iffieldundef{#3}
{}
@@ -14371,7 +14431,15 @@ reference,mvreference,inreference]{volume}{%
{}
{\mkbibmonth{\thefield{#2}}%
\iffieldundef{#1}{}{\space}}%
- \stripzeros{\thefield{#1}}}%
+ \iffieldbibstring{#1}
+ {\bibstring{\thefield{#1}}}
+ {\dateeraprintpre{#1}\stripzeros{\thefield{#1}}}}%
+% \end{macrocode}
+%
+% As you'd expect from an Oxford style, we use the Oxford comma, and use a
+% period as the time separator.
+%
+% \begin{macrocode}
\def\finalandcomma{\addcomma}%
\def\bibtimesep{\addperiod}%
}
@@ -14381,7 +14449,7 @@ reference,mvreference,inreference]{volume}{%
%
% \begin{macrocode}
\DeclareBibliographyStrings{%
- inherit = {english-oxref},
+ inherit = {english},
am = {{a\adddot m\adddot}{a\adddot m\adddot}},
pm = {{p\adddot m\adddot}{p\adddot m\adddot}},
}
@@ -14397,9 +14465,9 @@ reference,mvreference,inreference]{volume}{%
% \setcounter{FancyVerbLine}{19}
%
% \begin{macrocode}
-\InheritBibliographyExtras{english-oxref}
+\InheritBibliographyExtras{english}
\DeclareBibliographyExtras{\uspunctuation}
-\InheritBibliographyStrings{english-oxref}
+\InheritBibliographyStrings{english}
% \end{macrocode}
%
% \iffalse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/source/latex/biblatex-oxref/oxref.ins b/Master/texmf-dist/source/latex/biblatex-oxref/oxref.ins
index c48826f2574..ed3bd754a7d 100644
--- a/Master/texmf-dist/source/latex/biblatex-oxref/oxref.ins
+++ b/Master/texmf-dist/source/latex/biblatex-oxref/oxref.ins
@@ -37,7 +37,7 @@ See: http://www.latex-project.org/lppl.txt
\endpreamble
\postamble
-Copyright (C) 2016–2018 Alex Ball
+Copyright (C) 2016–2019 Alex Ball
\endpostamble
\usedir{tex/latex/\jobname}
@@ -65,6 +65,6 @@ Copyright (C) 2016–2018 Alex Ball
}
\endbatchfile
%%
-%% Copyright (C) 2016–2018 Alex Ball
+%% Copyright (C) 2016–2019 Alex Ball
%%
%% End of file `oxref.ins'.