tex_path = os.path.join(tempdir, "doc.tex")
with open(tex_path, 'w') as tex_file:
Texml.processor.process(texml, tex_file, encoding="utf-8")
tex_path = os.path.join(tempdir, "doc.tex")
with open(tex_path, 'w') as tex_file:
Texml.processor.process(texml, tex_file, encoding="utf-8")