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 | 414 |
1 files changed, 307 insertions, 107 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx b/Master/texmf-dist/tex/latex/biblatex-apa/apa.bbx index 41480df9df5..b514708cea6 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/23\space v9.0\space APA biblatex references style] +\ProvidesFile{apa.bbx}[2019/11/27\space v9.1\space APA biblatex references style] \RequireBiber[3] \RequireBibliographyStyle{standard} \urlstyle{rm} % APA examples all have URLs in same font as text @@ -98,7 +98,16 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Multiple related entries, even though there are no +% examples in APA 7th, should probably be this + +\renewcommand*{\relateddelim}{\addcomma\addspace} + +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Force roman numerals into arabic using % etoolbox macros @@ -123,7 +132,10 @@ \blx@metadateinfo{#1}% \iffieldundef{#1year}{} {\datecircaprint - \ifstrequal{#1}{url}% URL dates are unlikely to be BCE ... + \ifboolexpr{ test {\ifstrequal{#1}{url}} + or test {\ifentrytype{legal}} + or ( test {\ifentrytype{legadminmaterial}} and + test {\ifkeyword{proposed}} ) } {\printtext{% \mkbibdateapalongmdy{#1year}{#1month}{#1day}% \iffieldundef{#1endyear}% @@ -259,10 +271,13 @@ \literal{nodate} } +% CONSTITUTION entrytypes have no dates at all so no fall back to nodate literal either +\DeclareLabeldate[constitution]{\field{date}} + \ExecuteBibliographyOptions{% abbreviate=true,% autocite=inline,% - backref=true,% + backref=false,% citetracker=true,% date=apalong,% dateabbrev=false,% @@ -317,19 +332,6 @@ } } -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% It is not APA standard to have backrefs in the bib -% Some users might like it though. - -\newbool{apa:backref} -\DeclareBibliographyOption{apabackref}{% - \ifstrequal{#1}{true} - {\global\booltrue{apa:backref}} - {\global\boolfalse{apa:backref}}} - -% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Flag to say whether the "in" has % been placed already in IN* @@ -352,27 +354,23 @@ \ifbibstring{#1}{\bibcpstring{#1}}{#1}}} % TITLE -\DeclareFieldFormat{title}{\mkbibemph{#1}\isdot} -\DeclareFieldFormat[article]{title}{#1\isdot} -\DeclareFieldFormat[inbook]{title}{#1\isdot} -\DeclareFieldFormat[incollection]{title}{#1\isdot} -\DeclareFieldFormat[inproceedings]{title}{\mkbibemph{#1}\isdot} -\DeclareFieldFormat[proceedings]{title}{\mkbibemph{#1}\isdot} -\DeclareFieldFormat[periodical]{title}{#1\isdot} -\DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}} -\DeclareFieldFormat[patent]{title}{\mkbibemph{#1}} -\DeclareFieldFormat[unpublished]{title}{\mkbibemph{#1}} -\DeclareFieldFormat[image]{title}{\mkbibemph{#1}} -\DeclareFieldFormat[misc]{title}{#1\isdot} -\DeclareFieldFormat[audio]{title}{\iffieldundef{maintitle}{\mkbibemph{#1}\isdot}{#1}} -\DeclareFieldFormat[video]{title}{\iffieldundef{maintitle}{\mkbibemph{#1}\isdot}{#1}} +\DeclareFieldFormat*{title}{\mkbibemph{#1}\isdot} +\DeclareFieldFormat[article,inbook,incollection,periodical,misc,legislation,legadminmaterial,jurisdiction,inproceedings,legal]{title}{#1\isdot} +\DeclareFieldFormat[audio,video]{title}{\iffieldundef{maintitle}{\mkbibemph{#1}\isdot}{#1}} + +% SUBTITLE +\DeclareFieldFormat[legmaterial]{subtitle}{\mkbibemph{#1}} % TITLEADDON \DeclareFieldFormat{titleaddon}{\mkbibbrackets{\bbx@colon@search\MakeSentenceCase*{#1}}} +\DeclareFieldFormat[legislation]{titleaddon}{#1} % MAINTITLEADDON \DeclareFieldFormat{maintitleaddon}{\mkbibbrackets{\bbx@colon@search\MakeSentenceCase*{#1}}} +% NOTE +\DeclareFieldFormat[legmaterial,legadminmaterial]{note}{\mkbibparens{#1}} + % BOOKTITLEADDON \DeclareFieldFormat{booktitleaddon}{\mkbibbrackets{\bbx@colon@search\MakeSentenceCase*{#1}}} @@ -382,11 +380,8 @@ % ORIGTITLE \DeclareFieldFormat{origtitle}{\mkbibemph{\bbx@colon@search\MakeSentenceCase*{#1}}\isdot} -\DeclareFieldFormat[article]{origtitle}{\bbx@colon@search\MakeSentenceCase*{#1}\isdot} -\DeclareFieldFormat[inbook]{origtitle}{\bbx@colon@search\MakeSentenceCase*{#1}\isdot} -\DeclareFieldFormat[incollection]{origtitle}{\bbx@colon@search\MakeSentenceCase*{#1}\isdot} -\DeclareFieldFormat[inproceedings]{origtitle}{\bbx@colon@search\MakeSentenceCase*{#1}\isdot} -\DeclareFieldFormat[proceedings]{origtitle}{\bbx@colon@search\MakeSentenceCase*{#1}\isdot} + +\DeclareFieldFormat[article,inbook,incollection,inproceedings,proceedings]{origtitle}{\bbx@colon@search\MakeSentenceCase*{#1}\isdot} % VOLUME \DeclareFieldFormat{volume}{\iffieldundef{maintitle} @@ -409,25 +404,35 @@ {\apanum{#1}}} {\mkbibemph{\apanum{#1}}}} \DeclareFieldFormat[report]{number}{\apanum{#1}} -\DeclareFieldFormat[article]{number}{\mkbibparens{\apanum{#1}}} +\DeclareFieldFormat[article,periodical]{number}{\mkbibparens{\apanum{#1}}} \DeclareFieldFormat[reprint]{number}{\mkbibbrackets{\apanum{#1}}} -\DeclareFieldFormat[periodical]{number}{\mkbibparens{\apanum{#1}}} +\DeclareFieldFormat{legmaterialnum}{% + \ifthenelse{% + \iffieldequalstr{type}{report}\OR% + \iffieldequalstr{type}{execorder}}{\bibcpstring{number}~\apanum{#1}}{\apanum{#1}}} + % PAGES -\DeclareFieldFormat[inbook]{pages}{\mkpageprefix[bookpagination]{#1}} -\DeclareFieldFormat[incollection]{pages}{\mkpageprefix[bookpagination]{#1}} +\DeclareFieldFormat[inbook,incollection]{pages}{\mkpageprefix[bookpagination]{#1}} \DeclareFieldFormat[periodical]{pages}{#1} +% PART +\DeclareFieldFormat*{part}{#1} + % LOCATION -\DeclareListFormat[misc]{location}{\mkbibemph{#1}} -\DeclareListFormat[periodical]{location}{\mkbibemph{#1}} +\DeclareListFormat[misc,periodical]{location}{\mkbibemph{#1}} +\DeclareListFormat{publisher}{% + \usebibmacro{publisher:delim}{#1}% + #1\isdot} +\DeclareListFormat{location}{% + \usebibmacro{location:delim}{#1}% + #1\isdot} % NAMEADDON \DeclareFieldFormat[misc]{nameaddon}{\mkbibparens{#1}} % VERSION -\DeclareFieldFormat[dataset]{version}{\bibcpstring{version}~#1} -\DeclareFieldFormat[software]{version}{\bibcpstring{version}~#1} +\DeclareFieldFormat[dataset,software]{version}{\bibcpstring{version}~#1} % URL \DeclareFieldFormat{url}{\url{#1}} @@ -529,6 +534,17 @@ \newunit\newblock% \usebibmacro{labelyear+extradate}} +\newbibmacro*{author/editor:related}{% + \ifthenelse{\ifnameundef{author}\AND\ifnameundef{groupauthor}} + {\ifnameundef{editor} + {\usebibmacro{title}% + % need to clear all title fields so we don't get them again later + \clearfield{title}% + \clearfield{subtitle}% + \clearfield{titleaddon}} + {\usebibmacro{editorinauthpos:related}}} + {\usebibmacro{author:related}}} + \newbibmacro*{editorinauthpos}{% \printnames[apaauthor][-\value{listtotal}]{editor}% \setunit{\addspace}% @@ -538,6 +554,15 @@ % need to clear editor so we don't get an "In" clause later \clearname{editor}}} +\newbibmacro*{editorinauthpos:related}{% + \printnames[apanames][-\value{listtotal}]{editor}% + \setunit{\addspace}% + \ifnameundef{editor} + {} + {\printtext[parens]{\usebibmacro{apaeditorstrg}{editor}}% + % need to clear editor so we don't get an "In" clause later + \clearname{editor}}} + \renewbibmacro*{author}{% \ifnameundef{author} {\printnames[apaauthor][-\value{listtotal}]{groupauthor}} @@ -550,6 +575,12 @@ \printnames[apaauthor][-\value{listtotal}]{with}} \setunit*{\addspace}}} +\newbibmacro*{author:related}{% + \ifnameundef{author} + {\printnames[apanames][-\value{listtotal}]{groupauthor}} + {\printnames[apanames][-\value{listtotal}]{author}}% + \setunit*{\addspace}} + % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -650,17 +681,6 @@ \setunit{\addspace}% \ifentrytype{inbook}{}{\usebibmacro{addinfo1}}% additional info in parens \setunit{\addspace}% - \iffieldundef{related} - {} - {\ifthenelse{\iffieldequalstr{relatedtype}{reviewofbook}\OR% - \iffieldequalstr{relatedtype}{reviewoffilm}\OR% - \iffieldequalstr{relatedtype}{reviewoftv}\OR% - \iffieldequalstr{relatedtype}{commentonarticle}} - {\usebibmacro{related:init}% - \usebibmacro{related}% - \togglefalse{bbx:related}}% disable default related expansion later on - {}}% - \setunit{\addspace}% \printfield{titleaddon}% \setunit{\addspace}% \usebibmacro{addinfo2}}}% @@ -725,7 +745,7 @@ \iffieldundef{eprinttype} {} {\printtext{% - \iffieldbibstring{eprinttype}{\bibcpstring{\strfield{eprinttype}}}{\strfield{eprinttype}}% + \iffieldbibstring{eprinttype}{\bibcplstring{\strfield{eprinttype}}}{\strfield{eprinttype}}% \setunit{\addspace}}}% \printfield{eprint}} @@ -1100,10 +1120,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (APA 10.2.24) Multiple publishers, semi-colon sep -\DeclareListFormat{publisher}{% - \usebibmacro{publisher:delim}{#1}% - #1\isdot} - \newbibmacro*{publisher:delim}[1]{% \ifnumgreater{\value{listcount}}{\value{liststart}} {\printdelim[publisher]{multilistdelim}} @@ -1132,10 +1148,10 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (APA 10.1 Example 18) Comment on article -\newcommand*{\begrelateddelimcommentonarticle}{\addspace} -\DeclareFieldFormat{related:commentonarticle}{\def\bibstring{\blx@imc@bibcpstring}\mkbibbrackets{#1}} +\newcommand*{\begrelateddelimcommenton}{\addspace} +\DeclareFieldFormat{related:commenton}{\def\bibstring{\blx@imc@bibcpstring}\mkbibbrackets{#1}} -\renewbibmacro*{related:commentonarticle}[1]{% +\newbibmacro*{related:commenton}[1]{% \entrydata*{#1}{% \printtext{\mkbibquote{\printfield[apacase]{title}}}}} @@ -1146,24 +1162,15 @@ % (APA 10.7) Reviews - role strings need to be the % short versions in reviews -\newcommand*{\begrelateddelimreviewofbook}{\addspace} -\DeclareFieldFormat{related:reviewofbook}{\def\bibstring{\blx@imc@bibcpsstring}\mkbibbrackets{#1}} -\newbibmacro*{related:reviewofbook}[1]{\usebibmacro{related:reviewofx}{#1}} - -\newcommand*{\begrelateddelimreviewoffilm}{\addspace} -\DeclareFieldFormat{related:reviewoffilm}{\def\bibstring{\blx@imc@bibcpsstring}\mkbibbrackets{#1}} -\newbibmacro*{related:reviewoffilm}[1]{\usebibmacro{related:reviewofx}{#1}} - -\newcommand*{\begrelateddelimreviewoftv}{\addspace} -\DeclareFieldFormat{related:reviewoftv}{\def\bibstring{\blx@imc@bibcpsstring}\mkbibbrackets{#1}} -\newbibmacro*{related:reviewoftv}[1]{\usebibmacro{related:reviewofx}{#1}} - \DeclareFieldFormat{reviewtitle}{% \iffieldequalstr{entrysubtype}{tvepisode} {\mkbibquote{\bbx@colon@search\MakeSentenceCase*{#1}}} {\bbx@colon@search\MakeSentenceCase*{#1}}} -\newbibmacro*{related:reviewofx}[1]{% +\newcommand*{\begrelateddelimreviewof}{\addspace} +\DeclareFieldFormat{related:reviewof}{\def\bibstring{\blx@imc@bibcpsstring}\mkbibbrackets{#1}} + +\newbibmacro*{related:reviewof}[1]{% \entrydata*{#1}{% \printtext{\mkbibemph{% \printfield[reviewtitle]{title}% @@ -1174,7 +1181,7 @@ \setunit{\addcomma\addspace}% \biblstring{byauthor}% \setunit{\addspace}% - \printnames[apanames][-\value{listtotal}]{author}}}} + \usebibmacro{author/editor:related}}}} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1219,8 +1226,20 @@ {}} \newcommand*{\begrelateddelimreprintfrom}{\addperiod\addspace} + +% Some APA related entries are just after title, some are at the end of +% the entry. This is for those after the title +\newbibmacro*{apa:related}{% + \iffieldundef{related} + {} + {\ifthenelse{\iffieldequalstr{relatedtype}{reviewof}\OR% + \iffieldequalstr{relatedtype}{commenton}} + {\usebibmacro{related:init}% + \usebibmacro{related}% + \togglefalse{bbx:related}}% disable default related expansion later on + {}}} + \DeclareFieldFormat{related:reprintfrom}{\let\bibstring\bibcpstring\mkbibparens{#1}} -\DeclareFieldFormat{related:reviewof}{\mkbibbrackets{#1}} \renewbibmacro*{related:reprintfrom}[1]{% \entrydata*{#1}{% @@ -1294,7 +1313,76 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% (APA 11.4) Court cases + +\newtoggle{apa:courtdate} + +\DeclareListFormat{citation}{% + \global\toggletrue{apa:courtdate}% + \hasitemannotation[\currentlist][citeorg]% + {#1\addspace\mkbibparens{\getitemannotation[\currentlist][citeorg]% + \hasitemannotation[\currentlist][citedate] + {\addspace\getitemannotation[\currentlist][citedate]% + \global\togglefalse{apa:courtdate}} % disable normal date printing if it's in the citation info + {}}} + {\ifitemannotation[\currentlist][citeinfo]{appeal} + {\mkbibemph{#1}} + {#1}}% + \ifthenelse{\value{listcount}<\value{liststop}} + {\addcomma\addspace} + {}} + +\DeclareFieldFormat{courtdate}{% + % disable normal date printing if it's in the citation info + \iftoggle{apa:courtdate} + {\iflistundef{organization} + {\printtext{\mkbibparens{#1}}} + {\printtext{\mkbibparens{% + \printlist{organization}\space #1}}}} + {}} + +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% (APA 11.5) Statutes + +\newbibmacro*{statdate}{% + \iffieldundef{origyear} + {\printtext[parens]{\printlabeldate}} + {\printtext[parens]{\printorigdate% + \addspace\&\addspace rev\adddot\addspace\printlabeldate}}} + +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% (APA 11.6) Legislative Material and Admin Material + +\newbibmacro*{location:delim}[1]{% + \ifnumgreater{\value{listcount}}{\value{liststart}} + {\printdelim[location]{multilistdelim}} + {}} + +\DeclareDelimFormat[location]{multilistdelim}{\addcomma\space} +\DeclareDelimFormat[location]{finallistdelim}{\addcomma\space} + +\newbibmacro*{legmattitle}{% + \iffieldundef{title} + {\bibcpsstring{\thefield{source}}% + \setunit*{\addspace}% + \bibcpsstring{\thefield{type}}% + \setunit*{\addspace}% + \printfield[legmaterialnum]{number}} + {\printfield{title}% + \setunit*{\addcolon\addspace}\newblock + \printfield{subtitle}}} + +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (APA 10.x) General entrytype drivers % Custom driver to make a cleaner example for 9.44 @@ -1309,6 +1397,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \usebibmacro{journal+issuetitle}% \setunit{\bibpagespunct}% @@ -1326,7 +1416,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1336,6 +1426,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \usebibmacro{mainaudio}% \newunit\newblock @@ -1351,7 +1443,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1374,7 +1466,28 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% + \usebibmacro{annotation}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{constitution}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \bibcpsstring{\thefield{source}}% + \setunit{\addspace}\newblock + \bibcpsstring{\thefield{type}}% + \setunit{\addspace}\newblock + \iffieldundef{amendment}{}{\bibsstring{amendment}\setunit{\addspace}\printfield{amendment}}% + \setunit{\addcomma\addspace}\newblock + \iffieldundef{article}{}{\bibsstring{article}\setunit{\addspace}\printfield{article}}% + \setunit{\addcomma\addspace}\newblock + \iffieldundef{section}{}{\bibsstring{section}\setunit{\addspace}\printfield{section}}% + \setunit{\addcomma\addspace}\newblock + \iffieldundef{part}{}{\bibsstring{paragraph}\setunit{\addspace}\printfield{part}}% + \setunit{\addspace}\newblock + \ifkeyword{repealed}{\printtext[parens]{\biblcsstring{repealed}\setunit{\addspace}\printeventdate}}{}% + \usebibmacro{doi+url}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1403,7 +1516,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1424,7 +1537,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1434,6 +1547,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \usebibmacro{editor+trans}% \newblock @@ -1453,7 +1568,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1463,6 +1578,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \usebibmacro{editor+trans}% \setunit*{\addcomma\addspace}\newblock @@ -1482,7 +1599,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1492,6 +1609,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \usebibmacro{editor+trans}% \setunit*{\addcomma\addspace}\newblock @@ -1518,7 +1637,83 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% + \usebibmacro{annotation}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{jurisdiction}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \printfield{title}% + \setunit{\addcomma\addspace}\newblock + \printlist{citation}% + \setunit{\addspace}\newblock + \printtext[courtdate]{\printlabeldate}% + \newunit\newblock + \usebibmacro{doi+url}% + \usebibmacro{pageref}% + \usebibmacro{annotation}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{legal}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \printfield{title}% + \setunit{\addspace}% + \printfield{titleaddon}% + \setunit{\addcomma\addspace}\newblock + \printlabeldate% + \setunit{\addcomma\addspace}\newblock + \usebibmacro{doi+url}% + \usebibmacro{pageref}% + \usebibmacro{annotation}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{legislation}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \printfield{title}% + \setunit{\addspace}% + \printfield{titleaddon}% + \setunit{\addcomma\addspace}\newblock + \printlist{location}% + \setunit{\addspace}\newblock + \usebibmacro{statdate}% + \newunit\newblock + \usebibmacro{doi+url}% + \usebibmacro{pageref}% + \usebibmacro{annotation}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{legadminmaterial}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{legmattitle}% + \setunit{\addcomma\addspace}\newblock + \printlist{citation}% + \setunit{\addspace}\newblock + \printtext[parens]{\ifkeyword{proposed}{\bibstring{proposed}\space}{}\printlabeldate}% + \setunit{\addspace}\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{doi+url}% + \usebibmacro{pageref}% + \usebibmacro{annotation}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{legmaterial}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{legmattitle}% + \setunit{\addcomma\addspace}\newblock + \printlist{location}% + \setunit{\addspace}\newblock + \printtext[parens]{\printlabeldate}% + \setunit{\addspace}\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{doi+url}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1547,7 +1742,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1557,6 +1752,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \usebibmacro{location+publisher}% \newunit\newblock @@ -1568,7 +1765,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1578,6 +1775,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \printlist{organization}% \addperiod\addspace @@ -1590,7 +1789,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1600,6 +1799,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \usebibmacro{location+publisher}% \newunit\newblock @@ -1613,7 +1814,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{finentry}} \DeclareBibliographyDriver{periodical}{% @@ -1641,7 +1842,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1651,6 +1852,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \usebibmacro{eventinfo}% \setunit{\addcomma\addspace}% @@ -1674,7 +1877,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1684,6 +1887,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \printlist{institution}% \newunit\newblock @@ -1699,7 +1904,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1721,7 +1926,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1746,7 +1951,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1756,6 +1961,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \setunit{\addspace}% \printfield{howpublished}% \newunit\newblock @@ -1773,7 +1980,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1783,6 +1990,8 @@ \usebibmacro{author/editor}% \setunit{\printdelim{nametitledelim}}\newblock \usebibmacro{title}% + \setunit{\addspace}\newblock + \usebibmacro{apa:related}% \newunit\newblock \usebibmacro{mainvideo}% \newunit\newblock @@ -1796,7 +2005,7 @@ {\usebibmacro{related:init}% \usebibmacro{related}} {}% - \usebibmacro{apa:pageref}% + \usebibmacro{pageref}% \usebibmacro{annotation}% \usebibmacro{finentry}} @@ -1878,15 +2087,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Wrapper for backrefs - -\newbibmacro{apa:pageref}{% - \ifbool{apa:backref}{\usebibmacro{pageref}}{}} - -% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Unchanged from authoryear-comp \DeclareBibliographyOption{dashed}[true]{% |