我正在使用 biblatex-chicago 来格式化我的参考书目,我的教授希望我们引用他的讲座并注明录制的确切日期,如下所示:
Last, First. 2020. 8. 5. ``Course Name: Course Description.'' University of State, City.
内联引用应该如下所示:
"...quote quote quote" (Last 2020.8.5).
我该如何在 .bib 文件中格式化它?我该如何确保它在我的论文中显示为这样?
答案1
有可能极其修改起来很麻烦biblatex-chicago
,因为生成的输出不符合 CMS 要求。样式确实很多的工作才能满足 CMS 要求,并使用一些非常复杂的代码来使一切正确。
一般来说,我建议不要尝试修改高度定制的风格,如biblatex-chicago
,,biblatex-apa
...超出它们提供的界面。
这是一个特别指定解决方案在我的测试中运行良好。为了避免弄乱我们不想弄乱的东西,我添加了一个新的输入选项,fulldate
如果您希望在引文和参考书目中显示完整日期,则需要明确设置该选项。
\documentclass[american]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[authordate, backend=biber]{biblatex-chicago}
\newtoggle{cbxcms@fulldate}
\makeatletter
\DefineBibliographyExtras{american}{%
\protected\def\mkdaterangecompextra{%
\iftoggle{cbxcms@fulldate}
{\def\bibdatesep{.}%
\mkdaterangeymdextra}
{\cms@mkyearrangeextra[]{long}}}}
\renewbibmacro*{date}{% Adding the test solved some issues in 0.9 with
\iftoggle{cms@switchdates}%
{\ifthenelse{\iffieldundef{origyear}\AND\iffieldundef{origmonth}%
\AND\iffieldundef{origday}\AND\iffieldundef{origseason}}%
{}%
{\printorigdate}}%
{\ifthenelse{\iffieldundef{year}\AND\iffieldundef{month}%
\AND\iffieldundef{day}\AND\iffieldundef{season}}% Punctuation in some
{}% entry types (Misc). The whole \printdate thing may need further work.
{\iftoggle{cbxcms@fulldate}
{}
{\printdate}}}}
\makeatother
\DeclareEntryOption[boolean]{fulldate}[true]{\settoggle{cbxcms@fulldate}{#1}}
\begin{filecontents}{\jobname.bib}
@performance{elk,
author = {Anne Elk},
title = {A Theory on Brontosauruses},
date = {1980-04-05},
institution = {Univ. of Place},
location = {Place},
options = {fulldate},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{elk}
\printbibliography
\end{document}