ref.bib 文件中的书籍部分

Book section in the ref.bib file

我正在寻找关于如何在 ref.bib 文件中描述书籍部分的解决方案,以便在我的 Markdown pdf 文件中,参考部分包含此内容,例如:

Early B.E. (2021). Making sanctions work: promoting compliance, punishing violations, and discouraging sanctions busting. In Peter A.G. van Bergeijk (Ed.), Research Handbook on Economic Sanctions (pp. 167-187). Edward Elgar Publishing.

我目前对 Markdown 的了解产生了这个语法:

@book{sanctions2021,
    title  = {Making sanctions work: promoting compliance, punishing violations, and 
              discouraging sanctions busting},
    author = {Bryan R. Early},
    year   = {2021},
    publisher = {Edward Elgar Publishing},
    pages  = {167--187}
}

发件人:https://bookdown.org/yihui/rmarkdown-cookbook/bibliography.html

Items can be cited directly within the documentation using the syntax @key where key is the citation key in the first line of the entry, e.g., @R-base. To put citations in parentheses, use [@key]. To cite multiple entries, separate the keys by semicolons, e.g., [@key-1; @key-2; @key-3]. To suppress the mention of the author, add a minus sign before @, e.g., [-@R-base].

这个例子:

@Manual{R-base,
  title = {R: A Language and Environment for Statistical
           Computing},
  author = {{R Core Team}},
  organization = {R Foundation for Statistical Computing},
  address = {Vienna, Austria},
  year = {2019},
  url = {https://www.R-project.org},
}

您需要使用 CSL(引文样式语言)文件。

发件人:https://bookdown.org/yihui/rmarkdown-cookbook/bibliography.html#bibliography

By default, Pandoc will use a Chicago author-date format for citations and references. To use another style, you will need to specify a CSL (Citation Style Language) file in the csl metadata field.

根据文档,可以调整 CSL 文件以满足自定义格式要求。 CSL 文件的 XML 格式使其难以手动编辑。

我尝试了提到的可视化编辑器https://editor.citationstyles.org但是我有点迷路了...看来你可以:

  1. 加载与您相匹配的样式。我试过了 https://www.zotero.org/styles?q=Chicago&format=author-date.
  2. 通过单击顶部示例中的单个文本元素来编辑样式。我很快尝试更改一些斜体格式并删除一些括号。
  3. save/download风格。