Cleese Assignment


This template comes in two versions, one for teachers/instructors/educators to create assignments/homework for their students to fill out by hand, and another for students proficient in LaTeX to answer questions posed to them at school or university/college. Both versions contain simple environments for each question and subquestion within, and allow answer boxes to be created with either an answer or blank for space to write an answer. Sets of questions can be grouped by headings and the template includes examples of including an image, table, equation and code within questions.

The students version of the template contains a title page for handing in the assignment and headers on each page list the class, assignment title, class instructor and student name, so if any page gets lost it can be easily attributed to the correct student later. The teachers version of the template does not have a title page as it is meant to be distributed to students individually on paper and lists the class, assignment title, class instructor and due date in the headers on each page.


This template was created for this website by Vel.

Preview (For Students)

Cleese Assignment For Students Preview

Preview (For Teachers)

Cleese Assignment For Teachers Preview

Usage Guide


This template can be compiled with standard pdflatex but will require 2 compilations each time to correctly update the “Page X of Y” in the footer (only if the number of pages changes).

Custom Environments

There are two custom environments you need to use in this template, the question environment and the subquestion environment. Each question in the assignment should be in its own question environment and any subquestions should be placed in subquestion environments within. The question environment outputs a “Question 1” heading and the number iterates automatically for each new environment. Subquestion environments have one argument which is the subquestion question, and each of these is output as “(a) Question…” where the letter is automatically iterated for each subquestion environment.

Custom Commands

A few custom commands are available to be used within the question/subquestion environments. \questiontext{[text]} is used to output a question within the question environment. It should typically be used as the first thing in a question environment but is not required (e.g. you may have a question that is entirely within a figure). \answerbox{[num lines]} is used primarily in the For Teachers version of the template to output an answer box with a height of the number of lines supplied to the single required parameter. It will break across pages automatically. \answer{[answer text]} is used primarily in the For Students version of the template to answer a question or subquestion. It will expand to fill whatever content is put into it and will break across pages automatically. Finally, \assignmentSection{[section title]} can be used in either template outside any question environment. It outputs an all-caps header with 2 rules on either side to act as a section title for the questions following it. It’s useful to group questions that are of a similar nature together.

Open the For Students Template for Free Editing Online:

Open in Overleaf

Open the For Teachers Template for Free Editing Online:

Open in Overleaf

Download Template

{ Download .zip (For Students) } { Preview PDF (For Students) }

{ Download .zip (For Teachers) } { Preview PDF (For Teachers) }

Have a Question or Comment About This Template?

{ Ask a Question } { See Previous Discussions For This Template }