Pipeline: Mermaid CLI (mmdc) renders diagrams directly to PDF via Puppeteer, pdfcrop trims whitespace, pandoc + xelatex produces the final 20-page document with vector diagrams, syntax-highlighted code, styled headers/footers, and table of contents. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
897 B
TeX
32 lines
897 B
TeX
\usepackage{booktabs}
|
|
\usepackage{fancyhdr}
|
|
\usepackage{titlesec}
|
|
\usepackage{enumitem}
|
|
\usepackage{tcolorbox}
|
|
\usepackage{graphicx}
|
|
\usepackage{float}
|
|
\usepackage{caption}
|
|
|
|
\pagestyle{fancy}
|
|
\fancyhf{}
|
|
\fancyhead[L]{\small\textcolor{gray}{Pet Love Song Generator — Backend Architecture}}
|
|
\fancyhead[R]{\small\textcolor{gray}{February 2026}}
|
|
\fancyfoot[C]{\thepage}
|
|
\renewcommand{\headrulewidth}{0.4pt}
|
|
|
|
\titleformat{\section}{\Large\bfseries\color{NavyBlue}}{}{0em}{}[\vspace{-0.5em}\rule{\textwidth}{0.4pt}]
|
|
\titleformat{\subsection}{\large\bfseries}{}{0em}{}
|
|
\titleformat{\subsubsection}{\normalsize\bfseries}{}{0em}{}
|
|
|
|
\setlist[itemize]{topsep=4pt,itemsep=2pt}
|
|
\setlist[enumerate]{topsep=4pt,itemsep=2pt}
|
|
|
|
\tcbuselibrary{skins,breakable}
|
|
\newtcolorbox{stackbox}{
|
|
colback=gray!5,
|
|
colframe=gray!40,
|
|
boxrule=0.5pt,
|
|
arc=3pt,
|
|
left=8pt,right=8pt,top=6pt,bottom=6pt,
|
|
fontupper=\small
|
|
}
|