diff --git a/templates/report.typ b/templates/report.typ index b1d4175..0eadcea 100644 --- a/templates/report.typ +++ b/templates/report.typ @@ -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,91 +222,85 @@ // Professional title page 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( width: 100%, - inset: 12pt, - stroke: (bottom: 2pt + rgb("#1f2937")), + inset: 20pt, + fill: rgb("#f9fafb"), + stroke: 1pt + rgb("#e5e7eb"), + radius: 8pt, )[ - #align(right)[ - #text(8pt, fill: rgb("#6b7280"))[CONFIDENTIAL BUSINESS DOCUMENT] + #align(center)[ + #text(28pt, weight: "bold", fill: rgb("#1f2937"))[#title] ] ] - #align(center + horizon)[ - #v(3em) - - // Main title - #block( - width: 100%, - inset: 20pt, - fill: rgb("#f9fafb"), - stroke: 1pt + rgb("#e5e7eb"), - radius: 8pt, - )[ - #align(center)[ - #text(28pt, weight: "bold", fill: rgb("#1f2937"))[#title] + #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(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) + #v(2em) ] - // 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. - ] - ] - ) + // 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 + #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 - pagebreak() - page()[ - #align(center)[ - #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. - ] + #pagebreak() + #align(center)[ + #text(20pt, weight: "bold")[Table of Contents] ] + #v(2em) + #outline(title: none) + #v(2em) + + ] // Document content starts on page 3 - pagebreak() doc } \ No newline at end of file