[英]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
可以使用
template.tex
template.tex
in_header: preamble.tex
, before_body: before_body.tex
and after_body: after_body.tex
in_header: preamble.tex
, before_body: before_body.tex
和after_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.