Skip to content

Demo to show how to reuse a document using different metadata.

License

Notifications You must be signed in to change notification settings

mcanouil/generate-quarto-invoices

Repository files navigation

Generate Quarto Invoices

This is a simple script to generate biweekly invoices using Quarto/Typst.
It first generates YAML files for each invoice, then generates the invoices from one single Quarto document.

Usage

generate-invoices.py \
  --name="Consulting" \
  --task="A very important job" \
  --details="A description of the tasks" \
  --amount="1,234.56" \
  --recipient="Company-Inc" \
  --first="2024-01-15"\
  --last="2024-01-31" \
  --template="template.qmd"

Under the hood, this will generate a YAML file for each invoice, then generate the invoices from one single Quarto document using the quarto render command.

quarto render template.qmd --metadata-file input/202401-001.yml --output output/INVOICE-N202401-001-Company-Inc.pdf

Requirements

About

Demo to show how to reuse a document using different metadata.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project