-
Notifications
You must be signed in to change notification settings - Fork 2
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
lineno needs to be loaded after amsmath #5
Comments
LaTeX package lineno v5.0 incorporated patching amsmath code for compatibility. (Such compatiblity was provided by a separate package linenoamsmath (now obsoleted).) This introduced the ristiction of the ordering of loading amsmath and lineno. In perfbook, lineno is required by fvextra and amsmath is required by glossaries which is again required by glossaries-extra. As a workaround, move the load of fvextra after that of glossaries-extra. There is hoping that lineno can loosen this ristriction [1]. Link: [1] latex-lineno/lineno#5 Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
LaTeX package lineno v5.0 incorporated patching of amsmath code for compatibility. (Pre-v5.0 lineno needs a separate package linenoamsmath --- now obsolete --- for such compatibility.) This introduced the ordering requirement that lineno needs to be loaded after amsmath [1]. In perfbook, lineno is required by fvextra and amsmath is required by glossaries which is again required by glossaries-extra. Hence lineno is loaded before amsmath and causes a fatal error with lineno v5.0. As a workaround, explicitly load amsmath before fvextra. Link: [1] latex-lineno/lineno#5 Signed-off-by: Akira Yokosawa <akiyks@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Can be reverted when / if upstream issue is fixed latex-lineno/lineno#5 closes #513
Can be reverted when / if upstream issue is fixed latex-lineno/lineno#5 closes #513
Hi Karl, this is causing more and more issues and questions out there, because other packages load either amsmath or lineno internally and are now producing suprising ordering issues. If you would change to using hooks all this would go away. |
Related: "conflict between lineno and amsmath packages in TeXLive 2022? Some environments (like \gather) are already defined", title of post https://tug.org/pipermail/texhax/2023-January/025962.html. In that thread on texhax I suggest (see https://tug.org/pipermail/texhax/2023-January/025967.html)
|
Fixed in version 5.1, which should appear on CTAN soon.
|
Can be reverted when / if upstream issue is fixed latex-lineno/lineno#5 closes #513
With the new version lineno supports the amsmath environments (thanks for that!) but unfortunately it introduces an order dependency.
It might be better (and in fact much simpler) to make use LaTeX's hook system and make the alterations automatically after amsmath got loaded, via
In this case the changes happen only after the environments got defined in amsmath and not at all if amsmath is not loaded ever.
The text was updated successfully, but these errors were encountered: