This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Application to parse & make PDFs with Django

Beta : not really for production use

Features :

  • LaTeX :

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

Todo :

  • … much more

Examples :

Usage examples:

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

ltxdoc2 = LatexDocument(latexstr2)
ltxdoc3 = ltxdoc + ltxdoc2

# 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/ -v
  • ./bin/test-1.2 or ./bin/test-1.1

Requirements :

  • Django >= 1.1
  • pdflatex (and LaTeX distro)

Debian packages

  • dblatex Produces DVI, PostScript, PDF documents from DocBook sources
  • latex-xcolor Easy driver-independent TeX class for color
  • preview-latex-style extraction of elements from LaTeX documents as graphics
  • texlive-latex-base TeX Live: Basic LaTeX packages
  • texlive-latex-base-doc TeX Live: Documentation files for texlive-latex-base
  • texlive-latex-extra TeX Live: LaTeX supplementary packages
  • texlive-latex-extra-doc TeX Live: Documentation files for texlive-latex-extra
  • texlive-latex-recommended TeX Live: LaTeX recommended packages
  • texlive-latex-recommended-doc TeX Live: Documentation files for texlive-latex-recommended
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-latex-0.1.tar.gz (27.4 kB) Copy SHA256 Checksum SHA256 Source May 5, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting