Customize the presentation with meta-data variables in YAML format. The file decker.yaml is required in every project.
Define meta-data variables as follows:
template:
title-teaser: /images/teaser.png
Meta-data can also be specified in meta-data files specified in the meta-data, and at the top of a markdown file:
---
author: Samantha Monty
title: Configuration Options
template:
title-teaser: /images/teaser.png
---
Define the affiliation of the author:
affiliation: "Julius-Maximilians-Universität Würzburg"
default horizontal alignment for various slide elements:
align-global: center | right | left
author name displayed underneath the date on the title slide:
author: "Samantha Monty"
number of milliseconds between automatically moving to the next slide (disabled when set to 0):
autoslide: 5000 - continues after 5 seconds
stop auto-sliding after user input
autoSlideStoppable: true | false
transition style for full page slide backgrounds:
backgroundTransition: none|fade|slide|convex|concave|zoom
reference a .bib file for citations in the presentation:
bibliography: bibliography.bib
define custom CSS properties for the border of h2 highlight blocks such as .question:
border-decoration-width: 20pxborder-decoration-padding: 10pxborder-decoration-style: solid
move content vertically to the center of a slide:
center: true | false
define the .json file where chalkboard notes will be saved to and loaded from:
chalkboard: "chalkboard-file.json"
specify if charts can be used:
chart: true | false
mark overflowing slides with a red border:
checkOverflow true | false
enable the navigation arrows in the bottom right:
controls true | false
define a .csl (Citation Style Language) file used for citations:
csl: "chicago-author-date.csl
display a date on the title slide. ("today" displays the date on which the HTML file was created):
date: "11.11.2020"
add a date to the HTML document header (does not set a date on the title slide):
date-meta: "11.11.2020"
display a timer in the speaker view with seconds for each slide:
defaultTiming: 3000
flag if the presentation is running in embedded mode (contained within a limited portion of the screen):
embedded: true | false
exclude directories that decker should not consider for watching and compiling:
exclude-directories:
- dirA
- dirB
or
exclude-directories: [dirA, dirB]
allow the audience to annotate slides with questions. See Decker Quizzes.
set font size in the whole presentation:
font-size-base: 30px
generate random, unique identifiers for each slide:
generate-ids: true | false
add the current slide number to the URL hash so that reloading the page or copying the URL will return you to the same slide:
hash: true | false
set the height of a slide deck:
height: 1080
display a help overlay on ? press:
help: true | false
hides the address bar on mobile devices:
hideAddressBar: true | false
time until cursor is hidden (in ms):
hideCursorTime: 3000
hide inactive cursor:
hideInactiveCursor: true | false
indicate the code highlighting package to use:
highlightjs: "atom-one-light"|"atom-one-dark"|"solarized-light"|"solarized-dark"|"xcode"|"zenburn"
add entries to the browser’s history for every slide visited:
history: true | false
use an integrated Jupyter notebook:
jupyter:kernelspec:display_name: Haskelllanguage: haskellname: haskelllanguage_info:codemirror_mode: ihaskellfile_extension: .hsname: haskellnbformat: 4.0nbformat_minor: 2.
allow the use of keyboard shortcuts to navigate the presentation (see Keyboard Shortcuts):
keyboard: true | false
enter keywords to display in the HTML document header meta-data:
keywords: "HCI, VR, eLearning"
change the language of HTML content by setting to the corrosponding ISO Language Code:
lang: "de"
begin anew after the last slide:
loop: true | false
set the border margin (defaults to 0)
margin: 20
set the column spacing:
margin-columns: 10
define custom LaTeX macros (works only in decker.yaml and NOT in a single slide deck):
mathMacros: |
{
R: "{{\\mathrm{{I}\\kern-.15em{R}}}}",
laplace: "{\\Delta}",
sig: "{\\Sigma}"
}
"|" signifies the YAML text block syntax.
bounds for largest possible scale to apply to content:
maxScale: 0.5
display the menu:
menu: true | false
specify additional yaml meta-data files either in decker.yaml or in a Markdown document header:
meta-data: - test.yaml - test2.yaml
enable slide navigation via mouse wheel:
mouseWheel: true | false
Present an overview of all slides. See Overview.
specifiy a background image and optionally an amount to move the image on slide change:
parallaxBackgroundImage: "image/image.png"
parallaxBackgroundHorizontal: 100
parallaxBackgroundVertical: 100
parallaxBackgroundSize: "2100px 900px"
open links in an iframe preview overlay:
previewLinks: true | false
display a progress bar at the bottom of the presentation:
progress: true | false
flip the progress bar and the controls, so that the UI has a left to right layout (defaults to false)
rtl: true | false
flag if speaker notes should be visible to all viewers:
showNotes: true | false
randomize the slide order: shuffle: true | false
display the current slide number
slideNumber:* true | false
define the basic vertical spacing between elements as a number
spacing-vertical-base:* 10
Define additional directories that will be copied to public even if no file is included in/required by the slide-deck
static-resource-dirs:- dirA- dirB
whether to include the stretch-media.css file:
stretch-media:* true | false
a list of CSS styles that are inserted into the HTML header:
style:- 'h2 { backgroundColor: #f00; }'
displays a set string eg. a comprehensive guide underneath the title on the title slide:
subtitle:* "a comprehensive guide"
template:
favicon:
base-css: basefile.css
css:
- file1.css
- file2.css
include-js:
- file1.js
- file2.js
title-page:
teaser-img: include/teaser.png
banner: include/banner.png
affiliation-logo: include/affiliation.png
'')
base-css does not need to be defined to use css
[])
'')'')'')The Decker Experience on a added a title slide at the start of a presentation
Divide the set amount of time by the slide count and present a timer in the speaker view with the average duration to spend on each slide (defaults to ``)
"true"). Must be defined in the corresponding .yaml file.
change the slide transitions (defaults no none)
| Transitions | Video Example |
|---|---|
none: Switch backgrounds instantly |
|
fade: Cross fade |
|
slide: Slide between backgrounds |
|
convex: Slide at a convex angle |
|
concave: Slide at a concave angle |
|
zoom: Scale the incoming slide up so it grows in from the center of the screen |
default). Can be set to slow, fast or default
allow vertical slides (defaults to true)

Number of slides away from the current that are visible
viewDistance: 3
Define CSS for the whiteboard
Define a width for the slide deck
width: 1920
The write-back option enables auto-formatting of markdown source files. This works via pandoc writing back a formatted markdown document to the source file.
write-back:
enable: true | false
line-columns: 80
line-wrap: auto|none|preserve
Decker uses a modified version of the standard template for Reveal.js slide sets. Additional meta-data options can be found here: Reveal.js.