Add travel-expense letter template with RTL amount list.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
12
README.md
12
README.md
@@ -27,22 +27,24 @@ Always render from this project root so `_quarto.yml` applies (RTL CSS, filters,
|
||||
```bash
|
||||
quarto render examples/travel-report.qmd
|
||||
quarto render examples/product-test.qmd
|
||||
quarto render examples/travel-expense.qmd
|
||||
```
|
||||
|
||||
Outputs land in `_output/` (HTML + PDF). PDF is produced by `scripts/html-to-pdf.py` in `project.post-render`.
|
||||
|
||||
## Templates
|
||||
|
||||
Two named metadata templates (Typst-style explicit choice). Pick one via `metadata-files` in the `.qmd` frontmatter — that sets `report-type` and controls whether the travel meta block is injected. Document type is **not** inferred from `purpose`.
|
||||
Three named metadata templates (Typst-style explicit choice). Pick one via `metadata-files` in the `.qmd` frontmatter — that sets `report-type` and controls whether the travel meta block is injected. Document type is **not** inferred from `purpose`.
|
||||
|
||||
| Template | File | `report-type` | Example |
|
||||
| --- | --- | --- | --- |
|
||||
| Travel / mission | `templates/travel.yml` | `travel` | `examples/travel-report.qmd` |
|
||||
| Product / raw-material test | `templates/product-test.yml` | `product-test` | `examples/product-test.qmd` |
|
||||
| Travel / mission expense | `templates/travel-expense.yml` | `travel-expense` | `examples/travel-expense.qmd` |
|
||||
|
||||
### Start a new report
|
||||
|
||||
1. Copy the matching example `.qmd` (keep its `metadata-files` line pointing at `templates/travel.yml` or `templates/product-test.yml`).
|
||||
1. Copy the matching example `.qmd` (keep its `metadata-files` line pointing at `templates/travel.yml`, `templates/product-test.yml`, or `templates/travel-expense.yml`).
|
||||
2. Fill frontmatter and body.
|
||||
3. Render with `quarto render` from this repo root.
|
||||
|
||||
@@ -58,6 +60,10 @@ Content for the PDF «اطلاعات کلی» block (only when using the travel
|
||||
|
||||
Put general info, samples, formula, and results in the body as Markdown tables. `destinations` is optional sidebar text. No `purpose` field is needed.
|
||||
|
||||
### Travel-expense body
|
||||
|
||||
Write a short formal letter in the body (addressee, greeting, mission meta, aligned expense list, notes, signature). `destinations` is sidebar text. No travel «اطلاعات کلی» block is injected.
|
||||
|
||||
## Project layout
|
||||
|
||||
```
|
||||
@@ -70,8 +76,10 @@ assets/fonts/
|
||||
assets/logo.png
|
||||
templates/travel.yml
|
||||
templates/product-test.yml
|
||||
templates/travel-expense.yml
|
||||
examples/travel-report.qmd
|
||||
examples/product-test.qmd
|
||||
examples/travel-expense.qmd
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
Reference in New Issue
Block a user