windows 下
源文件exercise.rmd的部分内容:
---
title: "中文"
author: "姓名"
date: "Wednesday, October 22, 2014"
output: pdf_document
---
This is an R Markdown document. 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>.
...
编译为PDF时给出的错误提示:
output file: exercise.knit.md
! Package inputenc Error: Unicode char \u8:中 not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.106 \maketitle
Try running pandoc with --latex-engine=xelatex.
pandoc.exe: Error producing PDF from TeX source
Error: pandoc document conversion failed with error 43
In addition: Warning message:
running command '"D:/Program Files/RStudio/bin/pandoc/pandoc" exercise.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output exercise.pdf --template "D:\Documents\library\rmarkdown\rmd\latex\default.tex" --highlight-style tango --latex-engine pdflatex --variable "geometry:margin=1in"' had status 43
Execution halted
哪位熟悉Rstudio的大神给解释一下,怎么处理?