# A presentation is just a markdown file, with some added ftags for formatting into a presentation layout. # This means all presentations will change how they look with changes to the main styles.css. It also means # that they follow the light/dark mode setting. # Each slide is the size of a horizontal A4 piece of paper. This makes it easy to print (and there is a dedicated # print button). # The whole system is based on flexboxes. The only real way to control how items are aligned is via a row and column # directed flexboxes. This isn't the most efficient, but it's fine. And if there are performance issues, the # presentation can always be "printed" to a PDF and consumed that way. # Currently you can have normal paragraphs and heading around a presentation, and those won't be printed out. # But you can have only ONE presentation per page!!! # All ftags that have a closing tag, and &&presentation, need one line above and below them (but you don't # need the first and last line of file to be empty). # &&presentation Required. Adds the control panel and JavaScript script. Must be the very first one! # &&slide Starts a slide. Slides are the main pages that hold content and are used for navigation. # &&/slide Ends (the last started) slide. # &&flexer An empty container with flex: 1. Use it for spacing out stuff. # &¢ered Aligns text to the center. # &&/centered Ends (the last started) centered text. # &&fow Flexbox, with flex-direction row. # &&/fow Ends (the last started) fow. # &&fol Flexbox, with flex-direction column. # &&/fol Ends (the last started) fol. BEGIN { if (substr(FILENAME, "talks") == 0) exit names[ 1] = "slide" ended[ 1] = 1 names[ 2] = "centered" ended[ 2] = 1 names[ 3] = "flexer" ended[ 3] = 0 names[ 4] = "fow" ended[ 4] = 1 names[ 5] = "fol" ended[ 5] = 1 names[ 6] = "font18" ended[ 6] = 1 names[ 7] = "font20" ended[ 7] = 1 names[ 8] = "font27" ended[ 8] = 1 names[ 9] = "font30" ended[ 9] = 1 names[10] = "font35" ended[10] = 1 names[11] = "fright" ended[11] = 1 pres = ORS \ "" ORS \ " " for (i = 1; i <= length(names); i++) { pat[i] = "
&&" names[i] "
" rep[i] = "&&/" names[i] "
" crep[i] = "&&presentation
", pres) gsub("&&/font
", "") for (i = 1; i <= length(names); i++) { if (index($0, names[i]) != 0) substitute(i) } print }