Exercise sheet with solutions (xsim)
An exercise sheet with points per exercise, a grading table and the solutions collected at the end with xsim.
Create an account to use this
- Category
- Teaching
- Document class
article(article.cls) — ships with TeX Live- Workflow
- Assignment / problem set — no revision rounds
- Author
- Clemens Niederberger
- Source
- CTAN
- Licence
- xsim.sty: The LaTeX Project Public License 1.3c. Sample text: Manulyx, CC0 1.0 (free to use, no conditions).
What you get
main.tex— the file that is compiled · 2 KB
These become your files. Editing them afterwards changes your project and nothing else — a project owns its files from the moment it is made.
Link to this template. Send it to a student or co-author: it starts a new paper in this template, through sign-up if they need an account.
https://manulyx.com/start/ctan-teaching-xsim
2 venues use this class
Manulyx keeps one template per document class and relates every venue to it, rather than one near-identical card per journal. Searching the gallery for any of these names finds this template.
Journal of Machine Learning Research, Transactions on Machine Learning Research
- Journal of Machine Learning Research
- Transactions on Machine Learning Research
Source
main.tex — the file that is compiled · 2 KB
\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage[margin=2.5cm]{geometry}
\usepackage{xsim}
% Solutions are collected and printed by \printsolutions; to print each one right after
% its exercise instead, use: \xsimsetup{solution/print=true}
\title{Your paper}
\author{Course Code -- Course Name}
\date{Week 5}
\begin{document}
\maketitle
\section*{Exercises}
\begin{exercise}[subtitle={Derivatives}, points=4]
Differentiate $f(x) = x^{2}\ln x$ and find where $f'(x) = 0$ for $x > 0$.
\end{exercise}
\begin{solution}
$f'(x) = 2x\ln x + x = x(2\ln x + 1)$, which vanishes for $x = e^{-1/2}$.
\end{solution}
\begin{exercise}[subtitle={Data}, points=3]
The table lists the population $P$ of a town, in thousands.
\begin{center}
\begin{tabular}{@{}lccc@{}}
\toprule
Year & 2000 & 2010 & 2020 \\
\midrule
$P$ & 20 & 30 & 45 \\
\bottomrule
\end{tabular}
\end{center}
Show that the growth is approximately exponential, $P(t) = P_0\,r^{t}$, and estimate the
ten-year factor $r$.
\end{exercise}
\begin{solution}
The ratios $30/20 = 1.5$ and $45/30 = 1.5$ are equal, so the growth is exponential with
$r = 1.5$ per decade.
\end{solution}
\begin{exercise}[subtitle={Geometry}, points=3]
The figure shows a square of side $a$ with a quarter circle of radius $a$. Find the shaded
area.
\begin{center}
\begin{tikzpicture}[scale=1.5]
\fill[gray!30] (0,0) -- (1,0) arc (0:90:1) -- cycle;
\draw (0,0) rectangle (1,1);
\draw (1,0) arc (0:90:1);
\node[below] at (0.5,0) {$a$};
\end{tikzpicture}
\end{center}
\end{exercise}
\begin{solution}
The shaded quarter disc has area
\begin{equation*}
A = \frac{\pi a^{2}}{4}.
\end{equation*}
\end{solution}
\section*{Grading}
\gradingtable[type=exercise]
\newpage
\section*{Solutions}
\printsolutions
\end{document}
The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗