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.cbx55
1 files changed, 48 insertions, 7 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 b6b25b969a2..f0abe6ed187 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,11 @@
-% $Id: chicago-authordate.cbx,v 0.8.3.13 2017/03/22 13:40:56 dfussner Exp $
+% $Id: chicago-authordate.cbx,v 0.9.1.4 2018/01/11 09:29:25 dfussner Exp $
% 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}[2016/06/07 v 3.4 biblatex
+\ProvidesFile{chicago-authordate.cbx}[2018/01/11 v 3.10 biblatex
citation style]
\RequireCitationStyle{chicago-dates-common}
@@ -78,6 +78,21 @@ citation style]
\DeclareFieldAlias[misc]{lostitle}[misc]{title}
+\DeclareFieldFormat[report]{title}{%
+ \iffieldequalstr{entrysubtype}{unpublished}%
+ {\mkbibquote{#1\isdot}}%
+ {\mkbibemph{#1}\isdot}}%
+
+\DeclareFieldFormat[report]{citetitle}{%
+ \iffieldequalstr{entrysubtype}{unpublished}%
+ {\mkbibquote{#1\isdot}}%
+ {\mkbibemph{#1}\isdot}}
+
+\DeclareFieldFormat[report]{lostitle}{%
+ \iffieldequalstr{entrysubtype}{unpublished}%
+ {\mkbibquote{#1\isdot}}%
+ {\mkbibemph{#1}\isdot}}
+
\DeclareFieldFormat[review,suppperiodical]{title}{%
\ifcapital{\MakeCapital{#1\isdot}}%
{#1\isdot}}
@@ -124,13 +139,13 @@ citation style]
{}%
{\printtext[title]{%
\printfield[tnoformat]{title}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[stnoformat]{subtitle}}}}
\newbibmacro*{italtitle+stitle}{%
\printtext[title]{%
\printfield[tnoformat]{title}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[stnoformat]{subtitle}}%
\setunit{\ptitleaddonpunct}%
\printfield{titleaddon}%
@@ -141,10 +156,17 @@ citation style]
\newbibmacro*{mag+news+title}{%
\printtext[title]{%
\printfield[noformat]{title}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[noformat]{subtitle}}%
\setunit{\ptitleaddonpunct}%\setunit{\addcomma\addspace}
- \printfield{titleaddon}%
+ \ifboolexpr{%
+ togl {cms@related}%
+ and
+ test {\iffieldequalstr{relatedtype}{reviewof}}%
+ }%
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}}%
+ {\printfield{titleaddon}}%
}%\newcunit\newblock
\newbibmacro*{issuetitle}{%
@@ -157,11 +179,30 @@ citation style]
{}%
\printtext[issuetitle]{%
\printfield[itnoformat]{issuetitle}%
- \setunit{\addcolon\addspace}%
+ \setunit{\subtitlepunct}%
\printfield[sitnoformat]{issuesubtitle}}}}
%%%% Related macros that can't reside in common.cbx %%%%
+\newbibmacro*{related:reviewof}[1]{%
+ \entrydata*{#1}{%
+ \let\newunit\newcunit% FIXME??
+ \iffieldundef{title}%
+ {}%
+ {\printtext[title]{%
+ \printfield[tnoformat]{title}%
+ \setunit{\subtitlepunct}%
+ \printfield[stnoformat]{subtitle}}}%
+ \newcunit%
+ \ifnameundef{author}%
+ {\newcunit%
+ \usebibmacro{byeditor+others}}%
+ {\bibstring{by}\addspace%
+ \printnames[byauthor]{author}%
+ \newcunit\usebibmacro{byeditor+others}}%
+ \setunit{\ctitleaddonpunct}%
+ \printfield{titleaddon}}}
+
\DeclareFieldFormat{title:hook}{%
\begingroup
\mkrelatedstring%