Equation annotation gallery
A reference fixture, not a lesson. It lives in the content collection but is absent from the sidebar, so it gets the full site chrome and the Markdown pipeline (heading anchors, table of contents) without appearing in the course navigation. Every equation component is exercised below, so a regression shows up here first.
1. The reference annotation
Section titled “1. The reference annotation”The house style this project is calibrated against: labels outside the formula, each connected to one term, each coloured by what that term is. Reproduced here as the API’s acceptance test.
- current policy: pi subscript theta
- tokens in the sequence: capital T in the denominator
- probability of token t: x subscript t given x subscript less than t
2. Progressive reveal
Section titled “2. Progressive reveal”The same machinery with a stepper. Stepping is discrete, so it doubles as the reduced-motion form of progressive disclosure rather than an animation that has to be switched off.
- the action agent i takes: a superscript i subscript t
- agent i's own policy: pi subscript i
- only what agent i can see: o superscript i subscript t
3. Braces and coloured terms, done in LaTeX
Section titled “3. Braces and coloured terms, done in LaTeX”KaTeX draws better braces than a hand-positioned SVG, so bracing stays in LaTeX
via \ubrace{tone}{term}{label}, and \tone{tone}{term} colours a term in
place. The annotation engine handles only what LaTeX cannot: labels outside the
formula with drawn connectors.
- what user u actually gets
4. Progressive formalization
Section titled “4. Progressive formalization”In words. What the agent does follows from what it sees.
The same sentence in symbols. Agent i, at time t.
One real change: the policy returns a distribution, and the action is sampled from it rather than read off it.
5. Underline shape
Section titled “5. Underline shape”The underline shape rules the term’s full width as well as pointing at it,
which removes the ambiguity about how much of a wide expression a label refers
to.
- what the team earned: r subscript t
- what the talking cost them: lambda times c subscript t
6. Edge cases
Section titled “6. Edge cases”An equation with no annotations renders as a plain figure, with no label layer built at all.
Two labels wide enough to collide, which forces the lane assignment to stack them rather than overlap them.
- one reward, whole team
- what everyone did