# Install texmath with Homebrew, zypper

Haskell library for converting LaTeX math to MathML. Version 0.13.1.2 via Homebrew; verified 2026-06-02.

## 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 ghc-texmath
```

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

## Package facts

- **Package key:** brew:texmath
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/texmath>
- **Version:** 0.13.1.2
- **Source summary:** Haskell library for converting LaTeX math to MathML
- **Homepage:** <https://johnmacfarlane.net/texmath.html>
- **Repository:** <https://github.com/jgm/texmath>
- **Upstream docs:** <https://github.com/jgm/texmath#readme>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://hackage.haskell.org/package/texmath-0.13.1.2/texmath-0.13.1.2.tar.gz>
- **Last updated:** 2026-06-02T09:43:35Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- texmath (cli)
- texmath (alias)

## Dependencies

- gmp

## Build dependencies

- cabal-install
- ghc

## Uses from macOS

- libffi

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.13.1.2
- Package-manager updated: 2026-06-02
- Local data: ok
- Upstream repository: https://johnmacfarlane.net/texmath.html
- info: Release/tag comparison is only available for GitHub repositories.
## 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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** texmath
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cabal-install](https://www.automicvault.com/pkg/brew/cabal-install/) - Build dependency declared by Homebrew.
- [ghc](https://www.automicvault.com/pkg/brew/ghc/) - Build dependency declared by Homebrew.
- [latexml](https://www.automicvault.com/pkg/brew/latexml/) - Shares av.db curated category or tags: cli, developer-tools, document-conversion, latex, mathml.
- [pandoc](https://www.automicvault.com/pkg/brew/pandoc/) - Shares av.db curated category or tags: cli, developer-tools, document-conversion, latex.
- [libpagemaker](https://www.automicvault.com/pkg/brew/libpagemaker/) - Shares av.db curated category or tags: cli, developer-tools, document-conversion.
- [tth](https://www.automicvault.com/pkg/brew/tth/) - Shares av.db curated category or tags: cli, developer-tools, document-conversion, latex, tex.
- [xmlto](https://www.automicvault.com/pkg/brew/xmlto/) - Shares av.db curated category or tags: cli, developer-tools, document-conversion.
- [itex2mml](https://www.automicvault.com/pkg/brew/itex2mml/) - Shares av.db curated category or tags: cli, developer-tools, mathml, tex.
- [lowdown](https://www.automicvault.com/pkg/brew/lowdown/) - Shares av.db curated category or tags: cli, developer-tools, document-conversion, latex.
- [tex-fmt](https://www.automicvault.com/pkg/brew/tex-fmt/) - Shares av.db curated category or tags: cli, developer-tools, latex, tex.

## Combined YAML source

View the package source record on GitHub. [combined/texmath.yml](https://github.com/automic-vault/db/blob/main/combined/texmath.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
