有什么方法可以编辑R标记幻灯片的幻灯片吗?我能够添加页眉、页脚和自定义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但我想不出如何在幻灯片中添加除标题、作者和日期之外的任何内容,或者用自定义html模板替换标准的滑鼠标题幻灯片,就像我对页眉和页脚所做的那样。
有办法这样做吗?
发布于 2015-06-20 15:08:47
您可以修改pandoc 粘滑模板中关于标题页的部分,也可以在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$在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)发布于 2018-02-23 05:43:25
如果不给标题,Rmarkdown将不会删除幻灯片中的标题。简单地,从yaml设置中删除标题行,并添加第一个幻灯片,以提供您喜欢的详细信息。
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
---
#Slidy Template
**Author**
Affiliations
Date
---https://stackoverflow.com/questions/30921189
复制相似问题