Change Slide Slide R Markdown Slidy Presentation

Is there a way to edit an R Markdown Slidy Presentation title slide? I can add header, footer and custom 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

      

But I can't figure out how to add anything other than title, author and date to the slide, or replace the standard slide slide with a title with a custom html template, just like with the header and footer.

Is there a way to do this?

+3


source to share


2 answers


You can change part of the title page in pandoc weak template also found with 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$

      



Save the resulting file as default.slidy in the pandoc template directory:

$HOME/.pandoc/templates (unix)
C:\Documents And Settings\USERNAME\Application Data\pandoc\templates (windows XP)
C:\Users\USERNAME\AppData\Roaming\pandoc\templates (windows 7)

      

+2


source


Rmarkdown will not remove a title slide from a weak presentation unless you provide a title. Just remove the title bar from the yaml setting and add the first slide to tell the details as you like.



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
---

      

0


source







All Articles