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 | 64 |
1 files changed, 55 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx b/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx index 2101b40c9a8..d1a813d4377 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 @@ -%% apa.bbx v4.2 +%% apa.bbx v4.3 %% Copyright 2011 Philip Kime %% %% This work may be distributed and/or modified under the @@ -28,6 +28,17 @@ \ProvidesFile{apa.bbx} \RequireBiber[1] \RequireBibliographyStyle{standard} +\urlstyle{rm} % APA examples all have URLs in same font as text + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Used to join citations/references to +% extrayear + +\newcommand{\apashortdash}{-} + +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Allow variable max authors/editors limit @@ -153,10 +164,43 @@ % (APA 6.16) uses year postfix to disambiguate multiple items in same year % (APA 6.10) Never reference anything not cited % (APA 6.25) author initials only -% (APA 6.25) sorting is nyt +% (APA 6.25) sorting is nyt but we need to account for PUBSTATE which comes +% after all normal cites for the same author + +\DeclareSortingScheme{apa}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \name{sortname} + \name{author} + \name{editor} + \name{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + \field{pubstate} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} + } +} + +\DeclareLabelyear{pubstate,year,eventyear,origyear,urlyear} \ExecuteBibliographyOptions{labelyear=true,% - sorting=nyt,% + sorting=apa,% pagetracker=true,% firstinits=true,% useprefix=true,% @@ -324,8 +368,14 @@ \iffieldundef{labelyear} {\iffieldundef{origyear} {\printtext[parens]{\usebibmacro{noyear}}} - {\printtext[yearorunkyear]{\printfield[noformat]{origyear}}}} - {\printtext[yearorunkyear]{\printdateextra}}} + {\printtext[yearorunkyear]{\printfield[noformat]{origyear}}}}% + {\ifthenelse{\iffieldequalstr{labelyear}{inpress}\OR\iffieldequalstr{labelyear}{in press}} + {\printtext[parens]{\biblcstring{inpress}% + \iffieldundef{extrayear} + {\setunit{\relax}} + {\setunit{\apashortdash}}% + \printfield{extrayear}}} + {\printtext[yearorunkyear]{\printdateextra}}}} \DeclareFieldFormat{yearorunkyear}{% \ifthenelse{\iffieldequalstr{usere}{unkdate}\OR\iffieldequalstr{usere}{unkauthdate}} @@ -1087,8 +1137,6 @@ \setunit{\bibpagespunct}% \printfield{pages}% \newunit\newblock - \printfield{pubstate}% - \newunit\newblock \printfield{note}% \newunit\newblock \usebibmacro{doi+eprint+url}% @@ -1345,8 +1393,6 @@ \newunit\newblock \printfield{note}% \newunit\newblock - \usebibmacro{date}% - \newunit\newblock \usebibmacro{doi+eprint+url}% \newunit\newblock \printfield{addendum}% |