trutzio78 downloadsCreate slides using markdown and present them in your browser via revealjs.com framework.
Create slides using markdown in Obsidian and present them via Reveal.js in your browser.
--- as separator within Obsidian notesmain.js, manifest.json, styles.css and trutzio-slides.zip.obsidian/plugins directory, if it doesn't exist, create it.zip file into a new folder within the plugins directorymain.js, manifest.json, styles.css files into the newly created folderSettings > Community Plugins and make sure "Safe Mode" is turned offBrowse under Community Plugins, find Slides, and enable itYou can customize the slide appearence and the revealing of elements within slides by using
<!-- .slide: ... --> and<!-- .element: ... -->markups as described here. The following example slide:
---
<!-- .slide: data-background="#ff0000" -->
# My Title
- Item 1 <!-- .element: class="fragment" data-fragment-index="2" -->
- Item 2 <!-- .element: class="fragment" data-fragment-index="1" -->
---
has a red background and the bullet points will incrementally appear in reverse order. Please use the cursor keys to reveal the items. More on fragments attributes here.
You can directly navigate between slides by giving the target slide an id and using this id as a link in the source slide. Here two example slides demonstrating navigation:
---
<!-- .slide: id="demo" -->
# Markdown Demo
This slide has id = "demo".
---
[go to slide with id "demo"](#/demo)
---
The first slide has id demo which is used as link (#/demo) from the second slide.
You can embed code from different languages like Python, Java, etc. The following slide
---
# My Java Code
```java [1|3-7]
class Main {
public static void main(String[] args) {
int first = 10;
int second = 20;
// add two numbers
int sum = first + second;
System.out.println(first + " + " + second + " = " + sum);
}
}
\```
---
contains Java code with line numbers. Plese also note the revealing of the first line of code and after that the focus on the lines 3-7.
Within the presentation in browser press S to get an extra windows with actual and next slide containing also the speaker notes. At the end of a slide insert your speaker notes after Note: like in the example below:
---
Slide with speaker notes.
Note: This notes are only visible in the speaker notes window. Please press S within a presentation to open the speaker notes window.
---
Within slides it is possible to use KaTex formulas between $$ signs. Below an example:
---
## Formulas with KaTex
$$F(x) = \int_{-\infty}^\infty f(x) e^{2 \pi i \xi} d\xi$$
---