\usepackage{amsthm}
\usepackage[inline]{enumitem}
\usepackage{amsmath}
\usepackage[colorlinks=true]{hyperref}
\usepackage{tikz}
\usepackage{comment}
\usepackage{amssymb}

\newcommand*\circled[1]{%
\tikz[baseline=(C.base)]\node[draw,circle,inner sep=0.5pt](C) {#1};\!
}

\theoremstyle{definition}
\newtheorem{problem}[theorem]{Problem}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{example}[theorem]{Example}
\newtheorem{question}[theorem]{Question}

\newcommand{\marg}[1]{\normalsize{{\footnote{{#1}}}}{\marginpar[\hfill\tiny\thefootnote$\rightarrow$]{{$\leftarrow$\tiny\thefootnote}}}} 

\providecommand{\ifsoln}{\iffalse}

\ifsoln
\newenvironment{solution}{\begin{proof}[Solution.]}{\end{proof}}
\else
\excludecomment{solution}
\fi

\ifsoln
\newenvironment{comments}{\begin{proof}[Comments.]}{\end{proof}}
\else
\excludecomment{comments}
\fi


\newcommand{\hw}[1]{{\centering {\Large \classname \\ \vskip 10pt \Large Assignment \#{#1}} \vskip 20pt}}
\newcommand{\ho}[1]{{\centering {\Large \classname \\ \vskip 10pt \Large Handout \#{#1}} \vskip 20pt}}
\newcommand{\bonus}[1]{{\centering {\Large \classname \\ \vskip 10pt \Large Bonus \#{#1}} \vskip 20pt}}
%\newcommand{\soln}[1]{{\centering {\Large \classname \\ \vskip 10pt \Large Assignment \#{#1}:  Solutions} \vskip 20pt}}
\newcommand{\quiz}[1]{\pagestyle{empty} {\centering {\Large \classname \\ \vskip 10pt \Large Quiz \#{#1}} \vskip 20pt {\Large Name:} \hskip3.5in {\Large Student number:} \vskip20pt }}
\newcommand{\exam}[1]{{\centering {\LARGE \classname \\ \vskip 10pt \LARGE Exam \#{#1}} \vskip 20pt} \pagestyle{empty} \thispagestyle{empty}}
\newcommand{\exampractice}[1]{{\centering {\Large \classname \\ \vskip 10pt \Large Exam \#{#1} -- Rejected problems} \vskip 20pt}}
\newcommand{\due}[1]{{\centering  \parbox{.7\textwidth}{#1} \vskip 1cm}}

