![Homework Template](https://writelatex.s3.amazonaws.com/published_ver/11218.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240831T231404Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240831/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=3f2fddc8a8370b45d74f7300ccfe4e7ee944cac02bf10af027aad490b863678f)
Homework Template
Forfatter
Caleb McWhorter
Sidst opdateret
5 år siden
Licens
Creative Commons CC BY 4.0
Resumé
A template for creating course homeworks.
![Homework Template](https://writelatex.s3.amazonaws.com/published_ver/11218.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240831T231404Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240831/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=3f2fddc8a8370b45d74f7300ccfe4e7ee944cac02bf10af027aad490b863678f)
\documentclass[11pt,letterpaper]{article}
\usepackage[lmargin=1in,rmargin=1in,tmargin=1in,bmargin=1in]{geometry}
% -------------------
% Packages
% -------------------
\usepackage{
amsmath, % Math Environments
amssymb, % Extended Symbols
enumerate, % Enumerate Environments
graphicx, % Include Images
lastpage, % Reference Lastpage
multicol, % Use Multi-columns
multirow % Use Multi-rows
}
% -------------------
% Font
% -------------------
\usepackage[T1]{fontenc}
\usepackage{charter}
% -------------------
% Commands
% -------------------
\newcommand{\homework}[2]{\noindent\textbf{Name: }\makebox[8cm]{\hrulefill} \hfill \textbf{MAT 999} \\ \textbf{Due: #2} \hfill \textbf{HW #1}\\}
\newcommand{\prob}{\noindent\textbf{Problem. }}
\newcounter{problem}
\newcommand{\problem}{
\stepcounter{problem}%
\noindent \textbf{Problem \theproblem. }%
}
\newcommand{\pointproblem}[1]{
\stepcounter{problem}%
\noindent \textbf{Problem \theproblem.} (#1 points)\,%
}
\newcommand{\pspace}{\par\vspace{\baselineskip}}
\newcommand{\ds}{\displaystyle}
% -------------------
% Header & Footer
% -------------------
\usepackage{fancyhdr}
\fancypagestyle{pages}{
%Headers
\fancyhead[L]{}
\fancyhead[C]{}
\fancyhead[R]{}
\renewcommand{\headrulewidth}{0pt}
%Footers
\fancyfoot[L]{}
\fancyfoot[C]{}
\fancyfoot[R]{\thepage \,of \pageref{LastPage}}
\renewcommand{\footrulewidth}{0.0pt}
}
\headheight=0pt
\footskip=14pt
\pagestyle{pages}
% -------------------
% Content
% -------------------
\begin{document}
\homework{\#}{MM/DD}
% Question
\prob This is an unnumbered problem. \pspace
% Question 1
\problem This is a numbered problem. \vspace{1.5cm}
% Question 2
\pointproblem{5} This is the second numbered problem. \vfill
% Question 3
\problem This problem has several parts:
\begin{enumerate}[(a)]
\item The first part.
\item The second part.
\item The third part.
\end{enumerate} \vspace{6cm}
\newpage
% Question 4
\problem Compute the following integral
\[
\int e^{-x^2} \;dx
\] \vspace{3cm}
% Question 5
\problem Explain why everyone loves Mathematics. \pspace
% Question 6
\problem Compute the integral $\ds \int \sin x^2 \;dx$. \vspace{2cm}
% Question 7
\problem In the space provided, prove the Riemann Hypothesis.
\end{document}