monograph.sty
COS Method
monograph.sty
This is the original source text. Reading it does not run or verify the program.
1 \NeedsTeXFormat{LaTeX2e}
2 \ProvidesPackage{monograph}[2026/10/22 K-COS book typography]
3 \RequirePackage[paperwidth=8.25in,paperheight=11in,left=.94in,right=.94in,top=.92in,bottom=.87in,headheight=15pt,headsep=23pt,footskip=27pt]{geometry}
4 \RequirePackage[T1]{fontenc}
5 \RequirePackage[utf8]{inputenc}
6 \RequirePackage{newpxtext}
7 \RequirePackage{amsmath,amsthm}
8 \RequirePackage{newpxmath}
9 \RequirePackage[scaled=.91]{inconsolata}
10 \renewcommand{\sfdefault}{qhv}
11 \DeclareTextFontCommand{\texttt}{\normalfont\ttfamily}
12 \RequirePackage{microtype}
13 \RequirePackage{mathtools}
14 \RequirePackage{booktabs,longtable,array,tabularx}
15 \RequirePackage{enumitem,xcolor,graphicx,float,caption}
16 \RequirePackage{titlesec,fancyhdr,listings,xurl}
17 \RequirePackage[most]{tcolorbox}
18 \RequirePackage{tikz}
19 \RequirePackage{placeins,needspace,etoolbox}
20 \RequirePackage{hyperref,bookmark}
21 \definecolor{ink}{HTML}{352C3B}
22 \definecolor{bodyink}{HTML}{252A2C}
23 \definecolor{accent}{HTML}{70566D}
24 \definecolor{gold}{HTML}{A98D5E}
25 \definecolor{muted}{HTML}{68656B}
26 \definecolor{pale}{HTML}{F7F5F7}
27 \definecolor{rulecolor}{HTML}{DCD7DD}
28 \definecolor{coverink}{HTML}{282331}
29 \colorlet{navy}{ink}
30 \colorlet{teal}{accent}
31 \definecolor{red}{HTML}{95544F}
32 \newcommand{\displayface}{\fontfamily{EBGaramond-LF}\fontseries{m}\fontshape{n}\selectfont}
33 \newcommand{\booklabel}[1]{{\sffamily\fontsize{8}{11}\selectfont\textls[125]{\MakeUppercase{#1}}}}
34 \hypersetup{colorlinks=true,linkcolor=ink,citecolor=accent,urlcolor=accent,
35 pdftitle={The K-COS Method: Structured Gaussian Quadratic Forms, Spectral Compression, and Certified Extreme-Tail Evaluation},
36 pdfauthor={Komorebi P.},pdfsubject={Realization Calculus: Mathematical Monographs},bookmarksopen=true,bookmarksopenlevel=0,bookmarksdepth=2,pdfdisplaydoctitle=true,pdfstartview=FitH}
37 \graphicspath{{figures_final/}{figures_packets/}{figures_visual/}{figures_edition/}}
38 \setlength{\parindent}{0pt}
39 \setlength{\parskip}{6pt plus 1pt minus .5pt}
40 \makeatletter
41 \renewcommand\normalsize{\@setfontsize\normalsize{11.3pt}{14.9pt}\abovedisplayskip 10pt plus 2pt minus 2pt\belowdisplayskip 10pt plus 2pt minus 2pt\abovedisplayshortskip 5pt plus 2pt\belowdisplayshortskip 6pt plus 2pt minus 1pt\let\@listi\@listI}
42 \renewcommand\small{\@setfontsize\small{10.2pt}{13.3pt}\abovedisplayskip 8pt plus 2pt minus 2pt\belowdisplayskip 8pt plus 2pt minus 2pt\abovedisplayshortskip 4pt plus 1pt\belowdisplayshortskip 5pt plus 1pt}
43 \renewcommand\footnotesize{\@setfontsize\footnotesize{9.2pt}{12pt}}
44 \makeatother
45 \AtBeginDocument{\normalsize\color{bodyink}}
46 \setlength{\emergencystretch}{2.8em}
47 \usepackage{ragged2e}
48 \newcolumntype{P}[1]{>{\RaggedRight\arraybackslash}p{#1}}
49 \hyphenpenalty=500
50 \clubpenalty=10000
51 \widowpenalty=10000
52 \displaywidowpenalty=10000
53 \raggedbottom
54 \setcounter{tocdepth}{0}
55 \setcounter{secnumdepth}{2}
56 \setlist{itemsep=3pt,topsep=5pt,parsep=0pt,leftmargin=1.6em}
57 \captionsetup{font={small,color=muted},labelfont={bf,color=ink},labelsep=period,skip=9pt,justification=raggedright,singlelinecheck=false}
58 \setlength{\textfloatsep}{22pt plus 3pt minus 2pt}
59 \setlength{\intextsep}{19pt plus 2pt minus 2pt}
60 \renewcommand{\topfraction}{.90}
61 \renewcommand{\bottomfraction}{.80}
62 \renewcommand{\textfraction}{.08}
63 \renewcommand{\floatpagefraction}{.68}
64 \setcounter{topnumber}{3}
65 \setcounter{totalnumber}{5}
66 \renewcommand{\arraystretch}{1.12}
67 \setlength{\tabcolsep}{5pt}
68 \setlength{\LTpre}{12pt}
69 \setlength{\LTpost}{12pt}
70 \titleformat{\chapter}[display]{\normalfont\color{ink}}{\booklabel{\chaptertitlename\enspace\thechapter}}{16pt}{\displayface\fontsize{38}{41}\selectfont\raggedright}[\vspace{-12pt}{\color{gold}\rule{36pt}{.7pt}}]
71 \titleformat{name=\chapter,numberless}[display]{\normalfont\color{ink}}{\booklabel{The K-COS Method}}{16pt}{\displayface\fontsize{36}{40}\selectfont\raggedright}[\vspace{-12pt}{\color{gold}\rule{36pt}{.7pt}}]
72 \titlespacing*{\chapter}{0pt}{17pt}{22pt}
73 \titleformat{\section}{\displayface\fontsize{20}{23}\selectfont\color{ink}}{\sffamily\fontsize{10}{13}\selectfont\color{accent}\thesection}{.75em}{}
74 \titlespacing*{\section}{0pt}{23pt plus 3pt minus 2pt}{9pt}
75 \titleformat{\subsection}{\normalfont\fontsize{12}{15}\selectfont\bfseries\color{ink}}{\thesubsection}{.65em}{}
76 \titlespacing*{\subsection}{0pt}{17pt plus 2pt minus 1pt}{6pt}
77 \titleformat{\subsubsection}{\normalsize\normalfont\bfseries\color{ink}}{\thesubsubsection}{.65em}{}
78 \pagestyle{fancy}
79 \fancyhf{}
80 \fancyhead[L]{\sffamily\fontsize{7.2}{9}\selectfont\color{muted}\textls[65]{THE K-COS METHOD}}
81 \fancyhead[R]{\sffamily\fontsize{7.2}{9}\selectfont\color{muted}\nouppercase{\leftmark}}
82 \fancyfoot[R]{\fontsize{10}{12}\selectfont\color{muted}\thepage}
83 \renewcommand{\headrulewidth}{0pt}
84 \renewcommand{\footrulewidth}{0pt}
85 \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
86 \fancypagestyle{plain}{\fancyhf{}\fancyfoot[R]{\fontsize{10}{12}\selectfont\color{muted}\thepage}\renewcommand{\headrulewidth}{0pt}}
87 \newtheoremstyle{monotheorem}{11pt}{11pt}{\itshape}{}{\bfseries\color{ink}}{.}{.5em}{}
88 \theoremstyle{monotheorem}
89 \newtheorem{theorem}{Theorem}[chapter]
90 \newtheorem{proposition}[theorem]{Proposition}
91 \newtheorem{corollary}[theorem]{Corollary}
92 \newtheorem{lemma}[theorem]{Lemma}
93 \theoremstyle{definition}
94 \newtheorem{definition}[theorem]{Definition}
95 \newtheorem{algorithm}[theorem]{Algorithm}
96 \newtheorem{example}{Example}[chapter]
97 \theoremstyle{remark}
98 \newtheorem{remark}[theorem]{Remark}
99 \DeclareMathOperator{\E}{\mathbb E}
100 \DeclareMathOperator{\Var}{Var}
101 \newcommand{\R}{\mathbb R}
102 \newcommand{\C}{\mathbb C}
103 \newcommand{\Pp}{\mathbb P}
104 \newcommand{\eps}{\varepsilon}
105 \newcommand{\ii}{\mathrm{i}}
106 \newcommand{\phit}{\phi_{\theta}}
107 \newcommand{\decl}[1]{\nolinkurl{#1}}
108 \newtcolorbox{atlasnote}{enhanced,breakable,colback=white,colframe=rulecolor,boxrule=0pt,borderline west={1pt}{0pt}{gold},arc=0pt,left=10pt,right=0pt,top=3pt,bottom=3pt,before skip=9pt,after skip=5pt}
109 \newtcolorbox{scopebox}{enhanced,breakable,colback=pale,colframe=rulecolor,boxrule=0pt,borderline west={1pt}{0pt}{gold},arc=0pt,left=12pt,right=11pt,top=9pt,bottom=9pt,before skip=13pt,after skip=15pt}
110 \lstset{basicstyle=\ttfamily\fontsize{10.2}{13.2}\selectfont,columns=fullflexible,keepspaces=true,breaklines=true,breakatwhitespace=false,showstringspaces=false,frame=none,backgroundcolor=\color{pale},xleftmargin=9pt,xrightmargin=9pt,framesep=9pt,aboveskip=15pt,belowskip=15pt,commentstyle=\color{muted},keywordstyle=\color{accent}\bfseries}
111 \makeatletter
112 \renewcommand*\l@part[2]{\ifnum\c@tocdepth>-2\relax\addpenalty{-\@highpenalty}\addvspace{22pt}\Needspace{5\baselineskip}\begingroup\parindent\z@\rightskip\@pnumwidth\parfillskip-\@pnumwidth{\sffamily\fontsize{10}{13}\selectfont\color{accent}#1\hfill#2\par}\nobreak\vspace{6pt}\endgroup\fi}
113 \renewcommand*\l@chapter[2]{\ifnum\c@tocdepth>\m@ne\addpenalty{-\@highpenalty}\vskip 6pt\setlength\@tempdima{2.2em}\begingroup\parindent\z@\rightskip\@pnumwidth\parfillskip-\@pnumwidth\leavevmode\normalfont\fontsize{11.3}{15}\selectfont\advance\leftskip\@tempdima\hskip-\leftskip#1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss\color{muted}#2}\par\endgroup\fi}
114 \makeatother
115 \newcommand{\partchapter}[2]{\noindent\hyperref[#1]{{\color{muted}\ref*{#1}}\hspace{1em}#2}\hfill{\color{muted}\pageref{#1}}\par\vspace{4pt}}
116 \newcommand{\partoverview}{\begin{minipage}{\linewidth}\small\color{bodyink}
117 \ifcase\value{part}\or
118 \partchapter{ch:gaussian}{Gaussian quadratic forms}
119 \or
120 \partchapter{ch:streaming}{Exact streamed representations}
121 \partchapter{ch:phases}{Polyphase propagation and scheduling}
122 \partchapter{ch:range}{Range cores and low-rank interfaces}
123 \partchapter{ch:spectrum}{Spectral uncertainty and exact completion}
124 \or
125 \partchapter{ch:packets}{Exponential tilting and spectral packets}
126 \partchapter{ch:inversion}{COS inversion and the analytic error budget}
127 \partchapter{ch:adaptive}{Adaptive evaluation and numerical interfaces}
128 \or
129 \partchapter{ch:intervals}{Directed probability enclosures}
130 \partchapter{ch:accuracy}{Accuracy-driven certification}
131 \partchapter{ch:evidence}{Numerical evidence and applications}
132 \partchapter{ch:synthesis}{Composition, scope, and contribution}
133 \fi\end{minipage}}
134 \newcommand{\monopart}[3]{\clearpage\refstepcounter{part}\label{#1}\addcontentsline{toc}{part}{\thepart\space #2}\markboth{#2}{}\thispagestyle{plain}\vspace*{.5in}{\color{accent}\booklabel{Part \thepart}\par}\vspace{27pt}{\displayface\fontsize{43}{47}\selectfont\color{ink}\raggedright#2\par}\vspace{23pt}{\color{gold}\rule{40pt}{.8pt}}\par\vspace{19pt}\begin{minipage}{.91\linewidth}\fontsize{12.4}{17}\selectfont #3\end{minipage}\vfill{\color{rulecolor}\rule{\linewidth}{.4pt}}\par\vspace{15pt}\partoverview\vspace*{.3in}\clearpage}
135 \newcommand{\monocover}{\begin{titlepage}\thispagestyle{empty}
136 \begin{tikzpicture}[remember picture,overlay]
137 \fill[coverink] (current page.south west) rectangle (current page.north east);
138 \node[anchor=north west,text=rulecolor,inner sep=0pt] at ([xshift=.94in,yshift=-.93in]current page.north west) {\booklabel{Realization Calculus / Mathematical Monographs}};
139 \draw[gold,line width=.8pt] ([xshift=.94in,yshift=-1.46in]current page.north west)--++(.55in,0);
140 \node[anchor=north west,align=left,text=white,inner sep=0pt] at ([xshift=.88in,yshift=-1.80in]current page.north west) {\displayface\fontsize{67}{70}\selectfont\begin{tabular}{@{}l@{}}The K-COS\\Method\end{tabular}};
141 \node[anchor=north west,align=left,text=white,inner sep=0pt,text width=6.0in] at ([xshift=.94in,yshift=-4.20in]current page.north west) {\displayface\fontsize{23}{29}\selectfont Structured Gaussian Quadratic Forms,\\Spectral Compression, and\\Certified Extreme-Tail Evaluation};
142 \draw[rulecolor!35!coverink,line width=.4pt] ([xshift=.94in,yshift=1.57in]current page.south west)--([xshift=-.94in,yshift=1.57in]current page.south east);
143 \node[anchor=south west,text=white,inner sep=0pt] at ([xshift=.94in,yshift=.99in]current page.south west) {\displayface\fontsize{17}{21}\selectfont Komorebi P.};
144 \end{tikzpicture}\null\end{titlepage}\setcounter{page}{2}}
145 \newcommand{\monotitle}{\clearpage\thispagestyle{empty}\vspace*{.2in}{\color{accent}\booklabel{Realization Calculus}\par}\vspace{.62in}{\displayface\fontsize{52}{55}\selectfont\color{ink}The K-COS\\Method\par}\vspace{.38in}{\displayface\fontsize{23}{28}\selectfont\color{ink}Structured Gaussian Quadratic Forms,\\Spectral Compression, and\\Certified Extreme-Tail Evaluation\par}\vspace{.32in}{\color{gold}\rule{38pt}{.8pt}}\vfill{\displayface\fontsize{18}{22}\selectfont Komorebi P.\par}\vspace{.22in}{\small\color{muted}A mathematical monograph in four parts.\par}\vspace*{.35in}\clearpage\setcounter{page}{1}}
146 \renewcommand{\bibname}{References}
147
148 \newcommand{\chapterlead}[1]{\begingroup\fontsize{11.6}{15.7}\selectfont\color{ink}#1\par\endgroup\vspace{3pt}}
149 \newcommand{\atlasheading}[3]{\noindent{\booklabel{Study #1 / #2}\par}\vspace{10pt}{\displayface\fontsize{27}{30}\selectfont\color{ink}\raggedright #3\par}\vspace{8pt}}
150 \newcommand{\studyresult}[1]{\begin{atlasnote}\small #1\end{atlasnote}}
151 \AtBeginEnvironment{theorem}{\Needspace{5\baselineskip}}
152 \AtBeginEnvironment{proposition}{\Needspace{5\baselineskip}}
153 \AtBeginEnvironment{corollary}{\Needspace{4\baselineskip}}
154 \AtBeginEnvironment{lemma}{\Needspace{4\baselineskip}}
155 \AtBeginEnvironment{proof}{\Needspace{3\baselineskip}}
156 \renewcommand{\bibname}{References}
Other PDFs for this work
Original file and source record
This copy matches the recorded source file. Its publication here does not change the work’s review status.
SHA-256: 78beecc5c1896fa7ec7010c910be5f75e9999f67eff1108af36b0498e1921dd4