\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{lolgosoln} %[Spring 07 GTI Assignments]

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax

\LoadClass[11pt, letterpaper]{article}

\RequirePackage{fullpage}

\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{amscd}
\usepackage{amsmath}
\usepackage{xspace}
\usepackage{theorem}
\usepackage{float}
%\usepackage{times} % enable these two packages and disable the sfdefault 
                    % command to switch to sans-serif
%\usepackage[T1]{fontenc}
\usepackage{graphicx}
%\usepackage{sfmath} % enable this if you really want...
\renewcommand{\familydefault}{\sfdefault}

\RequirePackage[usenames]{color}

\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\topmargin}{-.25in}
\setlength{\textheight}{9in}
\setlength{\headsep}{0pt}
\setlength{\marginparwidth}{59pt}

% In case you need to adjust margins:
\topmargin=-0.45in      %
\evensidemargin=0in     %
\oddsidemargin=0in      %
\textwidth=6.5in        %
\textheight=9.5in       %
\headsep=0.25in         %

\setlength{\parindent}{0pt}
\setlength{\parskip}{5pt plus 1pt}
\setlength{\abovedisplayskip}{8pt plus 3pt minus 6pt}
\setlength{\intextsep}{15pt plus 3pt minus 6pt}

\renewcommand{\section}{\@startsection{section}{1}{0mm}%
                                  {0ex}%
                                  {0.1ex plus .2ex}%
                                  {\normalfont\Large\bfseries}}%

%
% Default parameter values
%

\newcommand{\TheDueDate}{Katilsday, February 31)}
\newcommand{\TheHomeworkNumber}{$-\infty$}
\newcommand{\TheDirections}{Write up carefully argued solutions to the following 
problems. The first task is to be complete and correct. The more subtle task is 
to keep it simple and succinct. Your solution should be clear enough that it 
should explain to someone who does not already understand the answer 
why it works. You may use any results proven in lecture without proof. Anything else must be argued rigorously.  Unless otherwise specified, all answers are
expected to be given in closed form.}

\newcommand{\duedate}[1]{\renewcommand{\TheDueDate}{#1}}
\newcommand{\homeworknumber}[1]{\renewcommand{\TheHomeworkNumber}{#1}}
\newcommand{\directions}[1]{\renewcommand{\TheDirections}{#1}}

\definecolor{maroon}{rgb}{.6902,.0078,.0039}

%
% Make the homework header
%

\newcommand{\MakeHeader}[1]{
	{\color{maroon} 
		{\noindent 
			\Large \textbf{\textsf{15-451}}
		} 
		{\Large 
			\noindent \textbf{\textsf{Homework #1 Solutions}}
		} \\
	}
}

%
% Make the section headers
%

\newcounter{TheQuestionNumber}

\newenvironment{question}[2] 
{
	{\textbf
		{\textsf 
			{
				\addtocounter{TheQuestionNumber}{1}
				\section*{\color{maroon} \arabic{TheQuestionNumber}. #1 (#2 points)}
			}
		}
	}
}

\AtBeginDocument{\MakeHeader{\TheHomeworkNumber}}

\newcommand{\ps@mine}{
	\renewcommand{\@oddhead}{
		\text{Hi!}
		\renewcommand{\headrulewidth}{0.4pt}
		\renewcommand{\footrulewidth}{0.4pt}
	}
}


\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}

\newtheorem{thm}{Theorem}