# 使用 Homebrew, MacPorts, Nix 安装 ltex-ls

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

## 安装

```sh
sudo av install brew:ltex-ls
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ltex-ls
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ltex-ls
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ltex-ls
```

  证据: nixpkgs package indexes: pkgs/by-name/lt/ltex-ls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ltex-ls
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ltex-ls>
- **版本:** 16.0.0
- **来源摘要:** LSP for LanguageTool with support for Latex, Markdown and Others
- **主页:** <https://valentjn.github.io/ltex/>
- **仓库:** <https://github.com/valentjn/ltex-ls>
- **上游文档:** <https://valentjn.github.io/ltex>
- **许可证:** MPL-2.0
- **源码归档:** <https://github.com/valentjn/ltex-ls/archive/refs/tags/16.0.0.tar.gz>
- **最后更新:** 2026-07-06T11:57:48+09:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- ltex-cli (cli)
- ltex-ls (cli)
- ltex-cli (别名)
- ltex-ls (别名)

## 依赖

- openjdk@21

## 构建依赖

- maven
- python@3.14

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 16.0.0
- 管理器更新时间: 2026-07-06
- 本地数据: OK
- 上游仓库: https://github.com/valentjn/ltex-ls
- 检测到的最新版本: 16.0.0 (当前)
## 项目历史与用法

LTeX LS is the original LTeX language server, using LanguageTool to provide offline grammar and spelling diagnostics for LaTeX, Markdown, and related markup through LSP and command-line modes.

### 项目历史

The official LTeX site describes LTeX as offline grammar checking for markup languages using LanguageTool, usable as a standalone command-line tool, an LSP language server, or through editor extensions. The repository README adds that LTeX LS implements the Language Server Protocol and can also check files or directories directly from the command line.

The project grew out of Adam Voss's abandoned LanguageTool for Visual Studio Code extension. Over time it became a broader markup-aware checker for LaTeX, Markdown, Org, reStructuredText, R Sweave, XHTML, and later formats such as Git commit messages, Quarto, and R Markdown.

### 采用历史

The original LTeX LS has strong adoption signals: GitHub shows about 930 stars, 33 forks, 1,224 commits, and a substantial issues and pull request history. The supplied package-manager facts show Homebrew, MacPorts, and Nix packaging, making it a cross-platform package for editor and CLI grammar workflows.

The repository was archived by its owner on Apr 12, 2026. Before that, GitHub releases show 16.0.0 as the latest release, with release notes updating LanguageTool to 6.0 and adding support for Git commit messages, Quarto, R Markdown, and other parser improvements. Its maintained successor is LTeX+ LS.

### 使用方式

The normal usage path is to run LTeX LS behind an editor language client, with the VS Code LTeX extension named as the reference client. The README also supports a package-manager-friendly CLI mode in which paths to files or directories are supplied and diagnostics are printed to standard output.

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

LTeX LS matters because it brought LanguageTool into the package-manager and editor-LSP ecosystem as a self-contained binary distribution. It turned grammar checking for TeX and Markdown from an editor-specific extension concern into a reusable language-server package that could be installed by Homebrew, MacPorts, Nix, and editor integrations.

Its archival and replacement by LTeX+ LS are also package-history relevant: users, formulae, and distributions had to distinguish the stable but archived original from the active maintained fork.

### 时间线

- Pre-LTeX: Adam Voss's LanguageTool VS Code extension is abandoned and later becomes the predecessor named by LTeX docs.
- 2020s: LTeX LS develops as an LSP server and CLI around LanguageTool for markup documents.
- 2023: Release 16.0.0 updates LanguageTool to 6.0 and adds Git commit message, Quarto, and R Markdown support.
- 2026: GitHub marks valentjn/ltex-ls archived on Apr 12, 2026.

### Related projects

- LanguageTool is the grammar and spelling engine.
- vscode-ltex is the reference Visual Studio Code language client.
- LTeX+ LS is the maintained successor/fork.
- languagetool-languageserver and Adam Voss's LanguageTool VS Code extension are earlier lineage projects named by official docs.

### 来源

- <https://github.com/valentjn/ltex-ls>
- <https://github.com/valentjn/ltex-ls/releases>
- <https://valentjn.github.io/ltex/>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ltex-ls
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - ltex-ls: normalized package name match | nixpkgs package indexes: pkgs/by-name/lt/ltex-ls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - ltex-ls: normalized package name match | MacPorts ports tree: devel/ltex-ls/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openjdk@21](https://www.automicvault.com/zh-hans/pkg/brew/openjdk-21/) - Runtime dependency declared by Homebrew.
- [maven](https://www.automicvault.com/zh-hans/pkg/brew/maven/) - Build dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Build dependency declared by Homebrew.
- [ltex-ls-plus](https://www.automicvault.com/zh-hans/pkg/brew/ltex-ls-plus/) - Shares av.db curated category or tags: cli, developer-tools, grammar-checker, language-server, languagetool.
- [codebook-lsp](https://www.automicvault.com/zh-hans/pkg/brew/codebook-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp, spell-checker.
- [typos-lsp](https://www.automicvault.com/zh-hans/pkg/brew/typos-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp, spell-checker.
- [ansible-language-server](https://www.automicvault.com/zh-hans/pkg/brew/ansible-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [bash-language-server](https://www.automicvault.com/zh-hans/pkg/brew/bash-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [clojure-lsp](https://www.automicvault.com/zh-hans/pkg/brew/clojure-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [crystalline](https://www.automicvault.com/zh-hans/pkg/brew/crystalline/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [ctags-lsp](https://www.automicvault.com/zh-hans/pkg/brew/ctags-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [kotlin-language-server](https://www.automicvault.com/zh-hans/pkg/brew/kotlin-language-server/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, language, language-server.

## Combined YAML source

View the package source record on GitHub. [combined/ltex-ls.yml](https://github.com/automic-vault/db/blob/main/combined/ltex-ls.yml)


## 来源

- 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
