Package0.12.8.9Text
texmath
Conversion between math formats.
- Version0.12.8.9
- CategoryText
- LicenceGPL-2.0-only
- AuthorJohn MacFarlane, Matthew Pickering
- Maintainerjgm@berkeley.edu
- Homepagegithub.com/jgm/texmath
- Pinned byhackage texmath 0.12.8.9
- Sourcehackage.haskell.org/package/texmath-0.12.8.9
Modules
19 modules- Text.TeXMath13Functions for converting between different representations of
- Text.TeXMath.Readers.MathML1Parses MathML in conformance with the MathML3 specification. Unimplemented features: mpadded malignmark maligngroup Elementary Math To…
- Text.TeXMath.Readers.MathML.EntityMap1HTML 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.MMLDict2Dictionary of operators to MathML attributes as specified by the W3C standard. The original file can be downloaded from here
- Text.TeXMath.Readers.OMML1Types and functions for conversion of OMML into TeXMath Exps.
- Text.TeXMath.Readers.TeX1Functions for parsing a LaTeX formula to a Haskell representation.
- Text.TeXMath.Readers.TeX.Macros4Functions for parsing LaTeX macro definitions and applying macros
- Text.TeXMath.Shared16
- Text.TeXMath.TeX4
- Text.TeXMath.Types15Types for representing a structured formula.
- Text.TeXMath.Unicode.Fonts3Utilities to convert between MS font codepoints and unicode characters.
- Text.TeXMath.Unicode.ToTeX4This module is derived from the list of unicode to LaTeX mappings
- Text.TeXMath.Unicode.ToUnicode4Function for replacing strings of characters with their respective mathvariant and vice versa.
- Text.TeXMath.Writers.Eqn1
- Text.TeXMath.Writers.MathML1Functions for writing a parsed formula as MathML.
- Text.TeXMath.Writers.OMML1Functions for writing a parsed formula as OMML.
- Text.TeXMath.Writers.Pandoc1Functions for writing a parsed formula as a list of Pandoc
- Text.TeXMath.Writers.TeX3
- Text.TeXMath.Writers.Typst1
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, 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.20.2.0with GHC
- containers-0.7with GHC
- mtl-2.3.1with GHC
- pandoc-types-1.23.1in this set
- parsec-3.1.18.0with GHC
- split-0.2.5in this set
- syb-0.7.3in this set
- text-2.1.3with GHC
- typst-symbols-0.1.6in this set
- xml-1.3.14in this set
Used by in this set · 0
Nothing in this set depends on it.