summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-authordate.cbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-chicago/chicago-authordate.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-chicago/chicago-authordate.cbx99
1 files changed, 77 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-authordate.cbx b/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-authordate.cbx
index f0abe6ed187..1e37ea0ecce 100644
--- a/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-authordate.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-chicago/chicago-authordate.cbx
@@ -1,11 +1,9 @@
-% $Id: chicago-authordate.cbx,v 0.9.1.4 2018/01/11 09:29:25 dfussner Exp $
+% This is a biblatex citation style file, originally adapted from
+% Lehman's authoryear-comp.cbx. It is heavily modified, with the
+% intention of providing inline citations (and a reference list) for
+% the author-date style of the Chicago Manual of Style, 17th edition.
-% This is a biblatex citation style file, adapted from Lehman's
-% authoryear-comp.cbx. It is heavily modified, with the intention of
-% providing inline citations (and a reference list) for the
-% author-date style of the Chicago Manual of Style, 16th edition.
-
-\ProvidesFile{chicago-authordate.cbx}[2018/01/11 v 3.10 biblatex
+\ProvidesFile{chicago-authordate.cbx}[2020/04/20 v 3.14 biblatex
citation style]
\RequireCitationStyle{chicago-dates-common}
@@ -39,7 +37,7 @@ citation style]
{#1\isdot}%
{\mkbibquote{#1\isdot}}}
-\DeclareFieldFormat[artwork,image]{title}{%
+\DeclareFieldFormat[artwork,image,inreference]{title}{%
\iffieldundef{entrysubtype}%
{\mkbibemph{#1}\isdot}%
{#1\isdot}}
@@ -52,11 +50,15 @@ citation style]
\DeclareFieldAlias[image]{lostitle}[artwork]{title}
-\DeclareFieldFormat[letter,patent]{title}{#1\isdot}
+\DeclareFieldAlias[inreference]{citetitle}[artwork]{title}
+
+\DeclareFieldAlias[inreference]{lostitle}[artwork]{title}
+
+\DeclareFieldFormat[letter]{title}{#1\isdot}
-\DeclareFieldFormat[letter,patent]{citetitle}{#1\isdot}
+\DeclareFieldFormat[letter]{citetitle}{#1\isdot}
-\DeclareFieldFormat[letter,patent]{lostitle}{#1\isdot}
+\DeclareFieldFormat[letter]{lostitle}{#1\isdot}
\DeclareFieldFormat[suppbook,suppcollection]{title}{\mkbibemph{#1}\isdot}
@@ -114,11 +116,24 @@ citation style]
\DeclareFieldFormat{mainsubtitle}{\mkbibemph{#1}}
\DeclareFieldFormat[audio,music,video]{title}{%
- \iffieldundef{booktitle}%
+ \ifthenelse{\iffieldundef{booktitle}\AND\iffieldundef{entrysubtype}}%
{\mkbibemph{#1}\isdot}%
{\mkbibquote{#1\isdot}}}
-\DeclareFieldAlias[video]{citetitle}[video]{title}
+\DeclareFieldFormat[video]{citetitle}{%
+ \ifthenelse{\iffieldundef{booktitle}\AND\iffieldundef{entrysubtype}}%
+ {\mkbibemph{#1}\isdot}%
+ {\ifboolexpr{%
+ test {\iffieldequalstr{entrysubtype}{tvepisode}}%
+ and
+ not test {\iffieldundef{title}}%
+ and
+ not test {\iffieldundef{booktitle}}%
+ and
+ not test {\iffieldundef{shorttitle}}%
+ }%
+ {\mkbibemph{#1}\isdot}%
+ {\mkbibquote{#1\isdot}}}}
\DeclareFieldAlias[video]{lostitle}[video]{title}
@@ -212,6 +227,11 @@ citation style]
not test {\iffieldundef{langid}}%
}%
{\unspace}{}%
+ \ifdefstring{\blx@main@language}{french}%
+ {}%
+ {\iftoggle{smartof}%
+ {\let\lbx@inittitlehook\lbx@fr@smartof}%
+ {}}%
\lbx@inittitlehook{#1}%
\endgroup
\mkbibemph{#1}}
@@ -225,6 +245,11 @@ citation style]
not test {\iffieldundef{langid}}%
}%
{\unspace}{}%
+ \ifdefstring{\blx@main@language}{french}%
+ {}%
+ {\iftoggle{smartof}%
+ {\let\lbx@inittitlehook\lbx@fr@smartof}%
+ {}}%
\lbx@inittitlehook{#1}%
\endgroup
\mkbibquote{#1}}
@@ -238,6 +263,11 @@ citation style]
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}}
@@ -251,10 +281,33 @@ citation style]
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}
+\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
+ \bibstring{track}~#1}%
+
\DeclareFieldFormat{sitnoformat}{#1}
\DeclareFieldFormat{sjtnoformat}{#1}
\DeclareFieldFormat{stnoformat}{#1}
@@ -271,15 +324,15 @@ citation style]
{\iffieldundef{issuetitle}%
{\iffieldundef{title}%
{\iffieldundef{booktitle}%
- {\iffieldundef{maintitle}%
- {\iffieldundef{journaltitle}%
+ {\iffieldundef{journaltitle}% Switch order for 17th ed.
+ {\iffieldundef{maintitle}%
{}%
- {\DeclareFieldAlias{jtnoformat}{title:hook}%
- \DeclareFieldAlias{sjtnoformat}{title}%
- \DeclareFieldAlias{journaltitle}{default}%
- \DeclareFieldAlias{shortjournal}{series}%
- \DeclareFieldAlias{jtsnoformat}{title:hook}}}%
- {\DeclareFieldAlias{maintitle}{title:hook}}}%
+ {\DeclareFieldAlias{maintitle}{title:hook}}}%
+ {\DeclareFieldAlias{jtnoformat}{title:hook}%
+ \DeclareFieldAlias{sjtnoformat}{title}%
+ \DeclareFieldAlias{journaltitle}{default}%
+ \DeclareFieldAlias{shortjournal}{series}%
+ \DeclareFieldAlias{jtsnoformat}{title:hook}}}%
{\DeclareFieldAlias{booktitle}{title:hook}}}%
{\DeclareFieldAlias{tnoformat}{title:hook}%
\DeclareFieldAlias{stnoformat}{citetitle}%
@@ -295,7 +348,9 @@ citation style]
{\ifthenelse{\ifentrytype{audio}\OR\ifentrytype{music}\OR%
\ifentrytype{video}}%
{\iffieldundef{title}%
- {\DeclareFieldAlias{chapter}{avchapter:hook}}%
+ {\ifentrytype{music}%
+ {\DeclareFieldAlias[music]{chapter}{muschapter:hook}}%
+ {\DeclareFieldAlias{chapter}{avchapter:hook}}}%
{\DeclareFieldAlias{tnoformat}{title:hook}%
\DeclareFieldAlias{stnoformat}{citetitle}%
\DeclareFieldAlias[video]{title}{default}%