如何在R markdown beamer中使用乳胶包装?

ilk*_*lan 8 latex beamer r-markdown

我想在R markdown pdf和beamer中加入乳胶包装.

你能帮我在rmarkdown beamer文件中包含usepackage命令吗?

非常感谢.

Wal*_*cio 14

一个简单的解决方案是让您的标头设置如下:

---
title: "Document title"
author: "Author's name"
date: "Document date"
output: beamer_presentation
header-includes:
- \usepackage[brazil]{babel}
- \usepackage{graphicx}
- \usepackage[a4paper]{geometry}
---
Run Code Online (Sandbox Code Playgroud)


CJG*_*rey 7

Rmd的YAML标题如下所示:

---
title: "Habits"
output:
  pdf_document:
    includes:
      in_header: header.tex
---
Run Code Online (Sandbox Code Playgroud)

然后,在文件header.tex中,包含您需要的任何usepackage语句,例如. \usepackage{pdflscape}

有关详细信息,请参阅http://rmarkdown.rstudio.com/pdf_document_format.html.