# Install texmath with Homebrew, zypper

Haskell library for converting LaTeX math to MathML. Version 0.13.2 via Homebrew; verified 2026-07-22. Also installable with zypper: sudo zypper install ghc-texmath.

## Install

```sh
sudo av install brew:texmath
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install texmath
```

  Evidence: local Homebrew formula metadata

### Linux

- zypper (92%):

```sh
sudo zypper install texmath
```

  Evidence: openSUSE Tumbleweed package metadata: texmath from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:texmath
- **Package manager:** Homebrew
- **Version:** 0.13.2
- **Source summary:** Haskell library for converting LaTeX math to MathML
- **Homepage:** <https://johnmacfarlane.net/texmath.html>
- **Repository:** <https://github.com/jgm/texmath>
- **Last updated:** 2026-07-22T04:05:19Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- texmath (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.13.2
## Project history and usage

texmath is John MacFarlane's Haskell library, command-line program, and optional web server for converting mathematical formulas between TeX, MathML, OMML, eqn, Typst, StarMath, and pandoc's native representation.

### Project history

The official README describes texmath as a library for converting between mathematical markup formats, with a TeX reader/writer, MathML and OMML support, and output to formats used by Unix, office, and document-conversion ecosystems. The README credits John MacFarlane with the original TeX reader, MathML writer, Eq writer, and OMML writer, with later contributions by Matthew Pickering, Jesse Rosenthal, and others.

### Adoption history

texmath's adoption is linked to pandoc and document-conversion workflows. Its README explicitly includes pandoc's native format among supported targets, making the package useful anywhere LaTeX math must survive conversion to HTML, Office documents, Typst, or other markup formats.

### How it is used

By default texmath installs as a Haskell library, while Cabal flags can build a texmath executable or a server. The demo page presents it as a library, command-line program, and web server for formula conversion, and the README documents JSON API server usage plus batch conversion endpoints.

### Why package nerds care

Package maintainers care about texmath because math conversion is a hard edge in documentation pipelines. It is a small Haskell package, but it sits behind bigger workflows that need LaTeX math to round-trip into MathML for browsers, OMML for Office, Typst for newer typesetting, or pandoc JSON for document filters.

### Timeline

- 2009: GitHub repository history shows long-running public development.
- 2022: README examples document the server mode and JSON API workflow.
- 2025-2026: changelog entries show continuing maintenance for Typst, MathML, OMML, and TeX reader/writer behavior.

### Related projects

- pandoc is the major document-conversion ecosystem connected to texmath.
- MathML, OMML, Typst, StarMath, and GNU eqn are target or source formats handled by texmath.
- TeX and LaTeX are the central input/output syntax family for many texmath users.

### Sources

- <https://github.com/jgm/texmath - official README documents supported formats, pandoc integration, executable/server flags, usage, tests, and authors.>
- <https://johnmacfarlane.net/texmath.html - official demo describes texmath as a Haskell library, command-line program, and web server.>
- <https://raw.githubusercontent.com/jgm/texmath/master/changelog.md - official changelog shows ongoing maintenance.>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Other Package-Manager Records

- zypper - ghc-texmath - 0.13.1.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: ghc-texmath from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Haskell texmath library | https://hackage.haskell.org/package/texmath
- zypper - ghc-texmath-devel - 0.13.1.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: ghc-texmath-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Haskell texmath library development files | https://hackage.haskell.org/package/texmath
- zypper - ghc-texmath-doc - 0.13.1.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: ghc-texmath-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Haskell texmath library documentation | https://hackage.haskell.org/package/texmath
- zypper - ghc-texmath-prof - 0.13.1.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: ghc-texmath-prof from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Haskell texmath profiling library | https://hackage.haskell.org/package/texmath
- zypper - texmath - 0.13.1.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: texmath from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Conversion between math formats | https://hackage.haskell.org/package/texmath


## Combined YAML source

View the package source record on GitHub. [combined/texmath.yml](https://github.com/mxcl/pkgdb/blob/main/combined/texmath.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
