Skip to content
/ exam-gen Public

Simple generator for exams with output in TeX.

Notifications You must be signed in to change notification settings

qweqq/exam-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

Simple exam pdf generator supporting English and Bulgarian (may work for other languages as well, but not tested)

Setup

Requirements

  • python3.4
  • texlive

On Ubuntu and Debian you can install texlive like this:

sudo apt-get install texlive texlive-science texlive-lang-cyrillic texlive-latex-extra

Running the examples

python3 src/main.py examples/config.xml

The above generates .tex files ready to be compiled with pdflatex. For example:

mkdir -pv out
rm -fv out/*
# for each generated exam .tex file
for e in exam*.tex; do

    # two iterations per exam are required so that the numbering of pages works
    for i in {1..2}; do
    
        # generate pdf files
        TEXINPUTS=$(pwd)/lib: pdflatex -output-directory=$(pwd)/out $e;
    done;
done;

Usage

(TODO)

About

Simple generator for exams with output in TeX.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages