From 7b981a83587298a214dfb8a4df3b4cd86c0f3411 Mon Sep 17 00:00:00 2001 From: maride Date: Fri, 30 Jan 2026 17:12:12 +0100 Subject: [PATCH] Move changes table into main document --- main.typ | 6 +++++- pages/legal.typ | 12 ++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/main.typ b/main.typ index 16ba15b..27c035c 100644 --- a/main.typ +++ b/main.typ @@ -49,7 +49,11 @@ tlp: rawPlaceholder("amber+strict"), // set to one of "RED", "AMBER+STRICT", "AMBER", "GREEN", "CLEAR", or none. See https://www.first.org/tlp/ draft: rawPlaceholder(true) // set to true for a "DRAFT" mark on the cover ) -#pages.legal.render(author) +#pages.legal.render(author, + ( + (version: placeholder("Draft"), date: placeholder("01.01.1970"), author: author, changes: placeholder("Some")), + ), +) // ----- Table of contents ----- #pages.toc.render() diff --git a/pages/legal.typ b/pages/legal.typ index c5012af..3038be6 100644 --- a/pages/legal.typ +++ b/pages/legal.typ @@ -1,6 +1,6 @@ #import "../aux/placeholder.typ": placeholder -#let render(author) = { +#let render(author, changes) = { // Reset counter counter(page).update(n => n - 1) @@ -19,9 +19,17 @@ align: left, stroke: gray, [*Version*], [*Date*], [*Author*], [*Changes & Comment*], - [#placeholder("Draft")], [#placeholder("01.01.1970")], [#placeholder(author)], [#placeholder("Some")] + ..for (i, value) in changes.enumerate() { + ( + table.cell(value.version), + table.cell(value.date), + table.cell(value.author), + table.cell(value.changes), + ) + } ) + #heading(level: 2, outlined:false, "Classification") This report and all associated materials are strictly confidential and may be communicated and/or distributed by the Client only with written approval of the author. All report data, including findings and recommendations, may be stored encrypted in the author's secure archive post-engagement, in compliance with applicable data protection regulations.