Skip to content
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

Line numbering produces large gaps between equations #152

Open
gregschwarz opened this issue Aug 1, 2023 · 0 comments
Open

Line numbering produces large gaps between equations #152

gregschwarz opened this issue Aug 1, 2023 · 0 comments
Labels
bug bug; something to be fixed in AASTeX linenumbers package collision when aastex6+ and a random other package collide

Comments

@gregschwarz
Copy link
Contributor

The lineno package does not play nice with the amsmath package. This is a known problem but it can produce interesting effects in AASTeX v6.3.1. You first might notice that the latex compiler will issue a compatibility warning but you should be able to force through that message. If the resulting pdf has very large gaps between equations when the "linenumbers" style option is used you will want to try this fix.

  1. Do NOT use the "linenumbers" style option. This is because AASTeX calls lineno with the displaymath argument which is the root problem.

  2. Instead, call lineno directly. After the \usepackage{amsmath} call put in this:

\usepackage{lineno}
\linenumbers

This will remove the odd spacings around the equations. You will note that the equations are not numbered but that is not important for AAS Journals peer review.

@augustfly augustfly added bug bug; something to be fixed in AASTeX package collision when aastex6+ and a random other package collide linenumbers labels Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug; something to be fixed in AASTeX linenumbers package collision when aastex6+ and a random other package collide
Projects
None yet
Development

No branches or pull requests

2 participants