[英]Why can't I knitting the R markdown to PDF?
When I try to knit to PDF I have this error: !当我尝试编织为 PDF 时出现此错误:! Package inputenc Error: Unicode char \\u8:。 not set up for use with LaTeX. Package inputenc Error: Unicode char \\u8:。未设置为与 LaTeX 一起使用。
See the inputenc package documentation for explanation.有关说明,请参阅 inputenc 包文档。 Type H for immediate help.输入 H 以获得即时帮助。 ... ...
l.387 explained by ``gdp''。 l.387由``gdp''解释。
Try running pandoc with --latex-engine=xelatex.尝试使用 --latex-engine=xelatex 运行 pandoc。 pandoc: Error producing PDF from TeX source Error: pandoc document conversion failed with error 43 Execution halted pandoc:从 TeX 源生成 PDF 时出错 错误:pandoc 文档转换失败,错误 43 执行停止
I did includes all files in the working directory but still don't know why.我确实包含了工作目录中的所有文件,但仍然不知道为什么。
I could not comment on the previous post by scoa, but the YAML header argument misses a space and should read:我无法对 scoa 的上一篇文章发表评论,但 YAML 标头参数缺少一个空格,应为:
output:
pdf_document:
latex_engine: xelatex
This is an encoding error.这是编码错误。 The easiest way to deal with it is to add the following line in the YAML preamble of your document.处理它的最简单方法是在文档的 YAML 序言中添加以下行。
---
output:
pdf_document:
latex_engine:xelatex
---
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.