简体   繁体   English

使用 R markdown 生成的投影仪演示文稿中包含的主题、模板的用途

[英]Purposes of theme, template and includes in beamer presentation generated with R markdown

R markdown presentations with output format beamer can make use of R markdown 演示文稿与 output 格式beamer可以使用

  • Classical LaTex beamer themes such as Copenhagen or Madrid or employ custom beamer themes.经典的 LaTex 投影仪主题,例如哥本哈根马德里,或使用自定义投影仪主题。
  • Templates , ie a template.tex模板,即template.tex
  • Includes , eg in_header: preamble.tex , before_body: before_body.tex and after_body: after_body.tex包括,例如in_header: preamble.tex , before_body: before_body.texafter_body: after_body.tex

which can be implemented in the rmarkdown::beamer_presentation through the YAML-header as follows:这可以通过 YAML-header 在rmarkdown::beamer_presentation中实现,如下所示:

theme: "THEMENAME"
template: template.tex
includes:
  - in_header: preamble.tex
  - before_body: before_body.tex
  - after_body: after_body.tex

What are the specific purposes of these files?这些文件的具体用途是什么? That is, what contents should go in each of these files, how do they add or modify the final presentation, and which of the files are equivalent and possibly redundant?即go在这些文件中的每一个应该包含哪些内容,他们如何添加或修改最终呈现,哪些文件是等效的,可能是多余的?

  • If I understand the rmarkdown lingo correctly, they use the term template for the instructions how the markdown document will be translated into tex, eg the default beamer_presentation template for example defines how information from your yaml-header is used in the tex document, eg that whatever you put down for title will be translated into \title{...} .如果我正确理解 rmarkdown 术语,他们会使用术语模板来说明如何将 markdown 文档翻译成 tex,例如默认的 beamer_presentation 模板定义了如何在 tex 文档中使用来自 yaml-header 的信息,例如您为 title 输入的任何内容都将被翻译成\title{...} It also contains a hole kitchen sink of packages rmarkdown loads by default, many of which make no sense with beamer.默认情况下,它还包含一个包含 rmarkdown 负载的孔厨房水槽,其中许多对 beamer 毫无意义。

  • the include hooks offer possibilities to smuggle additional latex code into your document.包含挂钩提供了将额外的 latex 代码走私到您的文档中的可能性。 The difference between the different options is where they will be executed in the intermediate tex document.不同选项之间的区别在于它们将在中间 tex 文档中执行的位置。 For example in_header will be included at the end of the preamble.例如in_header将包含在序言的末尾。 Which of them to use will depend on what you want to add.使用哪一个取决于您要添加的内容。 For most things in_header will be fine.对于大多数事情in_header会很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用自定义投影仪主题、模板并包含在使用 R markdown 生成的投影仪演示中? - How to employ a custom beamer theme, template and includes in a beamer presentation generated with R markdown? 指定自定义主题、序言的路径,并包含在使用 R markdown 生成的 beamer 演示文稿的 YAML 标头中 - Specify paths to custom theme, preamble and includes in YAML-header of beamer presentation generated with R markdown 在使用 R markdown 生成的投影仪演示中减少表格和标题之间的距离 - Reduce distance between table and caption in a beamer presentation generated with R markdown 使用 R Markdown 的 Beamer 演示 - Beamer presentation using R Markdown 更改 R Markdown 投影仪演示中的背景 - Change background in R Markdown beamer presentation 在 R markdown beamer 演示文稿中添加作者隶属关系 - Add author affiliation in R markdown beamer presentation 使用 R Markdown 将徽标插入 beamer 演示文稿 - Inserting logo into beamer presentation using R Markdown 用R markdown / knitr生成的投影仪中的内容表 - Table of content in beamer generated with R markdown/knitr 如何在 R markdown 中的投影仪演示文稿的标题页中添加更多信息? - How to add more information in the title page of beamer presentation in R markdown? 在 R markdown 投影仪演示文稿的 header 中插入手动段落 - Insert a manual paragraph in an header of an R markdown beamer presentation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM