olsak / OpTeX

OpTeX - LuaTeX format with extended Plain TeX macros
http://petr.olsak.net/optex/
33 stars 13 forks source link

Allow multiple callbacks with the same description #181

Closed vlasakm closed 1 month ago

vlasakm commented 1 month ago

This cautious check for multiple entries was added in last commit, and it turned out to be problematic with our \mathsbon callback, which can be activated multiple times in nested \loads (see #180).

While it seems better to me, to be proactive about the checks, LuaLaTeX also seems to allow duplicate entries, and results in same behavior when removal is involved (the first registered is also the first to be removed). So, let's just remove the check.

vlasakm commented 1 month ago

Closing in favor of https://github.com/olsak/OpTeX/commit/86bbcfd3e7f6aaab3a5029668b92df852ff2224a.