From 14d6ddd06594f3b89d40e3322cfc6cd774b58035 Mon Sep 17 00:00:00 2001 From: EvilMuffinHa Date: Sun, 18 Dec 2022 16:38:23 -0500 Subject: [PATCH] nocolor --- tex/booknotes.cls | 355 +++++++++++++++++++++++++-------------- tex/handout.cls | 356 ++++++++++++++++++++++++++-------------- tex/notes.cls | 355 +++++++++++++++++++++++++-------------- tex/simplebooknotes.cls | 209 ----------------------- tex/simplenotes.cls | 216 ------------------------ 5 files changed, 689 insertions(+), 802 deletions(-) delete mode 100644 tex/simplebooknotes.cls delete mode 100644 tex/simplenotes.cls diff --git a/tex/booknotes.cls b/tex/booknotes.cls index 619226d..1660dad 100644 --- a/tex/booknotes.cls +++ b/tex/booknotes.cls @@ -15,7 +15,6 @@ \RequirePackage{cancel} \RequirePackage{mathrsfs} \RequirePackage{minted} -\usemintedstyle{monokai} \RequirePackage{listings} \RequirePackage{systeme} \RequirePackage{amsfonts, amsmath, mathtools, amssymb, amsthm} @@ -63,78 +62,242 @@ \theoremstyle{definition} \makeatletter -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{ForestGreen!70!black}, bodyfont=\normalfont, - mdframed={ - linecolor=ForestGreen, - backgroundcolor=ForestGreen!5, +\@ifclasswith{booknotes}{nocolor}{ + + \usemintedstyle{bw} + \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}} + \declaretheorem[style=thmline, numbered=no, name=Proof]{expl} + + \declaretheorem[style=thmsimple, numbered=no, name=Remark]{remark} + \declaretheorem[style=thmsimple, numbered=no, name=Note]{note} + + + \newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos, breaklines]{#1}}{\end{minted}} + + \newcommand{\inlinecode}[2]{\mintinline{#1}|#2|} + + \newcommand{\importcode}[2]{\inputminted[frame=lines, framesep=7pt, linenos, breaklines]{#1}{#2}} + + + \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, + linewidth=2pt + ] + + {``#1''} + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmdef} -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, - mdframed={ - linecolor=RawSienna, - backgroundcolor=RawSienna!5, + \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, + linewidth=2pt + ] + + {#1} + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmthm} -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=NavyBlue, backgroundcolor=NavyBlue!5, +}{ + + \usemintedstyle{monokai} + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{ForestGreen!70!black}, bodyfont=\normalfont, + mdframed={ + linecolor=ForestGreen, + backgroundcolor=ForestGreen!5, + } + ]{thmdef} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, + mdframed={ + linecolor=RawSienna, + backgroundcolor=RawSienna!5, + } + ]{thmthm} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=NavyBlue, backgroundcolor=NavyBlue!5, + } + ]{thmexample} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=Black, backgroundcolor=Black!5, + } + ]{thmremark} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=RawSienna, + }, + qed=\qedsymbol% + ]{thmproof} + + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=NavyBlue, + }, + qed=\qedsymbol% + ]{thmexpl} + + + \declaretheorem[style=thmdef, name=Definition]{definition} + \declaretheorem[style=thmthm, name=Lemma]{lemma} + \declaretheorem[style=thmthm, name=Theorem]{theorem} + \declaretheorem[style=thmthm, name=Proposition]{proposition} + \declaretheorem[style=thmthm, numbered=no, name=Corollary]{corollary} + \declaretheorem[style=thmexample, numbered=no, name=Example]{eg} + + + \declaretheorem[style=thmproof, name=Proof]{thmproof} + \renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}} + \declaretheorem[style=thmexpl, numbered=no, name=Proof]{thmexpl} + \newenvironment{expl}[1][]{\vspace{-12pt}\begin{thmexpl}}{\end{thmexpl}} + + + \declaretheorem[style=thmremark, numbered=no, name=Remark]{remark} + \declaretheorem[style=thmremark, numbered=no, name=Note]{note} + \definecolor{MintedBg}{RGB}{38, 38, 38} + + + \newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[breaklines, bgcolor=MintedBg]{#1}}{\end{minted}} + + \newcommand{\inlinecode}[2]{\color{white}\mintinline[breaklines, bgcolor=MintedBg]{#1}|#2|} + + \newcommand{\importcode}[2]{\color{white}\inputminted[breaklines, bgcolor=MintedBg]{#1}{#2}} + + + \newcommand{\specialquote}[2] + { + \begin{flushright} + + \begin{tikzpicture} + \draw (0,0) node [right,text width=8.75cm] { + \begin{mdframed}[ + linecolor=RoyalPurple, + rightline=false, + topline=false, + bottomline=false, + backgroundcolor=RoyalPurple!5, + linewidth=2pt + ] + ``#1'' + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmexample} -\declaretheoremstyle[ - headfont=\bfseries\sffamily, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=Black, backgroundcolor=Black!5, + \newcommand{\specialnoquote}[2] + { + \begin{flushright} + + \begin{tikzpicture} + \draw (0,0) node [right,text width=8.75cm] { + \begin{mdframed}[ + linecolor=RoyalPurple, + rightline=false, + topline=false, + bottomline=false, + backgroundcolor=RoyalPurple!5, + linewidth=2pt + ] + + {#1} + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmremark} - -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=RawSienna, - }, - qed=\qedsymbol% -]{thmproof} - - -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=NavyBlue, - }, - qed=\qedsymbol% -]{thmexpl} - - -\declaretheorem[style=thmdef, name=Definition]{definition} -\declaretheorem[style=thmthm, name=Lemma]{lemma} -\declaretheorem[style=thmthm, name=Theorem]{theorem} -\declaretheorem[style=thmthm, name=Proposition]{proposition} -\declaretheorem[style=thmthm, numbered=no, name=Corollary]{corollary} -\declaretheorem[style=thmexample, numbered=no, name=Example]{eg} - - -\declaretheorem[style=thmproof, name=Proof]{thmproof} -\renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}} -\declaretheorem[style=thmexpl, numbered=no, name=Proof]{thmexpl} -\newenvironment{expl}[1][]{\vspace{-12pt}\begin{thmexpl}}{\end{thmexpl}} - - -\declaretheorem[style=thmremark, numbered=no, name=Remark]{remark} -\declaretheorem[style=thmremark, numbered=no, name=Note]{note} +} \newcommand{\exercise}[1]{% \def\@exercise{#1}% @@ -173,17 +336,6 @@ \import{./figures/}{#1.pdf_tex} } - -\definecolor{MintedBg}{RGB}{38, 38, 38} - - - -\newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[breaklines, bgcolor=MintedBg]{#1}}{\end{minted}} - -\newcommand{\inlinecode}[2]{\color{white}\mintinline[breaklines, bgcolor=MintedBg]{#1}|#2|} - -\newcommand{\importcode}[2]{\color{white}\inputminted[breaklines, bgcolor=MintedBg]{#1}{#2}} - \DeclareMathOperator{\GL}{GL} \DeclareMathOperator{\Imm}{Im} \DeclareMathOperator{\Ker}{Ker} @@ -191,54 +343,5 @@ \DeclareMathOperator{\Hom}{Hom} \DeclareMathOperator{\Hol}{Hol} -\newcommand{\specialquote}[2] -{ - \begin{flushright} - - \begin{tikzpicture} - \draw (0,0) node [right,text width=8.75cm] { - \begin{mdframed}[ - linecolor=RoyalPurple, - rightline=false, - topline=false, - bottomline=false, - backgroundcolor=RoyalPurple!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=RoyalPurple, - rightline=false, - topline=false, - bottomline=false, - backgroundcolor=RoyalPurple!5, - linewidth=2pt - ] - - {#1} - \vspace{1mm} - - \hfill-- \small{#2} - \end{mdframed} - }; - \end{tikzpicture} - \end{flushright} -} - \makeatother diff --git a/tex/handout.cls b/tex/handout.cls index 26cf5cc..d85db16 100644 --- a/tex/handout.cls +++ b/tex/handout.cls @@ -14,7 +14,6 @@ \RequirePackage{cancel} \RequirePackage{mathrsfs} \RequirePackage{minted} -\usemintedstyle{monokai} \RequirePackage{listings} \RequirePackage{systeme} \RequirePackage{amsfonts, amsmath, mathtools, amssymb, amsthm} @@ -63,80 +62,245 @@ \theoremstyle{definition} \makeatletter +\@ifclasswith{handout}{nocolor}{ -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{ForestGreen!70!black}, bodyfont=\normalfont, - mdframed={ - linecolor=ForestGreen, - backgroundcolor=ForestGreen!5, + \usemintedstyle{bw} + \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} + \declaretheorem[name=Problem]{prob} + + \AtEndEnvironment{eg}{\null\hfill$\diamond$} + + \declaretheorem[style=thmproof, name=Proof]{thmproof} + \renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}} + \declaretheorem[style=thmline, numbered=no, name=Proof]{expl} + + \declaretheorem[style=thmsimple, numbered=no, name=Remark]{remark} + \declaretheorem[style=thmsimple, numbered=no, name=Note]{note} + + + \newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos, breaklines]{#1}}{\end{minted}} + + \newcommand{\inlinecode}[2]{\mintinline{#1}|#2|} + + \newcommand{\importcode}[2]{\inputminted[frame=lines, framesep=7pt, linenos, breaklines]{#1}{#2}} + + + \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, + linewidth=2pt + ] + + {``#1''} + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmdef} -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, - mdframed={ - linecolor=RawSienna, - backgroundcolor=RawSienna!5, + \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, + linewidth=2pt + ] + + {#1} + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmthm} -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=NavyBlue, backgroundcolor=NavyBlue!5, +}{ + + \usemintedstyle{monokai} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{ForestGreen!70!black}, bodyfont=\normalfont, + mdframed={ + linecolor=ForestGreen, + backgroundcolor=ForestGreen!5, + } + ]{thmdef} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, + mdframed={ + linecolor=RawSienna, + backgroundcolor=RawSienna!5, + } + ]{thmthm} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=NavyBlue, backgroundcolor=NavyBlue!5, + } + ]{thmexample} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=Black, backgroundcolor=Black!5, + } + ]{thmremark} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=RawSienna, + }, + qed=\qedsymbol% + ]{thmproof} + + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=NavyBlue, + }, + qed=\qedsymbol% + ]{thmexpl} + + + \declaretheorem[style=thmdef, name=Definition]{definition} + \declaretheorem[style=thmthm, name=Lemma]{lemma} + \declaretheorem[style=thmthm, name=Theorem]{theorem} + \declaretheorem[style=thmthm, name=Proposition]{proposition} + \declaretheorem[style=thmthm, numbered=no, name=Corollary]{corollary} + \declaretheorem[style=thmexample, numbered=no, name=Example]{eg} + \declaretheorem[name=Problem]{prob} + + + \declaretheorem[style=thmproof, name=Proof]{thmproof} + \renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}} + \declaretheorem[style=thmexpl, numbered=no, name=Proof]{thmexpl} + \newenvironment{expl}[1][]{\vspace{-12pt}\begin{thmexpl}}{\end{thmexpl}} + + \declaretheorem[style=thmremark, numbered=no, name=Remark]{remark} + \declaretheorem[style=thmremark, numbered=no, name=Note]{note} + + \definecolor{MintedBg}{RGB}{38, 38, 38} + + \newcommand{\toc}{\tableofcontents\raggedbottom} + + \newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[breaklines, bgcolor=MintedBg]{#1}}{\end{minted}} + + \newcommand{\inlinecode}[2]{\color{white}\mintinline[breaklines, bgcolor=MintedBg]{#1}|#2|} + + \newcommand{\importcode}[2]{\color{white}\inputminted[breaklines, bgcolor=MintedBg]{#1}{#2}} + + \newcommand{\specialquote}[2] + { + \begin{flushright} + + \begin{tikzpicture} + \draw (0,0) node [right,text width=8.75cm] { + \begin{mdframed}[ + linecolor=RoyalPurple, + rightline=false, + topline=false, + bottomline=false, + backgroundcolor=RoyalPurple!5, + linewidth=2pt + ] + ``#1'' + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmexample} -\declaretheoremstyle[ - headfont=\bfseries\sffamily, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=Black, backgroundcolor=Black!5, + \newcommand{\specialnoquote}[2] + { + \begin{flushright} + + \begin{tikzpicture} + \draw (0,0) node [right,text width=8.75cm] { + \begin{mdframed}[ + linecolor=RoyalPurple, + rightline=false, + topline=false, + bottomline=false, + backgroundcolor=RoyalPurple!5, + linewidth=2pt + ] + + {#1} + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmremark} - -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=RawSienna, - }, - qed=\qedsymbol% -]{thmproof} - - -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=NavyBlue, - }, - qed=\qedsymbol% -]{thmexpl} - - -\declaretheorem[style=thmdef, name=Definition]{definition} -\declaretheorem[style=thmthm, name=Lemma]{lemma} -\declaretheorem[style=thmthm, name=Theorem]{theorem} -\declaretheorem[style=thmthm, name=Proposition]{proposition} -\declaretheorem[style=thmthm, numbered=no, name=Corollary]{corollary} -\declaretheorem[style=thmexample, numbered=no, name=Example]{eg} -\declaretheorem[name=Problem]{prob} - - -\declaretheorem[style=thmproof, name=Proof]{thmproof} -\renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}} -\declaretheorem[style=thmexpl, numbered=no, name=Proof]{thmexpl} -\newenvironment{expl}[1][]{\vspace{-12pt}\begin{thmexpl}}{\end{thmexpl}} - - -\declaretheorem[style=thmremark, numbered=no, name=Remark]{remark} -\declaretheorem[style=thmremark, numbered=no, name=Note]{note} +} \newcommand{\exercise}[1]{% \def\@exercise{#1}% @@ -178,15 +342,6 @@ \import{./figures/}{#1.pdf_tex} } -\definecolor{MintedBg}{RGB}{38, 38, 38} - -\newcommand{\toc}{\tableofcontents\raggedbottom} - -\newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[breaklines, bgcolor=MintedBg]{#1}}{\end{minted}} - -\newcommand{\inlinecode}[2]{\color{white}\mintinline[breaklines, bgcolor=MintedBg]{#1}|#2|} - -\newcommand{\importcode}[2]{\color{white}\inputminted[breaklines, bgcolor=MintedBg]{#1}{#2}} \DeclareMathOperator{\GL}{GL} \DeclareMathOperator{\Imm}{Im} @@ -199,55 +354,6 @@ \fancyhead[L]{\@title} \fancyhead[R]{\@section} -\newcommand{\specialquote}[2] -{ - \begin{flushright} - - \begin{tikzpicture} - \draw (0,0) node [right,text width=8.75cm] { - \begin{mdframed}[ - linecolor=RoyalPurple, - rightline=false, - topline=false, - bottomline=false, - backgroundcolor=RoyalPurple!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=RoyalPurple, - rightline=false, - topline=false, - bottomline=false, - backgroundcolor=RoyalPurple!5, - linewidth=2pt - ] - - {#1} - \vspace{1mm} - - \hfill-- \small{#2} - \end{mdframed} - }; - \end{tikzpicture} - \end{flushright} -} - \makeatother diff --git a/tex/notes.cls b/tex/notes.cls index c0ad13f..6910ec8 100644 --- a/tex/notes.cls +++ b/tex/notes.cls @@ -14,7 +14,6 @@ \RequirePackage{cancel} \RequirePackage{mathrsfs} \RequirePackage{minted} -\usemintedstyle{monokai} \RequirePackage{listings} \RequirePackage{systeme} \RequirePackage{amsfonts, amsmath, mathtools, amssymb, amsthm} @@ -62,78 +61,242 @@ \theoremstyle{definition} \makeatletter -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{ForestGreen!70!black}, bodyfont=\normalfont, - mdframed={ - linecolor=ForestGreen, - backgroundcolor=ForestGreen!5, +\@ifclasswith{notes}{nocolor}{ + + \usemintedstyle{bw} + \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}} + \declaretheorem[style=thmline, numbered=no, name=Proof]{expl} + + \declaretheorem[style=thmsimple, numbered=no, name=Remark]{remark} + \declaretheorem[style=thmsimple, numbered=no, name=Note]{note} + + + \newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos, breaklines]{#1}}{\end{minted}} + + \newcommand{\inlinecode}[2]{\mintinline{#1}|#2|} + + \newcommand{\importcode}[2]{\inputminted[frame=lines, framesep=7pt, linenos, breaklines]{#1}{#2}} + + + \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, + linewidth=2pt + ] + + {``#1''} + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmdef} -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, - mdframed={ - linecolor=RawSienna, - backgroundcolor=RawSienna!5, + \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, + linewidth=2pt + ] + + {#1} + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmthm} -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=NavyBlue, backgroundcolor=NavyBlue!5, +}{ + + \usemintedstyle{monokai} + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{ForestGreen!70!black}, bodyfont=\normalfont, + mdframed={ + linecolor=ForestGreen, + backgroundcolor=ForestGreen!5, + } + ]{thmdef} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, + mdframed={ + linecolor=RawSienna, + backgroundcolor=RawSienna!5, + } + ]{thmthm} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=NavyBlue, backgroundcolor=NavyBlue!5, + } + ]{thmexample} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=Black, backgroundcolor=Black!5, + } + ]{thmremark} + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=RawSienna, + }, + qed=\qedsymbol% + ]{thmproof} + + + \declaretheoremstyle[ + headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, + mdframed={ + linewidth=2pt, + rightline=false, topline=false, bottomline=false, + linecolor=NavyBlue, + }, + qed=\qedsymbol% + ]{thmexpl} + + + \declaretheorem[style=thmdef, name=Definition]{definition} + \declaretheorem[style=thmthm, name=Lemma]{lemma} + \declaretheorem[style=thmthm, name=Theorem]{theorem} + \declaretheorem[style=thmthm, name=Proposition]{proposition} + \declaretheorem[style=thmthm, numbered=no, name=Corollary]{corollary} + \declaretheorem[style=thmexample, numbered=no, name=Example]{eg} + + + \declaretheorem[style=thmproof, name=Proof]{thmproof} + \renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}} + \declaretheorem[style=thmexpl, numbered=no, name=Proof]{thmexpl} + \newenvironment{expl}[1][]{\vspace{-12pt}\begin{thmexpl}}{\end{thmexpl}} + + + \declaretheorem[style=thmremark, numbered=no, name=Remark]{remark} + \declaretheorem[style=thmremark, numbered=no, name=Note]{note} + \definecolor{MintedBg}{RGB}{38, 38, 38} + + + \newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[breaklines, bgcolor=MintedBg]{#1}}{\end{minted}} + + \newcommand{\inlinecode}[2]{\color{white}\mintinline[breaklines, bgcolor=MintedBg]{#1}|#2|} + + \newcommand{\importcode}[2]{\color{white}\inputminted[breaklines, bgcolor=MintedBg]{#1}{#2}} + + + \newcommand{\specialquote}[2] + { + \begin{flushright} + + \begin{tikzpicture} + \draw (0,0) node [right,text width=8.75cm] { + \begin{mdframed}[ + linecolor=RoyalPurple, + rightline=false, + topline=false, + bottomline=false, + backgroundcolor=RoyalPurple!5, + linewidth=2pt + ] + ``#1'' + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmexample} -\declaretheoremstyle[ - headfont=\bfseries\sffamily, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=Black, backgroundcolor=Black!5, + \newcommand{\specialnoquote}[2] + { + \begin{flushright} + + \begin{tikzpicture} + \draw (0,0) node [right,text width=8.75cm] { + \begin{mdframed}[ + linecolor=RoyalPurple, + rightline=false, + topline=false, + bottomline=false, + backgroundcolor=RoyalPurple!5, + linewidth=2pt + ] + + {#1} + \vspace{1mm} + + \hfill-- \small{#2} + \end{mdframed} + }; + \end{tikzpicture} + \end{flushright} } -]{thmremark} - -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{RawSienna!70!black}, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=RawSienna, - }, - qed=\qedsymbol% -]{thmproof} - - -\declaretheoremstyle[ - headfont=\bfseries\sffamily\color{NavyBlue!70!black}, bodyfont=\normalfont, - mdframed={ - linewidth=2pt, - rightline=false, topline=false, bottomline=false, - linecolor=NavyBlue, - }, - qed=\qedsymbol% -]{thmexpl} - - -\declaretheorem[style=thmdef, name=Definition]{definition} -\declaretheorem[style=thmthm, name=Lemma]{lemma} -\declaretheorem[style=thmthm, name=Theorem]{theorem} -\declaretheorem[style=thmthm, name=Proposition]{proposition} -\declaretheorem[style=thmthm, numbered=no, name=Corollary]{corollary} -\declaretheorem[style=thmexample, numbered=no, name=Example]{eg} - - -\declaretheorem[style=thmproof, name=Proof]{thmproof} -\renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}} -\declaretheorem[style=thmexpl, numbered=no, name=Proof]{thmexpl} -\newenvironment{expl}[1][]{\vspace{-12pt}\begin{thmexpl}}{\end{thmexpl}} - - -\declaretheorem[style=thmremark, numbered=no, name=Remark]{remark} -\declaretheorem[style=thmremark, numbered=no, name=Note]{note} +} \newcommand{\exercise}[1]{% \def\@exercise{#1}% @@ -178,17 +341,6 @@ \newcommand{\toc}{\tableofcontents\raggedbottom} - -\definecolor{MintedBg}{RGB}{38, 38, 38} - - -\newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[breaklines, bgcolor=MintedBg]{#1}}{\end{minted}} - -\newcommand{\inlinecode}[2]{\color{white}\mintinline[breaklines, bgcolor=MintedBg]{#1}|#2|} - -\newcommand{\importcode}[2]{\color{white}\inputminted[breaklines, bgcolor=MintedBg]{#1}{#2}} - - \DeclareMathOperator{\GL}{GL} \DeclareMathOperator{\Imm}{Im} \DeclareMathOperator{\Ker}{Ker} @@ -196,54 +348,5 @@ \DeclareMathOperator{\Hom}{Hom} \DeclareMathOperator{\Hol}{Hol} -\newcommand{\specialquote}[2] -{ - \begin{flushright} - - \begin{tikzpicture} - \draw (0,0) node [right,text width=8.75cm] { - \begin{mdframed}[ - linecolor=RoyalPurple, - rightline=false, - topline=false, - bottomline=false, - backgroundcolor=RoyalPurple!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=RoyalPurple, - rightline=false, - topline=false, - bottomline=false, - backgroundcolor=RoyalPurple!5, - linewidth=2pt - ] - - {#1} - \vspace{1mm} - - \hfill-- \small{#2} - \end{mdframed} - }; - \end{tikzpicture} - \end{flushright} -} - \makeatother diff --git a/tex/simplebooknotes.cls b/tex/simplebooknotes.cls deleted file mode 100644 index d90548c..0000000 --- a/tex/simplebooknotes.cls +++ /dev/null @@ -1,209 +0,0 @@ -\ProvidesClass{simplebooknotes} -\LoadClass[twoside]{report} - -\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} -\RequirePackage{siunitx}[=v2] -\RequirePackage{physics} -\RenewCommandCopy\qty\SI% -\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}} -\declaretheorem[style=thmline, numbered=no, name=Proof]{expl} - -\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} - \section{#1} -} - -\def\@lecture{} -\newcommand{\lecture}[2]{ - \ifthenelse{\isempty{#2}}{ - \def\@lecture{Lecture #1}% - }{% - \def\@lecture{Lecture #1: #2}% - }% - \subsection*{\@lecture} -} - -\newcommand{\toc}{\tableofcontents\raggedbottom} - -\pagestyle{fancy} -\fancyhead[RO,LE]{\@section} -\fancyhead[RE,LO]{\leftmark} - -\newcommand{\fullpagebreak}{\pagebreak} - -\newcommand{\incfig}[1]{% - \def\svgwidth{\columnwidth} - \import{./figures/}{#1.pdf_tex} -} - - -\newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos, breaklines]{#1}}{\end{minted}} - -\newcommand{\inlinecode}[2]{\mintinline{#1}|#2|} - -\newcommand{\importcode}[2]{\inputminted[frame=lines, framesep=7pt, linenos, breaklines]{#1}{#2}} - -\DeclareMathOperator{\GL}{GL} -\DeclareMathOperator{\Imm}{Im} -\DeclareMathOperator{\Ker}{Ker} -\DeclareMathOperator{\Aut}{Aut} -\DeclareMathOperator{\Hom}{Hom} -\DeclareMathOperator{\Hol}{Hol} -\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} -} - -\makeatother - diff --git a/tex/simplenotes.cls b/tex/simplenotes.cls deleted file mode 100644 index bf3e544..0000000 --- a/tex/simplenotes.cls +++ /dev/null @@ -1,216 +0,0 @@ -\ProvidesClass{simplenotes} -\LoadClass{article} - -\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} -\RequirePackage{siunitx}[=v2] -\RequirePackage{physics} -\RenewCommandCopy\qty\SI% -\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}} -\declaretheorem[style=thmline, numbered=no, name=Proof]{expl} - -\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} - \subsection{#1} -} - -\newcommand{\chapter}[1]{ - \section{#1} -} -\renewcommand{\part}[1]{} - -\renewcommand{\tableofcontents}{} - -\newcounter{chapter} - -\def\@lecture{} -\newcommand{\lecture}[2]{ - \ifthenelse{\isempty{#2}}{ - \def\@lecture{Lecture #1}% - }{% - \def\@lecture{Lecture #1: #2}% - }% - \subsection*{\@lecture} -} - -\newcommand{\fullpagebreak}{} -\renewcommand{\maketitle}{} - -\newcommand{\toc}{\tableofcontents\raggedbottom} - -\newcommand{\incfig}[1]{% - \def\svgwidth{\columnwidth} - \import{./figures/}{#1.pdf_tex} -} - -\newenvironment{code}[1]{\VerbatimEnvironment\begin{minted}[frame=lines,framesep=7pt, linenos, breaklines]{#1}}{\end{minted}} - -\newcommand{\inlinecode}[2]{\mintinline{#1}|#2|} - -\newcommand{\importcode}[2]{\inputminted[frame=lines, framesep=7pt, linenos, breaklines]{#1}{#2}} - - -\DeclareMathOperator{\GL}{GL} -\DeclareMathOperator{\Imm}{Im} -\DeclareMathOperator{\Ker}{Ker} -\DeclareMathOperator{\Aut}{Aut} -\DeclareMathOperator{\Hom}{Hom} -\DeclareMathOperator{\Hol}{Hol} - -\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} -} - -\makeatother -