add Pandoc to create PDF cheat sheet

This commit is contained in:
Oliver Ladner 2024-03-05 09:32:10 +01:00
commit 73eea67048
6 changed files with 327 additions and 25 deletions

7
mkcheatsheet.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Renders MARKDOWN.md to PDF with Pandoc
# Packages required:
# - pandoc
# - basictex (brew install --cask basictex)
pandoc --standalone --from=markdown+yaml_metadata_block --template=tmpl.tex \
--metadata-file=vars.yml --pdf-engine=xelatex -o CHEATSHEET.pdf CHEATSHEET.md