sba*_*bac 3 latex caption r-markdown
当我尝试在RStudio中使用RMarkdown编织 pdf 时,此代码会产生错误。
如何在Fig.caption中写一个希腊字母,例如$\beta$?
---
title: "Untitled"
author: "SB"
date: "Thursday, January 29, 2015"
output:
pdf_document:
fig_caption: yes
---
```{r var, echo=FALSE, fig.cap="Cars variation rate between year $t$ and $t-1$ for $0 < \beta < 1$"}
plot(cars)
```
Run Code Online (Sandbox Code Playgroud)
在 R 中,字符串内的所有反斜杠都需要加倍。"\\"变成\.
尝试这个:
---
title: "Untitled"
author: "SB"
date: "Thursday, January 29, 2015"
output:
pdf_document:
fig_caption: yes
---
```{r var, echo=FALSE, fig.cap="Cars variation rate between year $t$ and $t-1$ for $0 < \\beta < 1$"}
plot(cars)
```
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2991 次 |
| 最近记录: |