Skip to content

Instantly share code, notes, and snippets.

@sanjayankur31
Last active April 15, 2019 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanjayankur31/d0d175301b943171114ec5f825afa4cc to your computer and use it in GitHub Desktop.
Save sanjayankur31/d0d175301b943171114ec5f825afa4cc to your computer and use it in GitHub Desktop.
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