summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-notes.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-chicago/chicago-notes.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-chicago/chicago-notes.bbx199
1 files changed, 164 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-notes.bbx b/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-notes.bbx
index e0d5e5a59af..b132de4700c 100644
--- a/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-notes.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-notes.bbx
@@ -1,10 +1,10 @@
-% $Id: chicago-notes.bbx,v 0.9.8.28 2016/06/07 07:43:24 dfussner Exp $
+% $Id: chicago-notes.bbx,v 0.10.1.14 2018/01/11 09:17:35 dfussner Exp $
% This is a biblatex style file, adapted mainly from Lehman's standard.bbx
% It provides the bibliography formatting for the Chicago notes +
% bibliography style.
-\ProvidesFile{chicago-notes.bbx}[2016/06/07 v 3.4 biblatex bibliography style]
+\ProvidesFile{chicago-notes.bbx}[2018/01/11 v 3.10 biblatex bibliography style]
%%%% Initialize and format bibliography and los %%%%
@@ -13,7 +13,11 @@
\DeclareFieldFormat{shorthandwidth}{#1}
-\DeclareFieldFormat{shortjournalwidth}{\mkbibemph{\textbf{#1}}\isdot}
+\DeclareFieldFormat{shortjournalwidth}{%
+ \ifthenelse{\ifentrytype{jurisdiction}\OR%
+ \ifentrytype{legal}\OR\ifentrytype{legislation}}%
+ {\textbf{#1}\isdot}%
+ {\mkbibemph{\textbf{#1}}\isdot}}%
\newlength{\lositemsep}
@@ -123,7 +127,10 @@
{\item}
\defbibcheck{shortjournal}{% Only one list
- \iffieldundef{shortjournal}%
+ \ifthenelse{\iffieldundef{shortjournal}\OR%
+ \iffieldsequal{journaltitle}{shortjournal}\OR%
+ \(\iffieldundef{journaltitle}\AND\(\ifentrytype{legal}\OR%
+ \ifentrytype{legislation}\OR\ifentrytype{jurisdiction}\)\)}%
{\skipentry}%
{\ifcsdef{\strfield{shortjournal}}%
{\skipentry}%
@@ -145,6 +152,7 @@
}%
\AtEveryBibitem{%
+ \global\csundef{@cmsst}%
\iffieldequalstr{pubstate}{reprint}%
{\toggletrue{cms@reprint}}%
{\togglefalse{cms@reprint}}%
@@ -173,6 +181,7 @@
{}}}}%
\AtEveryLositem{%
+ \global\csundef{@cmsst}%
\iffieldequalstr{pubstate}{reprint}%
{\toggletrue{cms@reprint}}%
{\togglefalse{cms@reprint}}%
@@ -200,6 +209,13 @@
{\toggletrue{cms@switchdates}}%
{}}}}%
+\AtEveryBiblistitem{shortjournal}{%
+ \global\csundef{@cmsst}%
+ \ifthenelse{\ifentrytype{jurisdiction}\OR%
+ \ifentrytype{legal}\OR\ifentrytype{legislation}}%
+ {\clearlist{location}}%
+ {}}%
+
\InitializeBibliographyStyle{%
\let\bbx@lasthash\undefined}
@@ -470,13 +486,13 @@
\iffieldundef{journaltitle}%
{\printtext[title]{%
\printfield[tnoformat]{title}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[stnoformat]{subtitle}}%
\setunit*{\addspace}%
\printlist[periodplace]{location}}%
{\printtext[journaltitle]{%
\printfield[jtnoformat]{journaltitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[sjtnoformat]{journalsubtitle}}%
\setunit*{\addspace}%
\printlist[periodplace]{location}}%
@@ -489,6 +505,80 @@
\step[fieldsource=shorttitle, final]
\step[fieldset=shortjournal, origfieldval]
}
+ \map{
+ \pertype{jurisdiction}
+ \pertype{legal}
+ \pertype{legislation}
+ \step[fieldsource=journaltitle, final]
+ \step[fieldset=shortjournal, origfieldval]
+ }
+ \map[overwrite]{
+ \pertype{jurisdiction}
+ \step[fieldsource=shortjournal, match=\regexp{[^\\adddot][a-z]}, final]
+ \step[fieldset=shortjournal, fieldvalue=\addnbspace, append]
+ }
+ \map{
+ \pertype{legislation}
+ \step[fieldsource=title, match=\regexp{Const}, final]
+ \step[fieldset=entrysubtype, fieldvalue=constitution]
+ }
+ \map{
+ \pertype{legislation}
+ \step[fieldsource=entrysubtype, match=\regexp{canada}, final]
+ \step[fieldsource=bookpagination, match={section},
+ replace={canadasection}]
+ \step[fieldsource=pagination, match={section},
+ replace={canadasection}]
+ }
+ \map{
+ \step[fieldsource=pubstate, match={forthcoming}, final]
+ \step[fieldset=year, origfieldval, final]
+ \step[fieldsource=year, match=\regexp{(forthcoming)},
+ replace=\regexp{\\bibstring\{$1\}}]%$
+ }
+ \map{
+ \pertype{article}
+ \pertype{periodical}
+ \pertype{review}
+ \pertype{suppperiodical}
+ \step[fieldsource=entrysubtype, match={newspaper},
+ replace={magazine}]
+ }
+ \map[overwrite]{
+ \step[fieldsource=subtitle, final]
+ \step[fieldsource=title,
+ match=\regexp{\\(mkbib|en)quote\{.+((\?|\!)\})$},%$
+ final]
+ \step[fieldset=title, fieldvalue=\csgdef{@cmsst}{\@ne}, append]
+ }
+ \map[overwrite]{
+ \step[fieldsource=booksubtitle, final]
+ \step[fieldsource=booktitle,
+ match=\regexp{\\(mkbib|en)quote\{.+((\?|\!)\})$},%$
+ final]
+ \step[fieldset=booktitle, fieldvalue=\csgdef{@cmsst}{\@ne}, append]
+ }
+ \map[overwrite]{
+ \step[fieldsource=issuesubtitle, final]
+ \step[fieldsource=issuetitle,
+ match=\regexp{\\(mkbib|en)quote\{.+((\?|\!)\})$},%$
+ final]
+ \step[fieldset=issuetitle, fieldvalue=\csgdef{@cmsst}{\@ne}, append]
+ }
+ \map[overwrite]{
+ \step[fieldsource=journalsubtitle, final]
+ \step[fieldsource=journaltitle,
+ match=\regexp{\\(mkbib|en)quote\{.+((\?|\!)\})$},%$
+ final]
+ \step[fieldset=journaltitle, fieldvalue=\csgdef{@cmsst}{\@ne}, append]
+ }
+ \map[overwrite]{
+ \step[fieldsource=mainsubtitle, final]
+ \step[fieldsource=maintitle,
+ match=\regexp{\\(mkbib|en)quote\{.+((\?|\!)\})$},%$
+ final]
+ \step[fieldset=maintitle, fieldvalue=\csgdef{@cmsst}{\@ne}, append]
+ }
}
}%
@@ -543,7 +633,11 @@
\newunit\newblock
\usebibmacro{pageref}%
\newunit\newblock
- \iftoggle{cms@related}%
+ \ifboolexpr{%
+ togl {cms@related}%
+ and
+ not test {\iffieldequalstr{relatedtype}{reviewof}}%
+ }%
{\usebibmacro{related:init}%
\usebibmacro{related}%
\newunit}%
@@ -581,7 +675,11 @@
\newunit\newblock
\usebibmacro{pageref}%
\newunit\newblock
- \iftoggle{cms@related}%
+ \ifboolexpr{%
+ togl {cms@related}%
+ and
+ not test {\iffieldequalstr{relatedtype}{reviewof}}%
+ }%
{\usebibmacro{related:init}%
\usebibmacro{related}%
\newunit}%
@@ -660,7 +758,7 @@
{\usebibmacro{cms-in:}%
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}%
\printfield{maintitleaddon}}
@@ -671,7 +769,7 @@
\setunit{\addspace}
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}%
\printfield{maintitleaddon}}}
@@ -1450,6 +1548,12 @@
\usebibmacro{originally+published+as}%
\usebibmacro{finentry}}
+\DeclareBibliographyAlias{jurisdiction}{cite:jurisdiction}
+
+\DeclareBibliographyAlias{legal}{cite:legal}
+
+\DeclareBibliographyAlias{legislation}{cite:legislation}
+
\DeclareBibliographyDriver{letter}{%
\usebibmacro{bibindex}%
\usebibmacro{author/editor}%
@@ -1598,7 +1702,7 @@
\iffieldundef{entrysubtype}%
{\usebibmacro{italtitle+stitle}}%
{\printfield{title}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{subtitle}%
\setunit{\ctitleaddonpunct}%
\printfield{titleaddon}%
@@ -1673,7 +1777,7 @@
{\usebibmacro{cms-in:}%
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}%
\printfield{maintitleaddon}}
@@ -1684,7 +1788,7 @@
\setunit{\addspace}
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}%
\printfield{maintitleaddon}}}
@@ -1811,7 +1915,7 @@
\printdate}}%
{\bibstring{patentfiled}\setunit{\addspace}%
\usebibmacro{cmsorigdate}%
- \setunit{\addcomma\addspace\bibstring{and}%
+ \setunit{\finalandcomma\addspace\bibstring{and}%
\addspace\bibstring{patentissued}\addspace}%
\usebibmacro{date}}%
\newcunit\newblock
@@ -2040,7 +2144,9 @@
\setunit{\addspace}%
\printfield{nameaddon}%
\newunit\newblock
- \usebibmacro{italtitle+stitle}%
+ \iffieldequalstr{entrysubtype}{unpublished}%
+ {\usebibmacro{title+stitle}}%
+ {\usebibmacro{italtitle+stitle}}%
\newunit% 16th ed.
\usebibmacro{byauthor}%
\newunit\newblock
@@ -2082,9 +2188,16 @@
\setunit{\addspace}%
\printfield{nameaddon}% 16th ed.
\newunit\newblock
- \printfield{title}%
- \setunit{\addcolon\addspace}%
- \printfield[noformat]{subtitle}%
+ \ifboolexpr{%
+ togl {cms@related}%
+ and
+ test {\iffieldequalstr{relatedtype}{reviewof}}%
+ }%
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}%
+ {\printfield{title}%
+ \setunit{\subtitlepunct}%
+ \printfield[noformat]{subtitle}}%
\setunit{\ptitleaddonpunct}%
\printfield{titleaddon}%
\setunit{\addspace}%
@@ -2114,7 +2227,11 @@
\newunit\newblock
\usebibmacro{pageref}%
\newunit\newblock
- \iftoggle{cms@related}%
+ \ifboolexpr{%
+ togl {cms@related}%
+ and
+ not test {\iffieldequalstr{relatedtype}{reviewof}}%
+ }%
{\usebibmacro{related:init}%
\usebibmacro{related}%
\newunit}%
@@ -2230,9 +2347,17 @@
\setunit*{\addcomma\addspace}\newblock%
\printfield{note}%
\setunit*{\addcomma\addspace}\newblock%
+ \printfield{eventtitle}%
+ \setunit*{\ctitleaddonpunct}\newblock%
+ \printfield{eventtitleaddon}%
+ \setunit*{\addcomma\addspace}%
+ \printfield{venue}%
+ \setunit*{\addcomma\addspace}%
\printlist{location}%
\setunit*{\addcomma\addspace}\newblock%
- \usebibmacro{date}%
+ \iffieldundef{eventyear}%
+ {\usebibmacro{date}}%
+ {\printeventdate}%
\newunit\newblock
\printfield{addendum}%
\setunit*{\addcomma\addspace}\newblock%
@@ -2256,7 +2381,7 @@
\newunit\newblock
\printtext[title]{%
\printfield[noformat]{title}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{subtitle}}%
\iffieldundef{booktitle}% Comma after italics, period after quotes
{\setunit{\ctitleaddonpunct}}%
@@ -2287,7 +2412,7 @@
{\usebibmacro{cms-in:}%
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}%
\printfield{maintitleaddon}}%
@@ -2298,7 +2423,7 @@
\setunit{\addspace}
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}%
\printfield{maintitleaddon}}}%
@@ -2338,9 +2463,13 @@
%%%% Other Formatting Macros %%%%
\newbibmacro*{bib+doi+url}{% 16th ed.
- \iffieldundef{urlyear}%
- {}%
+ \ifboolexpr{%
+ togl {cms@url}%
+ and
+ not test {\iffieldundef{urlyear}}%
+ }%
{\printurldate}% Date fix
+ {}%
\iffieldundef{addendum}% Punctuation fixes in 0.9.9c
{\newunit\newblock}%
{\newcunit\newblock}%
@@ -2466,7 +2595,7 @@
{\usebibmacro{cms-in:}% 16th ed (Also 15th?)
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}%
\printfield{maintitleaddon}}
@@ -2477,7 +2606,7 @@
\setunit{\addspace}
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}%
\printfield{maintitleaddon}}}}
@@ -2491,7 +2620,7 @@
{\usebibmacro{cms-in:}% 16th ed (also 15th?)
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}
\printfield{maintitleaddon}%
@@ -2503,7 +2632,7 @@
\setunit{\addspace}
\printtext[maintitle]{%
\printfield[noformat]{maintitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{mainsubtitle}}%
\setunit{\ctitleaddonpunct}%
\printfield{maintitleaddon}}}}
@@ -2751,7 +2880,7 @@
\setcounter{bbx:relatedtotal}{0}%
\def\do##1{%
\entrydata{##1}{%
- \ifrelatedloop
+ \ifrelatedloop%
{}%
{\stepcounter{bbx:relatedtotal}%
\gappto{\bbx@tempa}{##1,}}}}%
@@ -2769,13 +2898,13 @@
{\printtext{\relateddelim}}%
{}}%
\ifbibmacroundef{related:\strfield{relatedtype}}%
- {\appto{\do}{\usebibmacro{related:default}}}
+ {\appto{\do}{\usebibmacro{related:default}}}%
{\appto{\do}{\usebibmacro*{related:\strfield{relatedtype}}}}%
\iffieldformatundef{related:\strfield{relatedtype}}%
- {\def\bbx@tempa{related}}
+ {\def\bbx@tempa{related}}%
{\def\bbx@tempa{related:\strfield{relatedtype}}}%
- \iffieldformatundef{relatedstring:\strfield{relatedtype}}
- {\def\bbx@tempb{relatedstring:default}}
+ \iffieldformatundef{relatedstring:\strfield{relatedtype}}%
+ {\def\bbx@tempb{relatedstring:default}}%
{\def\bbx@tempb{relatedstring:\strfield{relatedtype}}}%
\printtext[\bbx@tempa]{%
\usebibmacro{begrelatedloop}%
@@ -2798,6 +2927,6 @@
\docsvfield{related}%
\usebibmacro{endrelatedloop}}}%
{}%
- \usebibmacro{endrelated}}}
+ \usebibmacro{endrelated}}}%
\endinput