Show shared title block on HTML and align PDF table chrome.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-20 14:31:11 +03:30
parent e3980c5777
commit 89fa657df8
4 changed files with 81 additions and 27 deletions

View File

@@ -4,7 +4,7 @@ Quarto templates for Kimia Razi Persian (RTL) business reports.
One `.qmd` source renders to:
- **HTML** — simple RTL reading layout (no print chrome on screen)
- **HTML** — RTL reading layout with the same title block as PDF (company, logo, report title)
- **PDF** — via WeasyPrint from the HTML, matching `typst-templates` page chrome (sidebar, header, title block, tables)
## Requirements
@@ -53,5 +53,5 @@ 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.
- HTML on screen shows the shared title block (logo + company | subtitle + report title); running header and sidebar stay `display: none` until print/PDF.
- Typst is not used for PDF generation.