Created
September 20, 2016 20:51
-
-
Save beefy/0f10b44f5f1a0c20ddeb252fd04799a8 to your computer and use it in GitHub Desktop.
Generate pdf files from LaTeX tex files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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