# google-research/arxiv-latex-cleaner

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/google-research-arxiv-latex-cleaner).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

6,914 stars · 403 forks · Python · Apache-2.0

## Links

- GitHub: https://github.com/google-research/arxiv-latex-cleaner
- awesome-repositories: https://awesome-repositories.com/repository/google-research-arxiv-latex-cleaner.md

## Topics

`arxiv` `latex`

## Description

arxiv-latex-cleaner is a utility designed to prepare LaTeX projects for submission to the arXiv preprint server. It functions as a document sanitizer and source cleaner, removing private comments, metadata, and sensitive information from LaTeX files.

The tool optimizes document size by eliminating unused files and compressing graphics to meet strict upload limits. It further handles the externalization of complex drawing environments, replacing raw source code with references to pre-compiled image or PDF files to hide simulation data.

The system performs source-to-source transformations to replace custom macros with standard code using regular expressions. It creates a sanitized mirror of the project directory, filtering out unnecessary auxiliary files to ensure a clean final submission set.

## Tags

### Development Tools & Productivity

- [Source Cleaners](https://awesome-repositories.com/f/development-tools-productivity/latex-formatters/source-cleaners.md) — Cleanses LaTeX projects by removing custom macros and sanitizing source code to meet arXiv submission requirements.
- [arXiv Submission Preparers](https://awesome-repositories.com/f/development-tools-productivity/arxiv-submission-preparers.md) — Cleanses LaTeX projects to meet the specific formatting and file size constraints of the arXiv preprint server.
- [Asset Pruning Utilities](https://awesome-repositories.com/f/development-tools-productivity/asset-pruning-utilities.md) — Removes unused graphics and auxiliary documents based on specified patterns to meet strict submission size limits.
- [Source Sanitizers](https://awesome-repositories.com/f/development-tools-productivity/latex-formatters/source-sanitizers.md) — Provides a system for removing private comments, metadata, and sensitive simulation data from LaTeX source files.
- [Project Sanitization Mirrors](https://awesome-repositories.com/f/development-tools-productivity/project-sanitization-mirrors.md) — Creates a sanitized mirror of the project directory by filtering out unnecessary auxiliary files before submission.

### Education & Learning Resources

- [Submission Packaging](https://awesome-repositories.com/f/education-learning-resources/research-papers/submission-workflows/submission-packaging.md) — Generates a cleaned and compressed archive of LaTeX source files specifically tailored for arXiv submission.

### Content Management & Publishing

- [Community Content Submissions](https://awesome-repositories.com/f/content-management-publishing/community-content-submissions.md) — Prepares the project folder for submission by removing unnecessary files to meet arXiv requirements. ([source](https://github.com/google-research/arxiv-latex-cleaner#readme))
- [File Size Optimizations](https://awesome-repositories.com/f/content-management-publishing/file-size-optimizations.md) — Reduces the overall storage footprint of digital documents through graphics resizing and object removal. ([source](https://github.com/google-research/arxiv-latex-cleaner#readme))
- [LaTeX Source Sanitization](https://awesome-repositories.com/f/content-management-publishing/latex-source-sanitization.md) — Removes private comments, internal metadata, and sensitive information from documents before publishing.
- [Academic Paper Adaptation](https://awesome-repositories.com/f/content-management-publishing/academic-paper-adaptation.md) — Adapts research papers by converting custom LaTeX macros and drawing environments into standard, compatible code.

### Security & Cryptography

- [Content Sanitization](https://awesome-repositories.com/f/security-cryptography/content-sanitization.md) — Filters and secures document source by removing auxiliary files and comments to prevent leaking private information. ([source](https://github.com/google-research/arxiv-latex-cleaner#readme))

### Software Engineering & Architecture

- [Source Comment Removal](https://awesome-repositories.com/f/software-engineering-architecture/metadata-attachments/binary-metadata/debug-metadata-removal/source-comment-removal.md) — Deletes auxiliary files and private comments to ensure internal notes are not included in the final version. ([source](https://github.com/google-research/arxiv-latex-cleaner/blob/main/README.md))
- [Configuration-Driven Rule Engines](https://awesome-repositories.com/f/software-engineering-architecture/configuration-driven-rule-engines.md) — Implements a rule engine that parses external configuration files to execute document sanitization and transformation rules.
- [Expression Transformers](https://awesome-repositories.com/f/software-engineering-architecture/expression-transformers.md) — Applies logical transformations to custom LaTeX macros, replacing them with standard code using regex captures. ([source](https://github.com/google-research/arxiv-latex-cleaner#readme))
- [Local Asset References](https://awesome-repositories.com/f/software-engineering-architecture/external-content-handlers/external-content-inclusions/external-resource-references/local-asset-references.md) — Replaces complex drawing environments with references to pre-compiled PDF or image files to hide simulation data.
- [Regex Placeholder Replacements](https://awesome-repositories.com/f/software-engineering-architecture/regex-placeholder-replacements.md) — Uses regular expressions and configuration files to identify and replace custom LaTeX macros with standard code.

### Testing & Quality Assurance

- [Automated Code Cleaning](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/static-analysis/automated-code-cleaning.md) — Automatically removes specified document commands and applies pattern replacements to clean LaTeX source code. ([source](https://github.com/google-research/arxiv-latex-cleaner/blob/main/cleaner_config.yaml))

### Graphics & Multimedia

- [Graphic Code Externalization](https://awesome-repositories.com/f/graphics-multimedia/media-file-tagging/external-metadata-file-generation/external-media-data-referencers/graphic-code-externalization.md) — Replaces raw drawing environments with references to pre-compiled image files to hide simulation data. ([source](https://github.com/google-research/arxiv-latex-cleaner/blob/main/README.md))

### Programming Languages & Runtimes

- [Source Code Transformation Engines](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/source-code-templates/source-code-transformation-engines.md) — Analyzes LaTeX source files to generate a cleaned version of the code without altering the final rendered output.
- [String Pattern Replacements](https://awesome-repositories.com/f/programming-languages-runtimes/string-pattern-replacements.md) — Provides the capability to replace custom document commands with standard code using regular expressions. ([source](https://github.com/google-research/arxiv-latex-cleaner/blob/main/README.md))
