如题。
在自己电脑上使用,报错信息如下:
! Package inputenc Error: Unicode char 中 (U+4E2D)
(inputenc) not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.113 \frame{\titlepage}
Try running pandoc with --latex-engine=xelatex.
pandoc: Error producing PDF from TeX source
错误: pandoc document conversion failed with error 43
停止执行
---
title: "中文文档测试"
latex_engine: xelatex
output:
beamer_presentation:
keep_tex: yes
ioslides_presentation: default
# includes:
# in_header: header.tex
---
{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
<code></code>`
## R Markdown
This is an R Markdown presentation. 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>.
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.
## Slide with Bullets
- Bullet 1
- Bullet 2
- Bullet 3
## Slide with R Output
<code></code>`{r cars, echo = TRUE}
summary(cars)
<code></code>`
## Slide with Plot
<code></code>`{r pressure}
plot(pressure)
<code></code>`