使用R Markdown文件时,有没有办法指定多个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
---