summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate.cbx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate.cbx')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate.cbx154
1 files changed, 73 insertions, 81 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate.cbx
index 1e37ea0ecc..b3d9453eef 100644
--- a/macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate.cbx
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-chicago/latex/chicago-authordate.cbx
@@ -3,7 +3,7 @@
% intention of providing inline citations (and a reference list) for
% the author-date style of the Chicago Manual of Style, 17th edition.
-\ProvidesFile{chicago-authordate.cbx}[2020/04/20 v 3.14 biblatex
+\ProvidesFile{chicago-authordate.cbx}[2021/03/27 v 3.16 biblatex
citation style]
\RequireCitationStyle{chicago-dates-common}
@@ -194,8 +194,10 @@ citation style]
{}%
\printtext[issuetitle]{%
\printfield[itnoformat]{issuetitle}%
- \setunit{\subtitlepunct}%
- \printfield[sitnoformat]{issuesubtitle}}}}
+ \iftoggle{cms@origpublished}% Complications due to \smartof
+ {}%
+ {\setunit{\subtitlepunct}%
+ \printfield[sitnoformat]{issuesubtitle}}}}}
%%%% Related macros that can't reside in common.cbx %%%%
@@ -220,93 +222,71 @@ citation style]
\DeclareFieldFormat{title:hook}{%
\begingroup
- \mkrelatedstring%
- \ifboolexpr{%
- togl {cms@otherlang}%
- and
- not test {\iffieldundef{langid}}%
- }%
- {\unspace}{}%
- \ifdefstring{\blx@main@language}{french}%
- {}%
- {\iftoggle{smartof}%
- {\let\lbx@inittitlehook\lbx@fr@smartof}%
- {}}%
- \lbx@inittitlehook{#1}%
+ \mkrelatedstringtext{%
+ \lbx@inittitlehook{#1}}%
\endgroup
\mkbibemph{#1}}
+\DeclareFieldFormat{title:hook:alt}{%
+ \iftoggle{cms@reprintmt}%
+ {\begingroup
+ \mkrelatedstringtext{%
+ \lbx@inittitlehook{#1}}%
+ \endgroup}%
+ {\lbx@inittitlehook{#1}}% Inside entries don't use main doc. lang.
+ \mkbibemph{#1}}
+
\DeclareFieldFormat{ititle:hook}{%
\begingroup
- \mkrelatedstring%
- \ifboolexpr{%
- togl {cms@otherlang}%
- and
- not test {\iffieldundef{langid}}%
- }%
- {\unspace}{}%
- \ifdefstring{\blx@main@language}{french}%
- {}%
- {\iftoggle{smartof}%
- {\let\lbx@inittitlehook\lbx@fr@smartof}%
- {}}%
- \lbx@inittitlehook{#1}%
+ \mkrelatedstringtext{%
+ \lbx@inittitlehook{#1}}%
\endgroup
- \mkbibquote{#1}}
+ \iffieldundef{issuesubtitle}%
+ {\mkbibquote{#1}}%
+ {\mkbibquote{#1\subtitlepunct\printfield{issuesubtitle}}}}
\DeclareFieldFormat{chapter:hook}{%
\begingroup
- \mkrelatedstring%
- \ifboolexpr{%
- togl {cms@otherlang}%
- and
- not test {\iffieldundef{langid}}%
- }%
- {\unspace}{}%
- \ifdefstring{\blx@main@language}{french}%
- {}%
- {\iftoggle{smartof}%
- {\let\lbx@inittitlehook\lbx@fr@smartof}%
- {}}%
- \lbx@inittitlehook{\bibstring{chapter}}%
- \endgroup
- \bibstring{chapter}~#1\addspace\bibstring{in}}
+ \mkrelatedstringtext{%
+ \lbx@inittitlehook{\bibstring{chapter}}%
+ \bibstring{chapter}~#1\addspace\bibstring{in}}
+ \endgroup}
\DeclareFieldFormat{avchapter:hook}{%
\begingroup
- \mkrelatedstring%
- \ifboolexpr{%
- togl {cms@otherlang}%
- and
- not test {\iffieldundef{langid}}%
- }%
- {\unspace}{}%
- \ifdefstring{\blx@main@language}{french}%
- {}%
- {\iftoggle{smartof}%
- {\let\lbx@inittitlehook\lbx@fr@smartof}%
- {}}%
- \lbx@inittitlehook{\bibstring{chapter}}%
- \endgroup
- \bibstring{chapter}~#1}
+ \mkrelatedstringtext{%
+ \lbx@inittitlehook{\bibstring{chapter}}%
+ \bibstring{chapter}~#1}
+ \endgroup}
\DeclareFieldFormat{muschapter:hook}{%
\begingroup
- \mkrelatedstring%
- \ifboolexpr{%
- togl {cms@otherlang}%
- and
- not test {\iffieldundef{langid}}%
- }%
- {\unspace}{}%
- \ifdefstring{\blx@main@language}{french}%
- {}%
- {\iftoggle{smartof}%
- {\let\lbx@inittitlehook\lbx@fr@smartof}%
- {}}%
- \lbx@inittitlehook{\bibstring{track}}%
- \endgroup
+ \mkrelatedstringtext{%
+ \lbx@inittitlehook{\bibstring{track}}%
\bibstring{track}~#1}%
+ \endgroup}
+
+\DeclareFieldFormat{volume:hook}{%
+ \begingroup
+ \mkrelatedstringtext{%
+ \lbx@inittitlehook{\bibxstring{volume}}%
+ \bibstring{volume}~#1}%
+ \endgroup}%
+
+\DeclareFieldFormat{parttoo:hook}{%
+ \ifnumerals{#1}%
+ {\addcomma\addspace\bibstring[\mkrelatedstringtext]{partvolume}~#1}%
+ {\addcomma\addspace\ifcapital{\MakeCapital{#1}}{#1}}}
+
+\DeclareFieldFormat{part:hook}{%
+ \begingroup
+ \ifnumerals{#1}%
+ {\mkrelatedstringtext{%
+ \lbx@inittitlehook{\bibxstring{partvolume}}%
+ \bibstring{partvolume}~#1}}%
+ {\mkrelatedstringtext{\lbx@inittitlehook{#1}}%
+ \ifcapital{\MakeCapital{#1}}{#1}}%
+ \endgroup}
\DeclareFieldFormat{sitnoformat}{#1}
\DeclareFieldFormat{sjtnoformat}{#1}
@@ -327,11 +307,23 @@ citation style]
{\iffieldundef{journaltitle}% Switch order for 17th ed.
{\iffieldundef{maintitle}%
{}%
- {\DeclareFieldAlias{maintitle}{title:hook}}}%
+ {\toggletrue{cms@reprintmt}%
+ \ifthenelse{\(\iffieldundef{volume}\AND\iffieldundef{part}\)%
+ \OR\ifentrytype{inbook}\OR\ifentrytype{incollection}\OR%
+ \ifentrytype{inproceedings}\OR\ifentrytype{letter}}%
+ {\DeclareFieldAlias{maintitle}{title:hook}}%
+ {\iffieldundef{volume}%
+ {\DeclareFieldAlias{part}{part:hook}%
+ \let\cms@ofwrap\mkrelatedstringtext}%
+ {\DeclareFieldAlias{volume}{volume:hook}%
+ \DeclareFieldAlias{part}{parttoo:hook}%
+ \let\cms@ofwrap\mkrelatedstringtext}}}}%
{\DeclareFieldAlias{jtnoformat}{title:hook}%
\DeclareFieldAlias{sjtnoformat}{title}%
\DeclareFieldAlias{journaltitle}{default}%
+ \DeclareFieldAlias{injournaltitle}{default}%
\DeclareFieldAlias{shortjournal}{series}%
+ \DeclareFieldAlias{inshortjournal}{series}%
\DeclareFieldAlias{jtsnoformat}{title:hook}}}%
{\DeclareFieldAlias{booktitle}{title:hook}}}%
{\DeclareFieldAlias{tnoformat}{title:hook}%
@@ -341,16 +333,16 @@ citation style]
\DeclareFieldAlias[music]{title}{default}%
\DeclareFieldAlias{title}{default}%
\DeclareFieldAlias[periodical]{shorttitle}{series}}}%
- {\iffieldundef{issuesubtitle}%
- {\DeclareFieldAlias{itnoformat}{ititle:hook}%
- \DeclareFieldAlias{issuetitle}{default}}%
- {\DeclareFieldAlias{issuetitle}{ititle:hook}}}}%
+ {\DeclareFieldAlias{itnoformat}{ititle:hook}%
+ \DeclareFieldAlias{issuetitle}{default}}}%
{\ifthenelse{\ifentrytype{audio}\OR\ifentrytype{music}\OR%
\ifentrytype{video}}%
{\iffieldundef{title}%
{\ifentrytype{music}%
- {\DeclareFieldAlias[music]{chapter}{muschapter:hook}}%
- {\DeclareFieldAlias{chapter}{avchapter:hook}}}%
+ {\DeclareFieldAlias[music]{chapter}{muschapter:hook}%
+ \let\cms@ofwrap\mkrelatedstringtext}%
+ {\DeclareFieldAlias{chapter}{avchapter:hook}%
+ \let\cms@ofwrap\mkrelatedstringtext}}%
{\DeclareFieldAlias{tnoformat}{title:hook}%
\DeclareFieldAlias{stnoformat}{citetitle}%
\DeclareFieldAlias[video]{title}{default}%