diff options
author | Karl Berry <karl@freefriends.org> | 2017-11-18 21:46:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-11-18 21:46:27 +0000 |
commit | 20660a493139f7da8061a165133f5ff2bc3da266 (patch) | |
tree | ab1f8b963c366fcb439dee750c167c4f5ac6dca2 /Master/texmf-dist/tex/latex/biblatex-oxref/oxnum.bbx | |
parent | ba6f6ac5705667b8a0d7d3ddcb50a275d06278a1 (diff) |
biblatex-oxref (18nov17)
git-svn-id: svn://tug.org/texlive/trunk@45847 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-oxref/oxnum.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-oxref/oxnum.bbx | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-oxref/oxnum.bbx b/Master/texmf-dist/tex/latex/biblatex-oxref/oxnum.bbx new file mode 100644 index 00000000000..95f5f085205 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-oxref/oxnum.bbx @@ -0,0 +1,86 @@ +%% +%% 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{2017/11/18 v0.11} +\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}}% + }% +}{}{} +\ExecuteBibliographyOptions{labelnumber} + +\providebool{bbx:subentry} + +\DeclareBibliographyOption[boolean]{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 Alex Ball +%% +%% End of file `oxnum.bbx'. |