%% %% This is file `oxnum.bbx', %% generated with the docstrip utility. %% %% The original source files were: %% %% oxref.dtx (with options: `bbx,m') %% ---------------------------------------------------------------- %% 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 %% ---------------------------------------------------------------- %% \def\Version{2021/01/18 v2.2} \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesFile{oxnum.bbx} [\Version\space Numeric bibliography style inspired by the Oxford Guide to Style] \RequireBibliographyStyle{oxref} \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} \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}}% }% }{}{\wlog{WARNING: biblatex-oxref (oxnum) failed to patch author}} \xpretobibmacro{series+number+edition+publisher+location+date}{% \iffieldequalstr{relatedtype}{multivolume}{% \clearfield{year}\clearfield{month}\clearfield{day}% }{}}{}{} \ExecuteBibliographyOptions{labelnumber} \providebool{bbx:subentry} \DeclareBibliographyOption{subentry}[true]{% \setbool{bbx:subentry}{#1}} \DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}} \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}} \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} \defbibenvironment{bibliography} {\list {\printtext[labelnumberwidth]{% \printfield{labelprefix}% \printfield{labelnumber}}} {\setlength{\labelwidth}{\labelnumberwidth}% \setlength{\leftmargin}{\labelwidth}% \setlength{\labelsep}{\biblabelsep}% \addtolength{\leftmargin}{\labelsep}% \setlength{\itemsep}{\bibitemsep}% \setlength{\parsep}{\bibparsep}}% \renewcommand*{\makelabel}[1]{\hss##1}} {\endlist} {\item} \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]{\hss##1}}} {\endlist} {\item} \DeclareBibliographyDriver{set}{% \entryset {\ifbool{bbx:subentry} {\printfield[bibentrysetcount]{entrysetcount}% \printunit*{\addnbspace}} {}} {}% \newunit\newblock \usebibmacro{setpageref}% \finentry} %% %% Copyright (C) 2016–2021 Alex Ball %% %% End of file `oxnum.bbx'.