如何从R-markdown书目中删除DOI?

如何从R-markdown书目中删除DOI?,r-markdown,bibtex,bibliography,R Markdown,Bibtex,Bibliography,我想从我的降价脚本中的参考书目中删除DOI。我有办法做到这一点吗 这是我的降价文件: --- title: "my paper" author: "name" date: \today header-includes: output: pdf_document: number_sections: yes toc: yes keep_tex: yes fig_caption: yes word_document:

我想从我的降价脚本中的参考书目中删除DOI。我有办法做到这一点吗

这是我的降价文件:

---
title: "my paper"
author: "name"
date: \today
header-includes:
output:
  pdf_document:
    number_sections: yes
    toc: yes
    keep_tex: yes
    fig_caption: yes
  word_document:
    toc: yes
latex_engine: xelatex
indent: yes
bibliography: library.bib
references: 
link-citations: yes
linkcolor: blue
hyperfootnotes: yes
---

I would like to remove the DOI from this reference @Wallace2005

# Bibliography {-}
::: {#refs}
:::
此文件的输出如下所示:

这是.bib文件

@article{Wallace2005,
abstract = {Constantly evolving, and with far-reaching implications, European Union policy-making is of central importance to the politics of the European Union. From defining the processes, institutions and modes through which policy-making operates, the text moves on to situate individual policieswithin these modes, detail their content, and analyse how they are implemented, navigating policy in all its complexities. The first part of the text examines processes, institutions, and the theoretical and analytical underpinnings of policy-making, while the second part considers a wide range of policy areas, from economics to the environment, and security to the single market. Throughout the text, theoreticalapproaches sit side by side with the reality of key events in the EU, including enlargement, the ratification of the Lisbon Treaty, and the financial crisis and resulting euro area crisis, exploring what determines how policies are made and implemented. In the final part, the editors consider trendsin EU policy-making and look at the challenges facing the EU. Exploring the link between the modes and mechanisms of EU policy-making and its implementation at national level, Policy-Making in the Europe Union helps students to engage with the key issues related to policy. Written by experts, for students and scholars alike, this is the most authoritative andin-depth guide to policy in the European Union.},
author = {Wallace, Helen and Wallace, William and Pollack, Mark A},
doi = {10.1177/0010414013516917},
file = {:Users/aguasti/Desktop/Mendely Organized Library/Wallace, Wallace, Pollack/Wallace, Wallace, Pollack - 2005 - Policy-Making in the European Union.pdf:pdf},
isbn = {0199689679},
issn = {0010-4140},
pages = {574},
pmid = {130137987},
title = {{Policy-Making in the European Union}},
url = {https://books.google.com/books?id=w6SbBQAAQBAJ&pgis=1},
year = {2005}
}

如果有人知道我如何从参考书目中删除DOI,我将不胜感激

我假设您希望在编写PDF时即时完成此操作

渲染引用的方式由应用的控件控制

因此,一种方法是将YAML标题中的引用样式和更改为不包含DOI的样式(注意,对于PDF输出,您需要添加
natbib
行)

或者,如果您必须坚持某种样式,您可以[修改CSL文件]()

elsevier harvard.csl的示例
您可以只注释CSL文件中的相关行:

<if variable="DOI">
   <!--<text variable="DOI" prefix="https://doi.org/"/> -->
</if>

我假设您希望在编写PDF时即时完成此操作

渲染引用的方式由应用的控件控制

因此,一种方法是将YAML标题中的引用样式和更改为不包含DOI的样式(注意,对于PDF输出,您需要添加
natbib
行)

或者,如果您必须坚持某种样式,您可以[修改CSL文件]()

elsevier harvard.csl的示例
您可以只注释CSL文件中的相关行:

<if variable="DOI">
   <!--<text variable="DOI" prefix="https://doi.org/"/> -->
</if>

---
title: "my paper"
author: "name"
date: \today
output: pdf_document
bibliography: library.bib
citation_package: natbib
csl: elsevier-harvard_mod.csl
---

I would like to remove the DOI from this reference @Wallace2005

# Bibliography {-}