Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. from pylatex import Document, Section, Subsection, Command
  2. from pylatex.utils import italic, NoEscape
  3.  
  4. latex_document = 'path'
  5. with open(latex_document) as file:
  6. tex= file.read()
  7.  
  8. doc = Document('basic')
  9. doc.append(tex)
  10. doc.generate_pdf(clean_tex=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement