Skip to content

NicklasXYZ/gleam_cheatsheets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gleam Cheatsheets

A first attempt to turn the documentation found at gleam.run/documentation into nice printable cheatsheets.

Preview

Compiling the Cheatsheets

The cheatsheet can be compiled using a local installation of XeLaTeX or through Docker.

Local XeLaTeX Installation

Assuming you have a local installation of XeLaTeX go through the following steps:

  1. Enter into the directory containing the main.tex file
cd gleam_cheatsheets/v0.23.0
  1. Compile the cheatsheet using XeLaTeX:
xelatex main.tex && xelatex main.tex
  1. Create different sizes of the cheatsheet:
make all-sizes

Docker

Assuming you have Docker installed go through the following steps:

  1. Enter into the directory containing the main.tex file
cd gleam_cheatsheets/v0.23.0
  1. 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"

Development

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

Acknowledgements

Most of the content currently contained in the cheatsheet comes from:

The images used in the header of the cheatsheet comes from:

  • The gleam website found on github

About

Turning the gleam documentation into nice printable cheatsheets.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages