# 使用 Homebrew, apt, dnf, MacPorts 安装 tth

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

## 安装

```sh
sudo av install brew:tth
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tth
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tth
```

  证据: MacPorts ports tree: textproc/tth/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install tth
```

  证据: Debian stable package indexes: tth from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install tth
```

  证据: Fedora Rawhide package metadata: tth from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:tth
- **软件包管理器:** Homebrew
- **版本:** 4.16
- **来源摘要:** TeX/LaTeX to HTML converter
- **主页:** <http://silas.psfc.mit.edu/tth/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- latex2gif (别名)
- ps2gif (别名)
- tth (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

TtH is Ian Hutchinson's TeX and LaTeX to HTML translator, built for publishing mathematical documents on the web without converting equations into images.

Its package-manager niche is old-school TeX automation: a portable C command that can be dropped into documentation pipelines when compact HTML output is preferable to image-heavy conversions.

### 项目历史

The official site presents TtH as a translator from TeX, especially mathematical TeX, into browser-readable HTML. The site's own pages are generated by TtH, and the homepage notes that the manual can be translated in real time from TeX source.

Hutchinson's web-math overview records an original version in November 1997, with updates in 1998 and 2002, placing TtH in the first wave of tools trying to make scientific and mathematical documents practical on the web before browser-native math support was common.

The distribution page describes TtH as portable to essentially any operating system, available as executables or C source, and still developing. The change log records version 4.00 on 5 December 2010, version 4.01 as the GPL2 public-source release, and version 4.16 on 25 July 2022.

### 采用历史

TtH's adoption came from a specific web-publishing problem: TeX was strong for mathematical authoring, while early HTML lacked reliable math rendering. The official comparison page argues for native HTML using symbol fonts and tables as a fast, convenient alternative to PDF pages or image-based equations.

The supplied package facts show TtH distributed through Homebrew, Debian, Fedora, MacPorts, and Ubuntu, evidence that it survived as a compact Unix-style converter even as newer TeX-to-web systems appeared.

### 使用方式

The official manual describes TtH as translating Plain TeX and LaTeX documents into HTML, including document structure, hyperlinks, equations, tables, bibliographies, indexes, graphics inclusion, and split output.

The site emphasizes that TtH translates equations rather than rendering them as images, producing compact and fast-viewing web documents. The official examples include large lecture notes, a Plain TeX test document, and the TtH manual itself served from TeX source.

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

For package maintainers, TtH is valuable because it is a small, portable command-line converter with a long release history and very few moving parts compared with browser-driven or image-generation workflows.

It is also historically interesting because the project pages are themselves artifacts of the tool: generated HTML pages that document the same TeX-to-HTML problem the package solves.

### 时间线

- 1997: Hutchinson's web-math overview lists the original version of the discussion around TtH's approach.
- 2006: The distribution page was generated by TtHgold 3.77 and described ongoing development and C-source distribution.
- 2010: Version 4.00 released.
- 2010: Version 4.01 released as the full public GPL2 source version.
- 2022: Version 4.16 released.

### Related projects

- TtM is the companion TeX-to-MathML translator linked from the official TtH homepage.
- The official web-math comparison discusses LaTeX2HTML and TeX4ht as neighboring TeX-to-web converters.
- TtHfunc is the function-callable version for integrating the translator into other executables.

### 来源

- <http://silas.psfc.mit.edu/tth/>
- <http://silas.psfc.mit.edu/tth/CHANGES>
- <http://silas.psfc.mit.edu/tth/distribution.html>
- <http://silas.psfc.mit.edu/tth/manual/>
- <http://silas.psfc.mit.edu/tth/webmath.html>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - tth - 4.16+ds-2: normalized package name match | Debian stable package indexes: tth from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | TeX/LaTeX to HTML converter | http://silas.psfc.mit.edu/tth/
- Debian apt - tth-common - 4.16+ds-2: normalized package name match | Debian stable package indexes: tth-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | auxiliary software material for TtH and TtM | http://silas.psfc.mit.edu/tth/
- Debian apt - ttm - 4.16+ds-2: normalized package name match | Debian stable package indexes: ttm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | TeX/LaTeX to MathML converter | http://silas.psfc.mit.edu/tth/mml/
- Ubuntu apt - tth - 4.16+ds-1: normalized package name match | Ubuntu 24.04 LTS package indexes: tth from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | TeX/LaTeX to HTML converter | http://hutchinson.belmont.ma.us/tth
- Ubuntu apt - tth-common - 4.16+ds-1: normalized package name match | Ubuntu 24.04 LTS package indexes: tth-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | auxiliary software material for TtH and TtM | http://hutchinson.belmont.ma.us/tth
- Ubuntu apt - ttm - 4.16+ds-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ttm from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | TeX/LaTeX to MathML converter | http://hutchinson.belmont.ma.us/ttm
- dnf - tth - 4.16-11.fc45: normalized package name match | Fedora Rawhide package metadata: tth from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | TeX to HTML/MathML translators | http://silas.psfc.mit.edu/tth/
- dnf - tth-devel - 4.16-11.fc45: normalized package name match | Fedora Rawhide package metadata: tth-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for TTH | http://silas.psfc.mit.edu/tth/
- dnf - tth-libs - 4.16-11.fc45: normalized package name match | Fedora Rawhide package metadata: tth-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | TeX to HTML/MathML translation libraries | http://silas.psfc.mit.edu/tth/
- dnf - tth-tex - 4.16-11.fc45: normalized package name match | Fedora Rawhide package metadata: tth-tex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | (La)TeX style files for TTH | http://silas.psfc.mit.edu/tth/
- MacPorts - tth: normalized package name match | MacPorts ports tree: textproc/tth/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/tth.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tth.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
