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.

What's included
- A header with course, sheet number, title, instructor and due date, plus name and date lines for the student
- A ready-made exercise environment with points, a difficulty rating and automatic numbering
- Optional hints and sub-questions (a), (b), (c)
- A solution environment that is shown or hidden with a single switch
- An automatic total of points at the end of the sheet
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.