diff options
author | Karl Berry <karl@freefriends.org> | 2018-03-06 22:53:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-03-06 22:53:21 +0000 |
commit | 140769096e908112bbcc671d753085475a83503b (patch) | |
tree | cc41fd1a102d4db681c7ac37901864c897dad0c1 /Master/texmf-dist/tex/latex/biblatex-apa/nswissgerman-apa.lbx | |
parent | 68f82734361bd2681fdbec0be05baa870c9c5381 (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/nswissgerman-apa.lbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-apa/nswissgerman-apa.lbx | 120 |
1 files changed, 94 insertions, 26 deletions
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 +} % |