使用Pagedown创建的Xaringan PDF中不需要的页边距

问题描述

我一直在使用xaringan创建html幻灯片,我想将它们另存为PDF。我正在尝试使用pagedown::chrome_print,但是生成输出带有不需要的边距,而这些边距在html版本中没有显示。你知道我该怎么解决吗?

这是我的YAML标头

title: "Example"
subtitle: "1"
author: "Edo"
institute: ""
date: ""
output: 
  xaringan::moon_reader:
    css: [mymetropolis.css,metropolis-fonts]
    lib_dir: libs
    nature:
      ratio: '16:9'
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
     

非常感谢

解决方法

也许您可以尝试css: [default,mymetropolis.css,metropolis-fonts]