calingen.contrib.layouts.simple_event_list.simple_event_list

LayoutProvider implementation for a simple event list.

Warning

This layout is included in django-calingen’s CI test setup, mainly to verify that the TeX escaping is working.

This may be object to future changes.

Module Contents

Classes

SimpleEventList

The actual implementation of the layout.

class calingen.contrib.layouts.simple_event_list.simple_event_list.SimpleEventList

Bases: calingen.interfaces.plugin_api.LayoutProvider

The actual implementation of the layout.

Nothing fancy here, prepare_context() is just used to group the provided calingen.interfaces.data_exchange.CalendarEntryList by month.

Warning

The provided templates create a document targeted at German users. You may override the templates to (fully) support other languages.

Notes

To customize the generated TeX-sources, the following templates may be overridden:

  • simple_event_list/tex/base.tex: Speaking in TeX-terms: the preamble of the document, including package definitions.

  • simple_event_list/tex/simple_event_list.tex: Speaking in TeX-terms: the document’s body.

  • simple_event_list/tex/single_entry_line.tex: The actual TeX-representation of a calingen.interfaces.data_exchange.CalendarEntry.

_template = simple_event_list/tex/simple_event_list.tex
layout_type = tex
name = Simple Event List
orientation = portrait
paper_size = a4
classmethod prepare_context(context)

Pre-process the entries to group them by month.