gpt4 book ai didi

r - 无法将 PLOS 文章模板与 bookdown 一起使用

转载 作者:行者123 更新时间:2023-12-01 23:11:51 24 4
gpt4 key购买 nike

已关注 this post ,我试图将 @YihuiXie 的答案应用于 PLOS 文章模板的实践中,但它不起作用。任何帮助将不胜感激!

下面是一个最小的示例:

---
title: Title of submission to PLOS journal
author:
- name: Me
affiliation: Here

# output: rticles::plos_article
output:
bookdown::pdf_document2:
base_format: rticles::plos_article
---

# Introduction

Some text \@ref(fig:fig1)

# References {#references .unnumbered}

错误消息为

Error in pdf_book(..., base_format = rmarkdown::pdf_document) :    formal argument "base_format" matched by multiple actual arguments 
Calls: <Anonymous> -> create_output_format -> do.call -> <Anonymous>
Execution halted

最佳答案

您无法更改 bookdown::pdf_document2base_format。不过,您可以对 bookdown::pdf_book 这样做:

---
title: Title of submission to PLOS journal
author:
- name: Me
affiliation: Here

#output: rticles::plos_article
output:
bookdown::pdf_book:
base_format: rticles::plos_article
---

# Introduction

Some text \@ref(fig:fig1)

# References {#references .unnumbered}

其他读者请注意:请确保该目录中存在 .../articles/rmarkdown/templates/plos_article/sculpture/PLOS-submission.eps

关于r - 无法将 PLOS 文章模板与 bookdown 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52478475/

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