feat(presentations): add example code
This commit is contained in:
		| @@ -141,6 +141,36 @@ produce PDFs, as these tools are designed with an awareness of the page layout | ||||
|  | ||||
| ### 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: It’s 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 that’s all… well, it’s just a title slide and an empty slide, but it’s 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 | ||||
|  | ||||
| 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 | ||||
| [typst]: https://typst.app/ | ||||
| [touying]: https://touying-typ.github.io/ | ||||
| [typst article]: {filename}../software/typst.md | ||||
| [presenting slides]: #presenting-slides | ||||
| [LaTeX]: https://www.latex-project.org/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user