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
+63
-72
+63
-72
@@ -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,91 +222,85 @@
|
|||||||
|
|
||||||
// Professional title page
|
// Professional title page
|
||||||
if title != none and title != "" [
|
if title != none and title != "" [
|
||||||
page()[
|
// Company header area
|
||||||
// Company header area
|
#block(
|
||||||
|
width: 100%,
|
||||||
|
inset: 12pt,
|
||||||
|
stroke: (bottom: 2pt + rgb("#1f2937")),
|
||||||
|
)[
|
||||||
|
#align(right)[
|
||||||
|
#text(8pt, fill: rgb("#6b7280"))[CONFIDENTIAL BUSINESS DOCUMENT]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
#align(center + horizon)[
|
||||||
|
#v(3em)
|
||||||
|
|
||||||
|
// Main title
|
||||||
#block(
|
#block(
|
||||||
width: 100%,
|
width: 100%,
|
||||||
inset: 12pt,
|
inset: 20pt,
|
||||||
stroke: (bottom: 2pt + rgb("#1f2937")),
|
fill: rgb("#f9fafb"),
|
||||||
|
stroke: 1pt + rgb("#e5e7eb"),
|
||||||
|
radius: 8pt,
|
||||||
)[
|
)[
|
||||||
#align(right)[
|
#align(center)[
|
||||||
#text(8pt, fill: rgb("#6b7280"))[CONFIDENTIAL BUSINESS DOCUMENT]
|
#text(28pt, weight: "bold", fill: rgb("#1f2937"))[#title]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
#align(center + horizon)[
|
#v(3em)
|
||||||
#v(3em)
|
|
||||||
|
// Authors/Prepared by
|
||||||
// Main title
|
#if authors != () and authors != none [
|
||||||
#block(
|
#text(14pt, fill: rgb("#4b5563"))[Prepared by:]
|
||||||
width: 100%,
|
#v(0.5em)
|
||||||
inset: 20pt,
|
#for author in authors [
|
||||||
fill: rgb("#f9fafb"),
|
#if author.name != none and author.name != "" [
|
||||||
stroke: 1pt + rgb("#e5e7eb"),
|
#text(18pt, weight: "medium")[#author.name]
|
||||||
radius: 8pt,
|
#v(0.3em)
|
||||||
)[
|
|
||||||
#align(center)[
|
|
||||||
#text(28pt, weight: "bold", fill: rgb("#1f2937"))[#title]
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
#v(2em)
|
||||||
#v(3em)
|
|
||||||
|
|
||||||
// Authors/Prepared by
|
|
||||||
#if authors != () and authors != none [
|
|
||||||
#text(14pt, fill: rgb("#4b5563"))[Prepared by:]
|
|
||||||
#v(0.5em)
|
|
||||||
#for author in authors [
|
|
||||||
#if author.name != none and author.name != "" [
|
|
||||||
#text(18pt, weight: "medium")[#author.name]
|
|
||||||
#v(0.3em)
|
|
||||||
]
|
|
||||||
]
|
|
||||||
#v(2em)
|
|
||||||
]
|
|
||||||
|
|
||||||
// Date
|
|
||||||
#if date != none [
|
|
||||||
#text(12pt, fill: rgb("#6b7280"))[Report Date:]
|
|
||||||
#v(0.3em)
|
|
||||||
#text(16pt, weight: "medium")[#date]
|
|
||||||
]
|
|
||||||
|
|
||||||
#v(4em)
|
|
||||||
]
|
]
|
||||||
|
|
||||||
// Footer with document info
|
// Date
|
||||||
#place(
|
#if date != none [
|
||||||
bottom,
|
#text(12pt, fill: rgb("#6b7280"))[Report Date:]
|
||||||
block(
|
#v(0.3em)
|
||||||
width: 100%,
|
#text(16pt, weight: "medium")[#date]
|
||||||
inset: 12pt,
|
]
|
||||||
stroke: (top: 1pt + rgb("#e5e7eb")),
|
|
||||||
)[
|
#v(4em)
|
||||||
#text(8pt, fill: rgb("#9ca3af"))[
|
|
||||||
This document contains confidential and proprietary information.
|
|
||||||
Distribution is restricted to authorized personnel only.
|
|
||||||
]
|
|
||||||
]
|
|
||||||
)
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
// Footer with document info
|
||||||
|
#place(
|
||||||
|
bottom,
|
||||||
|
block(
|
||||||
|
width: 100%,
|
||||||
|
inset: 12pt,
|
||||||
|
stroke: (top: 1pt + rgb("#e5e7eb")),
|
||||||
|
)[
|
||||||
|
#text(8pt, fill: rgb("#9ca3af"))[
|
||||||
|
This document contains confidential and proprietary information.
|
||||||
|
Distribution is restricted to authorized personnel only.
|
||||||
|
]
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
// 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)
|
|
||||||
|
|
||||||
// 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.
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
|
#v(2em)
|
||||||
|
#outline(title: none)
|
||||||
|
#v(2em)
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
// Document content starts on page 3
|
// Document content starts on page 3
|
||||||
pagebreak()
|
|
||||||
doc
|
doc
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user