innoconv.ext.number_boxes¶
Scan documents for numbered boxes (info, example, exercise).
Viewers need to be able to quickly number and reference boxes without scanning
the whole document structure themselves. This extension adds a field to the
Manifest
that lists all boxes per section.
It will assign an auto-generated ID
based on the box type and number to the
box div element (in case it doesn’t already have one). Also a data-number
attribute is attached.
Furthermore this extension faciliates the course-wide tracking of exercise progress. For each exercise, the total achievable points and number of questions are stored. A viewer application can easily display total points per section without having to scan all documents for exercises.
-
class
innoconv.ext.number_boxes.
NumberBoxes
(*args, **kwargs)[source]¶ Bases:
innoconv.ext.abstract.AbstractExtension
Scan the documents for boxes.