Skip to content

Single-column equation environments #456

Closed

Description

@tmke8

Those are

  • equation
    • though maybe that shouldn't be grouped in here, because \\ are ignored in it...
    • ah, but that only concerns the parser, so equation can still be grouped with the others in the emitter
  • gather
  • multline

All of these can have equation numbers.

AST node:

enum AlignmentSchema {
  Center,
  Multline { num_rows: u16 },
}
  
enum Node {
  // ...
  SingleColEqEnv {
    last_eq_num: Option<NonZeroU16>,
    alignment: AlignmentScheme,
  },
}

The parser's handling of equation numbering also has to be amended. multline requires that only the last row gets an equation number. So, perhaps a field like only_last has to be added to the TableState.

Activity

  1. changed the title [-]Supporting more equation environments[/-] [+]Single-column equation environments[/+] on Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions