feat(presentations): add example code

This commit is contained in:
Fabrice Mouhartem 2025-01-29 13:52:29 +01:00
parent 9806dbd95b
commit 665efa6b77
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7

View File

@ -141,6 +141,36 @@ produce PDFs, as these tools are designed with an awareness of the page layout
### Ease of use ### Ease of use
One nice thing about [pandoc] + [reveal.js] slide making is that, for simple
intends and purpose, there are very little structural codes (contrary to
[beamer] for instance where you have to define several variables before
starting).
From the following code, you can start making a presentation:
```yaml
---
title: Example Presentation
subtitle: Its all about presenting
author: Fabrice Mouhartem
date: 2025-01-29
theme: solarized
---
```
Then run:
```sh
pandoc --standalone -t revealjs -o output.html input.md
```
And thats all… well, its just a title slide and an empty slide, but its the
beginning of a **wonderful** presentation.
Then, similarly to [typst] + [touying], a level 1 heading creates a title slide,
and a level 2 heading spawns a new content slide. You can also spawn a new slide
with three hyphens (`---`).
### Speaker view ### Speaker view
One of the advantage of [reveal.js] is the built-in [speaker view]. It spans a One of the advantage of [reveal.js] is the built-in [speaker view]. It spans a
@ -171,6 +201,7 @@ for PDF slides.
[RSS feed]: /feeds/all.rss.xml [RSS feed]: /feeds/all.rss.xml
[typst]: https://typst.app/ [typst]: https://typst.app/
[touying]: https://touying-typ.github.io/
[typst article]: {filename}../software/typst.md [typst article]: {filename}../software/typst.md
[presenting slides]: #presenting-slides [presenting slides]: #presenting-slides
[LaTeX]: https://www.latex-project.org/ [LaTeX]: https://www.latex-project.org/