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:
1 file changed
+4
-13
+4
-13
@@ -184,7 +184,6 @@
|
||||
#grid(
|
||||
columns: (auto, 1fr),
|
||||
column-gutter: 12pt,
|
||||
text(24pt, weight: "bold", fill: rgb("#4b5563"))[#counter(heading).display()],
|
||||
align(horizon)[#it.body]
|
||||
)
|
||||
]
|
||||
@@ -198,7 +197,6 @@
|
||||
stroke: (bottom: 1pt + rgb("#e5e7eb")),
|
||||
)[
|
||||
#set text(font: ("SF Pro Text", "Helvetica Neue", "Arial"), size: 14pt, weight: "semibold", fill: rgb("#374151"))
|
||||
#counter(heading).display()
|
||||
#h(0.8em)
|
||||
#it.body
|
||||
]
|
||||
@@ -209,7 +207,6 @@
|
||||
above: 1.5em,
|
||||
)[
|
||||
#set text(size: 12pt, weight: "medium", fill: rgb("#4b5563"))
|
||||
#counter(heading).display()
|
||||
#h(0.5em)
|
||||
#it.body
|
||||
]
|
||||
@@ -225,7 +222,6 @@
|
||||
|
||||
// Professional title page
|
||||
if title != none and title != "" [
|
||||
page()[
|
||||
// Company header area
|
||||
#block(
|
||||
width: 100%,
|
||||
@@ -292,24 +288,19 @@
|
||||
]
|
||||
]
|
||||
)
|
||||
]
|
||||
|
||||
// Table of contents page
|
||||
pagebreak()
|
||||
page()[
|
||||
#pagebreak()
|
||||
#align(center)[
|
||||
#text(20pt, weight: "bold")[Table of Contents]
|
||||
]
|
||||
#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
|
||||
pagebreak()
|
||||
doc
|
||||
}
|
||||
Reference in new issue
Block a user