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!
The error is shown as below:
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
Specification:
- Window 8.1 64
- RStudio version: 0.99.891 Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/538.1 (KHTML, like Gecko) rstudio Safari/538.1 Qt/5.4.1
- MikTeX: version 2.9.5840 (basic)
- pandoc
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!
Best