HW Template
Author
John Connuck
Last Updated
11 years ago
License
Creative Commons CC BY 4.0
Abstract
Simple homework template.
\documentclass[12pt,letterpaper]{article}
\usepackage{amsmath,amsthm,amsfonts,amssymb,amscd}
\usepackage{fullpage}
\usepackage{lastpage}
\usepackage{enumerate}
\usepackage{fancyhdr}
\usepackage{mathrsfs}
\usepackage[margin=3cm]{geometry}
\setlength{\parindent}{0.0in}
\setlength{\parskip}{0.05in}
\title{HW Template}
% Edit these as appropriate
\newcommand\course{CS 19}
\newcommand\semester{fall 2014} % <-- current semester
\newcommand\asgnname{1} % <-- assignment name
\newcommand\yourname{John Smith} % <-- your name
\newcommand\login{jsmith} % <-- your CS login
\newenvironment{answer}[1]{
\subsubsection*{Problem \asgnname.#1}
}{\newpage}
\pagestyle{fancyplain}
\headheight 35pt
\lhead{\yourname\ (\login)\\\course\ --- \semester}
\chead{\textbf{\Large Homework \asgnname}}
\rhead{\today}
\headsep 10pt
\begin{document}
\begin{answer}{1}
\begin{enumerate}[a.]
\item First item
\end{enumerate}
\end{answer}
\begin{answer}{2}
Answer to problem 2 goes here, etc.
\end{answer}
\end{document}