Use latex in rmarkdown presentation fails

I have some Latex slides I want to put in an rmarkdown beamer presentation, eg

---
title: "Untitled"
author: "Me"
date: "8 November 2017"
output: beamer_presentation
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

section{First section}

begin{frame}{List 1}
begin{itemize}
item Point A
item Point B
item Point C
end{itemize}
end{frame}

This returns an error:

"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS presentation3.utf8.md --to beamer --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output presentation3.pdf --highlight-style tango --latex-engine pdflatex output file: presentation3.knit.md

! Missing endgroup inserted. endgroup l.85 end{frame}

pandoc.exe: Error producing PDF Fehler: pandoc document conversion failed with error 43 Zusätzlich: Warnmeldung: Ausführung von Kommando '"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS presentation3.utf8.md --to beamer --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output presentation3.pdf --highlight-style tango --latex-engine pdflatex' ergab Status 43 Ausführung angehalten

How to fix this?

链接地址: http://www.djcxy.com/p/33482.html

上一篇: 如何使用控制台编织文件?

下一篇: 在rmarkdown演示文稿中使用latex会失败