diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.cbx | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.cbx b/Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.cbx index ab35b12e8ba..1da19f3a206 100644 --- a/Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.cbx @@ -13,15 +13,16 @@ %% See: http://www.latex-project.org/lppl.txt %% ---------------------------------------------------------------- %% -\def\Version{2017/05/14 v0.10} +\def\Version{2017/11/18 v0.11} \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesFile{oxyear.cbx} [\Version\space Author-year citation style inspired by the Oxford Guide to Style] \RequireCitationStyle{authoryear-comp} -\xpatchbibmacro{cite:labelyear+extrayear}{% +\ExecuteBibliographyOptions{uniquename=init} +\xpatchbibmacro{cite:labeldate+extradate}{% \printfield{labelendyear}% }{% - \iffieldundef{extrayear}{% + \iffieldundef{extradate}{% \blx@ox@compyear {\thefield{labelyear}}% {\thefield{labelendyear}}% @@ -43,16 +44,31 @@ \printnames{labelname}% }% }{}{} -\renewcommand*{\nameyeardelim}{% +\DeclareDelimFormat{nameyeardelim}{% \iffieldundef{\thefield{labeldatesource}year}% {\addcomma\space}% {\addspace}} -\renewcommand*{\nonameyeardelim}{% +\DeclareDelimFormat{nonameyeardelim}{% \iffieldundef{\thefield{labeldatesource}year}% {\addcomma\space}% {\addspace}} \renewcommand*{\compcitedelim}{\addsemicolon\space} \renewcommand*{\postnotedelim}{\addcolon\space} +\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}% + }% +}{}{} %% %% Copyright (C) 2016 Alex Ball %% |