首页 > 解决方案 > 在 rmarkdown YAML 中为 pdf 输出设置字体(字体)

问题描述

我正在尝试为在 rMarkdown 中创建的 pdf 文档设置字体

---
title: "Intro"
date: "10/07/2020"
output: 
    pdf_document:
        latex_engine: xelatex
mainfont: Arial
---

这行不通。我收到以下错误

tlmgr.pl: Local TeX Live (2019) is older than remote repository (2020).
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
! LaTeX Error: File `unicode-math.sty' not found.

! Emergency stop.
<read *> 

我究竟做错了什么?

标签: pdffontslatexr-markdown

解决方案


推荐阅读