diff options
author | Karl Berry <karl@freefriends.org> | 2019-02-19 22:19:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-02-19 22:19:07 +0000 |
commit | 4cbd171caf00fc7956bd4d7ca79bcecd0cc34526 (patch) | |
tree | 7514dc296c89c2700fc8322b4d8ee658225ba831 /Master/texmf-dist/tex/latex/biblatex-oxref/oxnotes-trad2.cbx | |
parent | 549c5b5143e9ae63dbce060b6460b8e0995d7dc8 (diff) |
biblatex-oxref (19feb19)
git-svn-id: svn://tug.org/texlive/trunk@50061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-oxref/oxnotes-trad2.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-oxref/oxnotes-trad2.cbx | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-oxref/oxnotes-trad2.cbx b/Master/texmf-dist/tex/latex/biblatex-oxref/oxnotes-trad2.cbx new file mode 100644 index 00000000000..8908c982edf --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-oxref/oxnotes-trad2.cbx @@ -0,0 +1,49 @@ +%% +%% This is file `oxnotes-trad2.cbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% oxref.dtx (with options: `cbx,n,trad2') +%% ---------------------------------------------------------------- +%% 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{2019/02/19 v1.1} +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesFile{oxnotes-trad2.cbx} + [\Version\space Footnote-based citation style inspired by the Oxford Guide to Style] +\RequireCitationStyle{verbose-trad2} +\newbibmacro*{cite:postnote:pages}{% + \setunit{\addspace}% + \bibstring{thiscite}% + \setunit{\addspace}% + \printfield{postnote}} +\ExecuteBibliographyOptions{citepages=separate} +\RequirePackage{etoolbox} +\RequirePackage{xpatch} +\providetoggle{blx@ox@autoanon} +\providetoggle{blx@ox@abbranon} +\xpatchbibmacro{textcite}{% + \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}% + }% +}{}{\wlog{WARNING: biblatex-oxref failed to patch textcite}} +%% +%% Copyright (C) 2016–2019 Alex Ball +%% +%% End of file `oxnotes-trad2.cbx'. |