我正在使用bookdown::pdf_document2,我想创建一篇有2列的文章。我正在使用bookdown来进行章节引用。
我使用pandoc_args: [ "-V", "classoption=twocolumn",但这使它忽略了字体,并默认为计算机现代。有没有办法用pdf_document2获得两篇专栏文章?
我使用以下标头:
output:
bookdown::pdf_document2:
fig_crop: no
keep_tex: yes
latex_engine: xelatex
number_sections: yes
toc: yes
toc_depth: 5
fontsize: 12pt
editor_options:
chunk_output_type: console
sansfont: Source Sans Pro
mainfont: Source Sans Pro
mathfont: Calibri发布于 2019-03-19 01:00:22
您可以在YAML标头中设置classoption:
---
output:
bookdown::pdf_document2:
fig_crop: no
keep_tex: yes
latex_engine: xelatex
number_sections: yes
toc: yes
toc_depth: 5
fontsize: 12pt
editor_options:
chunk_output_type: console
sansfont: Liberation Sans
mainfont: Liberation Sans
classoption: twocolumn
---我将字体更改为我的系统上可用的字体。
https://stackoverflow.com/questions/55187989
复制相似问题