Refactors report template for enhanced layout

Improves the report template's visual structure by reorganizing the title page elements and removing redundant heading counters.

The title page layout is enhanced for better readability and visual appeal. Heading counters were removed from the body as they were redundant. Adds table of contents outline.
This commit is contained in:
AlexKucera committed 2025-09-03 11:32:07 +02:00
1 parent fca8f8104d
commit 51f16f3c23
1 file changed
+4 -13
+4 -13
View File
@@ -184,7 +184,6 @@
#grid( #grid(
columns: (auto, 1fr), columns: (auto, 1fr),
column-gutter: 12pt, column-gutter: 12pt,
text(24pt, weight: "bold", fill: rgb("#4b5563"))[#counter(heading).display()],
align(horizon)[#it.body] align(horizon)[#it.body]
) )
] ]
@@ -198,7 +197,6 @@
stroke: (bottom: 1pt + rgb("#e5e7eb")), stroke: (bottom: 1pt + rgb("#e5e7eb")),
)[ )[
#set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: 14pt, weight: "semibold", fill: rgb("#374151")) #set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: 14pt, weight: "semibold", fill: rgb("#374151"))
#counter(heading).display()
#h(0.8em) #h(0.8em)
#it.body #it.body
] ]
@@ -209,7 +207,6 @@
above: 1.5em, above: 1.5em,
)[ )[
#set text(size: 12pt, weight: "medium", fill: rgb("#4b5563")) #set text(size: 12pt, weight: "medium", fill: rgb("#4b5563"))
#counter(heading).display()
#h(0.5em) #h(0.5em)
#it.body #it.body
] ]
@@ -225,7 +222,6 @@
// Professional title page // Professional title page
if title != none and title != "" [ if title != none and title != "" [
page()[
// Company header area // Company header area
#block( #block(
width: 100%, width: 100%,
@@ -292,24 +288,19 @@
] ]
] ]
) )
]
// Table of contents page // Table of contents page
pagebreak() #pagebreak()
page()[
#align(center)[ #align(center)[
#text(20pt, weight: "bold")[Table of Contents] #text(20pt, weight: "bold")[Table of Contents]
] ]
#v(2em) #v(2em)
#outline(title: none)
#v(2em)
// Note: Actual TOC would be generated by outline() in real use
#text(10pt, style: "italic", fill: rgb("#6b7280"))[
Table of contents will be automatically generated based on document headings.
]
]
] ]
// Document content starts on page 3 // Document content starts on page 3
pagebreak()
doc doc
} }