/** * src/lib/katex-macros.ts — KaTeX macro definitions ported from the LaTeX guide. * * Source files in the LaTeX tree: * - guides/shared/ssm-notation.tex (20 SSM-specific macros) * - guides/shared/ssm-guide-preamble.sty:387-413 (16 general math macros) * * Wired into astro.config.mjs via: * rehypeKatex({ strict: 'error', macros: ssmMacros, trust: true }) * * KaTeX-specific adaptations: * - \bm is not part of KaTeX; aliased to \boldsymbol (visually identical * in stix-two / Computer Modern math fonts). * - \DeclareMathOperator and \DeclareMathOperator* are translated to * \operatorname / \operatorname* respectively. * - \psmallmatrix is an environment in amsmath, not a macro. KaTeX * macros operate at command level; substitution happens in the * converter script (latex-to-mdx.mjs in Phase 2.7) — search for * \begin{psmallmatrix} and replace with \begin{pmatrix}. * * Equation numbering is handled by a separate remark plugin (deferred to * a follow-up session per plan Phase 2.1 Task #9). */ declare const ssmMacros: Record; export { ssmMacros };