A first attempt to turn the documentation found at gleam.run/documentation into nice printable cheatsheets.
The cheatsheet can be compiled using a local installation of XeLaTeX or through Docker.
Assuming you have a local installation of XeLaTeX go through the following steps:
- Enter into the directory containing the
main.tex
file
cd gleam_cheatsheets/v0.23.0
- Compile the cheatsheet using XeLaTeX:
xelatex main.tex && xelatex main.tex
- Create different sizes of the cheatsheet:
make all-sizes
Assuming you have Docker installed go through the following steps:
- Enter into the directory containing the
main.tex
file
cd gleam_cheatsheets/v0.23.0
- Compile the cheatsheet using Docker and create different sizes of the cheatsheet:
docker build -t gleam_cheatsheet . && docker run --rm -v $(pwd):/data gleam_cheatsheet /bin/bash -c "xelatex main.tex && xelatex main.tex && make all-sizes"
Whenever the cheatsheets have been updated, update the previews as well:
gs -dSAFER -dQUIET -dNOPLATFONTS -dNOPAUSE -dBATCH -dNOTRANSPARENCY -sOutputFile="previews-%d.png" -sDEVICE=png16m -r300 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dUseCIEColor -dUseTrimBox main.pdf && mv previews-* ../preview
Most of the content currently contained in the cheatsheet comes from:
- The documentation found at gleam.run/documentation
The images used in the header of the cheatsheet comes from:
- The gleam website found on github