- theme.scss and figures draw with the extension's --calc-… tokens; light/dark pair plus the high-contrast button; a11y highlight style for html - figure labels split so none leaves its viewBox in any language - _quarto-fr.yml: French cross-reference prefixes - notes extension synced to 2.8.18 - conv/: Parts IV, V and VI logged, pasted terminal output redacted Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
50 lines
2.3 KiB
TeX
50 lines
2.3 KiB
TeX
% =====================================================================
|
||
% preamble.tex — PDF-side setup for the "Process Control" notes
|
||
% Engine: LuaLaTeX (set in _quarto.yml). Quarto loads fontspec and
|
||
% unicode-math for us; everything below layers on top of that.
|
||
% =====================================================================
|
||
|
||
\usepackage{newunicodechar}
|
||
\usepackage{microtype}
|
||
|
||
% ---------------------------------------------------------------------
|
||
% Link colours. hyperref is given colour *names*, not hex strings: a
|
||
% bare "204E58" in linkcolor: reaches xcolor as an undefined name and
|
||
% the build stops at the first coloured link in the table of contents.
|
||
% The two names below are what _quarto.yml sets linkcolor/urlcolor to,
|
||
% and they are theme.scss's teal.
|
||
% ---------------------------------------------------------------------
|
||
\definecolor{notes-link}{HTML}{204E58}
|
||
\definecolor{notes-url}{HTML}{20666F}
|
||
|
||
% ---------------------------------------------------------------------
|
||
% Unicode → LaTeX, for TEXT mode
|
||
%
|
||
% The chapters keep real Unicode arrows, because that is what makes the
|
||
% .qmd readable and greppable and it is what the HTML build wants.
|
||
% Text-mode LaTeX cannot render them from Latin Modern, so every symbol
|
||
% used in prose is mapped here.
|
||
%
|
||
% This does NOT cover fenced code blocks: those are verbatim and go
|
||
% straight to the mono font, which is why monofont must be DejaVu Sans
|
||
% Mono (box-drawing characters and arrows).
|
||
% ---------------------------------------------------------------------
|
||
|
||
\newunicodechar{→}{\ensuremath{\rightarrow}}
|
||
\newunicodechar{←}{\ensuremath{\leftarrow}}
|
||
\newunicodechar{↔}{\ensuremath{\leftrightarrow}}
|
||
\newunicodechar{⇒}{\ensuremath{\Rightarrow}}
|
||
\newunicodechar{↓}{\ensuremath{\downarrow}}
|
||
\newunicodechar{↑}{\ensuremath{\uparrow}}
|
||
\newunicodechar{≠}{\ensuremath{\neq}}
|
||
\newunicodechar{≈}{\ensuremath{\approx}}
|
||
\newunicodechar{·}{\textperiodcentered}
|
||
\newunicodechar{—}{---}
|
||
\newunicodechar{–}{--}
|
||
|
||
% ---------------------------------------------------------------------
|
||
% Long mailbox and topic names (consoleIn.outbox, rot13/inbox, …) must be
|
||
% allowed to break, or \texttt in a narrow column overflows.
|
||
% ---------------------------------------------------------------------
|
||
\usepackage[htt]{hyphenat}
|