Package0.13.3.1Text
texmath
Conversion between math formats.
- Version0.13.3.1
- CategoryText
- LicenceGPL-2.0-only
- AuthorJohn MacFarlane, Matthew Pickering
- Maintainerjgm@berkeley.edu
- Homepagegithub.com/jgm/texmath
- Pinned byhackage texmath 0.13.3.1
- Sourcehackage.haskell.org/package/texmath-0.13.3.1
Modules
- Text.TeXMathFunctions for converting between different representations of
- Text.TeXMath.Readers.MathMLParses MathML in conformance with the MathML3 specification. Unimplemented features: mpadded malignmark maligngroup Elementary Math To…
- Text.TeXMath.Readers.MathML.EntityMapHTML entity definitions as provided by W3C. The mapping matches the version from 10th April 2014. The original source can be downloaded f…
- Text.TeXMath.Readers.MathML.MMLDictDictionary of operators to MathML attributes as specified by the W3C standard. The original file can be downloaded from here
- Text.TeXMath.Readers.OMMLTypes and functions for conversion of OMML into TeXMath Exps.
- Text.TeXMath.Readers.TeXFunctions for parsing a LaTeX formula to a Haskell representation.
- Text.TeXMath.Readers.TeX.MacrosFunctions for parsing LaTeX macro definitions and applying macros
- Text.TeXMath.Shared
- Text.TeXMath.TeX
- Text.TeXMath.TypesTypes for representing a structured formula.
- Text.TeXMath.Unicode.FontsUtilities to convert between MS font codepoints and unicode characters.
- Text.TeXMath.Unicode.ToTeXThis module is derived from the list of unicode to LaTeX mappings
- Text.TeXMath.Unicode.ToUnicodeFunction for replacing strings of characters with their respective mathvariant and vice versa.
- Text.TeXMath.Writers.Eqn
- Text.TeXMath.Writers.MathMLFunctions for writing a parsed formula as MathML.
- Text.TeXMath.Writers.OMMLFunctions for writing a parsed formula as OMML.
- Text.TeXMath.Writers.PandocFunctions for writing a parsed formula as a list of Pandoc
- Text.TeXMath.Writers.StarMath
- Text.TeXMath.Writers.TeX
- Text.TeXMath.Writers.Typst
Description
The texmath library provides functions to read and write TeX math, presentation MathML, and OMML (Office Math Markup Language, used in Microsoft Office). Support is also included for converting math formats to Gnu eqn, typst, StarMath, and pandoc's native format (allowing conversion, via pandoc, to a variety of different markup formats). The TeX reader supports basic LaTeX and AMS extensions, and it can parse and apply LaTeX macros. (See here for a live demo of bidirectional conversion between LaTeX and MathML.)
The package also includes several utility modules which may be useful for anyone looking to manipulate either TeX math or MathML. For example, a copy of the MathML operator dictionary is included.
Use the executable flag to install a standalone executable, texmath, that converts formulas from one format to another. (Use the --help flag for a description of all functionality).
Use the server flag to install a web server, texmath-server, that exposes a JSON API allowing conversion of individual formulas and batches of formulas.
Depends on
10 packages- base-4.23.0.0with GHC
- containers-0.8with GHC
- mtl-2.3.2with GHC
- pandoc-types-1.23.1.2in this set
- parsec-3.1.18.0with GHC
- split-0.2.5.1in this set
- syb-0.7.4in this set
- text-2.1.4with GHC
- typst-symbols-0.3in this set
- xml-1.3.14in this set