The .pres file — Structure and commands¶
A .pres file is a plain-text source describing a whole presentation. It has
two parts: settings (global parameters) and content (the slides).
Revealer accepts raw HTML anywhere, just like reveal.js, but adds a set of
shortcuts so you can focus on the content.
Structure¶
# --- SETTINGS --------------------------------------------------------------
> author: First author
> author: Second author
> event: Seminar place, 01/01/2026
> logo: Media/Images/Logos/Logo1.png
> logo: Media/Images/Logos/Logo2.png
> slideNumber: c/t
# --- CONTENT ---------------------------------------------------------------
>>> first: Title
> subtitle: Subtitle
=== Title of slide 1
This slide is <i>very</i> informative.
=== Title of slide 2
This slide is <b>extremely</b> informative.
Main commands¶
Command |
Description |
|---|---|
|
Comment. Any line starting with |
|
First slide. Its content is generated automatically (title, subtitle, authors, logos, event). |
|
Horizontal slide. |
|
Vertical slide. |
|
Section slide. Marks the start of a section; the header is removed. Add |
|
Bibliography slide(s). Adds formatted bibliography slides from the references cited with |
Presentation settings¶
These must appear before the first slide.
Any other global reveal.js options may also be specified here using > option: value (for example > controls: false). Boolean and numeric values are recognised; strings are quoted.
Command |
Description |
|---|---|
|
Author name. Repeat to add contributors. Add an indented |
|
false* |
|
Author photo. Used in the settings block, either below an author or followed by an indented author. See Author photos. |
|
Event. Typically the location and date. |
|
Institutional logo on the first slide. Repeatable. |
|
Theme. |
|
Code highlighting theme. See the highlight.js demo. Default: |
|
Slide numbers. Disabled by default. Any reveal.js value. |
|
false* |
|
false* |
|
Background transition. Any reveal.js background transition. |
|
Speaker-notes font size. Default: |
|
Default SVG animation duration. Default: |
|
Bibtex file used for the bibliography. |
Slide commands¶
Command |
Description |
|---|---|
|
Hide slide. |
|
Dark style for the current slide. |
|
Theme for the current slide. Temporarily switches the reveal.js theme while this slide is active. |
|
Subtitle (first slide only). |
|
Remove the fixed header. |
|
Background image or colour. |
|
Text colour for the current slide. |
See Layout parameters for header-margin,
column-spacing, column-width, paragraph-spacing, and the contextual
size / align directives.
Content-level helpers such as citations, speaker notes, raw reveal.js attributes, inline SVGs, and SVG animation steps are documented in Content shortcuts.
Parameter scopes¶
Every > key: value directive applies to a scope, which determines how far
its effect reaches:
Scope |
Where it is written |
Applies to |
|---|---|---|
Presentation |
in the settings block, before the first slide |
the whole presentation |
Slide |
inside a slide, outside any column block |
the current slide |
Block |
at the top of a column block ( |
that column only |
Paragraph |
directly attached to a paragraph (no blank line before its content) |
that paragraph only |
Most directives have a fixed scope (see the tables above). Two of them —
size and align — are contextual: their scope is deduced from where
they appear (see Content shortcuts › Paragraphs).
Layout parameters¶
A slide is organised as a central area (the space left free by the optional header and footer) filled with one or more blocks (columns). Each block holds a stack of paragraphs and shrinks its own font until it fits. The geometry is controllable:
Command |
Scope |
Default |
Description |
|---|---|---|---|
|
presentation |
current look |
Header band height, as a fraction of the slide height. |
|
presentation |
current look |
Footer band height, as a fraction of the slide height. |
|
slide |
|
Vertical breathing margin between the header/footer and the central area, as a fraction of the slide height. |
|
slide |
|
Horizontal spacing used at the edges and between blocks, as a fraction of the slide width. |
|
slide |
|
Block widths. |
|
slide → block |
|
Spacing between paragraphs, in line-heights (interligne). Defined inside a column block, it applies to that block only. |
|
contextual |
|
Relative font size multiplier (e.g. |
|
contextual |
inherited |
Text alignment. |