本文介绍了章节中首次引用的完整作者列表 [apa.csl]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用 R markdown 写我的论文.我在 bookdown 中使用 bibtex、pandoc-citeproc 和 apa.csl.我的 _bookdown.yml 中有 new_session: yes 并且主要编译为 PDF (documentclass:book, classoption: oneside>).

I'm writing my dissertation in R markdown. I am using bibtex, pandoc-citeproc, and apa.csl with bookdown. I have new_session: yes in my _bookdown.yml and compiling primarily to PDF (documentclass:book, classoption: oneside).

我拥有的系统正确地使用了完整的作者列表来代替et al".我第一次引用了 3-6 位作者的作品.也就是说,当我第一次引用作品时,我的顾问想要完整的作者列表每章.

The system I have is correctly using the full author list in place of "et al." for the first time I cite a 3-6 author work. That said, my adviser wants the full author list for the first time I cite a work per chapter.

有没有简单的方法来解决这个问题?

Is there an easy way to go about this?

这是我正在使用的 apa.csl:

Here is the apa.csl I'm using:

https://github.com/citation-style-language/styles/blob/master/apa.csl

推荐答案

事实证明基于 biblatex 的解决方案确实非常灵活,就像 @moewe 出现在 TeX.SE 上.当将 style=apaciterest=chapter 结合使用时,就会得到您想要的效果.在最小的 R-markdown 文档中:

Turns out that a biblatex based solution is indeed very flexible as @moewe showed on TeX.SE. When one combines style=apa with citerest=chapter one gets the effect you are after. In a minimal R-markdown document:

---
output:
  pdf_document:
    citation_package: biblatex
documentclass: book
bibliography: biblatex-examples.bib
biblio-style: apa
biblatexoptions:
  - citereset=chapter
---

# Intro

[@herrmann] and [@yoon]

[@herrmann] and [@yoon]

# Method

[@herrmann] and [@yoon]

[@herrmann] and [@yoon]

# References

确保您的 TeX 系统包含 biber 程序.

Make sure that your TeX system includes the biber program.

这篇关于章节中首次引用的完整作者列表 [apa.csl]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-24 12:10