Skip to content

Commit 43274b2

Browse files
authored
Merge pull request #3556 from GaijinEntertainment/bbatkin/tutorial-00-pdflatex-fix
tutorial 00: ASCII math in literals, pdflatex has no U+2212 glyph
2 parents 12ab137 + 59dab2f commit 43274b2

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

doc/source/reference/tutorials/dasLLAMA_00_problem_statement.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,11 @@ score.
328328
Look at one pair — say floats 0 and 1. The query has an arrow there, and
329329
the cached key has its own arrow there; their dot product is one bracket
330330
of the score. Both arrows were turned by RoPE: the query sits at position
331-
``p``, so its arrow was turned ``p`` steps of the pair's angle ``θ``; the
331+
``p``, so its arrow was turned ``p`` steps of the pair's angle ``theta``; the
332332
key came from position ``q``, so its arrow was turned ``q`` steps. A dot
333333
product only cares about lengths and the angle between the arrows — and
334334
rotation kept the lengths. The angle between them is now exactly their
335-
distance apart: ``(p q) × θ``. A key right behind the query was turned
335+
distance apart: ``(p - q) * theta``. A key right behind the query was turned
336336
almost as far — small gap between the arrows. A key from long ago lags
337337
far behind — big gap. The absolute positions cancel: "three tokens ago"
338338
means the same gap at position 10 and at position 210.

skills/documentation_rst.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ After creating or modifying any RST files, stdlib documentation, or `daslib/*.da
178178
The build must introduce **no new** Sphinx errors or warnings. The final summary line should say `build succeeded.` with no warning count.
179179

180180
Common issues:
181+
- **Typographic math characters break the CI PDF build**: pdflatex's typewriter font has no glyph for `` (U+2212), and `×`/`θ` are equally risky inside inline literals. `sphinx-build -W` (both builders) passes anyway — only CI's "Compile LaTeX document" step fails, and it has no local mirror (preflight SKIPs it without latexmk). Write ASCII math inside ``literals``: `p * theta`, `(p - q)`. Safe-in-prose (proven by green PDF builds): `π`, ``, em-dash, curly quotes. (Bitten 2026-07-24, tutorial 00.)
181182
- **Duplicate label**: Two RST files define the same `.. _label:` — rename one
182183
- **Unknown target**: `:ref:\`label\`` points to a nonexistent label — check spelling
183184
- **Malformed table**: Grid/simple table column widths don't align — see RST table rules below

0 commit comments

Comments
 (0)