Crates.io | texclean |
lib.rs | texclean |
version | 0.2.0 |
source | src |
created_at | 2024-03-17 19:28:45.479793 |
updated_at | 2024-03-17 20:31:16.084057 |
description | Recursively clean all LaTeX projects in a given directory |
homepage | |
repository | https://github.com/SV-97/texclean |
max_upload_size | |
id | 1176746 |
size | 26,584 |
Recursively clean all LaTeX projects in a given directory
>texclean --help
Recursively clean all LaTeX projects in a given directory that match the specified criteria
Usage: texclean [OPTIONS]
Options:
-d, --directory <DIR> The directory in which the projects will be searched [default: .]
-s, --simulate Perform a trial run with no changes made
-h, --help Print help
-V, --version Print version
Just run texclean
to recursively search for all potential latex auxiliary files (.aux
, .bbl
, .blg
, .log
, latexindent files, latexmk files, synctex files etc.) from the working directory downward and interactively delete them. Pass another directory to search in using --directory
. Use texclean --simulate
flag if you want to do a dry-run without any actual deletions.
As of right now the functionality is pretty bare bones because I just quickly threw everything together to where it was "useful enough" for me. Some potential improvements include:
.tex
or .bib
files). Currently a lot of non-latex .log
files might be included for exampleYou can install texclean using cargo (which you can in turn install using rustup)
cargo install texclean
If the install fails (shouldn't happen, but sometimes it happens) try cargo install --locked texclean
instead to build with versions exactly as specified in the lockfile.