Skip to content

Line numbering produces large gaps between equations #152

@gregschwarz

Description

@gregschwarz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbug; something to be fixed in AASTeXlinenumberspackage collisionwhen aastex6+ and a random other package collide

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions