Skip to content
Snippets Groups Projects
Commit 17e4350d authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'feature/merge-2-sub-pdfs' of github.com:Katharineum/school-apps...

Merge branch 'feature/merge-2-sub-pdfs' of github.com:Katharineum/school-apps into feature/merge-2-sub-pdfs
parents 695a43c2 b18422db
No related branches found
No related tags found
No related merge requests found
...@@ -115,8 +115,10 @@ def generate_pdf(tex, filename): ...@@ -115,8 +115,10 @@ def generate_pdf(tex, filename):
# Execute pdflatex to generate the PDF # Execute pdflatex to generate the PDF
bash_command = "pdflatex -output-directory {} {}.tex".format(os.path.join(BASE_DIR, "latex"), bash_command = "pdflatex -output-directory {} {}.tex".format(os.path.join(BASE_DIR, "latex"),
os.path.join(BASE_DIR, "latex", filename)) os.path.join(BASE_DIR, "latex", filename))
print(bash_command)
process = subprocess.Popen(bash_command.split(), stdout=subprocess.PIPE) process = subprocess.Popen(bash_command.split(), stdout=subprocess.PIPE)
output = process.communicate()[0] output = process.communicate()[0]
print(output)
def tex_replacer(s): def tex_replacer(s):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment