Skip to content

Commit eb5c419

Browse files
committed
docs - revealjs work
1 parent 7b84ddc commit eb5c419

6 files changed

Lines changed: 54 additions & 1 deletion

File tree

docs/presentations/revealjs/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Reveal.js presentations"
44

55
## Overview
66

7-
Like other documents, a reveal.js presentation in Quarto is a Markdown document. Add `format: revealjs` to the document's front matter to choose the slideshow format:
7+
Like other documents, a `revealjs` presentation in Quarto is a Markdown document that is compiled to an HTML presentation using the [`reveal.js` HTML presentation framework](https://github.com/hakimel/reveal.js/). Add `format: revealjs` to the document's front matter to choose the slideshow format:
88

99
```yaml
1010
---

examples/presentations/11-auto-stretch/slides.qmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@ To opt out, set `auto-stretch: false` in the front matter (deck-wide), or give
1616
the image an explicit `width`/`height`, or mark it `.nostretch`:
1717

1818
![](diagram.svg){.nostretch}
19+
20+
## Standalone (with stretch)
21+
22+
![](diagram.svg)
23+
24+
## Standalone nostretch
25+
26+
![](diagram.svg){.nostretch}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
color:
2+
palette:
3+
dark-grey: "#222222"
4+
blue: "#ddeaf1"
5+
background: blue
6+
foreground: dark-grey
7+
primary: black
8+
9+
logo:
10+
medium: logo.png
11+
12+
typography:
13+
fonts:
14+
- family: Jura
15+
source: google
16+
base: Jura
17+
headings: Jura
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
project:
2+
type: default
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Auto-stretch"
3+
format: revealjs
4+
# brand: !str _brand.yml # !str forces Quarto to
5+
---
6+
7+
## A single image fills the slide
8+
9+
When a slide holds just one image, Quarto sizes it to fill the available space
10+
so it never overflows. This happens by default.
11+
12+
![](diagram.svg)
13+
14+
## Keeping an image at its natural size
15+
16+
To opt out, set `auto-stretch: false` in the front matter (deck-wide), or give
17+
the image an explicit `width`/`height`, or mark it `.nostretch`:
18+
19+
![](diagram.svg){.nostretch}

0 commit comments

Comments
 (0)