iutiut
This commit is contained in:
parent
866ad1b9bf
commit
074c918f1c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user