Basic Syntax
Use a code fence with themath kind:
```math:name
name: Unique identifier for the block
Multiple Expressions
Separate expressions with blank lines:- First expression:
expr-0 - Second expression:
expr-1 - Third expression:
expr-2
LaTeX Syntax
Handhold uses KaTeX for rendering, which supports most standard LaTeX math commands.Common Operators
Greek Letters
Symbols
Delimiters
Matrices
Calculus
Text in Math
Regions
Target individual expressions using their auto-generated IDs:{{focus: region}} to highlight specific expressions (others dim).
Triggers
Math blocks support:{{show: math-name}}- Display the math block{{focus: region}}- Highlight specific expressions{{pulse: region}}- Briefly emphasize expressions
Real Examples
Quadratic Formula
Distance Formula
Matrix Multiplication
Calculus Example
Complete Lesson Example
Best Practices
Complexity
- Keep expressions readable (not too dense)
- Break complex derivations into multiple expressions
- Use whitespace in LaTeX source for clarity
Naming
Do: Use descriptive region namesLaTeX Tips
- Use
\text{}for words in equations - Use
\,for spacing:\int_{a}^{b} f(x) \, dx - Use
\leftand\rightfor auto-sized delimiters:\left( \frac{a}{b} \right) - Escape braces:
\{and\}
Expression Count
- Limit to 5-8 expressions per block
- Split long derivations across multiple steps
- Use
{{focus: region}}to reveal expressions sequentially
KaTeX Support
Handhold uses KaTeX, which supports most LaTeX math features. For the complete reference, see: Note: KaTeX does not support:- Advanced LaTeX packages (e.g.,
tikz) - Custom macros (use built-in commands only)
- Text-mode commands outside
\text{}