Automic VaultAutomic Vault

brew

使用 Homebrew, scoop 安装 latexindent

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install latexindent

local Homebrew formula metadata

Windows

Scoop已验证 · 92%
scoop install main/latexindent

Scoop official bucket manifest trees · bucket/latexindent.json · 来源: api.github.com

概览

软件包摘要

Add indentation to LaTeX files

命令和别名

  • latexindent

历史

项目历史与用法

latexindent.pl is a Perl formatter for LaTeX, TeX-adjacent, and BibTeX-style source files. It adds indentation, aligns delimiters, modifies line breaks, wraps text, and supports user customization through YAML settings.

项目历史

The GitHub repository was created on 2012-08-28. CTAN lists Chris Hughes as maintainer, and the project README identifies the package as `latexindent.pl`, a Perl script to beautify, tidy, format, and indent code within environments, commands, headings, and special code blocks.

The project evolved from indentation into a broader source-formatting tool. The README documents delimiter alignment, line-break modification, text wrapping, one-sentence-per-line handling, string and regex replacements, Conda, Docker, and pre-commit support.

The 2026 V4.0 changelog records a major overhaul of how `latexindent.pl` finds code blocks, with user-setting changes and performance and interaction improvements. CTAN records version 4.0.2 dated 2026-06-06.

采用历史

latexindent.pl is distributed through CTAN and is included in TeX Live and MiKTeX. Homebrew packages it as `latexindent`, and the upstream README documents standalone executables for Windows, Ubuntu Linux, and macOS, along with Conda, Docker, and pre-commit workflows.

Its adoption tracks the rise of formatter expectations in developer tooling: LaTeX authors increasingly want editor, CI, and pre-commit formatting support similar to language formatters such as gofmt, Black, or Prettier.

使用方式

Users run `latexindent.pl myfile.tex` for a default formatting pass, often with `-l` to load YAML settings, `-o` to write a separate output file, or pre-commit hooks to format files during Git workflows. The documentation emphasizes testing output carefully before overwriting important documents.

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

latexindent.pl is package-nerd significant because it brings modern formatter ergonomics to TeX source: reproducible layout, YAML configuration, editor integration, pre-commit hooks, and CI-friendly command-line behavior.

It also has a packaging wrinkle maintainers care about: despite the Homebrew formula name `latexindent`, the upstream executable and documentation consistently center `latexindent.pl` and its Perl module/settings bundle.

时间线

  • 2012-08-28: GitHub repository created.
  • 2022-01-21: CTAN announcement recorded version 3.15.
  • 2026-03-15: V4.0 released as a major code-block-detection overhaul.
  • 2026-06-06: V4.0.2 released.
  • 2026-06-08: CTAN announced the 4.0.2 update.

Related projects

  • Related projects and platforms include CTAN, TeX Live, MiKTeX, latexindent.pl's Read the Docs documentation, pre-commit, Conda, Docker, and editor or CI workflows that enforce TeX source formatting.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/indentconfig.yaml~/.indentconfig.yamllocalSettings.yaml in the target file directorycurrent working directory

可执行文件

已安装的可执行文件

命令类型暴露范围备注
latexindentcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本4.0.2
管理器更新时间2026-06-06
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/cmhughes/latexindent.pl

安装元数据

软件包元数据

软件包键brew:latexindent
版本4.0.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/latexindent
主页https://latexindentpl.readthedocs.io
仓库https://github.com/cmhughes/latexindent.pl
上游文档https://latexindentpl.readthedocs.io/en/latest
许可证GPL-3.0-or-later
源码归档https://github.com/cmhughes/latexindent.pl/archive/refs/tags/V4.0.2.tar.gz
最后更新2026-06-06T14:21:31Z
Pulseupdated
依赖perl
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelatexindent
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Scoop95%

main/latexindent

scoop install main/latexindent
  • normalized package name match
  • 匹配方式:Latexindent
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/latexindent.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment