django_tex package

Submodules

django_tex.core module

django_tex.core.compile_template_to_pdf(template_name, context)
django_tex.core.render_template_with_context(template_name, context)
django_tex.core.run_tex(source)

django_tex.engine module

class django_tex.engine.TeXEngine(params)

Bases : django.template.backends.jinja2.Jinja2

app_dirname = 'templates'

django_tex.environment module

django_tex.environment.environment(**options)

django_tex.exceptions module

exception django_tex.exceptions.TexError(log, source)

Bases : Exception

get_message()
django_tex.exceptions.prettify_message(message)

Helper methods that removes consecutive whitespaces and newline characters

django_tex.exceptions.tokenizer(code)

django_tex.filters module

django_tex.filters.do_linebreaks(value)

django_tex.models module

class django_tex.models.TeXTemplateFile(*args, **kwargs)

Bases : django.db.models.base.Model

class Meta

Bases : object

abstract = False
name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

title

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

django_tex.models.validate_template_path(name)

django_tex.views module

class django_tex.views.PDFResponse(content, filename=None)

Bases : django.http.response.HttpResponse

django_tex.views.render_to_pdf(request, template_name, context=None, filename=None)

Module contents