gpt4 book ai didi

r-markdown - 在 papaja Rmarkdown 包中将引用样式更改为数字字母

转载 作者:行者123 更新时间:2023-12-04 17:40:36 26 4
gpt4 key购买 nike

我正在使用 papaja 包在 RMarkdown 中编写科学手稿,这使我能够精美地报告我的统计数据。但是,该期刊现在要求我提交带有数字字母引用的 Word 文档。是否可以在 Papaja 中将引用样式更改为数字字母样式?

我尝试从 papaja 打开 LaTeX 输出,但它在文本中以 APA 格式列出了引文(例如“Apthorp、Bolbecker、Bartolomeo、O'Donnell、\& Hetrick,2018”),这对我没有用。

这是手稿顶部的代码:

bibliography      : ["PD_sway-1.bib"]

floatsintext : no
figurelist : no
tablelist : no
footnotelist : no
linenumbers : yes
mask : no
draft : no

documentclass : "apa6"
classoption : "man"
output : papaja::apa6_pdf

如果我能得到一个带有数字字母引用的 Word 文档然后我可以编辑它会很棒,但是具有正确引用格式的 LaTeX 文件或 PDF 也可以。

最佳答案

引用文献已经在 LaTeX 文档中以 APA 样式输入,因为它们由 pandoc-citeproc 处理。而不是 latex 。这样做的好处是,当您以 Word 格式输出文档时,自动引用格式也有效。要获取 Word 文档,您只需更改 YAML 前端内容中的输出行:

output: papaja::apa6_docx

注意Word文档的格式 pandoc支持有些限制,您可能需要手动修复一些问题。来自 corresponding sectionpapaja手动的:

More over, rendered documents in DOCX format require some manual work before they fully comply with APA guidelines. We, therefore, provide the following checklist of necessary changes:

Always,

  1. add a header line with running head and page number

If necessary,

  1. position author note at the bottom of page 1
  2. move figures and tables to the end of the manuscript
  3. add colon to level 3-headings
  4. in figure captions,
    • add a colon following the figure numbers and italicize
      (e.g. "Figure 1. This is a caption.")
  5. in tables,
    • add horizontal rules above the first and below the last row
    • add midrules


更改引文样式就像在任何 R Markdown 文档中一样。在制品 papaja手册有 a section对此:

Other styles can be set in the YAML front matter by specifying a CSL, or Citations Style Language, file. You can use either one of the large number of existing CSL files, customize an existing CSL file, or create a new one entirely.



要更改引用样式,请下载 CSL 文件并将以下内容添加到 YAML 前端内容:
csl: "path/to/mystyle.csl"

我不确定期刊需要什么风格,但很可能已经存在相应的 CSL 文件。

关于r-markdown - 在 papaja Rmarkdown 包中将引用样式更改为数字字母,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54659802/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com