2022-12-04 01:27:12 -05:00
|
|
|
\ProvidesClass{simplenotes}
|
2022-12-04 16:01:19 -05:00
|
|
|
\LoadClass{article}
|
2022-12-04 01:27:12 -05:00
|
|
|
|
|
|
|
\RequirePackage[T1]{fontenc}
|
|
|
|
\RequirePackage{textcomp}
|
|
|
|
\RequirePackage{stmaryrd}
|
|
|
|
\SetSymbolFont{stmry}{bold}{U}{stmry}{m}{n}
|
|
|
|
\RequirePackage{url}
|
|
|
|
\RequirePackage{float}
|
|
|
|
\RequirePackage{booktabs}
|
|
|
|
\RequirePackage{emptypage}
|
|
|
|
\RequirePackage{subcaption}
|
|
|
|
\RequirePackage{multicol}
|
|
|
|
\RequirePackage{cancel}
|
|
|
|
\RequirePackage{mathrsfs}
|
|
|
|
\RequirePackage{minted}
|
|
|
|
\usemintedstyle{bw}
|
|
|
|
\RequirePackage{listings}
|
|
|
|
\RequirePackage{systeme}
|
|
|
|
\RequirePackage{amsfonts, amsmath, mathtools, amssymb, amsthm}
|
|
|
|
\RequirePackage{enumitem}
|
|
|
|
\RequirePackage{bm}
|
|
|
|
\RequirePackage{listings}
|
|
|
|
\RequirePackage{geometry}
|
|
|
|
\RequirePackage{graphicx}
|
|
|
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
|
|
|
\RequirePackage{bm}
|
2022-12-12 12:30:43 -05:00
|
|
|
\RequirePackage{siunitx}[=v2]
|
2022-12-04 01:27:12 -05:00
|
|
|
\RequirePackage{physics}
|
2022-12-12 12:30:43 -05:00
|
|
|
\RenewCommandCopy\qty\SI%
|
2022-12-04 01:27:12 -05:00
|
|
|
\RequirePackage{etoolbox}
|
|
|
|
\RequirePackage{xifthen}
|
|
|
|
\RequirePackage{import}
|
|
|
|
\RequirePackage{pdfpages}
|
|
|
|
\RequirePackage{fancyhdr}
|
|
|
|
\RequirePackage{tikz}
|
|
|
|
\RequirePackage{tikz-cd}
|
|
|
|
\RequirePackage{pgfplots}
|
|
|
|
|
|
|
|
\pgfplotsset{
|
|
|
|
compat=newest,
|
|
|
|
}
|
|
|
|
\usepgfplotslibrary{fillbetween}
|
|
|
|
\usetikzlibrary{patterns, intersections, angles, quotes, calc, positioning}
|
|
|
|
\usetikzlibrary{arrows.meta}
|
|
|
|
\RequirePackage{thmtools}
|
|
|
|
\RequirePackage[framemethod=TikZ]{mdframed}
|
|
|
|
\mdfsetup{skipabove=1em, skipbelow=0em, innertopmargin=5pt, innerbottommargin=6pt}
|
|
|
|
|
|
|
|
\newcommand\N{\ensuremath{\mathbb{N}}}
|
|
|
|
\newcommand\R{\ensuremath{\mathbb{R}}}
|
|
|
|
\newcommand\Z{\ensuremath{\mathbb{Z}}}
|
|
|
|
\newcommand\Q{\ensuremath{\mathbb{Q}}}
|
|
|
|
\newcommand\C{\ensuremath{\mathbb{C}}}
|
|
|
|
|
|
|
|
\let\sidesum\sum%
|
|
|
|
\let\sidelim\lim%
|
|
|
|
\renewcommand\sum{\sidesum\limits}
|
|
|
|
\renewcommand\lim{\sidelim\limits}
|
|
|
|
|
|
|
|
|
|
|
|
\theoremstyle{definition}
|
|
|
|
\makeatletter
|
|
|
|
|
|
|
|
\declaretheoremstyle[
|
|
|
|
headfont=\bfseries\sffamily, bodyfont=\normalfont,
|
|
|
|
mdframed={nobreak}
|
|
|
|
]{thmboxed}
|
|
|
|
|
|
|
|
\declaretheoremstyle[
|
|
|
|
headfont=\bfseries\sffamily, bodyfont=\normalfont,
|
|
|
|
]{thmsimple}
|
|
|
|
|
|
|
|
\declaretheoremstyle[
|
|
|
|
headfont=\bfseries\sffamily, bodyfont=\normalfont,
|
|
|
|
numbered=no,
|
|
|
|
mdframed={
|
|
|
|
rightline=false, topline=false, bottomline=false,
|
|
|
|
},
|
|
|
|
qed=\qedsymbol,
|
|
|
|
]{thmproof}
|
|
|
|
|
|
|
|
|
|
|
|
\declaretheoremstyle[
|
|
|
|
headfont=\bfseries\sffamily, bodyfont=\normalfont,
|
|
|
|
numbered=no,
|
|
|
|
mdframed={
|
|
|
|
rightline=false, topline=false, bottomline=false,
|
|
|
|
}
|
|
|
|
]{thmline}
|
|
|
|
|
|
|
|
\declaretheorem[style=thmboxed, name=Definition]{definition}
|
|
|
|
\declaretheorem[style=thmboxed, name=Lemma]{lemma}
|
|
|
|
\declaretheorem[style=thmboxed, name=Theorem]{theorem}
|
|
|
|
\declaretheorem[style=thmboxed, name=Proposition]{proposition}
|
|
|
|
\declaretheorem[style=thmboxed, numbered=no, name=Corollary]{corollary}
|
|
|
|
\declaretheorem[style=thmsimple, numbered=no, name=Example]{eg}
|
|
|
|
|
|
|
|
\AtEndEnvironment{eg}{\null\hfill$\diamond$}
|
|
|
|
|
|
|
|
\declaretheorem[style=thmproof, name=Proof]{thmproof}
|
|
|
|
\renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}}
|
2022-12-04 16:01:19 -05:00
|
|
|
\declaretheorem[style=thmline, numbered=no, name=Proof]{expl}
|
2022-12-04 01:27:12 -05:00
|
|
|
|
|
|
|
\declaretheorem[style=thmsimple, numbered=no, name=Remark]{remark}
|
|
|
|
\declaretheorem[style=thmsimple, numbered=no, name=Note]{note}
|
|
|
|
|
|
|
|
\newcommand{\exercise}[1]{%
|
|
|
|
\def\@exercise{#1}%
|
|
|
|
\subsection*{Exercise #1}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\subexercise}[1]{%
|
|
|
|
\subsubsection*{Exercise \@exercise.#1}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\sect}[1]{
|
|
|
|
\def\@section{#1}
|
2022-12-04 16:01:19 -05:00
|
|
|
\subsection{#1}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\chapter}[1]{
|
2022-12-04 01:27:12 -05:00
|
|
|
\section{#1}
|
|
|
|
}
|
2022-12-04 16:01:19 -05:00
|
|
|
\renewcommand{\part}[1]{}
|
|
|
|
|
|
|
|
\renewcommand{\tableofcontents}{}
|
|
|
|
|
|
|
|
\newcounter{chapter}
|
2022-12-04 01:27:12 -05:00
|
|
|
|
|
|
|
\def\@lecture{}
|
|
|
|
\newcommand{\lecture}[2]{
|
|
|
|
\ifthenelse{\isempty{#2}}{
|
|
|
|
\def\@lecture{Lecture #1}%
|
|
|
|
}{%
|
|
|
|
\def\@lecture{Lecture #1: #2}%
|
|
|
|
}%
|
|
|
|
\subsection*{\@lecture}
|
|
|
|
}
|
|
|
|
|
2022-12-04 16:01:19 -05:00
|
|
|
\newcommand{\fullpagebreak}{}
|
|
|
|
\renewcommand{\maketitle}{}
|
2022-12-04 01:27:12 -05:00
|
|
|
|
2022-12-04 16:32:16 -05:00
|
|
|
\newcommand{\toc}{\tableofcontents\raggedbottom}
|
|
|
|
|
2022-12-04 01:27:12 -05:00
|
|
|
\newcommand{\incfig}[1]{%
|
|
|
|
\def\svgwidth{\columnwidth}
|
2022-12-04 16:04:29 -05:00
|
|
|
\import{./figures/}{#1.pdf_tex}
|
2022-12-04 01:27:12 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
\newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos]{#1}}{\end{minted}}
|
|
|
|
|
|
|
|
\newcommand{\inlinecode}[2]{\mintinline{#1}|#2|}
|
|
|
|
|
|
|
|
\newcommand{\importcode}[2]{\VerbatimEnvironment\inputminted[frame=lines, framesep=7pt, linenos]{#1}{#2}}
|
|
|
|
|
|
|
|
\DeclareMathOperator{\GL}{GL}
|
|
|
|
\DeclareMathOperator{\Imm}{Im}
|
|
|
|
\DeclareMathOperator{\Ker}{Ker}
|
|
|
|
\DeclareMathOperator{\Aut}{Aut}
|
|
|
|
\DeclareMathOperator{\Hom}{Hom}
|
|
|
|
\DeclareMathOperator{\Hol}{Hol}
|
|
|
|
|
2022-12-12 00:13:40 -05:00
|
|
|
\newcommand{\specialquote}[2]
|
|
|
|
{
|
|
|
|
\begin{flushright}
|
|
|
|
|
|
|
|
\begin{tikzpicture}
|
|
|
|
\draw (0,0) node [right,text width=8.75cm] {
|
|
|
|
\begin{mdframed}[
|
|
|
|
linecolor=black,
|
|
|
|
rightline=false,
|
|
|
|
topline=false,
|
|
|
|
bottomline=false,
|
|
|
|
backgroundcolor=black!5,
|
|
|
|
linewidth=2pt
|
|
|
|
]
|
|
|
|
|
|
|
|
{``#1''}
|
|
|
|
\vspace{1mm}
|
|
|
|
|
|
|
|
\hfill-- \small{#2}
|
|
|
|
\end{mdframed}
|
|
|
|
};
|
|
|
|
\end{tikzpicture}
|
|
|
|
\end{flushright}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\specialnoquote}[2]
|
|
|
|
{
|
|
|
|
\begin{flushright}
|
|
|
|
|
|
|
|
\begin{tikzpicture}
|
|
|
|
\draw (0,0) node [right,text width=8.75cm] {
|
|
|
|
\begin{mdframed}[
|
|
|
|
linecolor=black,
|
|
|
|
rightline=false,
|
|
|
|
topline=false,
|
|
|
|
bottomline=false,
|
|
|
|
backgroundcolor=black!5,
|
|
|
|
linewidth=2pt
|
|
|
|
]
|
|
|
|
|
|
|
|
{#1}
|
|
|
|
\vspace{1mm}
|
|
|
|
|
|
|
|
\hfill-- \small{#2}
|
|
|
|
\end{mdframed}
|
|
|
|
};
|
|
|
|
\end{tikzpicture}
|
|
|
|
\end{flushright}
|
|
|
|
}
|
|
|
|
|
2022-12-04 01:27:12 -05:00
|
|
|
\makeatother
|
|
|
|
|