texclean-rs

Crates.iotexclean-rs
lib.rstexclean-rs
version0.1.0-DEV
created_at2025-08-19 16:47:54.788611+00
updated_at2025-08-19 16:47:54.788611+00
descriptionA command line tool to remove temporary files created during (La)TeX compilation.
homepagehttps://ajinkyakokandakar.com/latex-clean-rs
repositoryhttps://github.com/ajinkya-k/latex-clean-rs
max_upload_size
id1802176
size8,840
Ajinkya Kokandakar (ajinkya-k)

documentation

README

latex-clean-rs

This command line tool has a single purpose: removing latex temporary files. It is basically the rust port of a shell script written by Danica Sutherland (see below)

[!CAUTION] This project is still in development (mostly because each function isn't unit tested yet), but I do personally use it, and it has replaced the shell script I used for years.

Installation

Install directly from GitHub using Cargo:

cargo install --git https://github.com/ajinkya-k/latex-clean-rs

Usage

Simply run the following on the command line:

latex-clean <path>

The path must be to a tex file, a pdf file, or a directory. If the path is to a file, the axillary files associated with that file are deleted. If the path is to a directory, all auxiliary files in that directory are deleted.

This program could have been a shell script

Yes, and in fact it was. This program is basically just a rust port of a shell script written by Danica Sutherland. I ported this to rust for a few reasons:

  • I find shell scripts hard to understand
  • I wanted this to be cross-platform
  • I wanted to teach myself how to publish a rust binary
Commit count: 13

cargo fmt