Stateful builder for numbered equations, citations, bibliographies, and page-aware scientific cross-references.
Summary
Functions
Adds the numbered bibliography section.
Registers a bibliography entry and returns its stable citation number.
Adds an automatically numbered equation and named destination.
Adds a page-aware reference such as Equation 3, page 8.
Returns the resulting Layout IR.
Types
@type t() :: %PaperForge.Scientific{ citation_order: [binary()], citations: map(), equation_count: non_neg_integer(), flow: PaperForge.Flow.t() }
Functions
Adds the numbered bibliography section.
Registers a bibliography entry and returns its stable citation number.
@spec equation(t(), PaperForge.Math.ast(), keyword()) :: t()
Adds an automatically numbered equation and named destination.
@spec equation_reference(t(), pos_integer(), keyword()) :: t()
Adds a page-aware reference such as Equation 3, page 8.
@spec new(PaperForge.Flow.t()) :: t()
@spec to_flow(t()) :: PaperForge.Flow.t()
Returns the resulting Layout IR.