Worksheet LaTeX template with solutions

A good worksheet needs two versions: the sheet your students receive and the answer key you keep. This LaTeX template produces both from the same file. Every exercise carries its points, a difficulty rating and an optional hint, and the worked solutions appear in a shaded box only when you switch them on. The example is a calculus problem set with correct, fully worked solutions, so you can see how each part is written before replacing it with your own.

First page of the Worksheet LaTeX template

Open editor Back to templates

What's included

How to customize it

Change the course, sheet number, title and instructor in the "Sheet details" block at the top of main.tex. To get the answer key, replace \solutionsfalse with \solutionstrue and compile again; the title also changes to "Solutions". Add an exercise by copying an \begin{exercise}{points}{difficulty} block and writing your statement, an optional \hint and a solution. The fixed words (Exercise, Hint, Difficulty) are macros, so you can translate them in one place.

More templates