如何在knitr中指定PDF回退字体?

如何在knitr中指定PDF回退字体?,r,pdf,knitr,R,Pdf,Knitr,在使用R标记文件时,是否有方法指定多个mainfont选项,从而在第一个选项不可用时允许knitr返回到字体 当前YAML标题示例: --- title: "Super Fancy Report" mainfont: BentonSansRE output: pdf_document: latex_engine: xelatex fig_caption: yes toc: yes html_notebook: code_folding: hide

在使用R标记文件时,是否有方法指定多个
mainfont
选项,从而在第一个选项不可用时允许
knitr
返回到字体

当前YAML标题示例:

---
title: "Super Fancy Report"
mainfont: BentonSansRE
output:
  pdf_document:
    latex_engine: xelatex
    fig_caption: yes
    toc: yes
  html_notebook:
    code_folding: hide
    css: html-styles.css
    toc: yes
    toc_depth: 3
    toc_float: yes
---
我想做一些类似(非功能性示例):

---
title: "Super Fancy Report"
mainfont:
- BentonSansRE
- Arial Narrow
output:
  pdf_document:
    latex_engine: xelatex
    fig_caption: yes
    toc: yes
  html_notebook:
    code_folding: hide
    css: html-styles.css
    toc: yes
    toc_depth: 3
    toc_float: yes
---