Xaringan: Change formatting of title slide?

Created on 20 Oct 2017  Â·  7Comments  Â·  Source: yihui/xaringan

How do you adjust the formatting of the title slide (e.g.; its class so I can set inverse = FALSE). I've searched high and low for how to do this but no success. ..

Most helpful comment

Hi @ndphillips, we just added titleSlideClass as an option to the nature argument of moon_reader that allows you to make this change to the title slide classes from your YAML header.

To get back to your original post, you can now remove the inverse class from the title slide by adding following line to the YAML of your slides:

output:
  xaringan::moon_reader:
    nature:
      titleSlideClass: [center, middle]

The default is center middle inverse, so adding inverse is dropped. You can also of course add any arbitrary CSS class to the title slide this way.

All 7 comments

see https://github.com/yihui/xaringan/issues/5

You can change everything using the .title-slide class while setting seal: false in the YAML header.

THanks!

Thanks @pat-s Now I'm having some trouble figuring out how to specify the changes (i'm new to yaml). Can you help create a workable example with a title slide that is not inverted?

title: "a"
subtitle: "b"
author: "c"
date: "d"
seal: false
output:
  xaringan::moon_reader:
    css: ["default", "xaringan.css"]
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
      ratio: '16:9'
---
# Slide 1

---
# Slide 2

title: "Presentation Ninja"
subtitle: "âš”<br/>with xaringan"
author: "Yihui Xie"
date: "2016/12/12"
output:
  xaringan::moon_reader:
    lib_dir: libs
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
    seal: false
---

class: title-slide-custom

<br><br><br>
# Header1

<br><br> 
## Header 2
### Header3


---

# slide 1

and put this in your custom CSS if you want to suppress slide numbers on the title slide:

.title-slide-custom .remark-slide-number {
  display: none;
}

Perfect! Thanks very much!

Hi @ndphillips, we just added titleSlideClass as an option to the nature argument of moon_reader that allows you to make this change to the title slide classes from your YAML header.

To get back to your original post, you can now remove the inverse class from the title slide by adding following line to the YAML of your slides:

output:
  xaringan::moon_reader:
    nature:
      titleSlideClass: [center, middle]

The default is center middle inverse, so adding inverse is dropped. You can also of course add any arbitrary CSS class to the title slide this way.

@gadenbuie Thanks!!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tcgriffith picture tcgriffith  Â·  4Comments

DarioS picture DarioS  Â·  4Comments

vcannataro picture vcannataro  Â·  4Comments

burgerga picture burgerga  Â·  3Comments

bnicenboim picture bnicenboim  Â·  5Comments