This commit is contained in:
EvilMuffinHa 2023-02-08 03:04:29 -05:00
parent 6bca80d819
commit cf5cd9e8ad
7 changed files with 53 additions and 74 deletions

View File

@ -784,7 +784,7 @@ if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']:
snip.rv = ' ' snip.rv = ' '
else: else:
snip.rv = '' snip.rv = ''
`$2 `$3
endsnippet endsnippet
snippet dc "Block Code" wA snippet dc "Block Code" wA

View File

@ -2,6 +2,7 @@
\ProvidesClass{booknotes} \ProvidesClass{booknotes}
\LoadClass[twoside]{report} \LoadClass[twoside]{report}
\RequirePackage{tex-macros}
\RequirePackage[T1]{fontenc} \RequirePackage[T1]{fontenc}
\RequirePackage{textcomp} \RequirePackage{textcomp}
\RequirePackage{stmaryrd} \RequirePackage{stmaryrd}
@ -47,18 +48,6 @@
\RequirePackage[framemethod=TikZ]{mdframed} \RequirePackage[framemethod=TikZ]{mdframed}
\mdfsetup{skipabove=1em, skipbelow=0em, innertopmargin=5pt, innerbottommargin=6pt} \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} \theoremstyle{definition}
\makeatletter \makeatletter
@ -299,13 +288,13 @@
} }
} }
\newcommand{\exercise}[1]{% \newcommand{\exercise}[2][]{%
\def\@exercise{#1}% \def\@exercise{#2}%
\subsection*{Exercise #1} \subsection*{Exercise #2. #1}
} }
\newcommand{\subexercise}[1]{% \newcommand{\subexercise}[2][]{%
\subsubsection*{Exercise \@exercise.#1} \subsubsection*{Exercise \@exercise.#2. #1}
} }
\newcommand{\sect}[1]{ \newcommand{\sect}[1]{
@ -336,12 +325,5 @@
\import{./figures/}{#1.pdf_tex} \import{./figures/}{#1.pdf_tex}
} }
\DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im}
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol}
\makeatother \makeatother

View File

@ -1,6 +1,7 @@
\ProvidesClass{handout} \ProvidesClass{handout}
\LoadClass{scrartcl} \LoadClass{scrartcl}
\RequirePackage{tex-macros}
\RequirePackage[T1]{fontenc} \RequirePackage[T1]{fontenc}
\RequirePackage{textcomp} \RequirePackage{textcomp}
\RequirePackage{stmaryrd} \RequirePackage{stmaryrd}
@ -47,18 +48,6 @@
\RequirePackage[framemethod=TikZ]{mdframed} \RequirePackage[framemethod=TikZ]{mdframed}
\mdfsetup{skipabove=1em, skipbelow=0em, innertopmargin=5pt, innerbottommargin=6pt} \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} \theoremstyle{definition}
\makeatletter \makeatletter
@ -302,13 +291,13 @@
} }
} }
\newcommand{\exercise}[1]{% \newcommand{\exercise}[2][]{%
\def\@exercise{#1}% \def\@exercise{#2}%
\subsection*{Exercise #1} \subsection*{Exercise #2. #1}
} }
\newcommand{\subexercise}[1]{% \newcommand{\subexercise}[2][]{%
\subsubsection*{Exercise \@exercise.#1} \subsubsection*{Exercise \@exercise.#2. #1}
} }
\newcommand{\sect}[1]{ \newcommand{\sect}[1]{
@ -342,14 +331,6 @@
\import{./figures/}{#1.pdf_tex} \import{./figures/}{#1.pdf_tex}
} }
\DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im}
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol}
\pagestyle{fancy} \pagestyle{fancy}
\fancyhead[L]{\@title} \fancyhead[L]{\@title}
\fancyhead[R]{\@section} \fancyhead[R]{\@section}

View File

@ -50,6 +50,15 @@
\geometry{top=20mm,bottom=20mm} \geometry{top=20mm,bottom=20mm}
\usemintedstyle{bw}
\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] \newcommand{\specialquote}[2]
{ {
\begin{flushright} \begin{flushright}

View File

@ -1,6 +1,7 @@
\ProvidesClass{notes} \ProvidesClass{notes}
\LoadClass{article} \LoadClass{article}
\RequirePackage{tex-macros}
\RequirePackage[T1]{fontenc} \RequirePackage[T1]{fontenc}
\RequirePackage{textcomp} \RequirePackage{textcomp}
\RequirePackage{stmaryrd} \RequirePackage{stmaryrd}
@ -46,17 +47,6 @@
\RequirePackage[framemethod=TikZ]{mdframed} \RequirePackage[framemethod=TikZ]{mdframed}
\mdfsetup{skipabove=1em, skipbelow=0em, innertopmargin=5pt, innerbottommargin=6pt} \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} \theoremstyle{definition}
\makeatletter \makeatletter
@ -298,13 +288,13 @@
} }
} }
\newcommand{\exercise}[1]{% \newcommand{\exercise}[2][]{%
\def\@exercise{#1}% \def\@exercise{#2}%
\subsection*{Exercise #1} \subsection*{Exercise #2. #1}
} }
\newcommand{\subexercise}[1]{% \newcommand{\subexercise}[2][]{%
\subsubsection*{Exercise \@exercise.#1} \subsubsection*{Exercise \@exercise.#2. #1}
} }
\newcommand{\sect}[1]{ \newcommand{\sect}[1]{
@ -341,12 +331,5 @@
\newcommand{\toc}{\tableofcontents\raggedbottom} \newcommand{\toc}{\tableofcontents\raggedbottom}
\DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im}
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol}
\makeatother \makeatother

24
tex/tex-macros.sty Normal file
View File

@ -0,0 +1,24 @@
\ProvidesPackage{tex-macros}
\RequirePackage{amsmath}
\let\sidesum\sum%
\let\sidelim\lim%
\renewcommand\sum{\sidesum\limits}
\renewcommand\lim{\sidelim\limits}
\newcommand{\problem}[1]{\subsection*{#1.}}
\newcommand{\pbl}[1]{\subsection*{#1.}}
\newcommand{\N}{\ensuremath{\mathbb{N}}}
\newcommand{\Z}{\ensuremath{\mathbb{Z}}}
\newcommand{\R}{\ensuremath{\mathbb{R}}}
\newcommand{\Q}{\ensuremath{\mathbb{Q}}}
\newcommand\C{\ensuremath{\mathbb{C}}}
\DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im}
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol}
\DeclareMathOperator{\Arg}{Arg}

2
zshenv
View File

@ -38,7 +38,7 @@ export MOZILLA_HOME="$XDG_DATA_HOME"/mozilla
export SPOTIFY_HOME="$HOME"/media/spotify export SPOTIFY_HOME="$HOME"/media/spotify
export KRUNKER_HOME="$HOME"/media/games/krunker export KRUNKER_HOME="$HOME"/media/games/krunker
export FEH_HOME="$HOME"/.config/feh/ export FEH_HOME="$HOME"/.config/feh/
export R_HOME="$HOME"/.local/share/R # export R_HOME="$HOME"/.local/share/R
export R_HOME_DIR="$HOME"/.local/share/R export R_HOME_DIR="$HOME"/.local/share/R
export SCREENSHOT_HOME="$HOME"/media/images export SCREENSHOT_HOME="$HOME"/media/images