Random problem sheet (probsoln)
A problem sheet that draws problems at random from a problem file, followed by the same problems with their solutions.
- Category
- Teaching
- Document class
article(article.cls) — ships with TeX Live- Workflow
- Assignment / problem set — no revision rounds
- Author
- Nicola Talbot
- Source
- CTAN
- Licence
- probsoln.sty: The LaTeX Project Public License 1.3. Sample text: Manulyx, CC0 1.0 (free to use, no conditions).
What you get
main.tex— the file that is compiled · 1 KBproblems-derivatives.tex· 519 Bproblems-applications.tex· 689 B
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-probsoln
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 · 1 KB
\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{probsoln}
% A fixed seed selects the same problems on every compile; change it (or use \year)
% to draw a new sheet.
\PSNrandseed{2026}
% Three problems chosen at random from problems-derivatives.tex, and all of
% problems-applications.tex.
\loadrandomproblems[derivatives]{3}{problems-derivatives}
\loadallproblems[applications]{problems-applications}
\title{Your paper}
\author{Course Code -- Course Name}
\date{Problem sheet 2}
\begin{document}
\maketitle
\begin{enumerate}
\item Differentiate the following functions.
\begin{enumerate}
\foreachproblem[derivatives]{\item \thisproblem}
\end{enumerate}
\foreachproblem[applications]{\item \thisproblem}
\end{enumerate}
\newpage
\section*{Solutions}
\showanswers
\begin{enumerate}
\item
\begin{enumerate}
\foreachproblem[derivatives]{\item \thisproblem}
\end{enumerate}
\foreachproblem[applications]{\item \thisproblem}
\end{enumerate}
\end{document}
problems-derivatives.tex · 519 B
Loading…
problems-applications.tex · 689 B
Loading…
The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗