无法将 PLOS 文章模板与 bookdown 一起使用 [英] Can't use PLOS rticles template with bookdown

查看:40
本文介绍了无法将 PLOS 文章模板与 bookdown 一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这篇文章之后,我试图将@YihuiXie的答案与文章的PLOS模板付诸实践但它不起作用.任何帮助将不胜感激!

Following this post, I'm trying to put @YihuiXie 's answer in practice with the PLOS template of rticles but it doesn't work. Any help would be very appreciated!

下面是一个最小的例子:

Below in a minimal example:

---
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 这样做:

You cannot change the base_format for bookdown::pdf_document2. You can do so for bookdown::pdf_book, though:

---
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}

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

Note to other readers: Make sure that .../rticles/rmarkdown/templates/plos_article/skeleton/PLOS-submission.eps is present in that directory.

这篇关于无法将 PLOS 文章模板与 bookdown 一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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