This commit is contained in:
Kilton937342 2022-08-02 13:48:23 +02:00
parent 866ad1b9bf
commit 074c918f1c
1 changed files with 3 additions and 0 deletions

View File

@ -424,6 +424,9 @@ def pdfGen(request):
direct = tempdir
with open(os.path.join(direct, 'tmp.tex'), 'x', encoding='utf-8') as f:
f.write(latex)
with open(os.path.join(direct, 'tmp.tex'), 'r', encoding='utf-8') as f:
print('FILE', f.read())
command = f'xelatex -interaction=batchmode tmp.tex'
try:
subprocess.run(command, shell=True,