Math
This site supports LaTeX math via KaTeX and numbered math environment components for academic-style content.
Inline and Display Math
Use single dollar signs for inline math: $E = mc^2$ renders as .
Use double dollar signs for display math:
See the full list of supported functions at KaTeX docs.
Numbered Equations
The <Equation> component renders a centered, numbered equation:
Reference them inline: the cross-entropy loss uses the softmax .
Definitions, Theorems, and Proofs
All Available Environments
All environments are auto-numbered and cross-referenceable via id. Use name for an optional label.
| Component | Color | Use case | Syntax example |
|---|---|---|---|
<Theorem> | Blue-gray | Main results | <Theorem id="thm-main" name="Main Result">...</Theorem> |
<Lemma> | Blue-gray | Supporting results | <Lemma id="lem-bound">...</Lemma> |
<Proposition> | Blue-gray | Intermediate claims | <Proposition id="prop-equiv">...</Proposition> |
<Corollary> | Blue-gray | Direct consequences | <Corollary id="cor-rate">...</Corollary> |
<Definition> | Green | Formal definitions | <Definition id="def-foo" name="Foo">...</Definition> |
<Remark> | Yellow | Commentary and observations | <Remark id="rmk-note">...</Remark> |
<Example> | Purple | Worked examples | <Example id="ex-demo">...</Example> |
<Proof> | Left border | Proof with QED symbol | <Proof>...</Proof> |
<Equation> | — | Centered numbered equation | <Equation id="eq-loss">$$...$$</Equation> |
<Code> | — | Captioned code block | <Code id="code-foo" caption="...">...</Code> |
<Algorithm> | Bordered | Pseudocode with caption | <Algorithm id="alg-foo" caption="...">...</Algorithm> |