Skip to content
/ coplen Public

Course Plan Generator. Currently exports to PDF.

License

Notifications You must be signed in to change notification settings

JPTIZ/coplen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coplen

About

Course Plan Generator, used to generate course plans with given template file.

Simple Example

A simple example is here, to see how it was generated.

Basic Usage

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.

About

Course Plan Generator. Currently exports to PDF.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published