Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
46 lines (36 sloc) 932 Bytes

Code Generator

Generates LaTeX code for informative frontmatters. These will be attached to the chapter PDFs of EOA publications we offer for download.

With the output comes also a script file which will replace the original files on the server.

Copy the generated_files folder to the server and from there run the script.

Dependencies

  • texlive-xetex
  • python3-pypdf2

Config file

The program requires a config file that stores some paths and, if a postgres database is used, the credentials for it. If several publication platforms are used, simply create different config files for each instance.

It should contain at least the following fields:

[server]
media_dir:
production_url:

When using SQLite, you can specify the database file like this:

[sqlite]
database_file:

Insert the postgres database credentials like this:

[postgres]
database_name:
user:
host:
password: ""