Creating Cookbooks
CookCLI can export recipes as LaTeX, which you compile into professional PDF cookbooks. Ingredients, cookware, and timers are color-coded automatically.
For a ready-made solution, see the cookbook-creator script (sample PDF).
Prerequisites
- CookCLI installed (Installation guide)
- LaTeX distribution installed:
- Your recipes organized in folders (folders become chapters):
Exporting a Single Recipe
Building a Full Cookbook
Generate LaTeX for all recipes and combine them into a single document:
Wrap the output in a LaTeX document with a title page and table of contents:
Compile:
Customization
Chapter Organization
Organize recipes into chapters by exporting each directory separately:
Including Images
Place images alongside your recipes with matching names:
Supported formats: PNG, JPG, JPEG.
Recipe Metadata
Add metadata to your .cook files for richer output:
Scaling for Events
Export scaled versions for different occasions:
Different Versions
Other Output Formats
CookCLI also exports to Markdown, YAML, JSON, Schema.org, and Typst. For web-based cookbooks, Markdown or HTML via the report system may be simpler than LaTeX.
Troubleshooting
| Problem | Solution |
|---|---|
| "LaTeX command not found" | Install a TeX distribution for your OS |
| "Package not found" error | Run tlmgr install xcolor geometry hyperref makeidx |
| Missing colors in PDF | Ensure xcolor package is included |
| Index not generated | Run makeindex between compilations |
| Images not showing | Ensure image files match recipe names |
See Also
- CookCLI Recipe Command — output format reference
- Reports — custom template-based exports
- Publishing Your Recipes — share with the community