
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{math-hw}

\RequirePackage{amsmath}
\RequirePackage{amsthm}
\RequirePackage{amssymb}
\RequirePackage{bbm} %blackboard bold 1
\RequirePackage{verbatim}
\RequirePackage{tikz-cd}
\RequirePackage{calligra}
\RequirePackage{mathrsfs}

\RequirePackage{parskip}
\RequirePackage{titling}
\RequirePackage{fancyhdr}
\RequirePackage{titlesec}
\RequirePackage{xcolor}
\RequirePackage{hyperref}

%%% shortcuts for fonts
\newcommand{\mc}[1]{\mathcal{#1}}
\newcommand{\mf}[1]{\mathfrak{#1}}
\newcommand{\cat}[1]{\textbf{#1}}
\newcommand{\bb}[1]{\mathbb{#1}}
\newcommand{\bbm}[1]{\mathbbm{#1}} % blackboard bold for digits!

%%%% shortcuts for overline/underline etc
\newcommand{\olin}[1]{\overline{#1}}
\newcommand{\ulin}[1]{\underline{#1}}
\newcommand{\wt}[1]{\widetilde{#1}}
\newcommand{\wh}[1]{\widehat{#1}}
\newcommand{\inv}{^{-1}}

%%% Individual common special symbols
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\vep}{\varepsilon}
\newcommand{\vphi}{\varphi}


\let\hom\relax
\DeclareMathOperator{\hom}{Hom}
\DeclareMathOperator{\Tor}{Tor}
\DeclareMathOperator{\Ext}{Ext}
\DeclareMathOperator{\im}{im}
\DeclareMathOperator{\adj}{adj}
\DeclareMathOperator{\coker}{coker}
\DeclareMathOperator{\depth}{depth}
\DeclareMathOperator{\id}{id}
\DeclareMathOperator{\Id}{Id}
\DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\SL}{SL}
\DeclareMathOperator{\rk}{rk}
\DeclareMathOperator{\pd}{pd}
\DeclareMathOperator{\colim}{colim}
\DeclareMathOperator{\codim}{codim}
\DeclareMathOperator{\supp}{supp}
\DeclareMathOperator{\Spec}{Spec}

\DeclareMathOperator{\gr}{gr}
\DeclareMathOperator{\Frac}{Frac}

\DeclareMathOperator{\lcm}{lcm}
\DeclareMathOperator{\ann}{ann}
\DeclareMathOperator{\Ann}{Ann}
\DeclareMathOperator{\Ass}{Ass}
\DeclareMathOperator{\Supp}{Supp}
\DeclareMathOperator{\Hilb}{Hilb}
\DeclareMathOperator{\Set}{\textbf{Set}}
\DeclareMathOperator{\Hom}{\mathscr{H}\text{\kern -3pt {\calligra\large om}}\,}

\tikzset{
    vert/.style={anchor=south, rotate=90, inner sep=.5mm}
}

\titleformat{\subsection}[runin]
  {\normalfont\large\bfseries}{\thesubsection}{1em}{}

\newtheorem{lemma}{Lemma}
\newtheorem{theorem}{Theorem}
\newtheorem{prop}{Proposition}
\newtheorem{remark}{Remark}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Solution macros

\RequirePackage{version}
\definecolor{soln}{RGB}{10,20,200}
\definecolor{comm}{RGB}{200,50,10}

\newenvironment{solnenv}{
\color{soln}\textbf{Solution:}
}{
\color{black}
}

\newenvironment{commenv}{
\color{comm}\textbf{Comment:}
}{
\color{black}
}

