我有一个R markdown文档完美运行,直到我添加了一个带有乳胶数学的标题。现在我收到了错误:
! \ reserved @ a的参数有一个额外的}。 \看齐 l.75 \ end {verbatim}}
pandoc:从TeX源生成PDF时出错 错误:pandoc文档转换失败,错误43 执行暂停
以下代码使用带有pdflatex的knitr在Rstudio,版本0.99.896中生成错误。谢谢!
---
title: Title goes here
author: Names go here
date: "\today"
output:
pdf_document:
fig_caption: yes
---
Some stuff goes here
```{r ex1, echo=FALSE, fig.height=3, fig.cap="The sampling distribution of $\\beta_1$."}
curve(dnorm(x))
```
Some more stuff goes here...