django-latex 0.1

Generate LaTeX/PDF files
django-latex is a Django app to parse & make PDFs with Django.

Examples:

Usage examples:

from latex import LatexDocument
ltxdoc = LatexDocument(latexstr)
print ltxdoc.packages
print ltxdoc.preamble

ltxdoc2 = LatexDocument(latexstr2)
ltxdoc3 = ltxdoc + ltxdoc2
ltxdoc3.as_latex()

# If some files have to be inclued
ltxdoc3.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

Main features:

  • Parse LaTeX Document
  • Render LaTeX Document Objects
  • Generate Base PDF Files
  • Combine simple LaTeX Documents

last updated on:
May 7th, 2011, 7:54 GMT
price:
FREE!
developed by:
Bearstech
homepage:
bitbucket.org
license type:
GPL v3 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT