我只是尝试用RMardown创建一个pdf文件,并在安装tinytex包之后,如下所示:
tinytex::install_tinytex()
如果我在.RMd文档的最顶部设置以下文字:
output:
pdf_document: default
latex_engine: xelatex我返回了这个错误
好了!程序包输入错误:没有为与LaTeX一起使用而设置Unicode character setƒ(U+03C3) (输入)。
Try other LaTeX engines instead (e.g., xelatex) if you are using pdflatex. See https://bookdown.org/yihui/rmarkdown-cookbook/latex-unicode.html
Errore: LaTeX failed to compile REPORT-CODES.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See REPORT-CODES.log for more info然而,如果我尝试按照其他帖子中的建议进行报告(或者像这样):
output:
pdf_document: default
latex_engine: xelatex错误是:
Errore in yaml::yaml.load(..., eval.expr = TRUE) :
Scanner error: mapping values are not allowed in this context at line 6, column 17
Chiamate: <Anonymous> ... parse_yaml_front_matter -> yaml_load -> <Anonymous>其中,第6行和第7行分别对应于pdf_document和latex_engine。有人知道怎么解决这个问题吗?
发布于 2021-11-05 09:22:47
删除default关键字:
---
output:
pdf_document:
latex_engine: xelatex
---
Ï

https://stackoverflow.com/questions/69850750
复制相似问题