# Install arxiv_latex_cleaner with Homebrew, Nix

Clean LaTeX code to submit to arXiv. Version 1.0.11 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:arxiv_latex_cleaner
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install arxiv_latex_cleaner
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#arxiv-latex-cleaner
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ar/arxiv-latex-cleaner/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:arxiv_latex_cleaner
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/arxiv_latex_cleaner>
- **Version:** 1.0.11
- **Source summary:** Clean LaTeX code to submit to arXiv
- **Homepage:** <https://github.com/google-research/arxiv-latex-cleaner>
- **Repository:** <https://github.com/google-research/arxiv-latex-cleaner>
- **Upstream docs:** <https://github.com/google-research/arxiv-latex-cleaner#readme>
- **License:** Apache-2.0
- **Source archive:** <https://files.pythonhosted.org/packages/73/ad/a58581c70d89cd1b26dffb87ff4722e3607dad8884a507da25401fb921c0/arxiv_latex_cleaner-1.0.11.tar.gz>
- **Generated:** 2026-07-10T07:20:53+00:00

## Executables

- arxiv_latex_cleaner (cli)
- arxiv_latex_cleaner (alias)

## Dependencies

- libyaml
- pillow
- python@3.14

## Install behavior

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

## Freshness

- Page generated: 2026-07-10
- Package-manager version: 1.0.11
- Local data: ok
- Upstream repository: https://github.com/google-research/arxiv-latex-cleaner
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

arxiv_latex_cleaner is a Python CLI from google-research for preparing LaTeX paper source trees for arXiv submission. It removes auxiliary files, comments, unused files and images, and can resize or compress assets to fit arXiv constraints.

### Project history

The public GitHub repository was created in January 2019. The README frames the tool around a concrete academic publishing task: take a folder of LaTeX sources and produce a sibling `_arXiv` folder ready to zip and upload.

The release history shows v0.1.x releases beginning by 2020 and v1.0.x releases from 2023 onward, with v1.0.11 published in March 2026. The README notes that the project is not an officially supported Google product.

### Adoption history

The documented primary installation path is `pip install arxiv-latex-cleaner`, with Homebrew as an option on macOS. The provided package-manager facts also list Nix, and the GitHub repository metadata reported several thousand stars and hundreds of forks at research time.

Its adoption story is bound to academic workflow pain: arXiv uploads expose comments, reject oversized bundles, and require the right source subset. The tool turns that cleanup into a repeatable command-line step.

### How it is used

Users run `arxiv_latex_cleaner /path/to/latex`, optionally with flags such as `--resize_images`, `--compress_pdf`, `--convert_png_to_jpg`, or `--config cleaner_config.yaml`. The README includes a YAML configuration example and documents regex-based replacement rules.

Important features include privacy-oriented comment and command removal, size-oriented pruning/resizing/compression, and replacing TikZ source with externalized graphics when configured.

### Why package nerds care

This package is a neat example of a niche research-workflow CLI becoming a package-manager target. It is Python-first and pip-installable, but Homebrew and Nix packaging make it available to users who manage publishing tools outside Python virtual environments.

The package also exposes a common scientific-computing packaging tension: it wraps LaTeX, image, PDF, YAML, regex, and optional system tools into one small CLI whose inputs are messy project directories rather than clean APIs.

### Timeline

- 2019: Public GitHub repository created.
- 2020: v0.1.x GitHub releases published.
- 2023: v1.0.1 release published.
- 2026: v1.0.11 release published.

### Related projects

- The README references arXiv submission workflows, PGF/TikZ externalization, Ghostscript for PDF compression, Inkscape-generated SVG/PDF assets, and Python packaging.

### Sources

- <https://api.github.com/repos/google-research/arxiv-latex-cleaner>
- <https://api.github.com/repos/google-research/arxiv-latex-cleaner/releases>
- <https://github.com/google-research/arxiv-latex-cleaner>
- <https://raw.githubusercontent.com/google-research/arxiv-latex-cleaner/main/README.md>
- source_facts.package-manager


## 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:** arxiv_latex_cleaner
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - arxiv-latex-cleaner: normalized package name match | nixpkgs package indexes: pkgs/by-name/ar/arxiv-latex-cleaner/package.nix from https://api.github.com/repos/NixOS/nixpkgs/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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [ott](https://www.automicvault.com/pkg/brew/ott/) - Shares av.db curated category or tags: cli, latex, science.
- [aamath](https://www.automicvault.com/pkg/brew/aamath/) - Shares av.db curated category or tags: cli, science.
- [abpoa](https://www.automicvault.com/pkg/brew/abpoa/) - Shares av.db curated category or tags: cli, science.
- [abricate](https://www.automicvault.com/pkg/brew/abricate/) - Shares av.db curated category or tags: cli, science.
- [abyss](https://www.automicvault.com/pkg/brew/abyss/) - Shares av.db curated category or tags: cli, science.
- [acl2](https://www.automicvault.com/pkg/brew/acl2/) - Shares av.db curated category or tags: cli, science.
- [adapterremoval](https://www.automicvault.com/pkg/brew/adapterremoval/) - Shares av.db curated category or tags: cli, science.
- [admesh](https://www.automicvault.com/pkg/brew/admesh/) - Shares av.db curated category or tags: cli, science.
- [astrometry-net](https://www.automicvault.com/pkg/brew/astrometry-net/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, python, python-3-14, science.
- [badread](https://www.automicvault.com/pkg/brew/badread/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, python, python-3-14, science.
- [dxpy](https://www.automicvault.com/pkg/brew/dxpy/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, python, python-3-14, science.

## Combined YAML source

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