# Install opendetex with Homebrew, MacPorts

Tool to strip TeX or LaTeX commands from documents. Version 2.8.11 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:opendetex
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install opendetex
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install opendetex
```

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

## Package facts

- **Package key:** brew:opendetex
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/opendetex>
- **Version:** 2.8.11
- **Source summary:** Tool to strip TeX or LaTeX commands from documents
- **Homepage:** <https://github.com/pkubowicz/opendetex>
- **Repository:** <https://github.com/pkubowicz/opendetex>
- **Upstream docs:** <https://github.com/pkubowicz/opendetex#readme>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/pkubowicz/opendetex/releases/download/v2.8.11/opendetex-2.8.11.tar.bz2>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- delatex (cli)
- delatex (alias)

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.8.11
- Local data: ok
- Upstream repository: https://github.com/pkubowicz/opendetex
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

OpenDetex is the maintained successor line of DeTeX, a utility that strips TeX and LaTeX markup from source documents to produce readable plain text. It preserves the old tool's package-nerd charm: a focused lexer-style command-line program with decades of TeX workflow inertia behind it.

### Project history

Daniel Trinkle's DeTeX originated at Purdue University and was distributed from his personal academic page. Trinkle's page points users to OpenDetex as the more modern derivative, and CTAN marks the original `detex` package as retired in favor of Piotr Kubowicz's OpenDetex.

### Adoption history

OpenDetex's adoption is mostly through TeX and Unix packaging channels rather than a large application ecosystem. It appears in Homebrew and MacPorts as `opendetex`, while manual pages in Linux distributions preserve the authorship chain from Trinkle's original program to Kubowicz's maintenance.

### How it is used

Users run the command-line program over TeX or LaTeX sources when they need approximate plain text for indexing, spell checking, word counting, or review workflows. The tool intentionally removes commands rather than trying to typeset or fully understand a TeX document.

### Why package nerds care

OpenDetex matters because it is a tiny maintenance fork that kept a useful academic Unix utility alive after the original author retired it. Its packaging story is the familiar one for old document-processing tools: the interface remains small, but users value it because it fits cleanly into shell pipelines.

### Timeline

- 2004: Daniel Trinkle's DeTeX page was last modified and later directed users to OpenDetex.
- OpenDetex was created from DeTeX 2.8 by Piotr Kubowicz, according to the project README.

### Related projects

- OpenDetex is directly descended from DeTeX and sits near other TeX-adjacent text extraction tools, but it keeps the narrower goal of removing TeX constructs instead of converting documents through a full typesetting or markup conversion pipeline.

### Sources

- <https://ctan.org/pkg/detex>
- <https://formulae.brew.sh/formula/opendetex>
- <https://github.com/pkubowicz/opendetex>
- <https://github.com/pkubowicz/opendetex/blob/master/README>
- <https://man.archlinux.org/man/extra/texlive-bin/detex.1.en>
- <https://www.cs.purdue.edu/homes/trinkle/detex/>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- MacPorts - opendetex: normalized package name match | MacPorts ports tree: tex/opendetex/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [latexdiff](https://www.automicvault.com/pkg/brew/latexdiff/) - Shares av.db curated category or tags: cli, document-processing, latex, productivity, tex.
- [cpdf](https://www.automicvault.com/pkg/brew/cpdf/) - Shares av.db curated category or tags: cli, document-processing, productivity.
- [a2ps](https://www.automicvault.com/pkg/brew/a2ps/) - Shares av.db curated category or tags: cli, document-processing, productivity.
- [enter-tex](https://www.automicvault.com/pkg/brew/enter-tex/) - Shares av.db curated category or tags: cli, latex, productivity, tex.
- [fop](https://www.automicvault.com/pkg/brew/fop/) - Shares av.db curated category or tags: cli, document-processing, productivity.
- [latex2html](https://www.automicvault.com/pkg/brew/latex2html/) - Shares av.db curated category or tags: cli, latex, productivity, tex.
- [latex2rtf](https://www.automicvault.com/pkg/brew/latex2rtf/) - Shares av.db curated category or tags: cli, latex, productivity, tex.
- [latexindent](https://www.automicvault.com/pkg/brew/latexindent/) - Shares av.db curated category or tags: cli, latex, productivity, tex.
- [omekasy](https://www.automicvault.com/pkg/brew/omekasy/) - Local package facts share a topical domain. Shared terms: cli, processing, productivity, text, text-processing.

## Combined YAML source

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