Skip to main content
QUICK REVIEW

[Paper Review] Growing the Digital Repository of Mathematical Formulae with Generic LaTeX Sources

Howard S. Cohl, Moritz Schubotz|arXiv (Cornell University)|May 6, 2015
Mathematics, Computing, and Information ProcessingComputer Science11 references4 citations
TL;DR

This paper presents a method to semantically enrich generic LaTeX sources of mathematical formulae—specifically from the KLS and KLSadd books—by automatically inferring context-free semantic metadata such as symbols, substitutions, and constraints. The approach enables the creation of standardized, machine-readable formula homepages with high-quality content MathML, achieving 98.6% symbol list completeness and enabling future integration with computer algebra systems.

ABSTRACT

One initial goal for the DRMF is to seed our digital compendium with fundamental orthogonal polynomial formulae. We had used the data from the NIST Digital Library of Mathematical Functions (DLMF) as initial seed for our DRMF project. The DLMF input LaTeX source already contains some semantic information encoded using a highly customized set of semantic LaTeX macros. Those macros could be converted to content MathML using LaTeXML. During that conversion the semantics were translated to an implicit DLMF content dictionary. This year, we have developed a semantic enrichment process whose goal is to infer semantic information from generic LaTeX sources. The generated context-free semantic information is used to build DRMF formula home pages for each individual formula. We demonstrate this process using selected chapters from the book "Hypergeometric Orthogonal Polynomials and their $q$-Analogues" (2010) by Koekoek, Lesky and Swarttouw (KLS) as well as an actively maintained addendum to this book by Koornwinder (KLSadd). The generic input KLS and KLSadd LaTeX sources describe the printed representation of the formulae, but does not contain explicit semantic information. See http://drmf.wmflabs.org.

Motivation & Objective

  • To develop a scalable pipeline for transforming generic LaTeX sources—lacking explicit semantic markup—into rich, machine-processable formula homepages for mathematical formulae.
  • To enable the creation of a digital repository of mathematical formulae (DRMF) that supports semantic search, hyperlinking, and integration with computer algebra systems.
  • To overcome the longstanding challenge of generating reliable content MathML from non-semantic LaTeX by introducing automated semantic enrichment techniques.
  • To establish evaluation metrics and gold standards for assessing semantic enrichment quality, particularly for formula metadata like substitutions and constraints.
  • To extend the DRMF by integrating diverse sources, including print books, OCR-processed images, and Wolfram Language code, through a unified macro replacement and metadata extraction pipeline.

Proposed method

  • Parse generic LaTeX sources from the KLS and KLSadd books, which contain only presentation-level markup without explicit semantic macros.
  • Apply rule-based and machine learning techniques to detect and infer semantic information such as symbols, substitutions, constraints, and formula names from the LaTeX text.
  • Automatically insert DLMF and DRMF-specific semantic macros into the LaTeX source to encode mathematical meaning, enabling downstream content MathML generation.
  • Use a custom macro replacement system to transform plain LaTeX into semantically enriched LaTeX with embedded metadata, ensuring consistency and correctness.
  • Generate formula homepages with structured metadata, including symbol lists, proofs, and references, using a standardized template and hyperlinking framework.
  • Leverage existing tools like LATEXML and sTeX to support macro definition and content MathML conversion, ensuring compatibility with modern mathematical web standards.

Experimental results

Research questions

  • RQ1How can semantic information such as symbols, substitutions, and constraints be automatically inferred from generic LaTeX sources that lack explicit semantic markup?
  • RQ2What is the effectiveness of rule-based and machine learning approaches in detecting and enriching mathematical formula metadata in non-semantic LaTeX?
  • RQ3To what extent can automatically generated content MathML from enriched LaTeX sources match the quality and consistency of manually curated content MathML?
  • RQ4How can a scalable and maintainable pipeline be designed to integrate diverse sources—print books, OCR outputs, and computational code—into a unified digital repository of mathematical formulae?
  • RQ5What evaluation metrics can be developed to assess the accuracy and completeness of semantic enrichment in mathematical formulae, particularly for substitutions and constraints?

Key findings

  • The semantic enrichment pipeline successfully generated 1,219 formula home pages from the KLS and KLSadd datasets, with 98.6% of formula home pages containing non-empty symbol lists.
  • A total of 208 substitutions originally presented as standalone formulae were automatically detected and inserted into 515 formulae, significantly improving metadata completeness.
  • The method produced high-quality content MathML, addressing a long-standing challenge in mathematical information retrieval and enabling machine-readable, scalable, and searchable mathematical content.
  • The approach enables future integration with computer algebra systems by translating enriched LaTeX into CAS-compatible formats such as those used by Mathematica, Maple, and Sage.
  • The project has established a gold standard for constraint and proof detection, as well as macro replacement, which supports the evaluation of future NLP and machine learning methods in mathematical text processing.
  • The pipeline is extensible and already being applied to additional sources, including OCR-processed book images (BMP) and Wolfram eCF datasets, with ongoing development of bidirectional translation between Wolfram Language and semantic LaTeX.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.