diff --git a/README.md b/README.md index 0a21255..adecbc9 100644 --- a/README.md +++ b/README.md @@ -69,9 +69,7 @@ Please follow the "Using LaTeX" instructions below. ## Usage for Pages All you need to do to render your Wagtail `Page` as PDF, is to inherit from `PdfViewPageMixin`. -If you want to render a model instead, read the section **ModelAdmin** below. - -**If you want to use latex, read the latex section below.** +If you want to render a model instead, read the section **Models and ModelViewSets** below. A page inheriting from `PdfViewPageMixin` can be further configured with the options: - `ROUTE_CONFIG` to enable rendering of the default HTML view and the PDF view at the same time @@ -82,9 +80,7 @@ A page inheriting from `PdfViewPageMixin` can be further configured with the opt ## Examples A very simple example page using Wagtails `StreamField`. -Like for a regular Wagtail `Page`, the template should be located under: `/templates//simple_pdf_page.html` - -**If you're using django-tex the template extention .tex is expected**. +Like for a regular Wagtail `Page`, the template should be located under: `/templates//.html` ```py # models.py @@ -92,37 +88,41 @@ Like for a regular Wagtail `Page`, the template should be located under: `/templates//.tex` + In general you should include *wagtail_preamble.tex*, which provides required packages and commands for proper richtext handling. ```