summaryrefslogtreecommitdiff
path: root/texmf/tex/latex/em.cls
diff options
context:
space:
mode:
authorottjk <joshott16@gmail.com>2023-12-31 15:01:25 -0500
committerottjk <joshott16@gmail.com>2023-12-31 15:01:25 -0500
commit99baacb1f33acaea45b00e6661c29302b01562a6 (patch)
treee0d6d6b87436ee15e745a89bcaf58f6daf6101e4 /texmf/tex/latex/em.cls
parentfa8aa006e1628b47a2b34b0b800f71bd3beece2d (diff)
downloaddotfiles-99baacb1f33acaea45b00e6661c29302b01562a6.tar.gz
dotfiles-99baacb1f33acaea45b00e6661c29302b01562a6.zip
sway and tex
Diffstat (limited to 'texmf/tex/latex/em.cls')
-rw-r--r--texmf/tex/latex/em.cls184
1 files changed, 184 insertions, 0 deletions
diff --git a/texmf/tex/latex/em.cls b/texmf/tex/latex/em.cls
new file mode 100644
index 0000000..2fee9c1
--- /dev/null
+++ b/texmf/tex/latex/em.cls
@@ -0,0 +1,184 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{assignment}[2023/08/21 v1.0 Assignment class]
+
+\LoadClass{article}
+
+\RequirePackage[utf8]{inputenc}
+\RequirePackage{graphicx}
+\RequirePackage{float}
+\RequirePackage{cancel}
+\RequirePackage{amsmath}
+\RequirePackage{amsfonts}
+\RequirePackage{mathtools}
+\RequirePackage{amsthm}
+\RequirePackage{amssymb}
+\RequirePackage{bm}
+\RequirePackage{thmtools}
+\RequirePackage{enumitem}
+\RequirePackage{fancyhdr}
+\RequirePackage[usenames,dvipsnames]{xcolor}
+\RequirePackage[framemethod=TikZ]{mdframed}
+\RequirePackage{ottmath}
+
+\newcommand\N{\ensuremath{\mathbb{N}}}
+\newcommand\R{\ensuremath{\mathbb{R}}}
+\newcommand\Z{\ensuremath{\mathbb{Z}}}
+\renewcommand\O{\ensuremath{\emptyset}}
+\newcommand\Q{\ensuremath{\mathbb{Q}}}
+\newcommand\C{\ensuremath{\mathbb{C}}}
+
+\let\implies\Rightarrow
+\let\impliedby\Leftarrow
+\let\iff\Leftrightarrow
+
+\definecolor{catblue}{RGB}{30, 102, 245}
+\definecolor{catlav}{RGB}{114, 135, 253}
+\definecolor{catmauve}{RGB}{136, 57, 239}
+\definecolor{catsapp}{RGB}{32, 159, 181}
+\definecolor{catpeach}{RGB}{254, 100, 11}
+\definecolor{catmaroon}{RGB}{230, 69, 83}
+
+\mdfsetup{skipabove=1em,skipbelow=0em}
+
+\colorlet{thmcolor}{catmauve}
+\declaretheoremstyle[
+ headfont=\sffamily\bfseries\color{thmcolor!80!black},
+ mdframed={
+ linewidth=2pt,
+ rightline=false, topline=false, bottomline=false,
+ linecolor=thmcolor, backgroundcolor=thmcolor!10,
+ }
+]{thmsty}
+
+\colorlet{excolor}{catlav}
+\declaretheoremstyle[
+ headfont=\sffamily\bfseries\color{excolor!80!black},
+ mdframed={
+ linewidth=2pt,
+ rightline=false, topline=false, bottomline=false,
+ linecolor=excolor, backgroundcolor=excolor!10,
+ }
+]{exsty}
+
+\colorlet{lemcolor}{catsapp}
+\declaretheoremstyle[
+ headfont=\sffamily\bfseries\color{lemcolor!80!black},
+ mdframed={
+ linewidth=2pt,
+ rightline=false, topline=false, bottomline=false,
+ linecolor=lemcolor, backgroundcolor=lemcolor!10,
+ }
+]{lemsty}
+
+\colorlet{defcolor}{catpeach}
+\declaretheoremstyle[
+ headfont=\sffamily\bfseries\color{defcolor!80!black},
+ mdframed={
+ linewidth=2pt,
+ rightline=false, topline=false, bottomline=false,
+ linecolor=defcolor, backgroundcolor=defcolor!10,
+ }
+]{defsty}
+
+\colorlet{propcolor}{catmaroon}
+\declaretheoremstyle[
+ headfont=\sffamily\bfseries\color{propcolor!80!black},
+ mdframed={
+ linewidth=2pt,
+ rightline=false, topline=false, bottomline=false,
+ linecolor=propcolor, backgroundcolor=propcolor!10,
+ }
+]{propsty}
+
+\colorlet{remcolor}{catblue}
+\declaretheoremstyle[
+ headfont=\sffamily\bfseries\color{remcolor!80!black},
+ mdframed={
+ linewidth=2pt,
+ rightline=false, topline=false, bottomline=false,
+ linecolor=remcolor,
+ }
+]{remsty}
+
+\newcommand\defprf[1]{
+\declaretheoremstyle[
+ headfont=\sffamily\bfseries\color{#1color!80!black},
+ mdframed={
+ linewidth=2pt,
+ rightline=false, topline=false, bottomline=false,
+ linecolor=#1color, backgroundcolor=#1color!3,
+ }, qed=\qedsymbol
+]{prf#1}
+\declaretheorem[style=prf#1,title=Proof,numbered=no]{proof#1}
+}
+
+\declaretheorem[style=remark]{case}
+\declaretheorem[style=remsty,numbered=no]{remark}
+\declaretheorem[style=thmsty,title=Theorem]{theoremenv}
+\declaretheorem[style=exsty,title=Example]{exampleenv}
+\declaretheorem[style=lemsty,title=Lemma]{lemmaenv}
+\declaretheorem[style=defsty,title=Defintion]{definitionenv}
+\declaretheorem[style=propsty,title=Proposition]{propositionenv}
+
+\newcommand\defblock[2]{
+ \newenvironment{#1}{\gdef\lastenv{#2}\begin{#1env}}{\end{#1env}}
+ \defprf{#2}
+}
+
+\defblock{theorem}{thm}
+\defblock{lemma}{lem}
+\defblock{example}{ex}
+\defblock{definition}{def}
+\defblock{proposition}{prop}
+
+\renewenvironment{proof}[1][\proofname]{\vspace{-10pt}\begin{proof\lastenv}}{\end{proof\lastenv}}
+
+\pagestyle{fancy}
+
+\makeatletter
+\newcommand*{\student}[1]{\gdef\@student{#1}%
+}
+\newcommand*{\@student}{(STUDENT)}
+\newcommand*{\teacher}[1]{\gdef\@teacher{#1}%
+}
+\newcommand*{\@teacher}{(TEACHER)}
+\newcommand*{\course}[1]{\gdef\@course{#1}%
+}
+\newcommand*{\@course}{(COURSE)}
+\newcommand*{\homeworkcount}[1]{\gdef\@homeworkcount{#1}%
+}
+\newcommand*{\@homeworkcount}{(N)}
+\newcommand*{\duedate}[1]{\gdef\@duedate{#1}%
+}
+\newcommand*{\@duedate}{(DUE DATE)}
+\newcommand*{\homeworktype}[1]{\gdef\@homeworktype{#1}%
+}
+\newcommand*{\@homeworktype}{(HOMEWORK TYPE)}
+\newcommand*{\chapter}[1]{\gdef\@chapter{#1}%
+}
+\newcommand*{\@chapter}{(CHAPTER)}
+
+\newcommand*\problem[2]{
+\begin{mdframed}[
+ linewidth=2pt,
+ rightline=false, topline=false, bottomline=false,
+ linecolor=propcolor, backgroundcolor=propcolor!10]
+ % \section*{test}
+ {\Large \textbf{\sffamily{Problem #1}}}
+\end{mdframed}
+\vspace{-10pt}
+\begin{mdframed}[
+ linewidth=2pt,
+ rightline=false, topline=false, bottomline=false,
+ linecolor=propcolor, backgroundcolor=propcolor!3]
+ #2
+\end{mdframed}
+}
+
+\rhead{ {\@course\unskip\strut}\ {\@homeworktype\unskip\strut}\ {\@homeworkcount\unskip\strut}\ --- {\@duedate\unskip\strut} }
+\lhead{\thepage\ {\@student\unskip\strut} }
+\title{ {\@course\unskip\strut}\\ Chapter {\@chapter\unskip\strut} }
+\author{ {\@student\unskip\strut} }
+\date{ {\@duedate\unskip\strut} }
+\makeatother
+