ai-pdf-builder 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ai-pdf-builder might be problematic. Click here for more details.

@@ -0,0 +1,154 @@
1
+ % @strykr/pdf-builder - Legal Agreement LaTeX Template
2
+ % Optimized for contracts, advisor agreements, and legal documents
3
+ % Formal, professional styling with numbered sections
4
+
5
+ \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
6
+
7
+ % Essential Packages
8
+ \usepackage{lmodern}
9
+ \usepackage{amssymb,amsmath}
10
+ \usepackage{ifxetex,ifluatex}
11
+ \usepackage{fixltx2e}
12
+ \usepackage[T1]{fontenc}
13
+ \usepackage[utf8]{inputenc}
14
+
15
+ % Geometry and Spacing - Tighter margins for legal docs
16
+ \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
17
+ \usepackage{setspace}
18
+ \singlespacing
19
+
20
+ % Graphics and Colors
21
+ \usepackage{graphicx}
22
+ \usepackage{xcolor}
23
+ \definecolor{primaryColor}{RGB}{31, 41, 55}
24
+ \definecolor{secondaryColor}{RGB}{107, 114, 128}
25
+ \definecolor{accentColor}{RGB}{17, 24, 39}
26
+ \definecolor{signatureColor}{RGB}{59, 130, 246}
27
+
28
+ % Tables
29
+ \usepackage{longtable,booktabs}
30
+ \usepackage{array}
31
+ \usepackage{multirow}
32
+
33
+ % Links and References
34
+ \usepackage{hyperref}
35
+ \hypersetup{
36
+ unicode=true,
37
+ colorlinks=true,
38
+ linkcolor=primaryColor,
39
+ citecolor=primaryColor,
40
+ urlcolor=signatureColor,
41
+ breaklinks=true
42
+ }
43
+ \urlstyle{same}
44
+
45
+ % Headers and Footers
46
+ \usepackage{fancyhdr}
47
+ \pagestyle{fancy}
48
+ \fancyhf{}
49
+ \fancyhead[L]{\small\textcolor{secondaryColor}{$if(title)$$title$$endif$}}
50
+ \fancyhead[R]{\small\textcolor{secondaryColor}{$if(company)$$company$$endif$}}
51
+ \fancyfoot[L]{\footnotesize\textcolor{secondaryColor}{CONFIDENTIAL}}
52
+ \fancyfoot[C]{\small\textcolor{secondaryColor}{Page \thepage}}
53
+ \fancyfoot[R]{\footnotesize\textcolor{secondaryColor}{$if(date)$$date$$endif$}}
54
+ \renewcommand{\headrulewidth}{0.5pt}
55
+ \renewcommand{\footrulewidth}{0.3pt}
56
+
57
+ % Titles and Sections - Legal document styling
58
+ \usepackage{titlesec}
59
+ \titleformat{\section}{\large\bfseries\color{accentColor}}{\thesection.}{0.5em}{}
60
+ \titleformat{\subsection}{\normalsize\bfseries\color{primaryColor}}{\thesubsection}{0.5em}{}
61
+ \titleformat{\subsubsection}{\normalsize\color{secondaryColor}}{(\thesubsubsection)}{0.5em}{}
62
+
63
+ \titlespacing*{\section}{0pt}{1.5em}{0.5em}
64
+ \titlespacing*{\subsection}{0pt}{1em}{0.3em}
65
+ \titlespacing*{\subsubsection}{1em}{0.8em}{0.2em}
66
+
67
+ % Paragraph spacing for legal readability
68
+ \setlength{\parskip}{0.5em}
69
+ \setlength{\parindent}{0pt}
70
+
71
+ % Lists - Legal numbering
72
+ \usepackage{enumitem}
73
+ \setlist{noitemsep, topsep=3pt}
74
+ \setlist[enumerate]{label=(\alph*)}
75
+ \setlist[enumerate,2]{label=(\roman*)}
76
+
77
+ % Pandoc tightlist command
78
+ \providecommand{\tightlist}{%
79
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
80
+
81
+ % Code Blocks (minimal for legal docs)
82
+ \usepackage{listings}
83
+ \lstset{
84
+ basicstyle=\ttfamily\small,
85
+ breaklines=true,
86
+ frame=single,
87
+ backgroundcolor=\color{gray!5}
88
+ }
89
+
90
+ % Signature line command
91
+ \newcommand{\signatureline}[1]{%
92
+ \vspace{2em}%
93
+ \noindent\rule{0.45\textwidth}{0.4pt}\\[0.2em]%
94
+ \noindent\textcolor{secondaryColor}{\small #1}%
95
+ \vspace{1em}%
96
+ }
97
+
98
+ % Date line command
99
+ \newcommand{\dateline}{%
100
+ \noindent Date: \rule{0.3\textwidth}{0.4pt}%
101
+ }
102
+
103
+ % Definition term styling
104
+ \newcommand{\term}[1]{\textbf{"#1"}}
105
+
106
+ % Additional Packages
107
+ $if(header-includes)$
108
+ $header-includes$
109
+ $endif$
110
+
111
+ % Title Information
112
+ $if(title)$
113
+ \title{
114
+ \Large\textbf{$title$}\\
115
+ $if(subtitle)$\large\textit{$subtitle$}$endif$
116
+ }
117
+ $endif$
118
+
119
+ $if(author)$
120
+ \author{$for(author)$$author$$sep$ \and $endfor$}
121
+ $endif$
122
+
123
+ $if(date)$
124
+ \date{$date$}
125
+ $else$
126
+ \date{}
127
+ $endif$
128
+
129
+ % Begin Document
130
+ \begin{document}
131
+
132
+ % Formal Title Header
133
+ \begin{center}
134
+ {\Large\textbf{$if(title)$$title$$endif$}\par}
135
+ $if(subtitle)$
136
+ \vspace{0.3cm}
137
+ {\large $subtitle$\par}
138
+ $endif$
139
+ \end{center}
140
+
141
+ \vspace{0.3cm}
142
+ \noindent\rule{\textwidth}{0.5pt}
143
+ \vspace{0.5cm}
144
+
145
+ % Parties and effective date
146
+ $if(date)$
147
+ \noindent\textbf{Effective Date:} $date$
148
+ \vspace{0.5cm}
149
+ $endif$
150
+
151
+ % Main Content
152
+ $body$
153
+
154
+ \end{document}
@@ -0,0 +1,150 @@
1
+ % @strykr/pdf-builder - Default Professional LaTeX Template
2
+ % Optimized for Pandoc conversion
3
+ % Clean, modern styling for general documents
4
+
5
+ \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
6
+
7
+ % Essential Packages
8
+ \usepackage{lmodern}
9
+ \usepackage{amssymb,amsmath}
10
+ \usepackage{ifxetex,ifluatex}
11
+ \usepackage{fixltx2e}
12
+ \usepackage[T1]{fontenc}
13
+ \usepackage[utf8]{inputenc}
14
+
15
+ % Geometry and Spacing
16
+ \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
17
+ \usepackage{setspace}
18
+ \onehalfspacing
19
+
20
+ % Graphics and Colors
21
+ \usepackage{graphicx}
22
+ \usepackage{xcolor}
23
+ \definecolor{primaryColor}{RGB}{59, 130, 246}
24
+ \definecolor{secondaryColor}{RGB}{107, 114, 128}
25
+ \definecolor{accentColor}{RGB}{17, 24, 39}
26
+
27
+ % Tables
28
+ \usepackage{longtable,booktabs}
29
+ \usepackage{array}
30
+ \usepackage{multirow}
31
+
32
+ % Links and References
33
+ \usepackage{hyperref}
34
+ \hypersetup{
35
+ unicode=true,
36
+ colorlinks=true,
37
+ linkcolor=primaryColor,
38
+ citecolor=primaryColor,
39
+ urlcolor=primaryColor,
40
+ breaklinks=true
41
+ }
42
+ \urlstyle{same}
43
+
44
+ % Headers and Footers
45
+ \usepackage{fancyhdr}
46
+ \pagestyle{fancy}
47
+ \fancyhf{}
48
+ \fancyhead[L]{\small\textcolor{secondaryColor}{$if(title)$$title$$endif$}}
49
+ \fancyhead[R]{\small\textcolor{secondaryColor}{$if(version)$$version$$endif$}}
50
+ \fancyfoot[C]{\small\textcolor{secondaryColor}{\thepage}}
51
+ \renewcommand{\headrulewidth}{0.4pt}
52
+ \renewcommand{\footrulewidth}{0pt}
53
+
54
+ % Titles and Sections
55
+ \usepackage{titlesec}
56
+ \titleformat{\section}{\Large\bfseries\color{accentColor}}{\thesection}{1em}{}
57
+ \titleformat{\subsection}{\large\bfseries\color{secondaryColor}}{\thesubsection}{1em}{}
58
+ \titleformat{\subsubsection}{\normalsize\bfseries\color{secondaryColor}}{\thesubsubsection}{1em}{}
59
+
60
+ % Lists
61
+ \usepackage{enumitem}
62
+ \setlist{noitemsep}
63
+
64
+ % Pandoc tightlist command
65
+ \providecommand{\tightlist}{%
66
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
67
+
68
+ % Code Blocks
69
+ \usepackage{listings}
70
+ \lstset{
71
+ basicstyle=\ttfamily\small,
72
+ breaklines=true,
73
+ frame=single,
74
+ backgroundcolor=\color{gray!10}
75
+ }
76
+
77
+ % Additional Packages
78
+ $if(header-includes)$
79
+ $header-includes$
80
+ $endif$
81
+
82
+ % Title Information
83
+ $if(title)$
84
+ \title{
85
+ \Huge\textbf{$title$}\\
86
+ $if(subtitle)$\Large\textit{$subtitle$}$endif$
87
+ }
88
+ $endif$
89
+
90
+ $if(author)$
91
+ \author{$for(author)$$author$$sep$ \and $endfor$}
92
+ $endif$
93
+
94
+ $if(date)$
95
+ \date{$date$}
96
+ $else$
97
+ \date{}
98
+ $endif$
99
+
100
+ % Begin Document
101
+ \begin{document}
102
+
103
+ % Custom Title Page
104
+ \begin{titlepage}
105
+ \centering
106
+ \vspace*{2cm}
107
+
108
+ {\Huge\textbf{$if(title)$$title$$endif$}\par}
109
+ \vspace{0.5cm}
110
+ {\LARGE\textit{$if(subtitle)$$subtitle$$endif$}\par}
111
+ $if(author)$
112
+ \vspace{0.8cm}
113
+ {\large $author$\par}
114
+ $endif$
115
+ \vspace{2cm}
116
+
117
+ $if(abstract)$
118
+ \begin{quote}
119
+ \large
120
+ $abstract$
121
+ \end{quote}
122
+ $endif$
123
+
124
+ \vfill
125
+
126
+ {\large
127
+ $if(version)$\textbf{$version$}\\$endif$
128
+ $if(date)$$date$\\$endif$
129
+ \vspace{0.5cm}
130
+ $if(website)$\url{$website$}\\$endif$
131
+ $if(twitter)$$twitter$$endif$
132
+ }
133
+
134
+ \vspace{1cm}
135
+ \end{titlepage}
136
+
137
+ % Table of Contents
138
+ $if(toc)$
139
+ {
140
+ \hypersetup{linkcolor=black}
141
+ \setcounter{tocdepth}{$toc-depth$}
142
+ \tableofcontents
143
+ }
144
+ \newpage
145
+ $endif$
146
+
147
+ % Main Content
148
+ $body$
149
+
150
+ \end{document}
@@ -0,0 +1,144 @@
1
+ % @strykr/pdf-builder - Business Memo LaTeX Template
2
+ % Optimized for executive summaries and internal communications
3
+ % Clean, professional styling
4
+
5
+ \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
6
+
7
+ % Essential Packages
8
+ \usepackage{lmodern}
9
+ \usepackage{amssymb,amsmath}
10
+ \usepackage{ifxetex,ifluatex}
11
+ \usepackage{fixltx2e}
12
+ \usepackage[T1]{fontenc}
13
+ \usepackage[utf8]{inputenc}
14
+
15
+ % Geometry and Spacing
16
+ \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
17
+ \usepackage{setspace}
18
+ \singlespacing
19
+
20
+ % Graphics and Colors
21
+ \usepackage{graphicx}
22
+ \usepackage{xcolor}
23
+ \definecolor{primaryColor}{RGB}{59, 130, 246}
24
+ \definecolor{secondaryColor}{RGB}{107, 114, 128}
25
+ \definecolor{accentColor}{RGB}{17, 24, 39}
26
+ \definecolor{highlightColor}{RGB}{239, 246, 255}
27
+
28
+ % Tables
29
+ \usepackage{longtable,booktabs}
30
+ \usepackage{array}
31
+ \usepackage{multirow}
32
+
33
+ % Links and References
34
+ \usepackage{hyperref}
35
+ \hypersetup{
36
+ unicode=true,
37
+ colorlinks=true,
38
+ linkcolor=primaryColor,
39
+ citecolor=primaryColor,
40
+ urlcolor=primaryColor,
41
+ breaklinks=true
42
+ }
43
+ \urlstyle{same}
44
+
45
+ % Headers and Footers
46
+ \usepackage{fancyhdr}
47
+ \pagestyle{fancy}
48
+ \fancyhf{}
49
+ \fancyhead[L]{\small\textcolor{secondaryColor}{$if(title)$$title$$endif$}}
50
+ \fancyhead[R]{\small\textcolor{secondaryColor}{$if(version)$$version$$endif$}}
51
+ \fancyfoot[C]{\small\textcolor{secondaryColor}{\thepage}}
52
+ \fancyfoot[R]{\footnotesize\textcolor{secondaryColor}{CONFIDENTIAL}}
53
+ \renewcommand{\headrulewidth}{0.4pt}
54
+ \renewcommand{\footrulewidth}{0pt}
55
+
56
+ % Titles and Sections
57
+ \usepackage{titlesec}
58
+ \titleformat{\section}{\Large\bfseries\color{accentColor}}{\thesection}{1em}{}[\vspace{-0.3em}\color{primaryColor}\rule{\textwidth}{0.4pt}]
59
+ \titleformat{\subsection}{\large\bfseries\color{secondaryColor}}{\thesubsection}{1em}{}
60
+ \titleformat{\subsubsection}{\normalsize\bfseries\color{secondaryColor}}{\thesubsubsection}{1em}{}
61
+
62
+ \titlespacing*{\section}{0pt}{1.5em}{0.8em}
63
+ \titlespacing*{\subsection}{0pt}{1.2em}{0.5em}
64
+ \titlespacing*{\subsubsection}{0pt}{1em}{0.3em}
65
+
66
+ % Lists
67
+ \usepackage{enumitem}
68
+ \setlist{noitemsep, topsep=3pt}
69
+ \setlist[itemize]{label=\textcolor{primaryColor}{\textbullet}}
70
+
71
+ % Pandoc tightlist command
72
+ \providecommand{\tightlist}{%
73
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
74
+
75
+ % Code Blocks (minimal for memos)
76
+ \usepackage{listings}
77
+ \lstset{
78
+ basicstyle=\ttfamily\small,
79
+ breaklines=true,
80
+ frame=single,
81
+ backgroundcolor=\color{gray!10}
82
+ }
83
+
84
+ % Custom memo header box
85
+ \newcommand{\memoheader}[4]{%
86
+ \noindent\colorbox{highlightColor}{%
87
+ \parbox{\dimexpr\textwidth-2\fboxsep}{%
88
+ \small
89
+ \textbf{TO:} #1\\
90
+ \textbf{FROM:} #2\\
91
+ \textbf{DATE:} #3\\
92
+ \textbf{RE:} #4
93
+ }%
94
+ }%
95
+ \vspace{1em}
96
+ }
97
+
98
+ % Additional Packages
99
+ $if(header-includes)$
100
+ $header-includes$
101
+ $endif$
102
+
103
+ % Title Information
104
+ $if(title)$
105
+ \title{
106
+ \Huge\textbf{$title$}\\
107
+ $if(subtitle)$\Large\textit{$subtitle$}$endif$
108
+ }
109
+ $endif$
110
+
111
+ $if(author)$
112
+ \author{$for(author)$$author$$sep$ \and $endfor$}
113
+ $endif$
114
+
115
+ $if(date)$
116
+ \date{$date$}
117
+ $else$
118
+ \date{}
119
+ $endif$
120
+
121
+ % Begin Document
122
+ \begin{document}
123
+
124
+ % Compact Title Header for Memo
125
+ \begin{center}
126
+ {\Huge\textbf{$if(title)$$title$$endif$}\par}
127
+ \vspace{0.3cm}
128
+ {\LARGE\textit{$if(subtitle)$$subtitle$$endif$}\par}
129
+ $if(author)$
130
+ \vspace{0.5cm}
131
+ {\large $author$\par}
132
+ $endif$
133
+ \vspace{0.3cm}
134
+ $if(version)${\normalsize $version$ \textbullet\ }$endif$$if(date)${\normalsize $date$}$endif$
135
+ \end{center}
136
+
137
+ \vspace{0.5cm}
138
+ \noindent\textcolor{primaryColor}{\rule{\textwidth}{1pt}}
139
+ \vspace{0.8cm}
140
+
141
+ % Main Content
142
+ $body$
143
+
144
+ \end{document}
@@ -0,0 +1,233 @@
1
+ % @strykr/pdf-builder - Premium Term Sheet LaTeX Template
2
+ % Dark + Gold Finance Aesthetic
3
+ % Optimized for investment documents
4
+
5
+ \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
6
+
7
+ % Essential Packages
8
+ \usepackage{lmodern}
9
+ \usepackage{amssymb,amsmath}
10
+ \usepackage{ifxetex,ifluatex}
11
+ \usepackage{fixltx2e}
12
+ \usepackage[T1]{fontenc}
13
+ \usepackage[utf8]{inputenc}
14
+
15
+ % Geometry and Spacing
16
+ \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
17
+ \usepackage{setspace}
18
+ \singlespacing
19
+
20
+ % Graphics and Colors
21
+ \usepackage{graphicx}
22
+ \usepackage[table]{xcolor}
23
+ \usepackage{tikz}
24
+
25
+ % Premium Dark + Gold Color Palette
26
+ \definecolor{darkCharcoal}{RGB}{26, 26, 46}
27
+ \definecolor{deepNavy}{RGB}{22, 33, 62}
28
+ \definecolor{primaryColor}{RGB}{212, 175, 55}
29
+ \definecolor{secondaryColor}{RGB}{218, 165, 32}
30
+ \definecolor{accentColor}{RGB}{255, 215, 0}
31
+ \definecolor{warmWhite}{RGB}{250, 248, 245}
32
+ \definecolor{coolGray}{RGB}{156, 163, 175}
33
+ \definecolor{mediumGray}{RGB}{107, 114, 128}
34
+ \definecolor{darkGray}{RGB}{55, 65, 81}
35
+ \definecolor{tableRowDark}{RGB}{40, 40, 60}
36
+ \definecolor{tableRowLight}{RGB}{50, 50, 75}
37
+
38
+ % Tables
39
+ \usepackage{longtable,booktabs}
40
+ \usepackage{array}
41
+ \usepackage{multirow}
42
+ \usepackage{tabularx}
43
+
44
+ % Links and References
45
+ \usepackage{hyperref}
46
+ \hypersetup{
47
+ unicode=true,
48
+ colorlinks=true,
49
+ linkcolor=primaryColor,
50
+ citecolor=primaryColor,
51
+ urlcolor=primaryColor,
52
+ breaklinks=true
53
+ }
54
+ \urlstyle{same}
55
+
56
+ % Headers and Footers
57
+ \usepackage{fancyhdr}
58
+ \pagestyle{fancy}
59
+ \fancyhf{}
60
+ \fancyhead[L]{\small\textcolor{mediumGray}{$if(company)$$company$$endif$}}
61
+ \fancyhead[R]{\small\textcolor{mediumGray}{$if(doctype)$$doctype$$endif$}}
62
+ \fancyfoot[L]{\footnotesize\textcolor{coolGray}{CONFIDENTIAL}}
63
+ \fancyfoot[C]{\small\textcolor{primaryColor}{\thepage}}
64
+ \fancyfoot[R]{\footnotesize\textcolor{coolGray}{$if(date)$$date$$endif$}}
65
+ \renewcommand{\headrulewidth}{0.5pt}
66
+ \renewcommand{\headrule}{\hbox to\headwidth{\color{primaryColor}\leaders\hrule height \headrulewidth\hfill}}
67
+ \renewcommand{\footrulewidth}{0pt}
68
+
69
+ % Titles and Sections - Gold styling
70
+ \usepackage{titlesec}
71
+
72
+ % Section: Gold with underline
73
+ \titleformat{\section}
74
+ {\Large\bfseries\color{primaryColor}}
75
+ {\thesection}{1em}{}
76
+ [\vspace{-0.5em}\color{primaryColor}\rule{\textwidth}{0.5pt}]
77
+
78
+ % Subsection: Lighter gold
79
+ \titleformat{\subsection}
80
+ {\large\bfseries\color{secondaryColor}}
81
+ {\thesubsection}{1em}{}
82
+
83
+ % Subsubsection
84
+ \titleformat{\subsubsection}
85
+ {\normalsize\bfseries\color{coolGray}}
86
+ {\thesubsubsection}{1em}{}
87
+
88
+ % Lists
89
+ \usepackage{enumitem}
90
+ \setlist{noitemsep, topsep=3pt}
91
+ \setlist[itemize]{label=\textcolor{primaryColor}{\textbullet}}
92
+
93
+ % Pandoc tightlist command
94
+ \providecommand{\tightlist}{%
95
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
96
+
97
+ % Code Blocks
98
+ \usepackage{listings}
99
+ \lstset{
100
+ basicstyle=\ttfamily\small,
101
+ breaklines=true,
102
+ frame=single,
103
+ backgroundcolor=\color{tableRowDark}
104
+ }
105
+
106
+ % Custom commands for term sheet elements
107
+ \newcommand{\goldline}{\textcolor{primaryColor}{\rule{\linewidth}{0.5pt}}}
108
+ \newcommand{\signatureline}[1]{%
109
+ \vspace{1.5em}%
110
+ \noindent\textcolor{primaryColor}{\rule{0.45\textwidth}{0.5pt}}\\[0.3em]%
111
+ \noindent\textcolor{mediumGray}{\small #1}%
112
+ \vspace{0.5em}%
113
+ }
114
+ \newcommand{\fieldline}[1]{%
115
+ \noindent\textcolor{primaryColor}{\rule{0.6\textwidth}{0.4pt}}\\[-0.3em]%
116
+ \noindent\textcolor{coolGray}{\footnotesize #1}%
117
+ \vspace{0.3em}%
118
+ }
119
+
120
+ % Simple highlight box using minipage and rules
121
+ \newenvironment{highlightbox}{%
122
+ \begin{center}
123
+ \textcolor{primaryColor}{\rule{0.9\textwidth}{1pt}}\\[0.5em]
124
+ \begin{minipage}{0.85\textwidth}
125
+ \centering
126
+ }{%
127
+ \end{minipage}\\[0.5em]
128
+ \textcolor{primaryColor}{\rule{0.9\textwidth}{1pt}}
129
+ \end{center}
130
+ }
131
+
132
+ % Additional Packages
133
+ $if(header-includes)$
134
+ $header-includes$
135
+ $endif$
136
+
137
+ % Title Information
138
+ $if(title)$
139
+ \title{
140
+ \Huge\textbf{$title$}\\
141
+ $if(subtitle)$\Large\textit{$subtitle$}$endif$
142
+ }
143
+ $endif$
144
+
145
+ $if(author)$
146
+ \author{$for(author)$$author$$sep$ \and $endfor$}
147
+ $endif$
148
+
149
+ $if(date)$
150
+ \date{$date$}
151
+ $else$
152
+ \date{}
153
+ $endif$
154
+
155
+ % Begin Document
156
+ \begin{document}
157
+
158
+ % Custom Premium Title Page with TikZ background
159
+ \begin{titlepage}
160
+ \newgeometry{margin=1in}
161
+ % Dark background using TikZ
162
+ \begin{tikzpicture}[remember picture, overlay]
163
+ \fill[darkCharcoal] (current page.south west) rectangle (current page.north east);
164
+ \end{tikzpicture}
165
+
166
+ \color{warmWhite}
167
+
168
+ \centering
169
+ \vspace*{1.5cm}
170
+
171
+ % Company Name - Large Gold
172
+ {\fontsize{42}{50}\selectfont\bfseries\textcolor{primaryColor}{$if(company)$$company$$endif$}\par}
173
+
174
+ \vspace{0.8cm}
175
+
176
+ % Document Type
177
+ {\fontsize{20}{24}\selectfont\textcolor{warmWhite}{$if(doctype)$$doctype$$endif$}\par}
178
+
179
+ \vspace{0.5cm}
180
+
181
+ % Gold decorative line
182
+ \textcolor{primaryColor}{\rule{0.6\textwidth}{2pt}}
183
+
184
+ \vspace{2cm}
185
+
186
+ % Date
187
+ {\Large\textcolor{coolGray}{Date: $if(date)$$date$$endif$}\par}
188
+
189
+ \vspace{0.8cm}
190
+
191
+ % Entity info
192
+ {\large\textcolor{warmWhite}{$if(entity)$$entity$$endif$}\par}
193
+
194
+ \vfill
195
+
196
+ % Abstract/Summary box
197
+ $if(abstract)$
198
+ \begin{highlightbox}
199
+ \centering
200
+ \textcolor{warmWhite}{$abstract$}
201
+ \end{highlightbox}
202
+ $endif$
203
+
204
+ \vspace{1cm}
205
+
206
+ % Bottom decorative element
207
+ \textcolor{primaryColor}{\rule{0.3\textwidth}{1pt}}
208
+
209
+ \vspace{0.5cm}
210
+
211
+ {\small\textcolor{coolGray}{CONFIDENTIAL \textbullet\ FOR AUTHORIZED RECIPIENTS ONLY}\par}
212
+
213
+ \vspace{1cm}
214
+
215
+ \end{titlepage}
216
+
217
+ % Reset for content pages
218
+ \color{black}
219
+
220
+ % Table of Contents (optional for term sheets)
221
+ $if(toc)$
222
+ {
223
+ \hypersetup{linkcolor=black}
224
+ \setcounter{tocdepth}{$toc-depth$}
225
+ \tableofcontents
226
+ }
227
+ \newpage
228
+ $endif$
229
+
230
+ % Main Content
231
+ $body$
232
+
233
+ \end{document}