cooklang to LaTeX conversion scripts
Find a file
2022-05-16 09:46:33 +02:00
.gitignore Added option for passing recipe on stdin, added gitignore. 2022-05-16 09:46:33 +02:00
cook2tex.py Added option for passing recipe on stdin, added gitignore. 2022-05-16 09:46:33 +02:00
cooklangbook.py Added option for passing recipe on stdin, added gitignore. 2022-05-16 09:46:33 +02:00
README.md Added option for passing recipe on stdin, added gitignore. 2022-05-16 09:46:33 +02:00

Cook2tex

Two small python scripts that turn cooklang recipes into LaTeX source files. The LaTeX files use the cuisine package.

cook2tex.py

Takes a recipe path as an argument and returns the cuisine recipe block on stdout. Optionally, if provided with the argument "--", reads the recipes source from stdin.

Example

python3 cook2tex.py /path/to/recipe

cooklangbook.py

Takes multiple recipe paths as arguments and returns a complete latex document on stdout.

Example

python3 cooklangbook.py /path/to/recipes/{rec1,rec2,rec3}