tex stuff #2
This commit is contained in:
parent
2b1536fb4b
commit
281f24e002
|
@ -223,8 +223,12 @@ M.format_on_save_hook = function()
|
||||||
enabled = true
|
enabled = true
|
||||||
end
|
end
|
||||||
if enabled ~= 0 and enabled ~= false then
|
if enabled ~= 0 and enabled ~= false then
|
||||||
|
if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "latex" and
|
||||||
|
vim.bo.filetype ~= "qf" and vim.bo.filetype ~= "bib" and vim.bo.filetype ~= "" and vim.bo.filetype ~= "pdf"
|
||||||
|
and vim.bo.filetype ~= "conf" then
|
||||||
vim.lsp.buf.format({ async = false })
|
vim.lsp.buf.format({ async = false })
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
|
|
193
tex/booknotes.cls
Normal file
193
tex/booknotes.cls
Normal file
|
@ -0,0 +1,193 @@
|
||||||
|
|
||||||
|
\ProvidesClass{booknotes}
|
||||||
|
\LoadClass{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{monokai}
|
||||||
|
\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}
|
||||||
|
\RequirePackage{physics}
|
||||||
|
\let\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\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}
|
||||||
|
|
||||||
|
\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}
|
||||||
|
}
|
||||||
|
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhead[RO,L]{\@section}
|
||||||
|
\fancyhead[R,LO]{\leftmark}
|
||||||
|
|
||||||
|
\newcommand{\fullpagebreak}{\pagebreak}
|
||||||
|
|
||||||
|
\newcommand{\incfig}[1]{%
|
||||||
|
\def\svgwidth{\columnwidth}
|
||||||
|
\import{./}{#1.pdf_tex}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
\definecolor{MintedBg}{RGB}{38, 38, 38}
|
||||||
|
|
||||||
|
|
||||||
|
\newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[bgcolor=MintedBg]{#1}}{\end{minted}}
|
||||||
|
|
||||||
|
\newcommand{\inlinecode}[2]{\color{white}\mintinline[bgcolor=MintedBg]{#1}|#2|}
|
||||||
|
|
||||||
|
\newcommand{\importcode}[2]{\color{white}\VerbatimEnvironment\inputminted[bgcolor=MintedBg]{#1}{#2}}
|
||||||
|
|
||||||
|
\DeclareMathOperator{\GL}{GL}
|
||||||
|
\DeclareMathOperator{\Imm}{Im}
|
||||||
|
\DeclareMathOperator{\Ker}{Ker}
|
||||||
|
\DeclareMathOperator{\Aut}{Aut}
|
||||||
|
\DeclareMathOperator{\Hom}{Hom}
|
||||||
|
\DeclareMathOperator{\Hol}{Hol}
|
||||||
|
|
||||||
|
|
||||||
|
\makeatother
|
||||||
|
|
|
@ -2,29 +2,28 @@
|
||||||
\LoadClass[12pt]{article}
|
\LoadClass[12pt]{article}
|
||||||
|
|
||||||
\RequirePackage[T1]{fontenc}
|
\RequirePackage[T1]{fontenc}
|
||||||
\RequirePackage[utf8]{inputenc}
|
|
||||||
\RequirePackage{mathptmx}
|
\RequirePackage{mathptmx}
|
||||||
\RequirePackage{setspace}
|
\RequirePackage{setspace}
|
||||||
\RequirePackage{geometry}
|
\RequirePackage{geometry}
|
||||||
\RequirePackage{indentfirst}
|
\RequirePackage{indentfirst}
|
||||||
\RequirePackage{longtable}
|
\RequirePackage{longtable}
|
||||||
|
|
||||||
\doublespacing
|
\doublespacing%
|
||||||
\geometry{top=20mm,bottom=20mm}
|
\geometry{top=20mm,bottom=20mm}
|
||||||
\geometry{left=25mm,right=25mm}
|
\geometry{left=25mm,right=25mm}
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\def\@maketitle{%
|
\def\@maketitle{%
|
||||||
\newpage
|
\newpage
|
||||||
\null
|
\null%
|
||||||
\vskip 2em%
|
\vskip 2em%
|
||||||
\begin{flushright}
|
\begin{flushright}
|
||||||
\@author
|
\@author%
|
||||||
|
|
||||||
\@date
|
\@date%
|
||||||
\end{flushright}
|
\end{flushright}
|
||||||
\begin{center}%
|
\begin{center}%
|
||||||
\@title
|
\@title%
|
||||||
\end{center}%
|
\end{center}%
|
||||||
\par
|
\par
|
||||||
\vskip 1.5em}
|
\vskip 1.5em}
|
||||||
|
|
200
tex/handout.cls
Normal file
200
tex/handout.cls
Normal file
|
@ -0,0 +1,200 @@
|
||||||
|
\ProvidesClass{handout}
|
||||||
|
\LoadClass{scrartcl}
|
||||||
|
|
||||||
|
\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{monokai}
|
||||||
|
\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}
|
||||||
|
\RequirePackage{physics}
|
||||||
|
\let\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\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}
|
||||||
|
|
||||||
|
\newcommand{\exercise}[1]{%
|
||||||
|
\def\@exercise{#1}%
|
||||||
|
\subsection*{Exercise #1}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\subexercise}[1]{%
|
||||||
|
\subsubsection*{Exercise \@exercise.#1}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\sect}[1]{
|
||||||
|
\def\@section{#1}
|
||||||
|
\section{#1}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\chapter}[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}{}
|
||||||
|
|
||||||
|
\newcommand{\incfig}[1]{%
|
||||||
|
\def\svgwidth{\columnwidth}
|
||||||
|
\import{./}{#1.pdf_tex}
|
||||||
|
}
|
||||||
|
|
||||||
|
\definecolor{MintedBg}{RGB}{38, 38, 38}
|
||||||
|
|
||||||
|
|
||||||
|
\newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[bgcolor=MintedBg]{#1}}{\end{minted}}
|
||||||
|
|
||||||
|
\newcommand{\inlinecode}[2]{\color{white}\mintinline[bgcolor=MintedBg]{#1}|#2|}
|
||||||
|
|
||||||
|
\newcommand{\importcode}[2]{\color{white}\VerbatimEnvironment\inputminted[bgcolor=MintedBg]{#1}{#2}}
|
||||||
|
|
||||||
|
\DeclareMathOperator{\GL}{GL}
|
||||||
|
\DeclareMathOperator{\Imm}{Im}
|
||||||
|
\DeclareMathOperator{\Ker}{Ker}
|
||||||
|
\DeclareMathOperator{\Aut}{Aut}
|
||||||
|
\DeclareMathOperator{\Hom}{Hom}
|
||||||
|
\DeclareMathOperator{\Hol}{Hol}
|
||||||
|
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhead[RO,L]{\@section}
|
||||||
|
\fancyhead[R,LO]{\@title}
|
||||||
|
|
||||||
|
\makeatother
|
||||||
|
|
196
tex/notes.cls
Normal file
196
tex/notes.cls
Normal file
|
@ -0,0 +1,196 @@
|
||||||
|
\ProvidesClass{notes}
|
||||||
|
\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{monokai}
|
||||||
|
\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}
|
||||||
|
\RequirePackage{physics}
|
||||||
|
\let\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\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}
|
||||||
|
|
||||||
|
\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{\incfig}[1]{%
|
||||||
|
\def\svgwidth{\columnwidth}
|
||||||
|
\import{./}{#1.pdf_tex}
|
||||||
|
}
|
||||||
|
|
||||||
|
\definecolor{MintedBg}{RGB}{38, 38, 38}
|
||||||
|
|
||||||
|
|
||||||
|
\newenvironment{code}[1]{\color{white}\VerbatimEnvironment\begin{minted}[bgcolor=MintedBg]{#1}}{\end{minted}}
|
||||||
|
|
||||||
|
\newcommand{\inlinecode}[2]{\color{white}\mintinline[bgcolor=MintedBg]{#1}|#2|}
|
||||||
|
|
||||||
|
\newcommand{\importcode}[2]{\color{white}\VerbatimEnvironment\inputminted[bgcolor=MintedBg]{#1}{#2}}
|
||||||
|
|
||||||
|
\DeclareMathOperator{\GL}{GL}
|
||||||
|
\DeclareMathOperator{\Imm}{Im}
|
||||||
|
\DeclareMathOperator{\Ker}{Ker}
|
||||||
|
\DeclareMathOperator{\Aut}{Aut}
|
||||||
|
\DeclareMathOperator{\Hom}{Hom}
|
||||||
|
\DeclareMathOperator{\Hol}{Hol}
|
||||||
|
|
||||||
|
\makeatother
|
||||||
|
|
158
tex/simplebooknotes.cls
Normal file
158
tex/simplebooknotes.cls
Normal file
|
@ -0,0 +1,158 @@
|
||||||
|
\ProvidesClass{simplebooknotes}
|
||||||
|
\LoadClass{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}
|
||||||
|
\RequirePackage{physics}
|
||||||
|
\let\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}
|
||||||
|
}
|
||||||
|
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhead[RO,L]{\@section}
|
||||||
|
\fancyhead[R,LO]{\leftmark}
|
||||||
|
|
||||||
|
\newcommand{\fullpagebreak}{\pagebreak}
|
||||||
|
|
||||||
|
\newcommand{\incfig}[1]{%
|
||||||
|
\def\svgwidth{\columnwidth}
|
||||||
|
\import{./}{#1.pdf_tex}
|
||||||
|
}
|
||||||
|
|
||||||
|
\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}
|
||||||
|
|
||||||
|
|
||||||
|
\makeatother
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
\ProvidesClass{simplenotes}
|
\ProvidesClass{simplenotes}
|
||||||
\LoadClass[twoside]{report}
|
\LoadClass{article}
|
||||||
|
|
||||||
\RequirePackage[T1]{fontenc}
|
\RequirePackage[T1]{fontenc}
|
||||||
\RequirePackage{textcomp}
|
\RequirePackage{textcomp}
|
||||||
|
@ -101,7 +100,7 @@
|
||||||
|
|
||||||
\declaretheorem[style=thmproof, name=Proof]{thmproof}
|
\declaretheorem[style=thmproof, name=Proof]{thmproof}
|
||||||
\renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}}
|
\renewenvironment{proof}[1][\proofname]{\begin{thmproof}}{\end{thmproof}}
|
||||||
\declaretheorem[style=thmline, name=Proof]{expl}
|
\declaretheorem[style=thmline, numbered=no, name=Proof]{expl}
|
||||||
|
|
||||||
\declaretheorem[style=thmsimple, numbered=no, name=Remark]{remark}
|
\declaretheorem[style=thmsimple, numbered=no, name=Remark]{remark}
|
||||||
\declaretheorem[style=thmsimple, numbered=no, name=Note]{note}
|
\declaretheorem[style=thmsimple, numbered=no, name=Note]{note}
|
||||||
|
@ -117,8 +116,17 @@
|
||||||
|
|
||||||
\newcommand{\sect}[1]{
|
\newcommand{\sect}[1]{
|
||||||
\def\@section{#1}
|
\def\@section{#1}
|
||||||
|
\subsection{#1}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcommand{\chapter}[1]{
|
||||||
\section{#1}
|
\section{#1}
|
||||||
}
|
}
|
||||||
|
\renewcommand{\part}[1]{}
|
||||||
|
|
||||||
|
\renewcommand{\tableofcontents}{}
|
||||||
|
|
||||||
|
\newcounter{chapter}
|
||||||
|
|
||||||
\def\@lecture{}
|
\def\@lecture{}
|
||||||
\newcommand{\lecture}[2]{
|
\newcommand{\lecture}[2]{
|
||||||
|
@ -130,9 +138,8 @@
|
||||||
\subsection*{\@lecture}
|
\subsection*{\@lecture}
|
||||||
}
|
}
|
||||||
|
|
||||||
\pagestyle{fancy}
|
\newcommand{\fullpagebreak}{}
|
||||||
\fancyhead[RO,LE]{\@section}
|
\renewcommand{\maketitle}{}
|
||||||
\fancyhead[RE,LO]{\leftmark}
|
|
||||||
|
|
||||||
\newcommand{\incfig}[1]{%
|
\newcommand{\incfig}[1]{%
|
||||||
\def\svgwidth{\columnwidth}
|
\def\svgwidth{\columnwidth}
|
||||||
|
@ -152,6 +159,5 @@
|
||||||
\DeclareMathOperator{\Hom}{Hom}
|
\DeclareMathOperator{\Hom}{Hom}
|
||||||
\DeclareMathOperator{\Hol}{Hol}
|
\DeclareMathOperator{\Hol}{Hol}
|
||||||
|
|
||||||
|
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|
||||||
|
|
|
@ -27,3 +27,5 @@ set render-loading-fg "#{{base05-hex}}"
|
||||||
set window-title-home-tilde true
|
set window-title-home-tilde true
|
||||||
set statusbar-basename true
|
set statusbar-basename true
|
||||||
set selection-clipboard clipboard
|
set selection-clipboard clipboard
|
||||||
|
map D set "first-page-column 1:1"
|
||||||
|
map <C-d> set "first-page-column 1:2"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user