我必须authordate
在我的项目中使用,除非是法律条目,例如国会听证会。在这种情况下,我应该第一次完整引用它,然后使用简写。不幸的是,这对我来说不起作用,如果我使用\autocite
,我只会得到简写。我意识到我可以\fullcite
在第一次使用,但这需要很多注意力,因此很容易出错。我认为这可能与 authordate 设置有关,因为如果我改用 notes,它确实会按预期工作。这些通常是包选项:
这些是我使用的选项biblatex-chicago
。
\usepackage[authordate,backend=biber,hyperref=true, cmsdate=both,sortcites, uniquename=init]{biblatex-chicago}
我希望我忽略了序言的选项?如果能得到任何帮助,我将不胜感激!谢谢!
编辑
例如,以下是两个 bib 条目:
@legislation{Congress.20180417,
title = {Reinforcing the US--Taiwan relationship},
series = {115th Congress (2nd)},
subtitle = {House Hearing 115-147 before the Subcommittee on Asia and the Pacific of the Committee on Foreign Affairs House of Representatives},
abstract = {},
pagetotal = {75},
shorthand = {House Hearing 115-147},
entrysubtype = {hearing},
date = {2018-04-17}
}
@article{Diamond2000,
author = {Diamond, Larry and Myers, Ramon H.},
year = {2000},
title = {Introduction: Elections and democracy in greater China},
url = {https://www.state.gov/communist-china-and-the-free-worlds-future/},
pages = {365},
pagination = {page},
issn = {0305-7410},
journaltitle = {The China Quarterly},
abstract = {}}
我是这样引用他们的
\begin{document}
Lalalala\footcite{Congress.20180417}, which and then later \textcite{Diamond2000} confirms, and then back to blablabla{Congress.20180417}.
\printbibliography
答案1
这里尝试强制biblatex-chicago
为authordate
合法引用提供完整的首次引用(@legislation
,@legal
,@jurisdiction
)。
答案的核心是引入一个测试,以判断这是否是法律作品对原始cite
bibmacro(可在 中找到chicago-dates-common.cbx
)的第一次引用。
\documentclass[american]{article}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[authordate, backend=biber, cmsdate=both, sortcites, uniquename=init]{biblatex-chicago}
\makeatletter
\newcommand*{\iflegaltype}{%
\ifentrytype{legislation}
{\@firstoftwo}
{\ifentrytype{legal}
{\@firstoftwo}
{\ifentrytype{jurisdiction}}}}
\newcommand*{\iflegallongcite}{%
\ifciteseen
{\@secondoftwo}
{\iflegaltype}}
\renewbibmacro*{cite}{%
\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}%
{\usebibmacro{cite:ibid}}%
{\iflegallongcite
{\usebibmacro{cite:full}}
{\ifboolexpr{%
togl {cms@authortitle}%
or
test {\iffieldequalstr{entrysubtype}{classical}}%
}% Similar to notes+bib
{\iffieldundef{shorthand}%
{\ifthenelse{\ifnameundef{labelname}\OR
\ifentrytype{inreference}\OR
\ifentrytype{reference}\OR
\ifentrytype{mvreference}}% Simplified for CMS
{\usebibmacro{cite:label}%
\setunit{\cms@testspace}% Is this right?
\usebibmacro{cite:reinit}}%
{\iffieldequals{fullhash}{\cbx@lasthash}%
{\iffieldundef{postnote}%
{\setunit{\multicitedelim}}%
{}%
\usebibmacro{cite:label}}%
{\iffieldequals{fullhash}{\cbx@lastyear}%
{}%
{\usebibmacro{cmsbracketname}% For names in []
\ifthenelse{\ifentrytype{misc}\AND%
\iffieldequalstr{entrysubtype}{classical}}%
{\cms@testspace}{\newcunit}}% Wrong?
\ifthenelse{\ifentrytype{manual}\OR\ifentrytype{standard}}%
{\printtext[cmshyper]{\printfield[citetitle]{labeltitle}}}%
{\usebibmacro{cite:label}}%
\iffieldundef{postnote}%
{\savefield{fullhash}{\cbx@lasthash}}%
{\savefield{fullhash}{\cbx@lastyear}}}}}%
{\usebibmacro{cite:shorthand+title}}}%
{\iffieldundef{shorthand}%
{\ifthenelse{\ifnameundef{labelname}\OR
\ifentrytype{inreference}\OR
\ifentrytype{reference}\OR
\ifentrytype{mvreference}}% Simplified for CMS
{\usebibmacro{cite:label}%
\setunit{\nameyeardelim}%cms@testspace%
\usebibmacro{cmscitesortdate}%
\usebibmacro{cite:reinit}}%
{\iffieldequals{fullhash}{\cbx@lasthash}%
{\iffieldundef{postnote}%
{\setunit{\compcitedelim}}%
{}%
\usebibmacro{cmscitesortdate}}%
{\iffieldequals{fullhash}{\cbx@lastyear}% Is this right?
{}%
{\usebibmacro{cmsbracketname}%
\setunit{\nameyeardelim}}%
\usebibmacro{cmscitesortdate}%
\iffieldundef{postnote}%
{\savefield{fullhash}{\cbx@lasthash}}%
{\savefield{fullhash}{\cbx@lastyear}}}}}%
{\usebibmacro{cite:shorthand}}}}}%
\setunit{\multicitedelim}}% ???
\makeatother
\begin{filecontents}{\jobname.bib}
@legislation{Congress.20180417,
title = {Reinforcing the US--Taiwan relationship},
series = {115th Congress (2nd)},
subtitle = {House Hearing 115-147
before the Subcommittee on Asia and the Pacific
of the Committee on Foreign Affairs
House of Representatives},
pagetotal = {75},
shorthand = {House Hearing 115-147},
entrysubtype = {hearing},
date = {2018-04-17},
}
@article{Diamond2000,
author = {Diamond, Larry and Myers, Ramon H.},
year = {2000},
title = {Introduction: Elections and democracy in greater China},
url = {https://www.state.gov/communist-china-and-the-free-worlds-future/},
pages = {365},
pagination = {page},
issn = {0305-7410},
journaltitle = {The China Quarterly},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Lalalala\footcite{Congress.20180417},
which and then later \textcite{Diamond2000} confirms,
and then back to blablabla\footcite{Congress.20180417}.
\printbibliography
\end{document}