reveal.js is a creative open source HTML presentation framework with many awesome plugins. To create a reveal.js presentation from R Markdown we use revealjs package that is developed by Rstudio team. For construct MPI Theme we add css style to revealjs_presentation function to generate presentation. For more details you can see revealjs example.

--- 
title: |
  <img width=25% class="pagetitle-logo"  src="src/img/MPILogoGreen.png">
  Statistical Analysis of Behavioral Data
date: "`r format(Sys.time(), '%d %B, %Y')`"
author: Ahmad Ehyaei
output:
  revealjs::revealjs_presentation:
    theme: default
    css: [src/styles/template.css, src/styles/environments.css]
    transition: slide
    background_transition: default
    center: true
    reveal_options:
      slideNumber: true
      previewLinks: true
--- 

To configure a custom style, you can change template.css inside the path src/styles in the template.

You can also add the title page logo by changing the image path:

class="pagetitle-logo" src="src/img/MPILogoGreen.png">

In the YAML RMarkdown header.



Ehyaei/MPIThemes documentation built on Jan. 13, 2022, 7:28 p.m.