% ===================================================================== % preamble.tex — PDF-side setup for the "From Calling to Eventing" 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}