【问题标题】:! Package inputenc Error: Unicode character λ (U+03BB) (inputenc) not set up for use with LaTeX. while trying to knit in RMD!包 inputenc 错误:Unicode 字符 λ (U+03BB) (inputenc) 未设置为与 LaTeX 一起使用。尝试在 RMD 中编织时
【发布时间】:2020-03-13 09:18:58
【问题描述】:

我正在尝试编织 RMD 文件,因为我需要以 pdf 格式提交它。当我在 RMD 中运行它时,代码工作正常。我遇到了这些我完全不知道的错误。

输出文件:BUAN6356_Homework4_Group10_1.knit.md

!包 inputenc 错误:Unicode 字符 λ (U+03BB) (inputenc) 未设置为与 LaTeX 一起使用。

如果您使用的是 pdflatex,请尝试使用其他 LaTeX 引擎(例如 xelatex)。对于 R Markdown 用户,请参阅https://bookdown.org/yihui/rmarkdown/pdf-document.html 错误:无法编译 BUAN6356_Homework4_Group10_1.tex。有关调试提示,请参阅https://yihui.name/tinytex/r/#debugging。有关详细信息,请参阅 BUAN6356_Homework4_Group10_1.log。 执行停止

author: "Chitresh"
date: "`r Sys.Date()`"
output:
  pdf_document: default
  html_document: default
---

【问题讨论】:

    标签: r latex pdflatex


    【解决方案1】:

    我在 rmd 文件的开头使用了这段代码。我没有使用 pdf 作为默认格式,而是使用 Xelatex,它可以正常工作,并且我能够正确编织它而不会出现上述错误。

    ---
    title: "Homework"
    author: "Chitresh"
    date: "`r Sys.Date()`"
    output:
      pdf_document:
        latex_engine: xelatex
    ---
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-23
      • 1970-01-01
      • 2015-07-29
      • 1970-01-01
      • 1970-01-01
      • 2017-12-07
      相关资源
      最近更新 更多