Presentation

Article Image

The Presentation view allows the creation of slideshows directly from within Trilium.

Creating a new presentation

Right click on an existing note in the Note Tree and select Insert child note → Collection → Presentation.

A presentation without slides shows, in place of the slides and the slide sidebar, a New slide button that creates the first slide and starts editing it. The arrow beside it creates a slide of another type instead, as described below. A read-only presentation shows only a message that it has no slides. Until there is a slide, the Slide sidebar button is disabled and the controls below the slides are not shown.

How it works

  • Each slide is a child note of the collection.
  • The slides are not shown in the Note Tree by default, since the slide sidebar already lists them (see Hiding the subtree). To show them, open the collection's settings and turn off Hide child notes in tree.
  • The order of the child notes determines the order of the slides.
  • Unlike traditional presentation software, slides can be laid out both horizontally and vertically (see below for more information).
  • Direct children will be laid out horizontally and the children of those will be laid out vertically. Children deeper than two levels of nesting are ignored.
  • A Kanban Board or Table collection is shown as one slide, working as it does in the note itself, so its children are not laid out as vertical slides. Other collections keep their children as vertical slides.
  • Slides have a fixed 16:9 shape (1280×720). The preview in the note is a scaled-down copy of what is shown in full-screen, so content that fits in the preview fits when presenting. When the window or the screen has a different shape, the slide is centered with bars around it.
  • A slide whose content is larger than the slide is zoomed out until it fits, text included. To keep the text large, split the content over several slides.

Interaction and navigation

Slide sidebar

A sidebar to the left of the slides shows a thumbnail of every slide in the presentation's theme, with vertical slides indented under the slide they belong to. Web view, Kanban Board and Table slides are shown as an icon.

  • The slide being shown is outlined, and the sidebar scrolls to keep it in view.
  • Click a thumbnail to go to its slide.
  • To move a slide, drag its thumbnail; a line shows where it goes. Dragged straight up or down, a slide keeps its level:
    • A top-level slide takes its vertical slides with it, and dragged over another slide's vertical slides it goes after that whole stack.
    • A vertical slide can go among the vertical slides of any slide. Dropped below a slide that has none, it becomes that slide's first vertical slide, and the line is indented.
  • To change a slide's level, drag it to the side as well: to the right to make it a vertical slide, to the left to make it a top-level slide. The line's indent shows the level it will have.
    • A slide that has vertical slides of its own can't become a vertical slide, and a Kanban Board or Table slide can't take vertical slides.
  • Slides can't be dragged in a read-only or search-based presentation, or into a note that sorts its children with #sorted.
  • Once a thumbnail is clicked, or reached with Tab, the sidebar takes the keyboard until you click the slides:
    • Press ↑ and ↓ to go to the previous or next slide in order, vertical slides included.
    • Press Home and End to go to the first or last slide.
    • Press Alt+↑ and Alt+↓ to move the slide up or down at its level, past a whole stack of vertical slides. Press Alt+→ to make it a vertical slide where it stands, and Alt+← to make it a top-level slide (the other way around in right-to-left languages). The same limits apply as for dragging.
  • Right-click a thumbnail, or press Shift+F10 or the Menu key on a focused one, to open its context menu. The thumbnail is outlined while the menu is open, and the slide being shown doesn't change:
    • Edit slide goes to the slide and edits it in place, as a double-click does. It's available for text, Kanban Board and Table slides.
    • Open note opens the slide's note in a new tab, split or window.
    • New slide after adds an empty slide after it, at its level, and New vertical slide adds one at the end of its vertical slides. Each asks for the type of the slide, from the same list as the arrow beside the New slide button. The presentation goes to the new slide. Duplicate copies the slide, with its vertical slides, right after it.
    • Move up, Move down, Make vertical slide and Make top-level slide move the slide as Alt and the arrow keys do. An item is disabled where the slide can't go.
    • Delete slide... deletes the slide, with its vertical slides, after asking for confirmation.
    • A read-only presentation offers only Open note. A search-based presentation can't add, move or delete slides.
  • To collapse the sidebar, press the Slide sidebar button on the left of the toolbar above the slides, after the collection's settings. Press it again to bring the sidebar back. Each device remembers the choice for every presentation.
  • The sidebar is hidden when the note is too narrow to fit it.

Controls below the slides

Below the slides are three groups of buttons.

Moving between slides

On the left, the Previous slide and Next slide buttons go through every slide in order, vertical slides included, as Shift+Space and Space do. Between them is the number of the slide being shown, out of the number of slides.

A presentation opens on the slide it showed last, also on another device after a sync, unless that slide was deleted. A read-only presentation doesn't remember its slide and opens on the one that was saved, or on the first.

Editing

In the middle:

  • New slide button to add an empty text slide after the slide being shown, at the same level: after a slide and its vertical slides, or among the vertical slides. The presentation goes to the new slide and starts editing it in place. The arrow beside it adds a slide of another type instead:

    • Text and Canvas come first, as the slides that can be edited in place; the presentation starts editing the new slide.
    • Kanban Board and Table create a collection, from the same template as a new one elsewhere, which the presentation also starts editing.
    • Mermaid Diagrams create a diagram and open it in Quick edit to write it. The slide shows the diagram once it is saved, and the Edit this slide button opens it in Quick edit again.
    • Code opens a list of the code languages enabled in the code note options, as the app's other note type menus do, ending with Configure code notes... to change which ones it offers. The new note opens in Quick edit to write the code, as a Mermaid diagram does.
    • Web View and Spreadsheet create an empty note of that type. Its content is added in Quick edit, with the Edit this slide button.

    A read-only presentation doesn't show it, and neither does one made from a search.

  • Edit this slide button to edit the current slide: in place for a text, canvas, Kanban Board or Table slide, as a double-click does, and in Quick edit for a slide of any other type, or where the slide can't be edited in place. A read-only presentation doesn't show it. While a slide is edited in place, the button becomes the Finish editing button.

  • Slide background button to pick the background color of the current slide, or to clear it so the slide uses the theme's background. It is unavailable for web view, Kanban Board and Table slides, which cover the whole slide, and a read-only presentation doesn't show it. A gradient can still be set through the #slide:background label.

Viewing

On the right:

  • Press the Overview button (or the O key) to show a birds-eye view of the slides. Press the button again to disable it.
  • Press the Start presentation button (or the F key) to show the presentation in full-screen. Press Esc or the Exit fullscreen button to leave it.

In full-screen, the editing buttons are hidden, and the other two groups fade out while the mouse rests. Move the mouse to bring it back.

Keyboard shortcuts

The following keyboard shortcuts work while the presentation is the active note: after clicking the slides or the sidebar, and in full-screen. Keys pressed in another split, the note tree or a field go there instead.

  • Press ← and → (or H and L) to go to the slide on the left or on the right (horizontal).
  • Press ↑ and ↓  (or K and J) to go to the upward or downward slide (vertical).
  • Press Space and Shift+Space to go to the next/previous slide in order.
  • Press F to start the presentation in full-screen.
  • And a few more, press ? to display a popup with all the supported keyboard combinations.

Editing a slide in place

Double-click a slide made from a text note to edit it directly on the slide, in the presentation's theme. A dashed outline marks the slide being edited, and the formatting toolbar appears next to the selected text. Changes are saved as you type, as in any text note, and a slide that grows past the edge of the slide is zoomed out to fit.

To finish editing, press Esc, press the Finish editing button below the slides or go to another slide. Starting the presentation in full-screen also finishes editing, and slides can't be edited in full-screen.

A Kanban Board or Table slide is read-only until it is edited, so that a card or a cell can't be changed by accident while presenting, and clicking a card or a row opens nothing. Double-click it to edit it on the slide as in its note, then press the Finish editing button or go to another slide to finish. The bar above the collection has no view type switcher on a slide, and shows the settings only while the slide is edited.

Double-click a Canvas slide to draw on it in place. The canvas editor covers the presentation, with the same tools as in the canvas note, and opens on the drawing at the size and place that the slide shows it. The drawing is saved as you go. Press Esc or the Finish editing button to finish.

Slides of other note types, such as diagrams, open in Quick edit from the Edit this slide button. A read-only presentation can't be edited in place, and neither can a slide whose own note is read-only.

Vertical slides and nesting

Unlike traditional presentation software such as Microsoft PowerPoint, the slides in Trilium can be laid out horizontally or vertically in order to create depth or better organize the slides by topic.

This horizontal/vertical organization affects transitions (especially on the “slide” transition), however it is most noticeable in navigation.

  • Pressing ← and → will navigate through slides horizontally, thus skipping vertical notes under the current slide. This is useful to skip entire chapters/related slides.
  • Pressing ↑ and ↓ will navigate through the vertical slides at the current level.
  • Pressing Space and Shift + Space will go to the next/previous slide in order, regardless of the direction. This is generally the key combination to use when presenting.
  • The Previous slide and Next slide buttons below the slides go in order, as Space and Shift+Space do.
Article Image

All direct children of the collection will be laid out horizontally. If a direct child also has children, those children will be placed as vertical slides.

In the following example, the note structure is as follows:

  • Presentation collection
    • Trilium Notes (demo page)
    • “Introduction” slide
      • “The challenge of personal knowledge management”
      • “Note-taking structures”
    • “Demo & Feature highlights” slide
      • “Really fast installation process”
      • Video slide

Customization

At collection level, it's possible to adjust:

  • The theme of the entire presentation to one of the predefined themes by going to the Collection Properties and looking for the Theme option.
  • It's currently not possible to create custom themes, although it is planned.
  • Note that it is note possible to alter the CSS via Custom app-wide CSS because the slides are rendered isolated (in a shadow DOM).

At slide level:

  • To change the background color of a slide, go to it and use the Slide background button in the toolbar, or set #slide:background on its note to a hex color.
  • More complex backgrounds can be achieved via gradients. There's no UI for it; it has to be set via #slide:background to a CSS gradient definition such as: linear-gradient(to bottom, #283b95, #17b2c3).

Tips and tricks

  • Text notes generally respect the formatting (bold, italic, foreground and background colors) and font size. Code blocks and tables also work.
  • Try using more than just text notes, the presentation uses the same mechanism as shared notes and Note List so it should be able to display Mermaid Diagrams, Canvas and Mind Map in full-screen (without the interactivity).
    • A Canvas takes on the light or dark style of the theme, or of the slide's own background color.

    • A Code note fills the width of the slide, highlighted as in the note. With the code theme following the app's, the slide uses the light or the dark code theme to match the presentation's theme. Long code is zoomed out to fit the slide.

    • For Mermaid Diagrams, some of them have a predefined background which can be changed via the frontmatter. For example, for XY-charts:

      ---
      config:
          themeVariables:
              xyChart:
                  backgroundColor: transparent
      ---
  • A Web View slide shows its page across the whole slide, and the page can be scrolled and its links clicked. The keyboard stays with the presentation, so Space and the arrow keys still change slides after clicking the page; to type into the page, open the web view note itself. Only http:// and https:// addresses are shown. It works the same way as the web view note itself, so outside the desktop application some websites refuse to be shown.

Under the hood

The Presentation view uses Reveal.js to handle the navigation and layout of the slides.