Add Quarto product-test example and fix Typst render.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
12
README.md
12
README.md
@@ -16,10 +16,18 @@ One `.qmd` source renders to:
|
||||
|
||||
```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
|
||||
|
||||
```
|
||||
@@ -29,9 +37,11 @@ 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 is separate from `typst-templates` (pure Typst PDF library).
|
||||
- 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.
|
||||
|
||||
Reference in New Issue
Block a user