diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx | 67 |
1 files changed, 65 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx b/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx index e48423c38b1..c75b5faf5a3 100644 --- a/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx @@ -74,6 +74,65 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% + +% Date formats. Suppress end range of less specific fields + +\newcommand*{\mkbibrangeapalong}[1]{% + \ifthenelse{\equal{#1}{url}\OR\equal{#1}{event}} + {\printtext{% + \mkbibdateapalongdmy{#1year}{#1month}{#1day}% + \iffieldundef{#1endyear}% + {}% + {\iffieldequalstr{#1endyear}{}% open-ended range? + {\mbox{\bibdatedash}} + {\bibdatedash% + \iffieldsequal{#1year}{#1endyear}% + {\iffieldsequal{#1month}{#1endmonth}% + {\iffieldsequal{#1day}{#1endday}% + {}% + {\mkbibdateapalongdmy{}{}{#1endday}}}% + {\mkbibdateapalongdmy{}{#1endmonth}{#1endday}}}% + {\mkbibdateapalongdmy{#1endyear}{#1endmonth}{#1endday}}}}}} + {\printtext{% + \mkbibdateapalong{#1year}{#1month}{#1day}% + \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}}}}}}} + + +% Only for DATE as only \printdateextra is used +\newcommand*{\mkbibrangeapalongextra}[1]{% + \printtext{% + \mkbibdateapalongextra{#1year}{#1month}{#1day}% + \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}}}}}} + + +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (APA 6.12) Five author max before "et al" and a one author truncation % policy. Note that this doesn't really work properly due to @@ -98,7 +157,7 @@ minnames=999,% abbreviate=true,% mincrossrefs=999,% - alldates=long} + alldates=apalong} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -242,7 +301,7 @@ {\iffieldundef{origyear} {\printtext[parens]{\usebibmacro{cite:noyear}}} {\printtext[yearorunkyear]{\printfield[noformat]{origyear}}}} - {\printtext[yearorunkyear]{\printdate}}} + {\printtext[yearorunkyear]{\printdateextra}}} \DeclareFieldFormat{yearorunkyear}{% \ifthenelse{\iffieldequalstr{usere}{unkdate}\OR\iffieldequalstr{usere}{unkauthdate}} @@ -1622,6 +1681,10 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% + % Unchanged from authoryear-comp (biblatex v0.9) \DeclareBibliographyOption{dashed}[true]{% |