# 使用 Homebrew, zypper 安装 texmath

查看 texmath 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install texmath
```

  证据: local Homebrew formula metadata

### Linux

- zypper (92%):

```sh
sudo zypper install texmath
```

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

## 软件包事实

- **软件包键:** brew:texmath
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/texmath>
- **版本:** 0.13.2
- **来源摘要:** Haskell library for converting LaTeX math to MathML
- **主页:** <https://johnmacfarlane.net/texmath.html>
- **仓库:** <https://github.com/jgm/texmath>
- **上游文档:** <https://johnmacfarlane.net/texmath.html>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://hackage.haskell.org/package/texmath-0.13.2/texmath-0.13.2.tar.gz>
- **最后更新:** 2026-07-22T04:05:19Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- texmath (cli)
- texmath (别名)

## 依赖

- gmp

## 构建依赖

- cabal-install
- ghc

## macOS 提供的库

- libffi

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.13.2
- 管理器更新时间: 2026-07-22
- 本地数据: OK
- 上游仓库: https://johnmacfarlane.net/texmath.html
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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.>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **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

## 其他软件包管理器记录

- 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


## 相关链接

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

## Combined YAML source

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


## 来源

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