调整 Posterdown R 包中的标题边距

Adjusting title margin in Posterdown R package

我正在使用 posterdown (https://github.com/brentthorne/posterdown) 在 RMarkdown 中制作海报。我想移动标题,使其与海报边缘之间有更多的白色space。

这是模板的 YAML:

---
title: Generate Reproducible & Live HTML and PDF Conference Posters Using RMarkdown
author:
  - name: Brent Thorne
    affil: 1
    orcid: '0000-0002-1099-3857'
  - name: Another G. Author
    affil: 2
affiliation:
  - num: 1
    address: Department of Earth Science, Brock University
  - num: 2
    address: Department of Graphics and Layouts, University of Posters; Canada
column_numbers: 3
logoright_name: https://raw.githubusercontent.com/brentthorne/posterdown/master/images/betterhexlogo.png
logoleft_name: https://raw.githubusercontent.com/brentthorne/posterdown/master/images/betterhexlogo.png
output: 
  posterdown::posterdown_html:
    self_contained: false

---

我试图将标题设为带分隔符的字符串,但这会导致白色过多space。

"<br/>Generate Reproducible & Live HTML and PDF Conference Posters Using RMarkdown"

使用 CSS margin:

F.e.:

title: <div style="margin:20px">Generate Reproducible & Live HTML and PDF Conference Posters Using RMarkdown </div>

...以避免警告(通过控制台编织):

a) 安静:

library(rmarkdown)
render("my_file.Rmd", output_options = list(pandoc_args = c('--metadata', 'pagetitle=Test')))

b) 超级安静:

library(rmarkdown)
render("my_file.Rmd", output_options = list(pandoc_args = c('--metadata', 'pagetitle=Test')), quiet = TRUE)