【发布时间】:2021-06-02 10:27:53
【问题描述】:
我有一个 R 降价 .Rmd 文档,其中包括 custom blocks:
---
title: "My MRE"
author: "Me"
output:
bookdown::word_document2:
reference_docx: template.docx
bookdown::pdf_document2:
includes:
in_header: preamble.tex
bookdown::html_document2:
css: style.css
---
Some plain text
::: {.mystyle data-latex=""}
Content with style applied
:::
将mystyle 类添加到链接的style.css 和preamble.tex 会以HTML 和PDF 格式生成所需的输出。
我不确定如何在template.docx 中指定mystyle 的格式:我创建了一个名为mystyle 的样式,但这不适用于相关块。
【问题讨论】:
标签: r-markdown bookdown