Haskell program for generating unique (different for different students) assignments by choosing M questions randomly from an exam class LaTeX file containing N questions. The output can be seen at https://www.ee.iitb.ac.in/~sarva/courses/EE720/2018/assignments/assignment2/
- Install stack
- Clone this repository
- Run
stack build
in the repository root (this will take some time to finish if you are usingstack
for the first time). - Copy your exam class LaTeX file into the repository root (for example, see the
assignment2.tex
file in repository). - Change to
output
directory by runningcd output
. - Run
source genAss2.sh
to generate the assignments in theoutput
directory (both.tex
and.pdf
files will be generated). The names of the files are the roll numbers of the students in thestudents.csv
file.
src/Main.hs
has the program to generate the assignments. It is compiled into an executableassigner
which can be executed using the commandstack exec assigner <LaTeXFileName> <M> <string>
. The argument<string>
can be an arbitrary string which provides the randomness required to generate a unique assignment.
MIT