Course Plan Generator, used to generate course plans with given template file.
A simple example is here, to see how it was generated.
With python -m coplen --help
:
usage: __main__.py [-h] [--language LANGUAGE] [--output OUTPUT]
[--template TEMPLATE]
input_file
positional arguments:
input_file
optional arguments:
-h, --help show this help message and exit
--language LANGUAGE
--output OUTPUT
--template TEMPLATE
The language comes from a JSON file, for translation purposes. Template is a template file in whatever format you may want, including TEX, using default Jinja2 syntax.
So, using examples/plan.json
as an example:
$ python -m coplen --template coplen/templates/ufsc.tex --output examples/plan.tex examples/plan.json
In examples/
directory, there is a makefile
to generate the plan PDF:
$ make -C examples
The makefile is configured to generate a file examples/plan.pdf
using
xelatex
(you may change on your own), so you can check the result.