This commit is contained in:
EvilMuffinHa 2023-02-08 03:09:24 -05:00
commit 183b18778e
7 changed files with 38 additions and 59 deletions

View File

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

View File

@ -2,6 +2,7 @@
\ProvidesClass{booknotes}
\LoadClass[twoside]{report}
\RequirePackage{tex-macros}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{stmaryrd}
@ -47,18 +48,6 @@
\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
@ -336,12 +325,5 @@
\import{./figures/}{#1.pdf_tex}
}
\DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im}
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol}
\makeatother

View File

@ -1,6 +1,7 @@
\ProvidesClass{handout}
\LoadClass{scrartcl}
\RequirePackage{tex-macros}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{stmaryrd}
@ -47,18 +48,6 @@
\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
@ -343,14 +332,6 @@
\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}
\fancyhead[L]{\@title}
\fancyhead[R]{\@section}

View File

@ -50,6 +50,15 @@
\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]
{
\begin{flushright}

View File

@ -1,6 +1,7 @@
\ProvidesClass{notes}
\LoadClass{article}
\RequirePackage{tex-macros}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{stmaryrd}
@ -46,17 +47,6 @@
\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
@ -341,12 +331,5 @@
\newcommand{\toc}{\tableofcontents\raggedbottom}
\DeclareMathOperator{\GL}{GL}
\DeclareMathOperator{\Imm}{Im}
\DeclareMathOperator{\Ker}{Ker}
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol}
\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 KRUNKER_HOME="$HOME"/media/games/krunker
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 SCREENSHOT_HOME="$HOME"/media/images