Skip to content

Instantly share code, notes, and snippets.

@beefy
Created September 20, 2016 20:51
Show Gist options
  • Save beefy/0f10b44f5f1a0c20ddeb252fd04799a8 to your computer and use it in GitHub Desktop.
Save beefy/0f10b44f5f1a0c20ddeb252fd04799a8 to your computer and use it in GitHub Desktop.
Generate pdf files from LaTeX tex files
import os
# execute `sudo apt-get install texlive-full` to install pdflatex
files = [file for file in os.listdir('.') if file.endswith('.tex')]
for file in files:
os.system('pdflatex '+file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment