ORZ Slides

A Feature-Rich Presentation System for VS Code

Template Author  ·  Example University  ·  2026-04-20

What This Template Covers

  1. Text & Markdown — formatting, lists, code, blockquotes, tables
  2. Math & Chemistry — KaTeX inline/display, mhchem notation
  3. Rich Media — Mermaid diagrams, SMILES structures, QR codes
  4. Semantic Containers — info/warning/danger/success, spoilers, tabs
  5. Layout System — columns, rows, center, float, footer
  6. Fragments & Notes — step-by-step reveal, speaker notes

Part I: Text & Markdown

Standard CommonMark plus orz-markdown extensions.

Text Formatting

Bold text · Italic text · Bold italic · inline code

Highlighted · Inserted · Strikethrough

Subscript H2O · Superscript E = mc2

Red span · Green span · Blue span · Warning badge

A blockquote. Useful for quoting sources or calling out important passages.

Nested blockquote for extra emphasis.

Lists

Unordered

  • Alpha
  • Beta
    • Beta 1
    • Beta 2
  • Gamma

Ordered

  1. First item
  2. Second item
  3. Third item
    1. Nested
    2. Nested

Task list

  • ☑ Completed task
  • ☑ Also done
  • ☐ Pending task
  • ☐ Another to-do

Code Blocks

// Fibonacci — recursive memoised
function fib(n, memo = {}) {
    if (n <= 1) return n;
    if (memo[n]) return memo[n];
    return memo[n] = fib(n-1, memo)
                   + fib(n-2, memo);
}
console.log(fib(40)); // 102334155
# List comprehension + generator
squares = [x**2 for x in range(10)]
even_sq  = (x**2 for x in range(10)
            if x % 2 == 0)

def greet(name: str = "world") -> str:
    return f"Hello, {name}!"

print(greet("ORZ"))

Tables

Feature Syntax Status
Bold / Italic **bold** / *italic* ✅ Supported
Highlight ==text== ✅ Supported
Math inline $E=mc^2$ ✅ Supported
Footnotes [^1] ✅ Supported
Custom spans {{sp[red] text}} ✅ Supported

Rows can be highlighted with .row-highlight for emphasis.

Math & Chemistry

Inline math: The energy–mass relation \(E = mc^2\) was derived by Einstein.

Display math:

\[\int_0^\infty e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}\]

\[\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}\]

Chemistry (mhchem):

Combustion: \(\ce{CH4 + 2O2 -> CO2 + 2H2O}\)

Redox: \(\ce{Fe^{2+} + 2e- -> Fe}\)

Equilibrium: \(\ce{N2 + 3H2 <=> 2NH3}\)

Hydration: \(\ce{CuSO4 * 5H2O}\)

Part II: Rich Media

Diagrams, chemical structures, QR codes, and more.

Mermaid Diagrams

Flowchart

graph LR A([Start]) --> B{Decision} B -->|Yes| C[Process A] B -->|No| D[Process B] C --> E([End]) D --> E

Sequence diagram

sequenceDiagram participant U as User participant E as Extension participant P as Parser U->>E: Edit markdown E->>P: renderMarkdown() P-->>E: HTML fragment E-->>U: Live preview

Chemical Structures

Caffeine C X 8 H X 10 N X 4 O X 2 \ce{C8H10N4O2}

Benzene C X 6 H X 6 \ce{C6H6}

Aspirin C X 9 H X 8 O X 4 \ce{C9H8O4}

QR Codes, Emoji & More

QR Code — click to expand

QR: github.com

Emoji (by name)

🚀 Launch    🎉 Done    ⚠️ Watch out

😊 Great    🔥 Hot    ⭐ Favourite

YouTube embed

Replace the video ID with your own content.

Part III: Semantic Containers

Callout boxes, spoilers, tabs, and multi-column layouts.

Callout Boxes

Info: Use this for supplementary information, tips, or notes that add context without interrupting the main flow.

Warning: Use this for caveats, potential pitfalls, or things the audience should pay attention to.

Success: Confirm a completed step, a correct answer, or a positive outcome.

Danger: Reserved for errors, critical warnings, or irreversible actions.

Spoilers & Tabs

Spoiler (collapsible)

Click to reveal the answer

The answer is 42.

It has always been 42.

Hint for exercise 2

Consider using dynamic programming. Build up from base cases.

Tab groups

def hello():
    return "Hello, World!"
function hello() {
    return "Hello, World!";
}
fn hello() -> &'static str {
    "Hello, World!"
}

Part IV: Layout System

Flexible containers using the [[ ]] syntax.

Two Equal Columns

Left Column

Replace this placeholder with your content — a list, an image, a code block, or any markdown element.

  • Item one
  • Item two
  • Item three

Right Column

Each column occupies 50% of the available body width. Columns stretch to the full body height.

Use [[col[0.5] ... ]] for each column.

Asymmetric Columns — Image + Text

[[col 38%]]
Replace with an image or graphic
📷 Your image here

Key Points

  • Use [[col[0.38]]] for a narrower image column
  • Use [[col[0.62]]] for a wider text column
  • Column fractions must sum to ≤ 1.0

The narrower column is ideal for a figure or chart. The wider column holds the explanation.

Nested Layout — Column Containing Rows

[[col 45%]]
Large figure on the left
📊 Figure / Chart

Top section

First observation or key point about the figure on the left.

Bottom section

Second observation or supporting detail. Add more rows as needed.

Row Stacking

Rule: Once a parent row or col is split into child containers, do not mix bare content with those child containers. Use two or more child rows or cols to occupy that parent, then place content inside each child. This keeps the rendering logic explicit and easier to maintain.

Left detail

This row contains only child cols. Put the explanation, bullets, image, or table inside those child containers.

Right detail

Avoid adding a parent-level heading or paragraph beside the child cols. Keep the parent dedicated to structure.

Center Container

The Central Message

Use [[center[width] content]] when you want a single focused element centered both horizontally and vertically.

Width accepts 0.65, 65%, or 2/3. A center container cannot have siblings.

Float Container

Main body content. The text here fills the regular flow of the slide. Float containers sit on top of everything else.

Key points about this topic:

  • Float is positioned from the top-left corner of the slide
  • Coordinates and width use %, fractions like 1/2, or decimals like 0.5
  • Multiple floats can overlap each other

Floating badge

[[float[63%, 22%, 33%]]]
This box floats at x=63%, y=22%, width=33% of the slide. Replace with a callout, annotation, or caption.

Footer Bar

This slide has a persistent footer at the bottom. The footer occupies its own strip, reducing the body height slightly.

Use the footer for:

  • Slide-level citations or references
  • Section labels
  • Revision dates or version numbers

Part V: Fragments & Speaker Notes

Step-by-step reveals and presenter annotations.

Fragment Animations

Items can appear one by one using Reveal.js .fragment class.

Press → to advance through items below:

  • First item appears immediately
  • Second item appears on first press
  • Third item appears on second press
  • Fourth item appears on third press

✅ All items revealed — this box appears last.

Speaker Notes

The audience sees this slide content. The speaker sees notes in a separate window.

Use [[note content]] in the markdown source to add notes:

[[note
- First talking point
- Remind the audience about the context from slide 3
- Time check: should be at ~15 minutes here
]]

Press S to open the speaker window and see the notes for this slide.

Available Themes

Theme Personality
theme-paper.css Warm serif, book-like
theme-architect.css Blueprint grid
theme-executive.css Dark navy + gold
theme-sage.css Ivory + sage green
Theme Personality
theme-poppy.css Cream + coral
theme-neon.css Near-black + cyan
theme-chalk.css Blackboard + chalk

Each theme defines only CSS variables and decorative overrides — layout structure is shared.

Custom Class And Inline CSS

Add slide classes

Use class or slideClass in the NYML block to add custom selectors to the slide root.

This slide adds spotlight-card and warm-accent.

Add inline CSS

Use css: | for slide-local CSS.

Target the slide root with :slide and read arbitrary NYML fields through data-orz-* or --orz-nyml-*.

Thank You

Questions & Discussion

Template Author  ·  Example University  ·  2026-04-20

Replace this aside with a figure, logo, or decorative element.