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

@@ -1,5 +1,5 @@
-- Inject typst-templates-style title block + sidebar into HTML for WeasyPrint PDF.
-- Screen CSS hides .print-only; print.css shows them.
-- Title block is shared with screen HTML; .print-only (running header, sidebar) is screen-hidden.
local function stringify(v)
if v == nil then
@@ -162,8 +162,9 @@ function Meta(meta)
end
-- Logo first (left), title text second (right) — matches product_test_template.typ
-- Visible on screen and in PDF (no print-only); Quarto default title is hidden in CSS.
local title_block = string.format([[
<div class="print-title-block print-only">
<div class="print-title-block">
%s
<div class="title-text">
<p class="company-line">%s%s</p>