Usage ----- Examples ======== Bellow is a full example: This is just a simple view that will include `my_mathy_paragraph` variable to be included in the context passed to the template .. code-block:: python # views.py from django.views.generic.base import TemplateView from somewhere import my_mathy_paragraph class HomePageView(TemplateView): template_name = "home.html" def get_context_data(self, **kwargs): context = super(HomePageView, self).get_context_data(**kwargs) context['my_mathy_paragraph'] = my_mathy_paragraph return context In the HTML that will use django-latexify .. code-block:: html {% load staticfiles %} {% load latexify %}
{% latixfy my_mathy_paragraph parse_math=True %}
{% latixfy 'My latex like plain text'%}
My inline math {% latixfy 'e=mc^2' inline_math=True %}
My block math {% latixfy 'e=mc^2' block_math=True %}
{% include "latexify/scripts.html" %}