# 使用 Homebrew, apt, MacPorts 安装 latexdiff

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

## 安装

```sh
sudo av install brew:latexdiff
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install latexdiff
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install latexdiff
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install latexdiff
```

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

## 软件包事实

- **软件包键:** brew:latexdiff
- **软件包管理器:** Homebrew
- **版本:** 1.4.0
- **来源摘要:** Compare and mark up LaTeX file differences
- **主页:** <https://www.ctan.org/pkg/latexdiff>
- **仓库:** <https://github.com/ftilmann/latexdiff>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- latexdiff (别名)
- latexdiff-fast (别名)
- latexdiff-so (别名)
- latexdiff-vc (别名)
- latexrevise (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

latexdiff is a Perl tool for comparing two LaTeX files and producing a marked-up LaTeX file that shows significant textual changes. It fills the same social role for LaTeX authors that track changes fills in word processors.

### 项目历史

CTAN identifies latexdiff as a package for determining and marking up significant differences between LaTeX files, with Frederik J. Tilmann as maintainer and copyright beginning in 2004. The main script header likewise names F J Tilmann and points to CTAN and the GitHub repository.

The project expanded beyond the core `latexdiff` script to include `latexrevise`, which can accept or reject changes, and `latexdiff-vc`, a wrapper for version-control systems. The `latexdiff-vc` script records support for systems such as CVS, RCS, SVN, Git, and Mercurial, with Git support appearing in its 1.0.1 history.

The GitHub repository was created on 2014-06-17. CTAN lists the package in TeX Live and MiKTeX and records the 2026-01-02 package version date.

### 采用历史

latexdiff became a standard utility in academic and technical writing because journals, supervisors, and collaborators often request visible revisions, while LaTeX source files do not map naturally to word-processor track changes. CTAN, TeX Live, MiKTeX, Homebrew, Debian, MacPorts, and Ubuntu packaging made it easy to add to authoring workflows.

The ecosystem around it includes wrapper scripts and front ends such as git-latexdiff, latexdiffr, latexdiffcite, and browser/WebAssembly interfaces, reflecting the same need across Git, R Markdown, BibTeX, and web-based workflows.

### 使用方式

The typical command compares an old and a new `.tex` file and emits a new LaTeX file with inserted and deleted text marked using standard LaTeX packages. Users then compile the generated file to inspect revisions, or use `latexrevise` and `latexdiff-vc` for accepting changes or comparing version-control revisions.

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

latexdiff is package-nerd significant because it is small, scriptable, and solves a workflow problem that version-control diffs do not solve for human reviewers: a compiled PDF showing semantic document changes.

It is also a classic example of a package that glues together language tooling, version control, and publishing conventions without needing a GUI.

### 时间线

- 2004: Copyright range begins for the main latexdiff script.
- 2005: latexdiff-vc copyright range begins.
- 2014-06-17: GitHub repository created.
- 2018-10-07: latexdiff-vc 1.3.0 records an `--only-changes` option.
- 2026-01-02: CTAN package version date for latexdiff 1.4.0.

### Related projects

- Related projects include latexrevise, latexdiff-vc, git-latexdiff, latexdiffr, latexdiffcite, latexchanges, TeX Live, MiKTeX, Git, Subversion, Mercurial, and Algorithm::Diff.

### 来源

- <https://api.github.com/repos/ftilmann/latexdiff>
- <https://api.github.com/repos/ftilmann/latexdiff/tags?per_page=20>
- <https://ctan.org/pkg/latexdiff?lang=en>
- <https://raw.githubusercontent.com/ftilmann/latexdiff/master/README.md>
- <https://raw.githubusercontent.com/ftilmann/latexdiff/master/latexdiff>
- <https://raw.githubusercontent.com/ftilmann/latexdiff/master/latexdiff-vc>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - latexdiff - 1.3.2-1: normalized package name match | Debian stable package indexes: latexdiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility to mark up significant differences between LaTeX files | https://www.ctan.org/pkg/latexdiff
- Ubuntu apt - latexdiff - 1.3.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: latexdiff from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utility to mark up significant differences between LaTeX files | https://www.ctan.org/pkg/latexdiff
- MacPorts - latexdiff: normalized package name match | MacPorts ports tree: tex/latexdiff/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/latexdiff.yml](https://github.com/mxcl/pkgdb/blob/main/combined/latexdiff.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
