summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-apa
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-03-06 22:53:21 +0000
committerKarl Berry <karl@freefriends.org>2018-03-06 22:53:21 +0000
commit140769096e908112bbcc671d753085475a83503b (patch)
treecc41fd1a102d4db681c7ac37901864c897dad0c1 /Master/texmf-dist/tex/latex/biblatex-apa
parent68f82734361bd2681fdbec0be05baa870c9c5381 (diff)
biblatex-apa (6mar18)
git-svn-id: svn://tug.org/texlive/trunk@46864 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-apa')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/american-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx263
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/apa.cbx4
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/apa.dbx4
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/austrian-apa.lbx120
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/brazilian-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/british-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/danish-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/dutch-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/english-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/french-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/german-apa.lbx119
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/greek-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/italian-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/naustrian-apa.lbx120
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/ngerman-apa.lbx119
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/norsk-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/norwegian-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/nswissgerman-apa.lbx120
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/nynorsk-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/portuguese-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/russian-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/slovene-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/spanish-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/swedish-apa.lbx2
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/swissgerman-apa.lbx120
26 files changed, 720 insertions, 303 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/american-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/american-apa.lbx
index 84dc79cf5b0..c532c441a09 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/american-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/american-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{american-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{american-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{american}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx b/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx
index 6ae6d0d0b07..e3364b4a476 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx
@@ -1,4 +1,4 @@
-%% Copyright 2017 Philip Kime
+%% Copyright 2018 Philip Kime
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -9,10 +9,10 @@
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
-%%
+%%
%% The Current Maintainer of this work is Philip Kime.
-\ProvidesFile{apa.bbx}[2017/11/05\space v7.5\space APA biblatex references style]
+\ProvidesFile{apa.bbx}[2018/03/05\space v7.6\space APA biblatex references style]
\RequireBiber[3]
\RequireBibliographyStyle{standard}
\urlstyle{rm} % APA examples all have URLs in same font as text
@@ -100,66 +100,70 @@
% Date formats. Suppress end range of less specific fields
\newcommand*{\mkdaterangeapalong}[1]{%
- \blx@metadateinfo{#1}%
- \iffieldundef{#1year}{}
- {\datecircaprint
- \ifstrequal{#1}{url}% URL dates are unlikely to be BCE ...
- {\printtext{%
- \mkbibdateapalongmdy{#1year}{#1month}{#1day}%
- \iffieldundef{#1endyear}%
- {}%
- {\iffieldequalstr{#1endyear}{}% open-ended range?
- {\mbox{\bibdatedash}}
- {\bibdatedash%
- \iffieldsequal{#1year}{#1endyear}%
- {\iffieldsequal{#1month}{#1endmonth}%
- {\iffieldsequal{#1day}{#1endday}%
- {}%
- {\mkbibdateapalongmdy{}{}{#1endday}}}%
- {\mkbibdateapalongmdy{}{#1endmonth}{#1endday}}}%
- {\mkbibdateapalongmdy{#1endyear}{#1endmonth}{#1endday}}}}%
- \dateuncertainprint}}
- {\printtext{%
- \mkbibdateapalong{#1year}{#1month}{#1day}%
- \dateeraprint{#1year}%
- \iffieldundef{#1endyear}%
- {}%
- {\iffieldequalstr{#1endyear}{}% open-ended range?
- {\mbox{\bibdatedash}}
- {\bibdatedash%
- \iffieldsequal{#1year}{#1endyear}%
- {\iffieldsequal{#1month}{#1endmonth}%
- {\iffieldsequal{#1day}{#1endday}%
- {}%
- {\mkbibdateapalong{}{}{#1endday}}}%
- {\mkbibdateapalong{}{#1endmonth}{#1endday}}}%
- {\mkbibdateapalong{#1endyear}{#1endmonth}{#1endday}%
- \dateeraprint{#1endyear}}}%
- \enddateuncertainprint}}}}}
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\datecircaprint
+ \ifstrequal{#1}{url}% URL dates are unlikely to be BCE ...
+ {\printtext{%
+ \mkbibdateapalongmdy{#1year}{#1month}{#1day}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\iffieldsequal{#1month}{#1endmonth}%
+ {\iffieldsequal{#1day}{#1endday}%
+ {}%
+ {\mkbibdateapalongmdy{}{}{#1endday}}}%
+ {\mkbibdateapalongmdy{}{#1endmonth}{#1endday}}}%
+ {\mkbibdateapalongmdy{#1endyear}{#1endmonth}{#1endday}}}}%
+ \dateuncertainprint}}
+ {\printtext{%
+ \mkbibdateapalong{#1year}{#1month}{#1day}%
+ \dateeraprint{#1year}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\iffieldsequal{#1month}{#1endmonth}%
+ {\iffieldsequal{#1day}{#1endday}%
+ {}%
+ {\mkbibdateapalong{}{}{#1endday}}}%
+ {\mkbibdateapalong{}{#1endmonth}{#1endday}}}%
+ {\mkbibdateapalong{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}}%
+ \endgroup}
% Only for DATE as only \printdateextra is used
\newcommand*{\mkdaterangeapalongextra}[1]{%
- \blx@metadateinfo{#1}%
- \iffieldundef{#1year}{}
- {\printtext{%
- \datecircaprint
- \mkbibdateapalongextra{#1year}{#1month}{#1day}%
- \dateeraprint{#1year}%
- \dateuncertainprint
- \iffieldundef{#1endyear}%
- {}%
- {\iffieldequalstr{#1endyear}{}% open-ended range?
- {\mbox{\bibdatedash}}
- {\bibdatedash%
- \iffieldsequal{#1year}{#1endyear}%
- {\iffieldsequal{#1month}{#1endmonth}%
- {\iffieldsequal{#1day}{#1endday}%
- {}%
- {\mkbibdateapalongextra{}{}{#1endday}}}
- {\mkbibdateapalongextra{}{#1endmonth}{#1endday}}}
- {\mkbibdateapalongextra{#1endyear}{#1endmonth}{#1endday}%
- \dateeraprint{#1endyear}}}%
- \enddateuncertainprint}}}}
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\printtext{%
+ \datecircaprint
+ \mkbibdateapalongextra{#1year}{#1month}{#1day}%
+ \dateeraprint{#1year}%
+ \dateuncertainprint
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\iffieldsequal{#1month}{#1endmonth}%
+ {\iffieldsequal{#1day}{#1endday}%
+ {}%
+ {\mkbibdateapalongextra{}{}{#1endday}}}
+ {\mkbibdateapalongextra{}{#1endmonth}{#1endday}}}
+ {\mkbibdateapalongextra{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}%
+ \endgroup}
\AtEndPreamble{%
\renewcommand*{\datecircaprint}{%
@@ -264,6 +268,7 @@
mincrossrefs=999,%
origdate=apalong,%
pagetracker=true,%
+ sortcites=true,%
sorting=apa,%
uniquelist=minyear,%
uniquename=full,%
@@ -327,7 +332,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (APA 6.30) Sometimes "Vol" is inside the additional
% material parens, sometimes not. This bool
-% tracks if it has been inserted yet.
+% tracks if it has been inserted yet.
% Can't use \clearfield{volume} as some
% later number format tests need to know
% whether volume was defined.
@@ -447,18 +452,21 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (APA 6.27) References section delimiters are ampersands, not " and "
-% Needs to be in this hook otherwise it sets this for all
-% citations too.
% (APA 6.27) Use blank for long lists
% (APA 4.03) Serial comma for lists of three or more
-\DeclareDelimFormat[bib]{finalnamedelim}{%
+\DeclareDelimFormat[bib,biblist]{finalnamedelim}{%
\ifthenelse{\value{listcount}>\maxprtauth}
{}
{\ifthenelse{\value{liststop}>2}
{\finalandcomma\addspace\&\space}
{\addspace\&\space}}}
+\DeclareDelimFormat[bib,biblist]{finalnamedelim:apa:family-given}{%
+ \ifthenelse{\value{listcount}>\maxprtauth}
+ {}
+ {\finalandcomma\addspace\&\space}}
+
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -639,7 +647,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (APA 6.29) Additional information for non-periodicals in
-% parenthesis after title. This is ugly but it's
+% parenthesis after title. This is ugly but it's
% hard to put in "optional parens" like this
% around an unknown amount of characters.
@@ -740,20 +748,31 @@
% #4 = name prefix
% #5 = name suffix
+\newbibmacro*{name:delim:apa:family-given}[1]{%
+ \ifnumgreater{\value{listcount}}{\value{liststart}}
+ {\ifboolexpr{
+ test {\ifnumless{\value{listcount}}{\value{liststop}}}
+ or
+ test \ifmorenames
+ }
+ {\printdelim{multinamedelim}}
+ {\printdelim{finalnamedelim:apa:family-given}}}
+ {}}
+
\newbibmacro*{name:apa:family-given}[5]{%
\ifuseprefix
- {\usebibmacro{name:delim}{#4#1}%
+ {\usebibmacro{name:delim:apa:family-given}{#4#1}%
\usebibmacro{name:hook}{#4#1}%
\ifdefvoid{#4}{}{%
- \mkbibnameprefix{#4}%
- \ifpunctmark{'}{}{\addhighpenspace}}%
- \mkbibnamefamily{#1\isdot}%
- \ifdefvoid{#2}{}{\addcomma\addlowpenspace\mkbibnamegiven{#3}\isdot%
- \ifthenelse{\value{uniquename}>1}
- {\addspace\mkbibbrackets{#2}}
- {}}%
- \ifdefvoid{#5}{}{\addcomma\addlowpenspace\mkbibnamesuffix{#5}\isdot}}
- {\usebibmacro{name:delim}{#1}%
+ \mkbibnameprefix{#4}\isdot%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \mkbibnamefamily{#1}\isdot%
+ \ifdefvoid{#2}{}{\revsdnamepunct\bibnamedelimd\mkbibnamegiven{#3}\isdot%
+ \ifthenelse{\value{uniquename}>1}
+ {\bibnamedelimd\mkbibbrackets{#2}}
+ {}}%
+ \ifdefvoid{#5}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#5}\isdot}}
+ {\usebibmacro{name:delim:apa:family-given}{#1}%
\usebibmacro{name:hook}{#1}%
\mkbibnamefamily{#1}\isdot
\ifboolexpe{%
@@ -761,37 +780,29 @@
and
test {\ifdefvoid{#4}}}
{}
- {\addcomma}%
- \ifdefvoid{#2}{}{\addlowpenspace\mkbibnamegiven{#3}%
- \ifthenelse{\value{uniquename}>1}
- {\addspace\mkbibbrackets{#2}}
- {}}%
+ {\revsdnamepunct}%
+ \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{#3}%
+ \ifthenelse{\value{uniquename}>1}
+ {\bibnamedelimd\mkbibbrackets{#2}}
+ {}}%
\ifdefvoid{#4}{}{%
- \addhighpenspace\mkbibnameprefix{#4}%
- \ifpunctmark{'}{}{\addhighpenspace}}%
- \ifdefvoid{#5}{}{\addcomma\addlowpenspace\mkbibnamesuffix{#5}\isdot}}}
+ \bibnamedelimc\mkbibnameprefix{#4}%
+ \ifprefchar{}{\bibnamedelimc}}%
+ \ifdefvoid{#5}{}{\addcomma\bibnamedelimd\mkbibnamesuffix{#5}\isdot}}}
\newbibmacro*{name:apa:given-family}[5]{%
- \ifuseprefix
- {\usebibmacro{name:delim}{#2}%
- \usebibmacro{name:hook}{#2}%
- \ifdefvoid{#2}{}{\mkbibnamegiven{#3}\isdot%
- \ifthenelse{\value{uniquename}>1}
- {\addspace\mkbibbrackets{#2}}
- {}\addspace}%
- \ifdefvoid{#4}{}{%
- \mkbibnameprefix{#4\isdot}%
- \ifpunctmark{'}{}{\addhighpenspace}}%
- \mkbibnamefamily{#1\isdot}%
- \ifdefvoid{#5}{}{\addlowpenspace\mkbibnamesuffix{#5}\isdot}}
- {\usebibmacro{name:delim}{#1}%
- \usebibmacro{name:hook}{#1}%
- \ifdefvoid{#2}{}{\mkbibnamegiven{#3}\isdot%
- \ifthenelse{\value{uniquename}>1}
- {\addspace\mkbibbrackets{#2}}
- {}\addspace}%
- \mkbibnamefamily{#1}\isdot
- \ifdefvoid{#5}{}{\addcomma\addlowpenspace\mkbibnamesuffix{#5}\isdot}}}
+ \usebibmacro{name:delim}{#2#4#1#5}%
+ \usebibmacro{name:hook}{#2#4#1#5}%
+ \ifdefvoid{#2}{}{\mkbibnamegiven{#3}\isdot%
+ \ifthenelse{\value{uniquename}>1}
+ {\bibnamedelimd\mkbibbrackets{#2}}
+ {}%
+ \bibnamedelimd}%
+ \ifdefvoid{#4}{}{%
+ \mkbibnameprefix{#4}\isdot
+ \ifprefchar{}{\bibnamedelimc}}%
+ \mkbibnamefamily{#1}\isdot%
+ \ifdefvoid{#5}{}{\bibnamedelimd\mkbibnamesuffix{#5}\isdot}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -837,7 +848,7 @@
\clearname{translator}%
\setunit{\adddot}}%
\ifbool{bbx:parens}{\printtext{\bibcloseparen}\global\boolfalse{bbx:parens}}{}}}}
-
+
\newbibmacro*{editor+trans}{%
\ifthenelse{\ifnameundef{editor}\AND%
\ifnameundef{editora}\AND%
@@ -869,10 +880,14 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% (APA 6.29) Special journal issues
+% (APA 6.29) Special journal issues are periodicals
+\DeclareFieldFormat[periodical]{pages}{#1}
\DeclareFieldFormat[periodical]{title}{#1\isdot}
-\DeclareFieldFormat[periodical]{issuetitle}{\mkbibemph{#1}\isdot}
+\DeclareFieldFormat[periodical]{issuetitle}{\mkbibbrackets{#1}}
+\DeclareFieldFormat[periodical]{volume}{\mkbibemph{\apanum{#1}}}
+\DeclareFieldFormat[periodical]{number}{\mkbibparens{\apanum{#1}}}
+\DeclareListFormat[periodical]{location}{\mkbibemph{#1}}
\renewbibmacro*{periodical}{%
\iffieldundef{title}
@@ -884,10 +899,16 @@
\renewbibmacro*{title+issuetitle}{%
\usebibmacro{periodical}%
- \newunit
- \usebibmacro{issue}%
- \setunit*{\addcomma\addspace}%
- \setunit{\addcomma\space}}
+ \setunit{\addspace}%
+ \printfield{issuetitle}%
+ \notbool{bbx:editorinauthpos}
+ {\newunit
+ \usebibmacro{labelyear+extradate}}
+ {}}
+
+\newbibmacro*{pnumber}{%
+ \printfield{volume}%
+ \printfield{number}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1019,17 +1040,6 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% (APA 6.30) Periodicals emph number, location
-% and pages (with no prefix)
-
-\DeclareFieldFormat[periodical]{pages}{\mkbibemph{#1}}
-\DeclareFieldFormat[periodical]{number}{\mkbibemph{\apanum{#1}}}
-\DeclareListFormat[periodical]{location}{\mkbibemph{#1}}
-
-%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (APA 7.02 Example 38) Proceedings emph number, location
% and location. Pages have no prefix
@@ -1063,6 +1073,7 @@
% (APA 7.06) Reviews
% The title of the review depends on the entrytype of the thing reviewed
+\newcommand*{\begrelateddelimreviewof}{\addspace}
\DeclareFieldFormat[review]{title}{%
\entrydata*{\thefield{related}}{%
\iffieldequalstr{entrytype}{article}
@@ -1276,7 +1287,7 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Related entries
@@ -1693,12 +1704,12 @@
\usebibmacro{author/editor}%
\setunit{\labelnamepunct}\newblock
\usebibmacro{title+issuetitle}%
+ \setunit{\adddot\addspace}
+ \usebibmacro{journal}%
\setunit{\addcomma\addspace}
\printlist{location}%
\setunit{\addcomma\addspace}
- \printfield{volume}%
- \setunit*{\adddot}%
- \printfield{number}%
+ \usebibmacro{pnumber}%
\setunit{\addcomma\addspace}
\printfield{pages}%
\newunit\newblock
@@ -2128,7 +2139,7 @@
{\href{https://dx.doi.org/#1}{\nolinkurl{#1}}}
{\nolinkurl{#1}}}
-% APA 6th
+% APA 6th
\newbibmacro*{location+publisher}{%
\printlist[default][1-1]{location}%
\setunit*{\addcolon\space}%
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/apa.cbx b/Master/texmf-dist/tex/latex/biblatex-apa/apa.cbx
index 8fdc1f2c0f4..27b992db1b8 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/apa.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/apa.cbx
@@ -1,4 +1,4 @@
-%% Copyright 2017 Philip Kime
+%% Copyright 2018 Philip Kime
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -12,7 +12,7 @@
%%
%% The Current Maintainer of this work is Philip Kime.
-\ProvidesFile{apa.cbx}[2017/11/05\space v7.5\space APA biblatex citation style]
+\ProvidesFile{apa.cbx}[2018/03/05\space v7.6\space APA biblatex citation style]
\RequireBiber[3]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/apa.dbx b/Master/texmf-dist/tex/latex/biblatex-apa/apa.dbx
index 95c7b97ff43..a206ec52e55 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/apa.dbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/apa.dbx
@@ -1,4 +1,4 @@
-%% Copyright 2017 Philip Kime
+%% Copyright 2018 Philip Kime
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -12,7 +12,7 @@
%%
%% The Current Maintainer of this work is Philip Kime.
-\ProvidesFile{apa.dbx}[2017/11/05\space v7.5\space APA biblatex style data model]
+\ProvidesFile{apa.dbx}[2018/03/05\space v7.6\space APA biblatex style data model]
\RequireBiber[3]
\DeclareDatamodelEntrytypes{
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/austrian-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/austrian-apa.lbx
index 17ee78ad18e..74855d47236 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/austrian-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/austrian-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{austrian-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{austrian-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{austrian}
% Following DGPs guidlines for German/Austrian
@@ -71,55 +71,123 @@
\protected\def\mkbibdateapalong#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongextra#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}\printfield{extradate}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \printfield{extradate}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongmdy#1#2#3{%
\iffieldundef{#3}%
{}%
- {\stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}}%
\iffieldundef{#2}%
{}%
{\iffieldundef{#3}%
{}%
- {\adddot\addspace}%
+ {\addspace}%
\mkbibmonth{\thefield{#2}}}%
\iffieldundef{#1}%
{}%
{\iffieldundef{#2}%
{}%
{\addspace}%
- \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}}
+ \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}%
+ \def\apa@lbx@de@mkdaterangeapalong#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\datecircaprint
+ \ifstrequal{#1}{url}% URL dates are unlikely to be BCE ...
+ {\printtext{%
+ \iffieldsequal{#1year}{#1endyear}
+ {\iffieldsequal{#1month}{#1endmonth}
+ {\mkbibdateapalongmdy{}{}{#1day}}
+ {\mkbibdateapalongmdy{}{#1month}{#1day}}}
+ {\mkbibdateapalongmdy{#1year}{#1month}{#1day}}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \mkbibdateapalongmdy{#1endyear}{#1endmonth}{#1endday}}}%
+ \dateuncertainprint}}
+ {\printtext{%
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalong{#1year}{}{#1day}}%
+ {\mkbibdateapalong{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalong{}{#1endmonth}{#1endday}}%
+ {\mkbibdateapalong{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}}%
+ \endgroup}%
+ \def\apa@lbx@de@mkdaterangeapalongextra#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\printtext{%
+ \datecircaprint
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalongextra{#1year}{}{#1day}}%
+ {\mkbibdateapalongextra{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \dateuncertainprint
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalongextra{}{#1endmonth}{#1endday}}
+ {\mkbibdateapalongextra{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}%
+ \endgroup}%
+ \savecommand\mkdaterangeapalong
+ \savecommand\mkdaterangeapalongextra
+ \def\mkdaterangeapalong{%
+ \apa@lbx@de@mkdaterangeapalong}%
+ \def\mkdaterangeapalongextra#1{%
+ \apa@lbx@de@mkdaterangeapalongextra{#1}}%
+}
+
+\UndeclareBibliographyExtras{%
+ \restorecommand\mkdaterangeapalong
+ \restorecommand\mkdaterangeapalongextra
+}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/brazilian-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/brazilian-apa.lbx
index c04fd334cf5..5a0bdede219 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/brazilian-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/brazilian-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{brazilian-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{brazilian-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{brazilian}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/british-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/british-apa.lbx
index faa16e453e3..c6577e72e14 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/british-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/british-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{british-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{british-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{british}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/danish-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/danish-apa.lbx
index 92bd17f08ca..8f4d283963c 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/danish-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/danish-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{danish-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{danish-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{danish}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/dutch-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/dutch-apa.lbx
index 025aeffe1a2..f67c4714f25 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/dutch-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/dutch-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{dutch-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{dutch-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{dutch}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/english-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/english-apa.lbx
index e3c6f5e8c6e..8ea04306c6d 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/english-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/english-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{english-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{english-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{english}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/french-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/french-apa.lbx
index 5575696a536..a3e5db705f0 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/french-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/french-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{french-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{french-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{french}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/german-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/german-apa.lbx
index 8c7fc83e7b6..642ce2babcb 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/german-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/german-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{german-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{german-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{german}
% (APA 6.22) The example abbreviations
@@ -71,56 +71,123 @@
\protected\def\mkbibdateapalong#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongextra#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}\printfield{extradate}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \printfield{extradate}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongmdy#1#2#3{%
\iffieldundef{#3}%
{}%
- {\stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}}%
\iffieldundef{#2}%
{}%
{\iffieldundef{#3}%
{}%
- {\adddot\addspace}%
+ {\addspace}%
\mkbibmonth{\thefield{#2}}}%
\iffieldundef{#1}%
{}%
{\iffieldundef{#2}%
{}%
{\addspace}%
- \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}}
+ \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}%
+ \def\apa@lbx@de@mkdaterangeapalong#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\datecircaprint
+ \ifstrequal{#1}{url}% URL dates are unlikely to be BCE ...
+ {\printtext{%
+ \iffieldsequal{#1year}{#1endyear}
+ {\iffieldsequal{#1month}{#1endmonth}
+ {\mkbibdateapalongmdy{}{}{#1day}}
+ {\mkbibdateapalongmdy{}{#1month}{#1day}}}
+ {\mkbibdateapalongmdy{#1year}{#1month}{#1day}}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \mkbibdateapalongmdy{#1endyear}{#1endmonth}{#1endday}}}%
+ \dateuncertainprint}}
+ {\printtext{%
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalong{#1year}{}{#1day}}%
+ {\mkbibdateapalong{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalong{}{#1endmonth}{#1endday}}%
+ {\mkbibdateapalong{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}}%
+ \endgroup}%
+ \def\apa@lbx@de@mkdaterangeapalongextra#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\printtext{%
+ \datecircaprint
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalongextra{#1year}{}{#1day}}%
+ {\mkbibdateapalongextra{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \dateuncertainprint
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalongextra{}{#1endmonth}{#1endday}}
+ {\mkbibdateapalongextra{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}%
+ \endgroup}%
+ \savecommand\mkdaterangeapalong
+ \savecommand\mkdaterangeapalongextra
+ \def\mkdaterangeapalong{%
+ \apa@lbx@de@mkdaterangeapalong}%
+ \def\mkdaterangeapalongextra#1{%
+ \apa@lbx@de@mkdaterangeapalongextra{#1}}%
+}
+\UndeclareBibliographyExtras{%
+ \restorecommand\mkdaterangeapalong
+ \restorecommand\mkdaterangeapalongextra
+}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/greek-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/greek-apa.lbx
index 28b81da4cb5..5d7c42135c8 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/greek-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/greek-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{greek-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{greek-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{greek}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/italian-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/italian-apa.lbx
index 11eebac8923..544a3e7640e 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/italian-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/italian-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{italian-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{italian-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{italian}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/naustrian-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/naustrian-apa.lbx
index 21cf05f7c77..4811fbd6711 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/naustrian-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/naustrian-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{naustrian-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{naustrian-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{naustrian}
% (APA 6.22) The example abbreviations
@@ -71,55 +71,123 @@
\protected\def\mkbibdateapalong#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongextra#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}\printfield{extradate}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \printfield{extradate}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongmdy#1#2#3{%
\iffieldundef{#3}%
{}%
- {\stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}}%
\iffieldundef{#2}%
{}%
{\iffieldundef{#3}%
{}%
- {\adddot\addspace}%
+ {\addspace}%
\mkbibmonth{\thefield{#2}}}%
\iffieldundef{#1}%
{}%
{\iffieldundef{#2}%
{}%
{\addspace}%
- \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}}
+ \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}%
+ \def\apa@lbx@de@mkdaterangeapalong#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\datecircaprint
+ \ifstrequal{#1}{url}% URL dates are unlikely to be BCE ...
+ {\printtext{%
+ \iffieldsequal{#1year}{#1endyear}
+ {\iffieldsequal{#1month}{#1endmonth}
+ {\mkbibdateapalongmdy{}{}{#1day}}
+ {\mkbibdateapalongmdy{}{#1month}{#1day}}}
+ {\mkbibdateapalongmdy{#1year}{#1month}{#1day}}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \mkbibdateapalongmdy{#1endyear}{#1endmonth}{#1endday}}}%
+ \dateuncertainprint}}
+ {\printtext{%
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalong{#1year}{}{#1day}}%
+ {\mkbibdateapalong{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalong{}{#1endmonth}{#1endday}}%
+ {\mkbibdateapalong{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}}%
+ \endgroup}%
+ \def\apa@lbx@de@mkdaterangeapalongextra#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\printtext{%
+ \datecircaprint
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalongextra{#1year}{}{#1day}}%
+ {\mkbibdateapalongextra{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \dateuncertainprint
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalongextra{}{#1endmonth}{#1endday}}
+ {\mkbibdateapalongextra{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}%
+ \endgroup}%
+ \savecommand\mkdaterangeapalong
+ \savecommand\mkdaterangeapalongextra
+ \def\mkdaterangeapalong{%
+ \apa@lbx@de@mkdaterangeapalong}%
+ \def\mkdaterangeapalongextra#1{%
+ \apa@lbx@de@mkdaterangeapalongextra{#1}}%
+}
+
+\UndeclareBibliographyExtras{%
+ \restorecommand\mkdaterangeapalong
+ \restorecommand\mkdaterangeapalongextra
+}
%
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/ngerman-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/ngerman-apa.lbx
index 5d954cb2dad..fc15245ad47 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/ngerman-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/ngerman-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{ngerman-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{ngerman-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{ngerman}
% (APA 6.22) The example abbreviations
@@ -71,56 +71,123 @@
\protected\def\mkbibdateapalong#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongextra#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}\printfield{extradate}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \printfield{extradate}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongmdy#1#2#3{%
\iffieldundef{#3}%
{}%
- {\stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}}%
\iffieldundef{#2}%
{}%
{\iffieldundef{#3}%
{}%
- {\adddot\addspace}%
+ {\addspace}%
\mkbibmonth{\thefield{#2}}}%
\iffieldundef{#1}%
{}%
{\iffieldundef{#2}%
{}%
{\addspace}%
- \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}}
+ \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}%
+ \def\apa@lbx@de@mkdaterangeapalong#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\datecircaprint
+ \ifstrequal{#1}{url}% URL dates are unlikely to be BCE ...
+ {\printtext{%
+ \iffieldsequal{#1year}{#1endyear}
+ {\iffieldsequal{#1month}{#1endmonth}
+ {\mkbibdateapalongmdy{}{}{#1day}}
+ {\mkbibdateapalongmdy{}{#1month}{#1day}}}
+ {\mkbibdateapalongmdy{#1year}{#1month}{#1day}}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \mkbibdateapalongmdy{#1endyear}{#1endmonth}{#1endday}}}%
+ \dateuncertainprint}}
+ {\printtext{%
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalong{#1year}{}{#1day}}%
+ {\mkbibdateapalong{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalong{}{#1endmonth}{#1endday}}%
+ {\mkbibdateapalong{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}}%
+ \endgroup}%
+ \def\apa@lbx@de@mkdaterangeapalongextra#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\printtext{%
+ \datecircaprint
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalongextra{#1year}{}{#1day}}%
+ {\mkbibdateapalongextra{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \dateuncertainprint
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalongextra{}{#1endmonth}{#1endday}}
+ {\mkbibdateapalongextra{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}%
+ \endgroup}%
+ \savecommand\mkdaterangeapalong
+ \savecommand\mkdaterangeapalongextra
+ \def\mkdaterangeapalong{%
+ \apa@lbx@de@mkdaterangeapalong}%
+ \def\mkdaterangeapalongextra#1{%
+ \apa@lbx@de@mkdaterangeapalongextra{#1}}%
+}
+\UndeclareBibliographyExtras{%
+ \restorecommand\mkdaterangeapalong
+ \restorecommand\mkdaterangeapalongextra
+}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/norsk-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/norsk-apa.lbx
index 6fed73d22d1..e32047862a6 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/norsk-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/norsk-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{norsk-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{norsk-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{norsk}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/norwegian-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/norwegian-apa.lbx
index abaf82f649c..d27cbea15cd 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/norwegian-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/norwegian-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{norwegian-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{norwegian-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{norwegian}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/nswissgerman-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/nswissgerman-apa.lbx
index fae5e60925d..b877614dc0e 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/nswissgerman-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/nswissgerman-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{nswissgerman-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{nswissgerman-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{nswissgerman}
% (APA 6.22) The example abbreviations
@@ -71,55 +71,123 @@
\protected\def\mkbibdateapalong#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongextra#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}\printfield{extradate}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \printfield{extradate}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongmdy#1#2#3{%
\iffieldundef{#3}%
{}%
- {\stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}}%
\iffieldundef{#2}%
{}%
{\iffieldundef{#3}%
{}%
- {\adddot\addspace}%
+ {\addspace}%
\mkbibmonth{\thefield{#2}}}%
\iffieldundef{#1}%
{}%
{\iffieldundef{#2}%
{}%
{\addspace}%
- \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}}
+ \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}%
+ \def\apa@lbx@de@mkdaterangeapalong#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\datecircaprint
+ \ifstrequal{#1}{url}% URL dates are unlikely to be BCE ...
+ {\printtext{%
+ \iffieldsequal{#1year}{#1endyear}
+ {\iffieldsequal{#1month}{#1endmonth}
+ {\mkbibdateapalongmdy{}{}{#1day}}
+ {\mkbibdateapalongmdy{}{#1month}{#1day}}}
+ {\mkbibdateapalongmdy{#1year}{#1month}{#1day}}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \mkbibdateapalongmdy{#1endyear}{#1endmonth}{#1endday}}}%
+ \dateuncertainprint}}
+ {\printtext{%
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalong{#1year}{}{#1day}}%
+ {\mkbibdateapalong{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalong{}{#1endmonth}{#1endday}}%
+ {\mkbibdateapalong{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}}%
+ \endgroup}%
+ \def\apa@lbx@de@mkdaterangeapalongextra#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\printtext{%
+ \datecircaprint
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalongextra{#1year}{}{#1day}}%
+ {\mkbibdateapalongextra{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \dateuncertainprint
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalongextra{}{#1endmonth}{#1endday}}
+ {\mkbibdateapalongextra{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}%
+ \endgroup}%
+ \savecommand\mkdaterangeapalong
+ \savecommand\mkdaterangeapalongextra
+ \def\mkdaterangeapalong{%
+ \apa@lbx@de@mkdaterangeapalong}%
+ \def\mkdaterangeapalongextra#1{%
+ \apa@lbx@de@mkdaterangeapalongextra{#1}}%
+}
+
+\UndeclareBibliographyExtras{%
+ \restorecommand\mkdaterangeapalong
+ \restorecommand\mkdaterangeapalongextra
+}
%
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/nynorsk-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/nynorsk-apa.lbx
index c1e7ed82aa3..cb62de27eaa 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/nynorsk-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/nynorsk-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{nynorsk-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{nynorsk-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{nynorsk}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/portuguese-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/portuguese-apa.lbx
index df436c3a9ae..7b707591346 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/portuguese-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/portuguese-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{portuguese-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{portuguese-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{portuguese}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/russian-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/russian-apa.lbx
index 2527951deab..57fa13a7549 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/russian-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/russian-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{russian-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{russian-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{russian}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/slovene-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/slovene-apa.lbx
index f0c9a28c3ed..2588a4832cc 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/slovene-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/slovene-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{slovene-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{slovene-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{slovene}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/spanish-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/spanish-apa.lbx
index 564c2797408..052b6b5bb99 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/spanish-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/spanish-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{spanish-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{spanish-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{spanish}
\setcounter{smartand}{0} % Turn off "smart and" or ampersands will all be replaced
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/swedish-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/swedish-apa.lbx
index 9c33c3d2e06..75ccf7cac04 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/swedish-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/swedish-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{swedish-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{swedish-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{swedish}
% (APA 6.22) The example abbreviations
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/swissgerman-apa.lbx b/Master/texmf-dist/tex/latex/biblatex-apa/swissgerman-apa.lbx
index 00ec43c9881..c31776b2775 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/swissgerman-apa.lbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/swissgerman-apa.lbx
@@ -1,4 +1,4 @@
-\ProvidesFile{swissgerman-apa.lbx}[2017/11/05\space v7.5\space APA biblatex localisation]
+\ProvidesFile{swissgerman-apa.lbx}[2018/03/05\space v7.6\space APA biblatex localisation]
\InheritBibliographyExtras{swissgerman}
% Following DGPs guidlines for German/Austrian/Swiss German
@@ -71,55 +71,123 @@
\protected\def\mkbibdateapalong#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongextra#1#2#3{%
\iffieldundef{#1}%
{}%
- {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}\printfield{extradate}}%
+ {\iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}%
+ \printfield{extradate}%
+ \ifboolexpr{test {\iffieldundef{#3}} and test {\iffieldundef{#2}}}
+ {}
+ {\addcomma\space}}%
\iffieldundef{#3}%
{}%
- {\iffieldundef{#1}%
- {}
- {\addcomma\addspace}%
- \stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}%
+ \iffieldundef{#2}
+ {}
+ {\addspace}}%
\iffieldundef{#2}%
{}%
- {\iffieldundef{#3}
- {\iffieldundef{#1}
- {}
- {\addspace}}%
- {\adddot\addspace}%
- \mkbibmonth{\thefield{#2}}}}%
+ {\mkbibmonth{\thefield{#2}}}}%
\protected\def\mkbibdateapalongmdy#1#2#3{%
\iffieldundef{#3}%
{}%
- {\stripzeros{\thefield{#3}}}%
+ {\mkbibordinal{\thefield{#3}}}%
\iffieldundef{#2}%
{}%
{\iffieldundef{#3}%
{}%
- {\adddot\addspace}%
+ {\addspace}%
\mkbibmonth{\thefield{#2}}}%
\iffieldundef{#1}%
{}%
{\iffieldundef{#2}%
{}%
{\addspace}%
- \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}}
+ \iffieldbibstring{#1}{\bibstring{\thefield{#1}}}{\thefield{#1}}}}%
+ \def\apa@lbx@de@mkdaterangeapalong#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\datecircaprint
+ \ifstrequal{#1}{url}% URL dates are unlikely to be BCE ...
+ {\printtext{%
+ \iffieldsequal{#1year}{#1endyear}
+ {\iffieldsequal{#1month}{#1endmonth}
+ {\mkbibdateapalongmdy{}{}{#1day}}
+ {\mkbibdateapalongmdy{}{#1month}{#1day}}}
+ {\mkbibdateapalongmdy{#1year}{#1month}{#1day}}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \mkbibdateapalongmdy{#1endyear}{#1endmonth}{#1endday}}}%
+ \dateuncertainprint}}
+ {\printtext{%
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalong{#1year}{}{#1day}}%
+ {\mkbibdateapalong{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalong{}{#1endmonth}{#1endday}}%
+ {\mkbibdateapalong{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}}%
+ \endgroup}%
+ \def\apa@lbx@de@mkdaterangeapalongextra#1{%
+ \begingroup
+ \blx@metadateinfo{#1}%
+ \iffieldundef{#1year}{}
+ {\printtext{%
+ \datecircaprint
+ \ifboolexpr{test {\iffieldsequal{#1year}{#1endyear}}
+ and test {\iffieldsequal{#1month}{#1endmonth}}}
+ {\mkbibdateapalongextra{#1year}{}{#1day}}%
+ {\mkbibdateapalongextra{#1year}{#1month}{#1day}}%
+ \dateeraprint{#1year}%
+ \dateuncertainprint
+ \iffieldundef{#1endyear}%
+ {}%
+ {\iffieldequalstr{#1endyear}{}% open-ended range?
+ {\mbox{\bibdatedash}}
+ {\bibdatedash%
+ \iffieldsequal{#1year}{#1endyear}%
+ {\mkbibdateapalongextra{}{#1endmonth}{#1endday}}
+ {\mkbibdateapalongextra{#1endyear}{#1endmonth}{#1endday}%
+ \dateeraprint{#1endyear}}}%
+ \enddateuncertainprint}}}%
+ \endgroup}%
+ \savecommand\mkdaterangeapalong
+ \savecommand\mkdaterangeapalongextra
+ \def\mkdaterangeapalong{%
+ \apa@lbx@de@mkdaterangeapalong}%
+ \def\mkdaterangeapalongextra#1{%
+ \apa@lbx@de@mkdaterangeapalongextra{#1}}%
+}
+
+\UndeclareBibliographyExtras{%
+ \restorecommand\mkdaterangeapalong
+ \restorecommand\mkdaterangeapalongextra
+}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%