89fa657df87213c540b6f903c38673e3c230d3f8
Co-authored-by: Cursor <cursoragent@cursor.com>
Business Report Templates
Quarto templates for Kimia Razi Persian (RTL) business reports.
One .qmd source renders to:
- HTML — RTL reading layout with the same title block as PDF (company, logo, report title)
- PDF — via WeasyPrint from the HTML, matching
typst-templatespage chrome (sidebar, header, title block, tables)
Requirements
- Quarto 1.7+
- WeasyPrint (for PDF)
- Fonts in
assets/fonts/(IRNazanin,IRZar, …)
Install WeasyPrint once in this repo:
uv venv .venv-pdf
uv pip install --python .venv-pdf/bin/python weasyprint
Quick start
quarto render examples/travel-report.qmd
quarto render examples/product-test.qmd
Outputs land in _output/ (HTML + PDF). PDF is produced by scripts/html-to-pdf.py in project.post-render.
Report types
| Type | Example | Notes |
|---|---|---|
| Travel / mission | examples/travel-report.qmd |
Set purpose (and usually destinations, report-date) so the PDF title block shows travel meta (مقصد، هدف مأموریت، تیم، تاریخ). |
| Product / raw-material test | examples/product-test.qmd |
Omit purpose. Put general info, samples, formula, and results in the body as Markdown tables (ported from Typst helpers in typst-templates). destinations is optional sidebar text. |
Project layout
_quarto.yml
styles/report.css # HTML screen theme
styles/print.css # PDF / print (typst-templates match)
filters/print-chrome.lua # title block + sidebar injection
scripts/html-to-pdf.py # WeasyPrint post-render
assets/fonts/
assets/logo.png
examples/travel-report.qmd
examples/product-test.qmd
Notes
- PDF layout targets
typst-templates(product_test_template.typ/travel-report-template.typ): A4, RTL, rotated left sidebar with pagen / N, running header on page 2+, content-sized tables with grey header row. - HTML on screen shows the shared title block (logo + company | subtitle + report title); running header and sidebar stay
display: noneuntil print/PDF. - Typst is not used for PDF generation.
Languages
CSS
57.4%
Lua
33.5%
Python
9.1%