Based on IOI-Translation system, a lightweight tool to build pdf from markdown. Intended to be used in preparation of OI-styled statement.
- Clone the repository.
- Add the directory oistatement to your
PATH
variable. - Have either
chrome
orbrave
available. - For Arch based distros, install the following packages from AUR:
cpdf
,ttf-ms-fonts
.- For other distribution, you need to figure out the equivalent.
- Install the python package:
jinja2
. - Now you should be able to compile the given test markdown file with
oistatement english.md
.
Change static/img/logo.svg
acording to your needs.
Write statement in statement.md
and put statement.json
in the same directory (both should have same name exclusding the extension). The format of statement.json
is:
{
"task_name": "task-code-name",
"language": "English/Bengali",
"contest": "contest day"
}
Then you can make the pdf with oistatement statement.md