# 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. Also installable with nix: nix profile install nixpkgs#arxiv-latex-cleaner.

## 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
- **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>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- arxiv_latex_cleaner (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.0.11
## 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

## 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


## Combined YAML source

View the package source record on GitHub. [combined/arxiv_latex_cleaner.yml](https://github.com/mxcl/pkgdb/blob/main/combined/arxiv_latex_cleaner.yml)


## Sources

- 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
