有没有办法编辑 R Markdown Slidy 演示文稿的标题幻灯片?我可以添加页眉、页脚和自定义 css:
title: "Slidy Template"
author: ""
date: "June 18, 2015"
runtime: shiny
output:
slidy_presentation:
css: ./styles/Slidy_Styles.css
includes:
after_body: ./styles/doc_suffix.html
before_body: ./styles/header.html
Run Code Online (Sandbox Code Playgroud)
但我不知道如何向幻灯片添加除标题、作者和日期之外的任何内容,或者用自定义 html 模板替换标准幻灯片标题幻灯片,就像我对页眉和页脚所做的那样。
有没有办法做到这一点?
您可以修改 pandoc slidy 模板中有关标题页的部分,也可以在pandoc -D slidy.
$if(title)$
<div class="slide titlepage">
<h1 class="title">$title$</h1>
$if(subtitle)$
<h1 class="subtitle">$subtitle$</h1>
$endif$
<p class="author">
$for(author)$$author$$sep$<br/>$endfor$
</p>
$if(date)$
<p class="date">$date$</p>
$endif$
</div>
$endif$
Run Code Online (Sandbox Code Playgroud)
将生成的文件保存为 pandoc 模板目录中的 default.slidy :
$HOME/.pandoc/templates (unix)
C:\Documents And Settings\USERNAME\Application Data\pandoc\templates (windows XP)
C:\Users\USERNAME\AppData\Roaming\pandoc\templates (windows 7)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3018 次 |
| 最近记录: |