Assignment / problem set
Numbered problems with a solution block you can switch off for the handout.
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
- Manulyx
- Licence
- Manulyx's template: CC0 1.0 (free to use, no conditions). The article class keeps its own licence (usually the LaTeX Project Public License).
What you get
main.tex— the file that is compiled · 1004 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/teaching-assignment
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 · 1004 B
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amssymb}
\usepackage{graphicx}
\usepackage{enumitem}
% Change to \showsolutionsfalse for the version you hand out.
\newif\ifshowsolutions
\showsolutionstrue
\newcounter{problem}
\newenvironment{problem}[1][]{%
\refstepcounter{problem}\medskip\noindent%
\textbf{Problem \theproblem}\ifx\relax#1\relax\else\ (#1)\fi.\ %
}{\medskip}
\newenvironment{solution}{%
\ifshowsolutions\par\noindent\textit{Solution.}\ \else\expandafter\comment\fi%
}{\ifshowsolutions\par\fi}
\usepackage{verbatim} % provides \comment, used to drop solutions
\title{Your paper}
\author{Course · Student Name}
\date{Due \today}
\begin{document}
\maketitle
\begin{problem}[warm-up]
State the problem here.
\end{problem}
\begin{solution}
The working, step by step.
\[
E = mc^2
\]
\end{solution}
\begin{problem}
A second problem.
\end{problem}
\begin{solution}
Text.
\end{solution}
\end{document}
The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗