简体   繁体   English

rmarkdown笔记本中的bookdown扩展

[英]bookdown extensions in rmarkdown notebook

I would like to use some of the bookdown extensions while using html_notebook as my output format. 我想在使用html_notebook作为输出格式时使用一些bookdown扩展名。 Eg this works: 例如,这有效:

---
output: bookdown::html_document2
---

```{theorem}
My proof here.
\```
knitr::knit("test.rmd", "test.html")

but this does not: 但这不是:

---
output: html_notebook
---

```{theorem}
My proof here.
\```
knitr::knit("test.rmd", "test.html")

Is there a way to use these extensions in rmarkdown notebooks? 有没有办法在rmarkdown笔记本中使用这些扩展?

You can use the following output definition: 您可以使用以下输出定义:

output:  
  bookdown::html_document2:
    base_format: rmarkdown::html_notebook

The manual for this feature can be found here: https://bookdown.org/yihui/bookdown/a-single-document.html 可在以下位置找到此功能的手册: https : //bookdown.org/yihui/bookdown/a-single-document.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM