Template repository for remark slides.
From the GitHub web interface, click Use this template
and follow the instructions.
If you want to define a JavaScript function to reuse over and over:
- Define the function in its own module.
- Source it in a standalone
script
block.
It is usually best if the file is a .png
format.
Use standard markdown syntax with relative paths to link to it: ![](path/to/file.png)
.
The .css
files need to be brought into a style
block:
<style>
Place contents of CSS files here.
</style>
Use a Chrome-based browser:
brave-browser --headless --print-to-pdf slides.html
Caveats:
- Embedded content from Observable will be lost.
- Nice font ligatures in code blocks are also likely lost.
- Visual artifacts may appear on some slides.