% 15-451 Latex Template
%\documentclass[11pt]{article} % use this if you are printing one side
\documentclass[11pt,twoside]{article} % use this if you are printing both sides


\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancyhdr}

\oddsidemargin0cm
\evensidemargin0cm
\topmargin-2cm
\textwidth16.5cm
\textheight23.5cm
\setlength{\headheight}{25.5pt}

\newenvironment{question}[1]
	{\vspace{.25in} \hrule\vspace{0.5em}
		\noindent{\bf #1} \vspace{0.5em}
		\hrule \vspace{.10in}}
        {\cleardoublepage}
\renewcommand{\part}[1] {\vspace{.10in} {\bf (#1)}}

\newcommand{\blankpage}{This page intentionally left blank \newpage}
\newcommand{\myname}{--NAME--}
\newcommand{\myandrew}{--ANDREW EMAIL--}
\newcommand{\myclass}{15-451}
\newcommand{\myhwnum}{--HW NUMBER--}
\newcommand{\mysection}{--RECITATION SECTION--}
\newcommand{\qed}{\hfill \ensuremath{\blacksquare}}
\newcommand{\comments}[1]{}

\setlength{\parindent}{0pt}
\setlength{\parskip}{5pt plus 1pt}

\pagestyle{fancyplain}
\lhead{HW\myhwnum\\ Rectiation \mysection}
\rhead{\myname\\ \myandrew}
\chead{\textbf{\myclass}}

\begin{document}

% To start a new solution, use the \begin{question}{<Question Name>} command.
% When you finish a solution, end the question with \end{question}.
% Use \part{<part section>} to separate your solution into parts.
% Example usage is below.

\begin{question}{Q1}
Definitions, lemmas, and the rest of your proof goes here.\\
\part{a}
You can also split the question into parts in case there are multiple parts to the question.\\
\part{b}
Here's part b.
\end{question}

\begin{question}{Q2}
Questions automatically begin on a new page.
\end{question}

\begin{question}{Q3}
Here's a qed box because I feel like it: \qed
\end{question}

\end{document}
