当我尝试在Rmarkdown中使用单个反引号突出显示文本时,我的html输出将包括突出显示和等宽显示,但PDF输出只产生等宽文本,而不是突出显示。语法突出显示在两个输出中都可以很好地工作。 下面是一个示例: ---
title: "Highlighting"
output:
pdf_document: default
html_document: default
---
Syntax highlighting works fine, but when I highlight `text like this`, it highlights in the html o
我正在创建一个包含从RMarkdown派生的rmarkdown::pdf_document格式的R包"mytemplate“(作为一个R脚本函数,它以报告作为输出,它调用header.tex文件):
report <- function() {
## location of resource files in the package
header <- system.file("resources/header.tex", package = "mytemplate")
## derives the style from d
在使用html_document时,我可以在RMarkdown前面指定一个highlight.js样式吗?
示例:
与其使用pandoc的espresso高亮显示,不如说我想要highlight.js的tommorrow高亮显示,它生活在中
---
title: "Untitled"
output:
html_document:
highlight: espresso
---
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF