为什么我的 rmarkdown/papaja 在我已经多次引用之后不抑制以下作者姓名(因为它需要 APA 风格)? [英] Why does my rmarkdown/papaja not suppress following author names when i have already cited it multiple times (as it would be required APA style)?

查看:60
本文介绍了为什么我的 rmarkdown/papaja 在我已经多次引用之后不抑制以下作者姓名(因为它需要 APA 风格)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很抱歉提出这个问题,但我一直无法找到解决方案(而且我已经很努力了).当我在我的 rmarkdown 脚本中添加 @author 语法(对应于我创建的 bib.file)并编织文件时,作者被正确引用.但是当我下次引用作者时,它不会做作者等人.(year) 但再次显示所有作者!我已经尝试加载其他 publkic 可用的 .rmd 和 .bib 文件(具有适当的引文),但是当我自己编织它们时,出现了同样的问题.我该如何解决这个问题?

I am so sorry for asking, but i have been unable to find a solution (and i've tried hard). When i add a @author syntax in my rmarkdown script (corresponding to my created bib.file) and knit the file the authors are cited correctly. But when i cite the authors the next time it does not do author et al. (year) but displays all authors again! I have already tried loading other publkic available .rmd and .bib files (that have appropriate citations) but when i knit them myself, the same problem appears. How can i fix this?

我真的很感激任何建议,提前致谢!<3

I would really appreciate any advices, thanks in advance! <3

例如,一个 BibTex 条目看起来像这样:

For example, a BibTex entry would look like this:

@article{Zygar-Hoffmann2018,author = {Zygar-Hoffmann, Caroline and Hagemeyer, Birk and Pusch, Sebastian and Sch{\"{o}}nbrodt, Felix D.}, doi = {10.1002/per.2145}, journal = {European Journal of Personality}, number = {3}, pages = {306--324},title = {{From Motive Dispositions to States to Outcomes: An Intensive Experience Sampling Study on Communal Motivational Dynamics in Couples}}, volume = {32}, year = {2018} }.   

在我的 rmarkdown(papaja 模板)文本中我写的:

An in my rmarkdown (papaja template) text i write:

相当稳定的动机对行为的影响被提议(完全)由当前动机调节 [@Zygar-Hoffmann2018].后者描述了由个人动机、当前情况和他们的互动引起的不同状态 [@Zygar-Hoffmann2018].

The influence of rather stable motives on behavior is proposed to be (fully) mediated by the current motivation [@Zygar-Hoffmann2018]. The latter describes a varying state that results from an individual’s motive, the current situation and their interaction [@Zygar-Hoffmann2018].

现在我希望在编织时第二个引文出现为Zygar et al.(2018)"但不幸的是它没有.我安装了最新版本的 R、RStudio、MacTex 和 Mac OS Big Sur.

Now i would expect that when knitting the second citation appeared as "Zygar et al. (2018)" but unfortunately it doesn't. I have the latest Version of R, RStudio, MacTex and Mac OS Big Sur installed.

推荐答案

当我使用 pdf_document() 并手动指定最新版本的 APA6 CSL 文件时,我也会得到同样的行为.这告诉我这是 citeproc 或 APA6 CSL 文件的当前版本的一个更普遍的问题.目前,您可以切换到使用 biblatex 而不是使用以下 YAML 标头:

I also get this same behavior when I use pdf_document() and specify the latest version of the APA6 CSL file manually. This tells me that it is a more general problem with citeproc or the current version of the APA6 CSL file. For the time being, you could switch to using biblatex instead by using the following YAML header:

bibliography      : references.bib
biblio-style      : "apa"

output:
  papaja::apa6_pdf:
    citation_package: biblatex

这篇关于为什么我的 rmarkdown/papaja 在我已经多次引用之后不抑制以下作者姓名(因为它需要 APA 风格)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆