在我的Rmarkdown文档的YAML部分中声明输出格式时,有没有办法确保它编织为PDF,但看起来像针织HTML?
没有任何关于针织PDF的内容看起来是一样的:字体是一些serif(假设我可以改变它),blockquotes和代码块看起来不同。
我喜欢编织HTML和外观,但有没有办法生成看起来完全一样的PDF?
举个例子,只是一个简单的默认示例代码:
---
title: "Untitled"
output:
html_document: default
pdf_document: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
> This is a quote
This is a link: <http://rmarkdown.rstudio.com>
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
```{r cars}
summary(cars)
```
以下是2个样本,2个输出如何从框中看出来