summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.bbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-02-09 22:36:47 +0000
committerKarl Berry <karl@freefriends.org>2018-02-09 22:36:47 +0000
commit97b4155ecb120261103ca24bba4f920a4324b93d (patch)
tree3072fd160729b5cf3088f6ba60af8032d191a07f /Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.bbx
parent906d1801a2e2116949953e5ab60a62c6e0652dfb (diff)
biblatex-oxref (9feb18)
git-svn-id: svn://tug.org/texlive/trunk@46580 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.bbx83
1 files changed, 49 insertions, 34 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.bbx b/Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.bbx
index 072df72a7df..d569b2b7532 100644
--- a/Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-oxref/oxyear.bbx
@@ -13,7 +13,7 @@
%% See: http://www.latex-project.org/lppl.txt
%% ----------------------------------------------------------------
%%
-\def\Version{2018/01/31 v0.11.2}
+\def\Version{2018/02/09 v0.11.3}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesFile{oxyear.bbx}
[\Version\space Author-year bibliography style inspired by the Oxford Guide to Style]
@@ -77,64 +77,79 @@
}{%
\printlabeldateextra
\iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
- }}}}}}%
+ }}}}}}
\def\bbx@opt@mergedate@compact{%
\renewbibmacro*{date+extradate}{%
\iffieldundef{labelyear}{}{%
\printtext[datelabel]{%
- \iflabeldateisanydate{%
- \csuse{print\thefield{labeldatesource}dateextra}%
- \clearfield{\thefield{labeldatesource}year}%
- \clearfield{\thefield{labeldatesource}season}%
- \clearfield{\thefield{labeldatesource}month}%
- \clearfield{\thefield{labeldatesource}day}%
+ \iflabeldateisdate{%
+ \printdateextra
+ \clearfield{year}\clearfield{season}\clearfield{month}\clearfield{day}%
}{%
- \printlabeldateextra
- \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
- }}}}}%
+ \iflabeldateisanydate{%
+ \csuse{print\thefield{labeldatesource}dateextra}%
+ \clearfield{\thefield{labeldatesource}year}%
+ \clearfield{\thefield{labeldatesource}season}%
+ \clearfield{\thefield{labeldatesource}month}%
+ \clearfield{\thefield{labeldatesource}day}%
+ }{%
+ \printlabeldateextra
+ \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
+ }}}}}}
\def\bbx@opt@mergedate@year{%
\renewbibmacro*{date+extradate}{%
\iffieldundef{labelyear}{}{%
\printtext[datelabel]{\printlabeldateextra}%
- \iflabeldateisanydate{%
- \clearfield{\thefield{labeldatesource}year}%
+ \iflabeldateisdate{%
+ \clearfield{year}
}{%
- \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
- }}}}%
+ \iflabeldateisanydate{%
+ \clearfield{\thefield{labeldatesource}year}%
+ }{%
+ \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
+ }}}}}
\def\bbx@opt@mergedate@basic{%
\renewbibmacro*{date+extradate}{%
\iffieldundef{labelyear}{}{%
\printtext[datelabel]{\printlabeldateextra}%
- \iflabeldateisanydate{%
- \ifdateshavedifferentprecision{label}{\thefield{labeldatesource}}{}{%
- \ifboolexpr{
- test {\iffieldequalstr{labeldatesource}{}}
- and
- not test {\iffieldundef{issue}}
- }{}{%
- \clearfield{\thefield{labeldatesource}year}}}%
+ \iflabeldateisdate{%
+ \ifboolexpr{
+ test {\ifdateshavedifferentprecision{label}{}}
+ or
+ not test {\iffieldundef{issue}}
+ }{}{%
+ \clearfield{year}}%
}{%
- \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
- }}}}
+ \iflabeldateisanydate{%
+ \ifdateshavedifferentprecision{label}{\thefield{labeldatesource}}{}{%
+ \clearfield{\thefield{labeldatesource}year}}%
+ }{%
+ \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
+ }}}}}
\def\bbx@opt@mergedate@minimum{%
\renewbibmacro*{date+extradate}{%
\iffieldundef{labelyear}{}{%
\printtext[datelabel]{\printlabeldateextra}%
- \iflabeldateisanydate{%
+ \iflabeldateisdate{%
\ifboolexpr{
- test {\ifdateshavedifferentprecision{label}{\thefield{labeldatesource}}}
+ test {\ifdateshavedifferentprecision{label}{}}
or
not test {\iffieldundef{extradate}}
+ or
+ not test {\iffieldundef{issue}}
}{}{%
+ \clearfield{year}}%
+ }{%
+ \iflabeldateisanydate{%
\ifboolexpr{
- test {\iffieldequalstr{labeldatesource}{}}
- and
- not test {\iffieldundef{issue}}
+ test {\ifdateshavedifferentprecision{label}{\thefield{labeldatesource}}}
+ or
+ not test {\iffieldundef{extradate}}
}{}{%
- \clearfield{\thefield{labeldatesource}year}}}%
- }{%
- \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
- }}}}
+ \clearfield{\thefield{labeldatesource}year}}%
+ }{%
+ \iflabeldateispubstate{}{\clearfield{\thefield{labeldatesource}}}%
+ }}}}}
\def\bbx@opt@mergedate@false{%
\renewbibmacro*{date+extradate}{%
\iffieldundef{labelyear}{}{%