\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{3100Quiz}[2017/01/06 3100 Quiz Package] \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage[utf8]{inputenc} \usepackage[dvipsnames]{xcolor} \usepackage{cancel} % Use block paragraphs \parindent=0pt \parskip=7pt % Extend width of text \setlength{\textwidth}{405pt} \setlength{\oddsidemargin}{32pt} \setlength{\evensidemargin}{32pt} % Heading \newcommand{\quizheading}[2] % #1=quiz number, #2=student name { {\large\textbf{MATH 3100}}\hfill{\large#2} \par{\large Quiz #1}\hfill\today\par\bigskip } % Solution color \definecolor{soln-color}{rgb}{0.2,0.3,0.1} % Environment definitions \newenvironment{exercise}[1]{\textbf{#1}\quad}{\par\medskip} \newenvironment{hint}{\par\smallskip Hint:\quad}{} \newenvironment{solution} {\color{soln-color}} {\par\bigskip\bigskip} \renewenvironment{proof}{\emph{Proof}:\quad}{\hfill\qed} \newenvironment{disproof}{\emph{Disproof}:\quad}{\hfill\qed} \newenvironment{enum} {\begin{enumerate}\renewcommand{\theenumi}{{\rm(\roman{enumi})}} \renewcommand{\labelenumi}{\theenumi}} {\end{enumerate}} \newenvironment{alphenum} {\begin{enumerate}\renewcommand{\theenumi}{{\rm(\alph{enumi})}} \renewcommand{\labelenumi}{\theenumi}} {\end{enumerate}} % Command definitions \newcommand{\R}{\mathbf R} \newcommand{\Z}{\mathbf Z} \newcommand{\N}{\mathbf N} \newcommand{\Q}{\mathbf Q} \newcommand\D{{\mathbf D}} \newcommand\F{{\mathbf F}} \newcommand{\Mat}{\operatorname{Mat}} \newcommand{\im}{\operatorname{im}} \newcommand\lcm{\operatorname{lcm}} \newcommand{\A}{\mathcal A} \renewcommand\P{{\mathcal P}} \newcommand{\onlyif}{\ \Rightarrow\ } \newcommand{\bstatement}[1]{\,[\,#1\,]\,} \newcommand{\mypar}[1]{\parbox[t]{.75\linewidth}{#1}} %For negating for-every and there-exists examples and exercises.