Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mcanouil/generate-quarto-invoices
Demo to show how to reuse a document using different metadata.
https://github.com/mcanouil/generate-quarto-invoices
demo python quarto quarto-pub quartopub typst
Last synced: about 7 hours ago
JSON representation
Demo to show how to reuse a document using different metadata.
- Host: GitHub
- URL: https://github.com/mcanouil/generate-quarto-invoices
- Owner: mcanouil
- License: mit
- Created: 2024-01-03T23:02:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-04T00:40:02.000Z (about 1 year ago)
- Last Synced: 2024-11-23T17:47:49.600Z (2 months ago)
- Topics: demo, python, quarto, quarto-pub, quartopub, typst
- Language: Typst
- Homepage:
- Size: 188 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
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.
```bash
quarto render template.qmd --metadata-file input/202401-001.yml --output output/INVOICE-N202401-001-Company-Inc.pdf
```## Requirements
- Python 3.12.1:
- Quarto 1.4.534
- Invoice (Typst) 1.1.1: