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.
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
- Set the title (“Test 3”) and the header information.
- Keep “Numbered exercises with points”:
\exercise[4]shows “4 pts”. - Tick lines or grid so students answer on the paper.
- Tick “Showable answers” to prepare the key in the same file.
Tips
- The answer key compiles from the same file: one document to maintain.
- In the Otoolia editor, “Student + key” makes both PDFs at once.
- A “Test” or “Key” watermark avoids mix-ups when printing.
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.