LaTeX template and ruby script to generate new worksheets for class