django-latex

Generate LaTeX/PDF files
Download

django-latex Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL v3
  • Publisher Name:
  • Bearstech
  • Publisher web site:
  • http://bearstech.com

django-latex Tags


django-latex Description

Generate LaTeX/PDF files django-latex is a Django app to parse & make PDFs with Django.Examples:Usage examples:from latex import LatexDocumentltxdoc = LatexDocument(latexstr)print ltxdoc.packagesprint ltxdoc.preambleltxdoc2 = LatexDocument(latexstr2)ltxdoc3 = ltxdoc + ltxdoc2ltxdoc3.as_latex()# If some files have to be incluedltxdoc3.add_file("/home/cyberj/lolcat_1182.png", "lolcat.png")f = open("/home/cyberj/motivational_4242.png", "rb")ltxdoc3.add_file(f, "motivational.png")pdf = ltxdoc3.as_pdf()If pdflatex fails, it raises LatexDocument.LatexPdfGenerationError and clean tempdir. To preserve temporary directory give debug=True to as_pdf method.Tests :- cd tests- python bootstrap- ./bin/buildout.py -v- ./bin/test-1.2 or ./bin/test-1.1


django-latex Related Software