AASJournals / AASTeX60

Version 6 of the LaTeX style files and documentation for authoring AAS Journal (AJ/ApJ) articles.
https://journals.aas.org/aastex-package-for-manuscript-preparation/
LaTeX Project Public License v1.3c
46 stars 26 forks source link

Line numbering produces large gaps between equations #152

Open gregschwarz opened 1 year ago

gregschwarz commented 1 year ago

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.