Created
September 14, 2016 20:59
-
-
Save austinschwartz/01c508f34f67427988a598c3896bb0d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt]{extarticle} | |
\usepackage{extsizes} | |
\usepackage{fancyhdr} | |
\usepackage{extramarks} | |
\usepackage{amsmath} | |
\usepackage{amsthm} | |
\usepackage{amsfonts} | |
\usepackage{tikz} | |
\usepackage{enumitem} | |
\usepackage{algorithm} | |
\usepackage{algpseudocode} | |
\usepackage{listings} | |
\usepackage{enumitem} | |
\setlength{\headheight}{15pt} | |
\topmargin=-0.45in | |
\evensidemargin=0.2in | |
\oddsidemargin=-0.2in | |
\textwidth=6.5in | |
\textheight=9.0in | |
\headsep=0.25in | |
\linespread{1.1} | |
\pagestyle{fancy} | |
\lhead{\hmwkAuthorName} | |
\chead{\hmwkClass\ (\hmwkTitle)} | |
\rhead{\firstxmark} | |
\lfoot{\lastxmark} | |
\cfoot{\thepage} | |
\renewcommand\headrulewidth{0.4pt} | |
\renewcommand\footrulewidth{0.4pt} | |
\mathchardef\mhyphen="2D | |
\setlength\parindent{0pt} | |
\newcommand{\enterProblemHeader}[1]{ | |
\nobreak\extramarks{}{Problem \arabic{#1} continued on next page\ldots}\nobreak{} | |
\nobreak\extramarks{Problem \arabic{#1} (continued)}{Problem \arabic{#1} continued on next page\ldots}\nobreak{} | |
} | |
\newcommand{\exitProblemHeader}[1]{ | |
\nobreak\extramarks{Problem \arabic{#1} (continued)}{Problem \arabic{#1} continued on next page\ldots}\nobreak{} | |
\stepcounter{#1} | |
\nobreak\extramarks{Problem \arabic{#1}}{}\nobreak{} | |
} | |
\newcommand\floor[1]{\lfloor#1\rfloor} | |
\newcommand\ceil[1]{\lceil#1\rceil} | |
\setcounter{secnumdepth}{0} | |
\newcounter{partCounter} | |
\newcounter{homeworkProblemCounter} | |
\setcounter{homeworkProblemCounter}{1} | |
\nobreak\extramarks{Problem \arabic{homeworkProblemCounter}}{}\nobreak{} | |
\newenvironment{homeworkProblem}[1]{ | |
\section{\arabic{homeworkProblemCounter} #1 } | |
\setcounter{partCounter}{1} | |
\enterProblemHeader{homeworkProblemCounter} | |
}{ | |
\exitProblemHeader{homeworkProblemCounter} | |
} | |
\newcommand{\hmwkTitle}{Homework\ \#1} | |
\newcommand{\hmwkDueDate}{September 19, 2016} | |
\newcommand{\hmwkClass}{CS590-AI} | |
\newcommand{\hmwkClassInstructor}{Professor Bareinboim} | |
\newcommand{\hmwkAuthorName}{Austin Schwartz} | |
\title{ | |
\vspace{2in} | |
\textmd{\textbf{\hmwkClass:\ \hmwkTitle}}\\ | |
\normalsize\vspace{0.1in}\small{Due\ on\ \hmwkDueDate\/}\\ | |
\vspace{0.1in}\large{\textit{\hmwkClassInstructor\/}} | |
\vspace{3in} | |
} | |
\author{\textbf{\hmwkAuthorName}} | |
\date{} | |
\renewcommand{\part}[1]{\textbf{\large Part \Alph{partCounter}}\stepcounter{partCounter}\\} | |
% | |
% Various Helper Commands | |
% | |
% Useful for algorithms | |
\newcommand{\alg}[1]{\textsc{\bfseries \footnotesize #1}} | |
% For derivatives | |
\newcommand{\deriv}[1]{\frac{\mathrm{d}}{\mathrm{d}x} (#1)} | |
% For partial derivatives | |
\newcommand{\pderiv}[2]{\frac{\partial}{\partial #1} (#2)} | |
% Integral dx | |
\newcommand{\dx}{\mathrm{d}x} | |
% Alias for the Solution section header | |
\newcommand{\solution}{\textbf{\large Solution}} | |
% Probability commands: Expectation, Variance, Covariance, Bias | |
\newcommand{\E}{\mathrm{E}} | |
\newcommand{\Var}{\mathrm{Var}} | |
\newcommand{\Cov}{\mathrm{Cov}} | |
\newcommand{\Bias}{\mathrm{Bias}} | |
\begin{document} | |
\maketitle | |
\pagebreak | |
\begin{homeworkProblem}{Search Algorithms} | |
\end{homeworkProblem} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment