ai-pdf-builder 0.3.0 → 0.4.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.
- package/dist/chunk-C63SSMWG.mjs +594 -0
- package/dist/cli.js +3 -3
- package/dist/cli.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/templates/agreement.latex +140 -100
- package/templates/memo.latex +75 -91
- package/templates/termsheet.latex +141 -147
- package/templates/whitepaper.latex +235 -0
|
@@ -1,232 +1,226 @@
|
|
|
1
|
-
%
|
|
2
|
-
%
|
|
3
|
-
%
|
|
1
|
+
% ai-pdf-builder - Premium Term Sheet Template
|
|
2
|
+
% Executive finance aesthetic - dark with gold accents
|
|
3
|
+
% Professional investment document styling
|
|
4
4
|
|
|
5
|
-
\documentclass[
|
|
5
|
+
\documentclass[11pt,a4paper]{article}
|
|
6
6
|
|
|
7
7
|
% Essential Packages
|
|
8
8
|
\usepackage{lmodern}
|
|
9
9
|
\usepackage{amssymb,amsmath}
|
|
10
|
-
\usepackage{ifxetex,ifluatex}
|
|
11
|
-
\usepackage{fixltx2e}
|
|
12
10
|
\usepackage[T1]{fontenc}
|
|
13
11
|
\usepackage[utf8]{inputenc}
|
|
14
12
|
|
|
15
|
-
%
|
|
16
|
-
\usepackage
|
|
13
|
+
% Professional fonts
|
|
14
|
+
\usepackage{helvet}
|
|
15
|
+
\renewcommand{\familydefault}{\sfdefault}
|
|
16
|
+
|
|
17
|
+
% Geometry
|
|
18
|
+
\usepackage[margin=1in, top=1.2in]{geometry}
|
|
17
19
|
\usepackage{setspace}
|
|
18
|
-
\
|
|
20
|
+
\setstretch{1.2}
|
|
19
21
|
|
|
20
22
|
% Graphics and Colors
|
|
21
23
|
\usepackage{graphicx}
|
|
22
24
|
\usepackage[table]{xcolor}
|
|
23
25
|
\usepackage{tikz}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
\definecolor{
|
|
28
|
-
\definecolor{
|
|
29
|
-
\definecolor{
|
|
30
|
-
\definecolor{
|
|
31
|
-
\definecolor{
|
|
32
|
-
\definecolor{
|
|
33
|
-
\definecolor{
|
|
34
|
-
\definecolor{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
\
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
\
|
|
43
|
-
|
|
44
|
-
% Links
|
|
26
|
+
\usetikzlibrary{calc}
|
|
27
|
+
|
|
28
|
+
% Premium Finance Color Palette
|
|
29
|
+
\definecolor{darkNavy}{RGB}{15, 23, 42}
|
|
30
|
+
\definecolor{deepBlue}{RGB}{30, 41, 59}
|
|
31
|
+
\definecolor{gold}{RGB}{234, 179, 8}
|
|
32
|
+
\definecolor{lightGold}{RGB}{254, 243, 199}
|
|
33
|
+
\definecolor{warmGold}{RGB}{202, 138, 4}
|
|
34
|
+
\definecolor{slateGray}{RGB}{100, 116, 139}
|
|
35
|
+
\definecolor{lightSlate}{RGB}{226, 232, 240}
|
|
36
|
+
\definecolor{offWhite}{RGB}{248, 250, 252}
|
|
37
|
+
|
|
38
|
+
% Tables - executive style
|
|
39
|
+
\usepackage{longtable,booktabs,array}
|
|
40
|
+
\usepackage{multirow,tabularx}
|
|
41
|
+
\renewcommand{\arraystretch}{1.5}
|
|
42
|
+
|
|
43
|
+
% Alternating row colors for tables
|
|
44
|
+
\rowcolors{2}{offWhite}{white}
|
|
45
|
+
|
|
46
|
+
% Links
|
|
45
47
|
\usepackage{hyperref}
|
|
46
48
|
\hypersetup{
|
|
47
49
|
unicode=true,
|
|
48
50
|
colorlinks=true,
|
|
49
|
-
linkcolor=
|
|
50
|
-
citecolor=
|
|
51
|
-
urlcolor=
|
|
52
|
-
breaklinks=true
|
|
51
|
+
linkcolor=warmGold,
|
|
52
|
+
citecolor=warmGold,
|
|
53
|
+
urlcolor=warmGold,
|
|
54
|
+
breaklinks=true,
|
|
55
|
+
pdfborder={0 0 0}
|
|
53
56
|
}
|
|
54
|
-
\urlstyle{same}
|
|
55
57
|
|
|
56
|
-
% Headers and Footers
|
|
58
|
+
% Headers and Footers - executive style
|
|
57
59
|
\usepackage{fancyhdr}
|
|
58
60
|
\pagestyle{fancy}
|
|
59
61
|
\fancyhf{}
|
|
60
|
-
\fancyhead[L]{\small\
|
|
61
|
-
\fancyhead[R]{\small\
|
|
62
|
-
\fancyfoot[L]{\footnotesize\
|
|
63
|
-
\fancyfoot[C]{\small\
|
|
64
|
-
\fancyfoot[R]{\footnotesize\
|
|
62
|
+
\fancyhead[L]{\small\color{slateGray}\textsc{$if(company)$$company$$endif$}}
|
|
63
|
+
\fancyhead[R]{\small\color{slateGray}\textsc{Term Sheet}}
|
|
64
|
+
\fancyfoot[L]{\footnotesize\color{slateGray}CONFIDENTIAL}
|
|
65
|
+
\fancyfoot[C]{\small\color{gold}\textbf{\thepage}}
|
|
66
|
+
\fancyfoot[R]{\footnotesize\color{slateGray}$if(date)$$date$$endif$}
|
|
65
67
|
\renewcommand{\headrulewidth}{0.5pt}
|
|
66
|
-
\renewcommand{\headrule}{\hbox to\headwidth{\color{
|
|
68
|
+
\renewcommand{\headrule}{\hbox to\headwidth{\color{gold}\leaders\hrule height \headrulewidth\hfill}}
|
|
67
69
|
\renewcommand{\footrulewidth}{0pt}
|
|
68
70
|
|
|
69
|
-
%
|
|
71
|
+
% Section Styling - gold accents
|
|
70
72
|
\usepackage{titlesec}
|
|
71
73
|
|
|
72
|
-
% Section: Gold with underline
|
|
73
74
|
\titleformat{\section}
|
|
74
|
-
{\Large\bfseries\color{
|
|
75
|
-
{
|
|
76
|
-
|
|
75
|
+
{\Large\bfseries\color{darkNavy}}
|
|
76
|
+
{}
|
|
77
|
+
{0pt}
|
|
78
|
+
{\textcolor{gold}{\rule{4pt}{1.2em}}\hspace{0.5em}}
|
|
79
|
+
[\vspace{-0.3em}{\color{lightSlate}\rule{\textwidth}{0.5pt}}]
|
|
80
|
+
\titlespacing*{\section}{0pt}{1.8em}{1em}
|
|
77
81
|
|
|
78
|
-
% Subsection: Lighter gold
|
|
79
82
|
\titleformat{\subsection}
|
|
80
|
-
{\large\bfseries\color{
|
|
81
|
-
{
|
|
83
|
+
{\large\bfseries\color{deepBlue}}
|
|
84
|
+
{}
|
|
85
|
+
{0pt}
|
|
86
|
+
{}
|
|
87
|
+
\titlespacing*{\subsection}{0pt}{1.2em}{0.6em}
|
|
82
88
|
|
|
83
|
-
% Subsubsection
|
|
84
89
|
\titleformat{\subsubsection}
|
|
85
|
-
{\normalsize\bfseries\color{
|
|
86
|
-
{
|
|
90
|
+
{\normalsize\bfseries\color{slateGray}}
|
|
91
|
+
{}
|
|
92
|
+
{0pt}
|
|
93
|
+
{}
|
|
87
94
|
|
|
88
95
|
% Lists
|
|
89
96
|
\usepackage{enumitem}
|
|
90
|
-
\setlist{noitemsep, topsep=
|
|
91
|
-
\setlist[itemize]{label=\textcolor{
|
|
97
|
+
\setlist{noitemsep, topsep=6pt, leftmargin=1.5em}
|
|
98
|
+
\setlist[itemize,1]{label=\textcolor{gold}{\textbullet}}
|
|
99
|
+
\setlist[itemize,2]{label=\textcolor{slateGray}{\textendash}}
|
|
92
100
|
|
|
93
|
-
% Pandoc
|
|
101
|
+
% Pandoc compatibility
|
|
94
102
|
\providecommand{\tightlist}{%
|
|
95
103
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
|
96
104
|
|
|
97
|
-
%
|
|
98
|
-
\
|
|
99
|
-
\
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
% Simple callout boxes
|
|
106
|
+
\newenvironment{keyterms}{%
|
|
107
|
+
\par\vspace{0.5em}%
|
|
108
|
+
\noindent\colorbox{lightGold}{%
|
|
109
|
+
\begin{minipage}{\dimexpr\textwidth-2\fboxsep}%
|
|
110
|
+
}{%
|
|
111
|
+
\end{minipage}}%
|
|
112
|
+
\par\vspace{0.5em}%
|
|
104
113
|
}
|
|
105
114
|
|
|
106
|
-
%
|
|
107
|
-
\
|
|
108
|
-
\
|
|
109
|
-
\
|
|
110
|
-
|
|
111
|
-
\
|
|
112
|
-
\vspace{0.5em}%
|
|
115
|
+
\newenvironment{importantnote}{%
|
|
116
|
+
\par\vspace{0.5em}%
|
|
117
|
+
\noindent\fcolorbox{slateGray}{lightSlate}{%
|
|
118
|
+
\begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule}%
|
|
119
|
+
}{%
|
|
120
|
+
\end{minipage}}%
|
|
121
|
+
\par\vspace{0.5em}%
|
|
113
122
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
\vspace{
|
|
123
|
+
|
|
124
|
+
% Signature line command
|
|
125
|
+
\newcommand{\signatureline}[1]{%
|
|
126
|
+
\vspace{2em}%
|
|
127
|
+
\noindent\textcolor{gold}{\rule{0.45\textwidth}{0.5pt}}\\[0.3em]%
|
|
128
|
+
\noindent\textcolor{slateGray}{\small #1}%
|
|
129
|
+
\vspace{1em}%
|
|
118
130
|
}
|
|
119
131
|
|
|
120
|
-
%
|
|
121
|
-
\
|
|
122
|
-
\
|
|
123
|
-
\
|
|
124
|
-
\begin{minipage}{0.
|
|
125
|
-
|
|
126
|
-
}{
|
|
127
|
-
|
|
128
|
-
\
|
|
129
|
-
\
|
|
132
|
+
% Two-column signature block
|
|
133
|
+
\newcommand{\signatureblock}[4]{%
|
|
134
|
+
\vspace{2em}%
|
|
135
|
+
\noindent
|
|
136
|
+
\begin{minipage}[t]{0.45\textwidth}
|
|
137
|
+
\textcolor{gold}{\rule{\textwidth}{0.5pt}}\\[0.3em]
|
|
138
|
+
\textcolor{slateGray}{\small #1}\\
|
|
139
|
+
\textcolor{darkNavy}{\textbf{#2}}
|
|
140
|
+
\end{minipage}%
|
|
141
|
+
\hfill
|
|
142
|
+
\begin{minipage}[t]{0.45\textwidth}
|
|
143
|
+
\textcolor{gold}{\rule{\textwidth}{0.5pt}}\\[0.3em]
|
|
144
|
+
\textcolor{slateGray}{\small #3}\\
|
|
145
|
+
\textcolor{darkNavy}{\textbf{#4}}
|
|
146
|
+
\end{minipage}%
|
|
147
|
+
\vspace{1.5em}%
|
|
130
148
|
}
|
|
131
149
|
|
|
132
|
-
% Additional
|
|
150
|
+
% Additional includes
|
|
133
151
|
$if(header-includes)$
|
|
134
152
|
$header-includes$
|
|
135
153
|
$endif$
|
|
136
154
|
|
|
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
155
|
\begin{document}
|
|
157
156
|
|
|
158
|
-
%
|
|
157
|
+
% Executive Title Page
|
|
159
158
|
\begin{titlepage}
|
|
160
|
-
\newgeometry{margin=
|
|
161
|
-
|
|
159
|
+
\newgeometry{margin=0pt}
|
|
160
|
+
|
|
161
|
+
% Dark navy background
|
|
162
162
|
\begin{tikzpicture}[remember picture, overlay]
|
|
163
|
-
\fill[
|
|
163
|
+
\fill[darkNavy] (current page.south west) rectangle (current page.north east);
|
|
164
|
+
% Gold accent line at top
|
|
165
|
+
\fill[gold] ([yshift=-2.5cm]current page.north west) rectangle ([yshift=-2.6cm]current page.north east);
|
|
166
|
+
% Subtle corner accent
|
|
167
|
+
\fill[deepBlue] (current page.south west) rectangle ([xshift=6pt, yshift=6cm]current page.south west);
|
|
164
168
|
\end{tikzpicture}
|
|
165
169
|
|
|
166
|
-
\
|
|
170
|
+
\begin{center}
|
|
167
171
|
|
|
168
|
-
\
|
|
169
|
-
\vspace*{1.5cm}
|
|
172
|
+
\vspace*{3cm}
|
|
170
173
|
|
|
171
|
-
% Company
|
|
172
|
-
{\fontsize{
|
|
174
|
+
% Company name - gold
|
|
175
|
+
{\fontsize{48}{56}\selectfont\bfseries\color{gold}$if(company)$$company$$endif$\par}
|
|
173
176
|
|
|
174
|
-
\vspace{
|
|
177
|
+
\vspace{1cm}
|
|
175
178
|
|
|
176
|
-
% Document
|
|
177
|
-
{\fontsize{
|
|
179
|
+
% Document type
|
|
180
|
+
{\fontsize{24}{30}\selectfont\color{offWhite}\textsc{Term Sheet}\par}
|
|
178
181
|
|
|
179
|
-
\vspace{0.
|
|
182
|
+
\vspace{0.6cm}
|
|
180
183
|
|
|
181
|
-
% Gold
|
|
182
|
-
\
|
|
184
|
+
% Gold rule
|
|
185
|
+
{\color{gold}\rule{0.4\textwidth}{2pt}}
|
|
183
186
|
|
|
184
187
|
\vspace{2cm}
|
|
185
188
|
|
|
186
|
-
%
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
% Subtitle/round info
|
|
190
|
+
$if(subtitle)$
|
|
191
|
+
{\fontsize{18}{24}\selectfont\color{lightSlate}$subtitle$\par}
|
|
189
192
|
\vspace{0.8cm}
|
|
193
|
+
$endif$
|
|
190
194
|
|
|
191
|
-
%
|
|
192
|
-
{\
|
|
195
|
+
% Date
|
|
196
|
+
{\Large\color{slateGray}$if(date)$$date$$endif$\par}
|
|
193
197
|
|
|
194
198
|
\vfill
|
|
195
199
|
|
|
196
|
-
%
|
|
200
|
+
% Summary box
|
|
197
201
|
$if(abstract)$
|
|
198
|
-
\begin{
|
|
202
|
+
\begin{minipage}{0.7\textwidth}
|
|
203
|
+
\color{offWhite}
|
|
199
204
|
\centering
|
|
200
|
-
|
|
201
|
-
\end{
|
|
205
|
+
$abstract$
|
|
206
|
+
\end{minipage}
|
|
207
|
+
\vspace{2cm}
|
|
202
208
|
$endif$
|
|
203
209
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
% Bottom decorative element
|
|
207
|
-
\textcolor{primaryColor}{\rule{0.3\textwidth}{1pt}}
|
|
210
|
+
% Confidential notice
|
|
211
|
+
{\color{gold}\rule{0.2\textwidth}{0.5pt}}
|
|
208
212
|
|
|
209
213
|
\vspace{0.5cm}
|
|
210
214
|
|
|
211
|
-
{\small\
|
|
215
|
+
{\small\color{slateGray}\textsc{Confidential} \textbullet\ \textsc{For Discussion Purposes Only}\par}
|
|
212
216
|
|
|
213
|
-
\vspace{
|
|
217
|
+
\vspace{1.5cm}
|
|
218
|
+
|
|
219
|
+
\end{center}
|
|
214
220
|
|
|
221
|
+
\restoregeometry
|
|
215
222
|
\end{titlepage}
|
|
216
223
|
|
|
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
224
|
% Main Content
|
|
231
225
|
$body$
|
|
232
226
|
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
% ai-pdf-builder - Premium Whitepaper Template
|
|
2
|
+
% Modern, clean design for technical documents
|
|
3
|
+
% Inspired by top-tier tech company whitepapers
|
|
4
|
+
|
|
5
|
+
\documentclass[11pt,a4paper]{article}
|
|
6
|
+
|
|
7
|
+
% Essential Packages
|
|
8
|
+
\usepackage{lmodern}
|
|
9
|
+
\usepackage{amssymb,amsmath}
|
|
10
|
+
\usepackage[T1]{fontenc}
|
|
11
|
+
\usepackage[utf8]{inputenc}
|
|
12
|
+
|
|
13
|
+
% Better fonts - Helvetica-like
|
|
14
|
+
\usepackage{helvet}
|
|
15
|
+
\renewcommand{\familydefault}{\sfdefault}
|
|
16
|
+
|
|
17
|
+
% Geometry - generous margins for readability
|
|
18
|
+
\usepackage[margin=1.2in, top=1.5in, bottom=1.2in]{geometry}
|
|
19
|
+
\usepackage{setspace}
|
|
20
|
+
\setstretch{1.25}
|
|
21
|
+
|
|
22
|
+
% Graphics and Colors
|
|
23
|
+
\usepackage{graphicx}
|
|
24
|
+
\usepackage[table]{xcolor}
|
|
25
|
+
\usepackage{tikz}
|
|
26
|
+
\usetikzlibrary{calc,positioning,shapes.geometric}
|
|
27
|
+
|
|
28
|
+
% Premium Color Palette - Modern Tech
|
|
29
|
+
\definecolor{primaryBlue}{RGB}{37, 99, 235}
|
|
30
|
+
\definecolor{darkBlue}{RGB}{30, 58, 138}
|
|
31
|
+
\definecolor{lightBlue}{RGB}{219, 234, 254}
|
|
32
|
+
\definecolor{accentTeal}{RGB}{20, 184, 166}
|
|
33
|
+
\definecolor{darkGray}{RGB}{31, 41, 55}
|
|
34
|
+
\definecolor{mediumGray}{RGB}{107, 114, 128}
|
|
35
|
+
\definecolor{lightGray}{RGB}{243, 244, 246}
|
|
36
|
+
\definecolor{warmWhite}{RGB}{249, 250, 251}
|
|
37
|
+
\definecolor{alertOrange}{RGB}{234, 88, 12}
|
|
38
|
+
|
|
39
|
+
% Tables - modern styling
|
|
40
|
+
\usepackage{longtable,booktabs,array}
|
|
41
|
+
\usepackage{multirow,tabularx}
|
|
42
|
+
\renewcommand{\arraystretch}{1.4}
|
|
43
|
+
|
|
44
|
+
% Custom table style
|
|
45
|
+
\newcommand{\tableheaderstyle}{\rowcolor{darkBlue}\color{white}\bfseries}
|
|
46
|
+
|
|
47
|
+
% Links
|
|
48
|
+
\usepackage{hyperref}
|
|
49
|
+
\hypersetup{
|
|
50
|
+
unicode=true,
|
|
51
|
+
colorlinks=true,
|
|
52
|
+
linkcolor=primaryBlue,
|
|
53
|
+
citecolor=primaryBlue,
|
|
54
|
+
urlcolor=primaryBlue,
|
|
55
|
+
breaklinks=true,
|
|
56
|
+
pdfborder={0 0 0}
|
|
57
|
+
}
|
|
58
|
+
\urlstyle{same}
|
|
59
|
+
|
|
60
|
+
% Headers and Footers
|
|
61
|
+
\usepackage{fancyhdr}
|
|
62
|
+
\pagestyle{fancy}
|
|
63
|
+
\fancyhf{}
|
|
64
|
+
\fancyhead[L]{\small\color{mediumGray}$if(title)$$title$$endif$}
|
|
65
|
+
\fancyhead[R]{\small\color{mediumGray}$if(version)$$version$$endif$}
|
|
66
|
+
\fancyfoot[L]{\small\color{mediumGray}$if(author)$$author$$endif$}
|
|
67
|
+
\fancyfoot[C]{\small\color{primaryBlue}\textbf{\thepage}}
|
|
68
|
+
\fancyfoot[R]{\small\color{mediumGray}$if(date)$$date$$endif$}
|
|
69
|
+
\renewcommand{\headrulewidth}{1pt}
|
|
70
|
+
\renewcommand{\headrule}{\hbox to\headwidth{\color{lightBlue}\leaders\hrule height \headrulewidth\hfill}}
|
|
71
|
+
\renewcommand{\footrulewidth}{0pt}
|
|
72
|
+
|
|
73
|
+
% Section Styling - clean modern look
|
|
74
|
+
\usepackage{titlesec}
|
|
75
|
+
|
|
76
|
+
\titleformat{\section}
|
|
77
|
+
{\Large\bfseries\color{darkGray}}
|
|
78
|
+
{\textcolor{primaryBlue}{\thesection}}{0.8em}{}
|
|
79
|
+
\titlespacing*{\section}{0pt}{2em}{1em}
|
|
80
|
+
|
|
81
|
+
\titleformat{\subsection}
|
|
82
|
+
{\large\bfseries\color{darkGray}}
|
|
83
|
+
{\textcolor{mediumGray}{\thesubsection}}{0.6em}{}
|
|
84
|
+
\titlespacing*{\subsection}{0pt}{1.5em}{0.8em}
|
|
85
|
+
|
|
86
|
+
\titleformat{\subsubsection}
|
|
87
|
+
{\normalsize\bfseries\color{mediumGray}}
|
|
88
|
+
{\thesubsubsection}{0.5em}{}
|
|
89
|
+
|
|
90
|
+
% Lists - modern bullets
|
|
91
|
+
\usepackage{enumitem}
|
|
92
|
+
\setlist{noitemsep, topsep=6pt, leftmargin=1.5em}
|
|
93
|
+
\setlist[itemize,1]{label=\textcolor{primaryBlue}{\textbullet}}
|
|
94
|
+
\setlist[itemize,2]{label=\textcolor{accentTeal}{\textendash}}
|
|
95
|
+
\setlist[enumerate,1]{label=\textcolor{primaryBlue}{\arabic*.}}
|
|
96
|
+
|
|
97
|
+
% Pandoc compatibility
|
|
98
|
+
\providecommand{\tightlist}{%
|
|
99
|
+
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
|
100
|
+
|
|
101
|
+
% Code blocks
|
|
102
|
+
\usepackage{listings}
|
|
103
|
+
\lstset{
|
|
104
|
+
basicstyle=\ttfamily\small,
|
|
105
|
+
breaklines=true,
|
|
106
|
+
frame=single,
|
|
107
|
+
rulecolor=\color{lightGray},
|
|
108
|
+
backgroundcolor=\color{lightGray},
|
|
109
|
+
xleftmargin=1em,
|
|
110
|
+
framexleftmargin=0.5em
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
% Simple callout boxes using fbox
|
|
114
|
+
\newenvironment{keyinsight}{%
|
|
115
|
+
\par\vspace{0.5em}%
|
|
116
|
+
\noindent\colorbox{lightBlue}{%
|
|
117
|
+
\begin{minipage}{\dimexpr\textwidth-2\fboxsep}%
|
|
118
|
+
\textcolor{primaryBlue}{\textbf{Key Insight:}}\\[0.3em]%
|
|
119
|
+
}{%
|
|
120
|
+
\end{minipage}}%
|
|
121
|
+
\par\vspace{0.5em}%
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
\newenvironment{notebox}{%
|
|
125
|
+
\par\vspace{0.5em}%
|
|
126
|
+
\noindent\fcolorbox{alertOrange}{warmWhite}{%
|
|
127
|
+
\begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule}%
|
|
128
|
+
\textcolor{alertOrange}{\textbf{Note:}}\\[0.3em]%
|
|
129
|
+
}{%
|
|
130
|
+
\end{minipage}}%
|
|
131
|
+
\par\vspace{0.5em}%
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
% Quote styling
|
|
135
|
+
\usepackage{csquotes}
|
|
136
|
+
\renewenvironment{quote}{%
|
|
137
|
+
\list{}{\leftmargin=2em\rightmargin=2em}%
|
|
138
|
+
\item\relax\itshape\color{mediumGray}%
|
|
139
|
+
\textcolor{primaryBlue}{\textbf{``}}%
|
|
140
|
+
}{%
|
|
141
|
+
\textcolor{primaryBlue}{\textbf{''}}%
|
|
142
|
+
\endlist
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
% Additional includes
|
|
146
|
+
$if(header-includes)$
|
|
147
|
+
$header-includes$
|
|
148
|
+
$endif$
|
|
149
|
+
|
|
150
|
+
\begin{document}
|
|
151
|
+
|
|
152
|
+
% Premium Title Page
|
|
153
|
+
\begin{titlepage}
|
|
154
|
+
\newgeometry{margin=0pt}
|
|
155
|
+
|
|
156
|
+
% Background with gradient effect
|
|
157
|
+
\begin{tikzpicture}[remember picture, overlay]
|
|
158
|
+
% Main background
|
|
159
|
+
\fill[white] (current page.south west) rectangle (current page.north east);
|
|
160
|
+
% Top accent bar
|
|
161
|
+
\fill[primaryBlue] (current page.north west) rectangle ([yshift=-3cm]current page.north east);
|
|
162
|
+
% Subtle side accent
|
|
163
|
+
\fill[lightBlue] (current page.south west) rectangle ([xshift=8pt]current page.north west);
|
|
164
|
+
\end{tikzpicture}
|
|
165
|
+
|
|
166
|
+
\begin{center}
|
|
167
|
+
|
|
168
|
+
\vspace*{4cm}
|
|
169
|
+
|
|
170
|
+
% Title
|
|
171
|
+
{\fontsize{36}{42}\selectfont\bfseries\color{darkGray}$if(title)$$title$$endif$\par}
|
|
172
|
+
|
|
173
|
+
\vspace{0.6cm}
|
|
174
|
+
|
|
175
|
+
% Subtitle
|
|
176
|
+
$if(subtitle)$
|
|
177
|
+
{\fontsize{18}{24}\selectfont\color{mediumGray}$subtitle$\par}
|
|
178
|
+
$endif$
|
|
179
|
+
|
|
180
|
+
\vspace{0.8cm}
|
|
181
|
+
|
|
182
|
+
% Accent line
|
|
183
|
+
{\color{primaryBlue}\rule{0.3\textwidth}{3pt}}
|
|
184
|
+
|
|
185
|
+
\vspace{2.5cm}
|
|
186
|
+
|
|
187
|
+
% Abstract
|
|
188
|
+
$if(abstract)$
|
|
189
|
+
\begin{minipage}{0.75\textwidth}
|
|
190
|
+
\centering
|
|
191
|
+
\color{mediumGray}
|
|
192
|
+
\large
|
|
193
|
+
$abstract$
|
|
194
|
+
\end{minipage}
|
|
195
|
+
$endif$
|
|
196
|
+
|
|
197
|
+
\vfill
|
|
198
|
+
|
|
199
|
+
% Author and metadata
|
|
200
|
+
\begin{minipage}{0.8\textwidth}
|
|
201
|
+
\centering
|
|
202
|
+
$if(author)$
|
|
203
|
+
{\large\color{darkGray}\textbf{$author$}\par}
|
|
204
|
+
\vspace{0.3cm}
|
|
205
|
+
$endif$
|
|
206
|
+
$if(date)$
|
|
207
|
+
{\color{mediumGray}$date$\par}
|
|
208
|
+
$endif$
|
|
209
|
+
$if(version)$
|
|
210
|
+
\vspace{0.2cm}
|
|
211
|
+
{\small\color{primaryBlue}\textbf{$version$}\par}
|
|
212
|
+
$endif$
|
|
213
|
+
\end{minipage}
|
|
214
|
+
|
|
215
|
+
\vspace{2cm}
|
|
216
|
+
|
|
217
|
+
\end{center}
|
|
218
|
+
|
|
219
|
+
\restoregeometry
|
|
220
|
+
\end{titlepage}
|
|
221
|
+
|
|
222
|
+
% Table of Contents with custom styling
|
|
223
|
+
$if(toc)$
|
|
224
|
+
{
|
|
225
|
+
\hypersetup{linkcolor=darkGray}
|
|
226
|
+
\setcounter{tocdepth}{$toc-depth$}
|
|
227
|
+
\tableofcontents
|
|
228
|
+
\newpage
|
|
229
|
+
}
|
|
230
|
+
$endif$
|
|
231
|
+
|
|
232
|
+
% Main Content
|
|
233
|
+
$body$
|
|
234
|
+
|
|
235
|
+
\end{document}
|