Files
business-report-templates/README.md
2026-07-18 11:41:06 +03:30

48 lines
1.6 KiB
Markdown

# Business Report Templates
Quarto templates for Kimia Razi Persian (RTL) business reports.
One `.qmd` source renders to:
- **HTML** — simple RTL reading layout (no PDF chrome)
- **PDF** — via Typst (`format: typst`), with print-oriented layout
## Requirements
- [Quarto](https://quarto.org/) 1.9+ (bundles Typst)
- Fonts in `assets/fonts/` (`IRNazanin`, `IRZar`, `IRLotus`)
## Quick start
```bash
quarto render examples/travel-report.qmd
quarto render examples/product-test.qmd
```
Outputs land in `_output/` (HTML + PDF).
## 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 RTL theme
templates/typst/ # Typst PDF partials
assets/fonts/ # Persian fonts
assets/logo.png
examples/travel-report.qmd
examples/product-test.qmd
```
## Notes
- HTML does **not** visually match the PDF (no sidebar/header parity; tables may differ).
- This repo rewrites `typst-templates` (pure Typst PDF library) for Quarto HTML + Typst PDF.
- Typst helpers such as `general_info_table` / `pigment_result_block` become ordinary Markdown tables in `.qmd` sources.