How to center slide title in R Markdown?
P粉154228483
P粉154228483 2023-09-15 18:22:53
0
1
479

I want to add a blank slide between the two sections and a short title (single #) in the main title format in the center of it. is it possible?

P粉154228483
P粉154228483

reply all(1)
P粉903052556

Create a slide without a title with the classes .blank-slide .flexbox .vcenter and then create the slide title directly using the h1 tag. Then use css on the .blank-slide tag under the h1 class to make it look like the title-slide title.

---
title: "Untitled"
output: ioslides_presentation
date: "2023-06-10"
css: style.css
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```

## R Markdown

This is an R Markdown presentation. Markdown is a simple formatting syntax.


## {.blank-slide .flexbox .vcenter}


<h1>Intro to Syntax</h1>


## Slide with Bullets

- Bullet 1
- Bullet 2
- Bullet 3


## {.blank-slide .flexbox .vcenter}

<h1>More Discussion</h1>

style.css

.blank-slide h1 {
  font-size: 65px;
  line-height: 1.4;
  letter-spacing: -3px;
  color: #515151;
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!