LaTeX test template

The “Test” type prepares everything for an exam: a Name, Class and Mark box at the top of the first page, numbered exercises with their points, lines or grid for answers, and an answer key you show or hide with one word.

Approximate preview, with sample information to replace. The final result depends on the LaTeX compilation.

Open the Otoolia editor

    

To compile without installing anything: open the Otoolia LaTeX editor, then “Project” → “Import a .zip”, or paste the code into a new file. The separate .sty is added to the project like any other file.

How to do it

  1. Set the title (“Test 3”) and the header information.
  2. Keep “Numbered exercises with points”: \exercise[4] shows “4 pts”.
  3. Tick lines or grid so students answer on the paper.
  4. Tick “Showable answers” to prepare the key in the same file.

Tips

Frequently asked questions

How do I show the answer key?

The preamble defines a switch: set it to true, or use “Student + key” in the Otoolia editor, which compiles both versions.

Is the total calculated?

Each exercise shows its points; the editor's “Exam” template also adds up the total automatically.

Do I need to install LaTeX?

No: “Compiled preview” compiles the document in your browser, and “Open in the Otoolia editor” opens the full project in the online LaTeX editor, with nothing to install.