Commit be98d12
Fix nested theorem numbering by stepping counter at frame start
Move frame-counter.step() to the beginning of each frame body so that
child counters (e.g. corollary inside theorem) inherit the correct
parent number. Remove the +1 adjustment in display-number since the
counter is already at the right value when here() is evaluated.
Update theorion-display-number to use the metadata location (after
the step) for accurate counter reads. Add regression test.
Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com>1 parent 2beb48e commit be98d12
3 files changed
Lines changed: 47 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
262 | 276 | | |
263 | 277 | | |
264 | 278 | | |
| |||
304 | 318 | | |
305 | 319 | | |
306 | 320 | | |
307 | | - | |
| 321 | + | |
| 322 | + | |
308 | 323 | | |
309 | 324 | | |
310 | 325 | | |
311 | 326 | | |
312 | 327 | | |
313 | | - | |
314 | 328 | | |
315 | 329 | | |
316 | 330 | | |
| |||
337 | 351 | | |
338 | 352 | | |
339 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
340 | 359 | | |
341 | 360 | | |
342 | 361 | | |
| |||
362 | 381 | | |
363 | 382 | | |
364 | 383 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | 384 | | |
370 | 385 | | |
371 | 386 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments