//! Mathematical formula extracted from a document.
use ;
use BoundingBox;
/// A mathematical formula detected and recognized in a document.
///
/// Populated by the layout-guided formula pipeline: regions classified as
/// `LayoutClass::Formula` are routed to the formula OCR task, which returns the
/// LaTeX source for the region. The field is always present on
/// [`ExtractedDocument`](super::extraction::ExtractedDocument) but only populated
/// when the `layout-detection` feature is active and the document contains
/// formula regions.