-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redefinitions #2343
Redefinitions #2343
Conversation
…hy, to avoid apparent redefinitions of \thebibliography
The actual fix is relatively simple, but awkward to explain & test. I created a rather convoluted test case |
Took a look. You've ran into a limitation of the daemon testing setup: when the directories get checked, the testing harness will look for both The way I've worked around this with the other daemon tests (which mostly share a small number of input
Should align with the current testing setup. Definitely room to document that somewhere... |
Ah, ok, that makes sense; I was just trying to hide the clutter of all the extra style files & bindings. Thanks! |
* Allow redefinitions of locked from .ltxml bindings and from AddToMacro * Rename (nonstd) bibliography counter (used for IDs) to @Lx@bibliography, to avoid apparent redefinitions of \thebibliography * Add (convoluted) test case to test definition locks * Pearrange testlocks test case file locations
This PR fixes a problem with definition locking, particularly when preloading. The idea (I think!) should be that redefinitions of locked definitions from raw tex (or style files) should generally be ignored, but those from a binding should be respected, even if it is indirectly loaded from another style file. This wasn't always happening when bindings were preloaded.
Getting this sorted out revealed some un-intended redefinitions. One was the unfortunately named
bibliography
counter (used for ID's within bibliographies) which is now named@lx@bibliography
. And also the functionAddToMacro
presumably should allow what is effectively a redefinition.