# 使用 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
- **版本:** 0.13.2
- **来源摘要:** Haskell library for converting LaTeX math to MathML
- **主页:** <https://johnmacfarlane.net/texmath.html>
- **仓库:** <https://github.com/jgm/texmath>
- **最后更新:** 2026-07-22T04:05:19Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- texmath (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.13.2
## 项目历史与用法

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

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

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


## 来源

- 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
