biblatex chicago 作者日期样式中的字段过多

biblatex chicago 作者日期样式中的字段过多

我正在尝试制作带有参考书目的简单乳胶文档,由 Zotero 生成(以 导出biblatex,编码为“ISO Western 8859-1”)。对于参考书目,我使用biblatexwithbiber作为后端并尝试实现biblatex-chicago authordate样式。

以下是代码:

\documentclass[11pt]{article}
\usepackage[hmargin=3cm,vmargin=3cm]{geometry}
\usepackage{setspace}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{enumitem}
\usepackage{cancel}
\usepackage{soul}
\usepackage[authordate,backend=biber,bookpages=false,doi=false,isbn=false,url=false]                        {biblatex-chicago}
\usepackage{hyperref}
\addbibresource{Example.bib}
\hypersetup{pdfstartview={XYZ null null 1.25}}
\singlespace
\AtEveryBibitem{\clearlist{language}}



\begin{document}

\title{\textbf{Example}\\\emph{Example}: Example}
\author{Example}
\date{}

\maketitle
\section{Example}


Example \parencite{benoit_institutional_2004}. Example by \textcite{benoit_models_2004}.

Examples \parencites{myagkov_forensics_2009}{enikolopov_field_2013}. Examples         \parencites{gandhi_cooperation_2006}{gandhi_authoritarian_2007} especially example  \parencite{levitsky_rise_2002}. \citeauthor{simpser_why_2013}'s (\citeyear{simpser_why_2013}) example.

According to \citeauthor{benoit_institutional_2004}'s (\citeyear{benoit_institutional_2004}) example.

\printbibliography

\end{document}

这是.bib 数据库:

@article{enikolopov_field_2013,
title = {Field experiment estimate of electoral fraud in Russian parliamentary elections},
volume = {110},
issn = {0027-8424, 1091-6490},
url = {http://www.pnas.org/content/110/2/448},
doi = {10.1073/pnas.1206770110},
language = {en},
issue = {2},
pages = {448-452},
journaltitle = {Proceedings of the National Academy of Sciences},
shortjournal = {{PNAS}},
author = {Enikolopov, Ruben and Korovkin, Vasily and Petrova, Maria and Sonin, Konstantin and Zakharov, Alexei},
urldate = {2013-10-28},
date = {2013},
keywords = {authoritarian politics, nondemocratic government}
}

@book{simpser_why_2013,
title = {Why governments and parties manipulate elections theory, practice, and implications},
isbn = {9781107306882  1107306884  9781107314634  1107314631  9781139343824  1139343823},
language = {English},
publisher = {Cambridge University Press},
author = {Simpser, Alberto},
date = {2013}
}

@book{myagkov_forensics_2009,
title = {The Forensics of Election Fraud: Russia and Ukraine},
isbn = {9780521764704},
shorttitle = {The Forensics of Election Fraud},
language = {en},
publisher = {Cambridge University Press},
author = {Myagkov, Mikhail and Ordeshook, Peter C. and Shakin, Dimitri},
date = {2009},
keywords = {Law / Forensic Science, Political Science / Comparative Politics, Political Science / General, Political Science / Political Process / Elections, Reference / Research}
}

@article{gandhi_cooperation_2006,
title = {Cooperation, Cooptation, and Rebellion Under Dictatorships},
volume = {18},
issn = {1468-0343},
url = {http://onlinelibrary.wiley.com/doi/10.1111/j.1468-0343.2006.00160.x/abstract},
doi = {10.1111/j.1468-0343.2006.00160.x},
language = {en},
issue = {1},
pages = {1-26},
journaltitle = {Economics \& Politics},
author = {Gandhi, Jennifer and Przeworski, Adam},
urldate = {2013-10-28},
date = {2006}
}

@article{gandhi_authoritarian_2007,
title = {Authoritarian Institutions and the Survival of Autocrats},
volume = {40},
issn = {0010-4140, 1552-3829},
url = {http://cps.sagepub.com/content/40/11/1279},
doi = {10.1177/0010414007305817},
language = {en},
issue = {11},
pages = {1279-1301},
journaltitle = {Comparative Political Studies},
shortjournal = {Comparative Political Studies},
author = {Gandhi, Jennifer and Przeworski, Adam},
urldate = {2013-10-28},
date = {2007-11-01},
keywords = {Authoritarianism, autocracy, Dictatorship, leaders, survival}
}

@article{benoit_institutional_2004,
title = {Institutional Change and Persistence: The Evolution of Poland's Electoral System, 1989-2001},
volume = {66},
issn = {1468-2508},
url = {http://onlinelibrary.wiley.com/doi/10.1111/j.1468-2508.2004.00157.x/abstract},
doi = {10.1111/j.1468-2508.2004.00157.x},
shorttitle = {Institutional Change and Persistence},
language = {en},
issue = {2},
pages = {396-427},
journaltitle = {Journal of Politics},
author = {Benoit, Kenneth and Hayden, Jacqueline},
urldate = {2013-10-28},
date = {2004}
}

@article{benoit_models_2004,
title = {Models of electoral system change},
volume = {23},
issn = {0261-3794},
url = {http://www.sciencedirect.com/science/article/pii/S0261379403000209},
doi = {10.1016/S0261-3794(03)00020-9},
issue = {3},
pages = {363-389},
journaltitle = {Electoral Studies},
shortjournal = {Electoral Studies},
author = {Benoit, Kenneth},
urldate = {2013-10-28},
date = {2004-09},
keywords = {Electoral systems, Institutional change, Institutional origins}
}

@article{benoit_electoral_2007,
title = {Electoral Laws as Political Consequences: Explaining the Origins and Change of Electoral Institutions},
volume = {10},
issn = {1094-2939, 1545-1577},
url = {http://www.annualreviews.org/eprint/Ha2R36zNUCxGX2yWZGwX/full/10.1146/annurev.polisci.10.072805.101608},
doi = {10.1146/annurev.polisci.10.072805.101608},
shorttitle = {Electoral Laws as Political Consequences},
issue = {1},
pages = {363-390},
journaltitle = {Annual Review of Political Science},
author = {Benoit, Kenneth},
urldate = {2013-10-28},
date = {2007-06}
}

@article{levitsky_rise_2002,
title = {The Rise of Competitive Authoritarianism},
volume = {13},
issn = {1086-3214},
url = {http://muse.jhu.edu/login?auth=0&type=summary&url=/journals/journal_of_democracy/v013/13.2levitsky.html},
doi = {10.1353/jod.2002.0026},
issue = {2},
pages = {51-65},
journaltitle = {Journal of Democracy},
author = {Levitsky, Steven and Way, Lucan},
urldate = {2013-10-28},
date = {2002}
}

输出如下: 在此处输入图片描述

我遇到的主要问题是字段过多。例如,在上面的输出中,我有“访问日期”[来自urldate.bib 文件中的文件],我无法消除它,比如说,以消除出版语言的方式。 自定义 biblatex 样式的指南可以达到这个目的:

    \AtEveryBibitem{\clearname{urldate}}
    \AtEveryBibitem{\clearlist{urldate}}
    \AtEveryBibitem{\clearfield{urldate}}

此外,我需要这个字段来存储在线资料,所以我需要一个不同的解决方案。我在其他字段上也遇到了类似的问题,我只需要从 .bib 数据库中删除它们。例如,PNAS 的文章有 PMID 编号,即使有,它也打印在参考书目中

 eprint=false

在序言中。

biblatex我做错了什么?我知道这里的专家可以编写复杂的代码来解决这个特定问题,但也许有人知道如何使用或提供的选项来解决它biblatex-chicago

答案1

你可能\AtEveryBibitem{\clearfield{urldate}}想尝试一下

\AtEveryBibitem{%
  \ifentrytype{online}
    {}
    {\clearfield{urlyear}\clearfield{urlmonth}\clearfield{urlday}}}

这确保仅对非条目urldate删除 (实际上,是其部分urlyearurlmonth和) 。urlday@online

一般来说,人们需要对外部程序导出的文件稍加小心,.bib因为这些文件有时不符合最佳实践。

不过,您的资料来源看起来相当不错,除了issn = {0027-8424, 1091-6490},in enikolopov_field_2013isbn = {9781107306882 1107306884 9781107314634 1107314631 9781139343824 1139343823},insimpser_why_2013和几个language = {en},。 ISSN 和 ISBN 字段不应同时包含多个 ISSN/ISBN,因为这些字段打印得很冗长,而且您肯定不想在参考书目中看到所有 6 个不同的 ISBN,请使用您使用的书籍副本背面的 ISBN。而在字段中,language“[l]语言可以按字面或本地化键指定”(biblatex文档,§2.2.2数据字段,第 19 页),本地化密钥版本更适合本地化目的,因此english比 更好en

考虑一下上述 MWE 的简化版本

\documentclass[11pt]{article}
\usepackage[authordate,backend=biber,bookpages=false,doi=false,isbn=false,url=false]                        {biblatex-chicago}
\usepackage{hyperref}
\usepackage{filecontents}

\begin{filecontents*}{\jobname.bib}
@article{enikolopov_field_2013,
title = {Field experiment estimate of electoral fraud in Russian parliamentary elections},
volume = {110},
issn = {0027-8424, 1091-6490},
url = {http://www.pnas.org/content/110/2/448},
doi = {10.1073/pnas.1206770110},
language = {english},
issue = {2},
pages = {448-452},
journaltitle = {Proceedings of the National Academy of Sciences},
author = {Enikolopov, Ruben and Korovkin, Vasily and Petrova, Maria and Sonin, Konstantin and Zakharov, Alexei},
urldate = {2013-10-28},
date = {2013},
}
\end{filecontents*}
\addbibresource{\jobname.bib}

\AtEveryBibitem{\clearlist{language}}
\AtEveryBibitem{%
      \ifentrytype{online}
        {}
        {\clearfield{urlyear}\clearfield{urlmonth}\clearfield{urlday}}}

\begin{document}
  \nocite{*}
  \printbibliography
\end{document}

在此处输入图片描述

相关内容