包输入错误和错误错误:pandoc文档转换失败,错误43 [英] Package inputenc Error & Error: pandoc document conversion failed with error 43

查看:209
本文介绍了包输入错误和错误错误:pandoc文档转换失败,错误43的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在RStudio中使用Knitr生成PDF文件,但是遇到问题.我已经阅读了很多关于堆栈溢出和谷歌的解决方案,但是它们并不是很有帮助.谁能帮我这个忙吗?非常有义务!

I was trying to produce a PDF file with the knitr in RStudio but I encountered a problem. I have read a lot of solutions found on stack overflow and google but they are not very helpful. Could anyone please help me with this? Much obliged!

错误显示如下:


output file: final_project.knit.md

"C:/Users/JOHNL_~1/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS final_project.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output final_project.pdf --template "E:\R\R-3.2.3\library\rmarkdown\rmd\latex\default-1.15.2.tex" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in" 
! Package inputenc Error: Unicode char 骞?(U+5E74)
(inputenc)                not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H   for immediate help.
 ...                                              

l.128 \maketitle

Try running pandoc with --latex-engine=xelatex.
pandoc.exe: Error producing PDF
Error: pandoc document conversion failed with error 43
In addition: Warning message:
running command '"C:/Users/JOHNL_~1/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS final_project.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output final_project.pdf --template "E:\R\R-3.2.3\library\rmarkdown\rmd\latex\default-1.15.2.tex" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in"' had status 43 
Execution halted

规格:

  1. Window 8.1 64
  2. RStudio版本:0.99.891 Mozilla/5.0(Windows NT 6.2; WOW64)AppleWebKit/538.1(KHTML,如Gecko)rstudio Safari/538.1 Qt/5.4.1
  3. MikTeX:版本2.9.5840(基本)
  4. pandoc

其他

我尝试了从堆栈溢出中可以找到的大多数解决方案,但是它没有用. 因此,恐怕添加latex_engine: xelatex之类的解决方案也无法解决该问题.

Others

I have tried most solutions I can find from stack overflow and it did not work. So I am afraid solutions like adding latex_engine: xelatex will also fail to solve this.

有人可以帮助我吗?非常感谢!

Could anyone please help me? Thanks a lot!

最佳

推荐答案

我已经弄清楚了问题所在,必须选择WINDOWS-1252作为文本编码.

I have figured out what the problem is, that you have to choose WINDOWS-1252 as your text encoding.

如果将其他类型设置为默认类型,请在工具>全局选项>代码>保存中进行更改,然后在默认文本编码中选择[询问].

If you have set other types as default, change it at tools> global options > code > saving, choose [Ask] in the default text encoding.

希望对您有用.

这篇关于包输入错误和错误错误:pandoc文档转换失败,错误43的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆