首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >bookdown中的双列文章

bookdown中的双列文章
EN

Stack Overflow用户
提问于 2019-03-16 01:33:24
回答 1查看 82关注 0票数 1

我正在使用bookdown::pdf_document2,我想创建一篇有2列的文章。我正在使用bookdown来进行章节引用。

我使用pandoc_args: [ "-V", "classoption=twocolumn",但这使它忽略了字体,并默认为计算机现代。有没有办法用pdf_document2获得两篇专栏文章?

我使用以下标头:

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2019-03-19 01:00:22

您可以在YAML标头中设置classoption:

代码语言:javascript
复制
---
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
---

我将字体更改为我的系统上可用的字体。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55187989

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档