summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx53
1 files changed, 15 insertions, 38 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx b/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx
index 65f1efd3992..c06813da8b4 100644
--- a/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx
@@ -12,7 +12,7 @@
%%
%% The Current Maintainer of this work is Philip Kime.
-\ProvidesFile{apa.bbx}[2019/11/29\space v9.2\space APA biblatex references style]
+\ProvidesFile{apa.bbx}[2019/12/21\space v9.3\space APA biblatex references style]
\RequireBiber[3]
\RequireBibliographyStyle{standard}
\urlstyle{rm} % APA examples all have URLs in same font as text
@@ -310,10 +310,20 @@
% Enforce ignoring of PUBSTATE if there is a YEAR or DATE field
% (APA 10.2:32) Remove PUBLISHER if it is the same as GROUPAUTHOR
-
+% Force @COLLECTION->@BOOK and @INCOLLECTION->@INBOOK
+
\DeclareStyleSourcemap{
\maps[datatype=bibtex]{
\map{
+ \step[typesource=collection, typetarget=book]
+ }
+ \map{
+ \step[typesource=incollection, typetarget=inbook]
+ }
+ \map{
+ \step[typesource=hardware, typetarget=software]
+ }
+ \map{
\step[fieldsource=year, final]
\step[fieldset=pubstate, null]
}
@@ -322,9 +332,6 @@
\step[fieldset=pubstate, null]
}
\map{
- \step[typesource=hardware, typetarget=software, final]
- }
- \map{
\step[fieldsource=groupauthor, match=\regexp{([^{}]+)}, final]
\step[fieldsource=publisher, match=\regexp{$1}, final]%$
\step[fieldset=publisher, null]
@@ -413,6 +420,7 @@
% PAGES
+\DeclareFieldFormat{pageswithprefix}{\mkpageprefix[bookpagination]{#1}}
\DeclareFieldFormat[inbook,incollection]{pages}{\mkpageprefix[bookpagination]{#1}}
\DeclareFieldFormat[periodical]{pages}{#1}
@@ -1273,13 +1281,13 @@
\setunit{\addcomma\addspace}%
\usebibmacro{doi+url}%
\setunit{}}
- {\ifentrytype{incollection}
+ {\ifentrytype{book}
{\mkbibemph{%
\printfield[apacase]{title}%
\setunit{\subtitlepunct}%
\printfield[apacase]{subtitle}}%
\setunit{\addcomma\addspace}%
- \printfield{pages}%
+ \printfield[pageswithprefix]{pages}%
\setunit{\addcomma\addspace}%
\biblstring{byauthor}\space
\printnames[apanames][-\value{listtotal}]{editor}%
@@ -1572,37 +1580,6 @@
\usebibmacro{annotation}%
\usebibmacro{finentry}}
-\DeclareBibliographyDriver{incollection}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/editor}%
- \setunit{\printdelim{nametitledelim}}\newblock
- \usebibmacro{title}%
- \setunit{\addspace}\newblock
- \usebibmacro{apa:related}%
- \newunit\newblock
- \usebibmacro{editor+trans}%
- \setunit*{\addcomma\addspace}\newblock
- \usebibmacro{maintitle+booktitle}%
- \newunit\newblock
- \printfield{note}%
- \newunit\newblock
- \usebibmacro{location+publisher}%
- \newunit\newblock
- \usebibmacro{origyear}%
- \newunit\newblock
- \usebibmacro{doi+url}%
- \newblock
- \printfield{addendum}%
- \newunit\newblock
- \iftoggle{bbx:related}
- {\usebibmacro{related:init}%
- \usebibmacro{related}}
- {}%
- \usebibmacro{pageref}%
- \usebibmacro{annotation}%
- \usebibmacro{finentry}}
-
\DeclareBibliographyDriver{inproceedings}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%