Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Quick command to install LaTeX packages needed by a document on Fedora
# Replace FILENAMES with the names of the files that include the packages
sudo dnf install $(grep -h "usepackage" FILENAMES | sed "s|\\\usepackage.*{|tex(|" | sed "s|}$|\.sty)|" | tr '\n' ' ') --setopt=strict=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment