Skip to content
Snippets Groups Projects
Commit b18422db authored by root's avatar root
Browse files

Some bug fixes

parent c3d16696
No related branches found
No related tags found
No related merge requests found
...@@ -116,8 +116,10 @@ def generate_pdf(tex, filename): ...@@ -116,8 +116,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