Files
business-report-templates/README.md

2.0 KiB

Business Report Templates

Quarto templates for Kimia Razi Persian (RTL) business reports.

One .qmd source renders to:

  • HTML — simple RTL reading layout (no print chrome on screen)
  • PDF — via WeasyPrint from the HTML, matching typst-templates page 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 page n / N, running header on page 2+, content-sized tables with grey header row.
  • HTML on screen stays a simple reading view; print chrome is display: none until print/PDF.
  • Typst is not used for PDF generation.