Skip to content

Instantly share code, notes, and snippets.

View jxqiu77's full-sized avatar
๐Ÿ˜€

Jiaxin Qiu jxqiu77

๐Ÿ˜€
View GitHub Profile
@djsutherland
djsutherland / latex-clean.sh
Last active August 20, 2025 03:46
A bash script to clean latex temp files
#!/bin/bash
# Note: you might prefer latexmk -c since latexmk is great. It doesn't clean all of these, but see
# https://tex.stackexchange.com/questions/83341/clean-bbl-files-with-latexmk-c/83386#83386
exts=".aux .lof .log .lot .fls .out .toc .dvi .bbl .bbl-SAVE-ERROR .bcf .bcf-SAVE-ERROR .blg -blx.aux -blx.bib -blx.bib .run.xml .fdb_latexmk .synctex.gz .syntex.gz(busy) .pdfsync .algorithms .alg .loa .thm .nav .snm .vrb .acn .acr .glg .glo .gls .brf .lol .idx .ilg .ind .ist .maf .mtc .mtc0 .pyg .nlo .tdo .xdy .keys"
for x in "${@:-.}"; do
arg=$(echo ${x:-.} | perl -pe 's/\.(tex|pdf)$//')