如何控制Markdown中引用文本的字体大小

时间:2017-05-26 00:06:39

标签: r markdown rstudio

与其他(未引用的)文本相比,Markdown上的引用文字字体通常太大。这是一个例子: enter image description here

使用RStudio生成

#####Intution:

> **[Identification of an MA model is often best done with the ACF rather
> than the PACF]((https://onlinecourses.science.psu.edu/stat510/node/62))**.
> 
> For an MA model, the theoretical PACF does not shut off, but instead
> tapers toward 0 in some manner.  A clearer pattern for an MA model is
> in the ACF.  The ACF will have non-zero autocorrelations only at lags
> involved in the model.
> 
> A moving average term in a time series model is a past error (multiplied by a coefficient).

The $q^{\text{th}}$-order moving average model, denoted by MA(q) is

2 个答案:

答案 0 :(得分:12)

这似乎是RMarkdown的html输出的默认CSS的一部分,其中blockquotes具有:

blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
}

您可以通过创建自定义CSS文件来覆盖此文件,例如custom.css

blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 14px;
    border-left: 5px solid #eee;
}

然后将其添加到RMarkdown doc的标题中:

---
title: "Untitled"
author: "Me"
output: 
  html_document:
    css: custom.css
---

答案 1 :(得分:0)

作为外部 css 文件的替代方案,您可以使用 css 代码块:

---
title: "Example"
date: "`r Sys.time()`"
output: html_document
---

```{css style settings, echo = FALSE}
blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 14px;
    border-left: 5px solid #eee;
}
```

Now quotes will be as you wish

> example quote (blah blah blah)