This document is intended for paper distribution of the cheat sheets. The Markdown documents use commented pre-processor instructions to remove unprintable parts. Then the documents are converted to LaTeX sources, which can be compiled as PDF documents.
- GPP (General Pre-Processor);
- Pandoc;
- PDFLatex (from at least
texlive-latex-extra
); and - Python 3.
Note that it is worth to create a virtual environment for the project:
python3 -m venv .venv
which you can activate with:
source .venv/bin/activate
Install Python dependencies with Pip:
pip3 install -r requirements.txt
Or, without using a virtual environment:
pip3 install --user -r requirements.txt
A docker image containing all dependencies (minus LaTeX) is available:
docker build -t kokkos_cheat_sheet .
Call the convert.sh
script which pre-processes the input Markdown file and converts it to standalone LaTeX sources:
./convert.sh <file.md>
# or
docker run --rm -v $PWD:/work docker_cheat_sheet ./convert.sh <file.md>
Note that an additional --user $UID:$GID
can be required to produce a file with your ownership on some systems.
Build the document with:
pdflatex <file.tex>
Note that calling convert.sh
with -b
automatically builds the generated file, but this option cannot be used when the script is executed with Docker.