Omikhleia / resilient.sile

Advanced book classes and packages for the SILE typesetting system
MIT License
21 stars 4 forks source link

fix: avoid extra ToC rerun warnings when the ToC hasn't changed #26

Closed Omikhleia closed 1 year ago

Omikhleia commented 1 year ago

Stripping positions from ToC entries avoids a mere text change that would not affect the ToC (same title, same page, only some inner character position changed) to be seen as a difference.

Implemented as a resilient "hack", but see also SILE https://github.com/sile-typesetter/sile/issues/1732 for the more general context.

(The "problem" occurs when some ToC entries contain commands, e.g. an emphasis etc.)