monograph_style.tex
Quantum and Circuits
monograph_style.tex
This is the original TeX manuscript source. Use the paper’s PDF for typeset equations.
1 % Shared presentation for the Quantum and Circuits monograph.
2 % The text block and mathematical font system are intentionally retained.
3 \usepackage{setspace,caption,etoolbox}
4 \usepackage[titles]{tocloft}
5 \definecolor{CoverNavy}{HTML}{142D3B}
6 \definecolor{Ink}{HTML}{142D3B}
7 \definecolor{BodyInk}{HTML}{22282C}
8 \definecolor{Teal}{HTML}{286B6D}
9 \definecolor{Muted}{HTML}{55616A}
10 \definecolor{Pale}{HTML}{F1F5F4}
11 \definecolor{Gold}{HTML}{A97D4E}
12 \definecolor{CoverMist}{HTML}{D7E5E5}
13 \colorlet{ink}{BodyInk}\colorlet{teal}{Teal}\colorlet{accent}{Teal}
14 \colorlet{muted}{Muted}\colorlet{pale}{Pale}\colorlet{light}{Pale}
15 \colorlet{deepblue}{Ink}\colorlet{restrictedblue}{Ink}\colorlet{gold}{Gold}
16 \colorlet{proofgreen}{Pale}\colorlet{recordblue}{Pale}\colorlet{provedgreen}{Pale}\colorlet{computedblue}{Pale}
17 \color{BodyInk}\setstretch{1.04}
18 % Reserve room for the running head while leaving the body origin unchanged.
19 \setlength{\headheight}{21pt}\addtolength{\topmargin}{-5pt}
20 \setlength{\parindent}{1.05em}
21 \setlength{\parskip}{2.5pt plus .5pt minus .3pt}
22 \setlength{\abovedisplayskip}{9pt plus 2pt minus 2pt}
23 \setlength{\belowdisplayskip}{9pt plus 2pt minus 2pt}
24 \setlength{\abovedisplayshortskip}{5pt plus 2pt minus 1pt}
25 \setlength{\belowdisplayshortskip}{6pt plus 2pt minus 1pt}
26 \clubpenalty=10000\widowpenalty=10000\displaywidowpenalty=10000\brokenpenalty=10000
27 \frenchspacing
28 % Full-width source tables start at the text-block edge, not a paragraph indent.
29 \BeforeBeginEnvironment{tabularx}{\noindent}
30 % Display math resumes horizontal mode before endproof, so the break must
31 % be prevented when the display is built, rather than at the later QED.
32 \AtBeginEnvironment{proof}{\postdisplaypenalty=10000\relax}
33
34 % A few short concluding treatments benefit from a slightly tighter rhythm.
35 % These scopes use chapter identifiers, never physical page numbers.
36 \newcommand{\VolumeChapterComposition}{%
37 \setstretch{1.04}%
38 \setlength{\parskip}{2.5pt plus .5pt minus .3pt}%
39 \setlength{\abovedisplayskip}{9pt plus 2pt minus 2pt}%
40 \setlength{\belowdisplayskip}{9pt plus 2pt minus 2pt}%
41 \edef\VolumeChapterKey{\thechapter}%
42 \ifdefstring{\VolumeChapterKey}{20}{%
43 \setstretch{1.0}\setlength{\parskip}{1.4pt plus .4pt minus .2pt}%
44 \setlength{\abovedisplayskip}{7pt plus 1pt minus 1pt}%
45 \setlength{\belowdisplayskip}{7pt plus 1pt minus 1pt}%
46 }{}%
47 \ifdefstring{\VolumeChapterKey}{E}{%
48 \setstretch{1.0}\setlength{\parskip}{1.5pt plus .4pt minus .2pt}%
49 \setlength{\jot}{0pt}%
50 \setlength{\abovedisplayskip}{6pt plus 1pt minus 1pt}%
51 \setlength{\belowdisplayskip}{6pt plus 1pt minus 1pt}%
52 \setlength{\LTpre}{5pt}\setlength{\LTpost}{5pt}%
53 }{}%
54 }
55 \AtBeginEnvironment{longtable}{%
56 \edef\VolumeTableChapter{\thechapter}%
57 \ifdefstring{\VolumeTableChapter}{B}{\small\setstretch{1.0}}{}%
58 }
59
60 \newcommand{\VolumeLabel}[1]{{\sffamily\fontsize{8.5}{11}\selectfont\addfontfeatures{LetterSpace=14}\MakeUppercase{#1}}}
61 \newcommand{\VolumeGoldRule}{\noindent\textcolor{Gold}{\rule{42pt}{.8pt}}\par}
62 \newcommand{\VolumeRunningPart}{Front matter}
63 \fancyhf{}
64 \fancyhead[L]{\sffamily\fontsize{8}{10}\selectfont\color{Muted}Quantum and Circuits}
65 \fancyhead[R]{\sffamily\fontsize{8}{10}\selectfont\color{Teal}\MakeUppercase{\VolumeRunningPart}}
66 \fancyfoot[R]{\normalfont\small\color{Muted}\thepage}
67 \renewcommand{\headrulewidth}{.25pt}
68 \renewcommand{\headrule}{\hbox to\headwidth{\color{Muted!25}\leaders\hrule height \headrulewidth\hfill}}
69 \fancypagestyle{plain}{\fancyhf{}\fancyfoot[R]{\normalfont\small\color{Muted}\thepage}\renewcommand{\headrulewidth}{0pt}}
70
71 \titleformat{\chapter}[display]{\normalfont\color{Ink}\raggedright\hyphenpenalty=10000}{\color{Teal}\VolumeLabel{\chaptertitlename\enspace\thechapter}}{11pt}{\fontsize{25}{31}\selectfont\bfseries}
72 \titlespacing*{\chapter}{0pt}{5pt}{22pt}
73 \titleformat{\section}{\normalfont\bfseries\fontsize{14}{18}\selectfont\color{Ink}\raggedright}{\textcolor{Teal}{\thesection}}{.65em}{}
74 \titleformat{\subsection}{\normalfont\bfseries\fontsize{11.8}{15}\selectfont\color{Ink}\raggedright}{\thesubsection}{.65em}{}
75 \titleformat{\subsubsection}{\normalfont\itshape\fontsize{11.3}{14}\selectfont\color{Ink}\raggedright}{}{0pt}{}
76 \titlespacing*{\section}{0pt}{18pt plus 3pt minus 2pt}{8pt}
77 \titlespacing*{\subsection}{0pt}{13pt plus 2pt minus 1pt}{6pt}
78 \titlespacing*{\subsubsection}{0pt}{11pt}{4pt}
79
80 \captionsetup{format=hang,justification=raggedright,singlelinecheck=false,font={small,sf,stretch=1.04},labelfont={bf,sf,color=BodyInk},textfont={color=Muted},labelsep=period,skip=8pt}
81 \hypersetup{linkcolor=Teal,citecolor=Teal,urlcolor=Teal,breaklinks=true,linktoc=page}
82 \tcbset{enhanced,breakable,sharp corners,frame hidden,boxrule=0pt,borderline west={.8pt}{0pt}{Teal},left=11pt,right=10pt,top=9pt,bottom=8pt,before skip=11pt,after skip=11pt,fonttitle=\sffamily\bfseries\small,coltitle=Teal,colbacktitle=Pale,attach title to upper={\par\smallskip},title filled=false}
83
84 % An uncluttered table of contents with restrained part headings.
85 \renewcommand{\cftpartfont}{\normalfont\bfseries\color{Teal}}
86 \renewcommand{\cftpartpagefont}{\normalfont\color{Teal}}
87 \renewcommand{\cftchapfont}{\normalfont}
88 \renewcommand{\cftchappagefont}{\normalfont}
89 \renewcommand{\cftchapleader}{\hfill}
90 \setlength{\cftbeforepartskip}{17pt}
91 \setlength{\cftbeforechapskip}{5pt}
92 \setlength{\cftchapindent}{12pt}
93 \setlength{\cftchapnumwidth}{25pt}
94 \setlength{\cftpartnumwidth}{32pt}
95 \cftsetpnumwidth{2em}\cftsetrmarg{3em}
96
97 % Stable chapter anchors support the navigational lists on the part openings.
98 \makeatletter
99 \apptocmd{\ttl@mkchap@i}{\VolumeChapterComposition\ifttl@label\if@mainmatter\label{vol-ch-\thechapter}\fi\fi}{}{}
100 \makeatother
101 \newcommand{\VolumePartEntry}[2]{%
102 \noindent\begin{tabularx}{\linewidth}{@{}Xr@{}}%
103 #2 & \textcolor{Teal}{\pageref{vol-ch-#1}}\\%
104 \end{tabularx}\par\vspace{5pt}%
105 }
106 \newcommand{\VolumePart}[3]{%
107 \clearpage\refstepcounter{part}%
108 \addcontentsline{toc}{part}{\protect\numberline{\thepart}#1}%
109 \gdef\VolumeRunningPart{Part \thepart}%
110 \thispagestyle{plain}\begingroup\setlength{\parindent}{0pt}%
111 \vspace*{12pt}%
112 {\color{Teal}\VolumeLabel{Part \thepart}\par}%
113 \vspace{16pt}%
114 {\fontsize{31}{38}\selectfont\color{Ink}\raggedright #1\par}%
115 \vspace{14pt}\VolumeGoldRule\vspace{18pt}%
116 {\fontsize{11.5}{16}\selectfont\color{Muted}#2\par}%
117 \vspace{24pt}%
118 {\color{Teal}\VolumeLabel{In this part}\par}%
119 \vspace{13pt}%
120 {\fontsize{10.8}{15}\selectfont #3\par}%
121 \endgroup\clearpage%
122 }
123
124 % The first visual-guide section shares its chapter opening; later guide
125 % sections keep their intentional page breaks. Generated source stays intact.
126 \newcommand{\VolumeVisualInput}[1]{%
127 \begingroup\let\VolumeSavedClearpage\clearpage%
128 \def\clearpage{\let\clearpage\VolumeSavedClearpage}%
129 \input{#1}\endgroup%
130 }
131
132 \newcommand{\VolumeCover}{%
133 \begin{titlepage}\thispagestyle{empty}%
134 \pagecolor{CoverNavy}\color{white}%
135 \setlength{\parindent}{0pt}\setlength{\parskip}{0pt}%
136 \vspace*{3pt}%
137 {\color{CoverMist}\VolumeLabel{Realization Calculus}\par}%
138 \vspace{22pt}\VolumeGoldRule%
139 \vspace{30pt}%
140 {\fontsize{52}{59}\selectfont\raggedright Quantum\\and Circuits\par}%
141 \vspace{25pt}%
142 {\fontsize{22}{29}\selectfont\raggedright Arithmetic, Symmetry,\\and the Cost of Realization\par}%
143 \vspace{33pt}%
144 {\color{CoverMist}\sffamily\fontsize{8}{11}\selectfont\addfontfeatures{LetterSpace=12}OPERATORS\enspace /\enspace GATES\enspace /\enspace OBSTRUCTIONS\par}%
145 \vfill%
146 {\color{white!14!CoverNavy}\rule{\linewidth}{.4pt}\par}%
147 \vspace{16pt}%
148 {\fontsize{12}{16}\selectfont Komorebi P.\par}%
149 \vspace{7pt}%
150 \end{titlepage}\nopagecolor\color{BodyInk}%
151 }
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: 5355fde8db47c2c736cd6e52cbb12f32645b4c0ed1d66b3e6981ebfbd01f0c1c