This commit is contained in:
EvilMuffinHa 2022-12-12 00:13:40 -05:00
parent 60074da995
commit 32c8859c45
7 changed files with 326 additions and 7 deletions

View File

@ -146,17 +146,21 @@ snippet iff "Iff" Ai
endsnippet
context "math()"
snippet bm "Bm" Ai
snippet `(?<!\\)bm` "Bm" rwAi
\bm{$1}$0
endsnippet
snippet `(?<!\\)emph` "Emphasize" rwAi
\emph{$1}$0
endsnippet
context "math()"
snippet sqrt "Square root" Ai
snippet `(?<!\\)sqrt` "Square root" rwAi
\sqrt{$1}$0
endsnippet
context "math()"
snippet box "Boxed" Ai
snippet `(?<!\\)box` "Boxed" rwAi
\boxed{$1}$0
endsnippet
@ -330,6 +334,12 @@ snippet rowvec "Row Vector" iA
\mqty[$1]$0
endsnippet
priority 200
context "math()"
snippet cvec "Column Vector" iA
\begin{pmatrix} ${1:x}_${2:1}\\\\ \vdots\\\\ $1_${2:n} \end{pmatrix}
endsnippet
context "math()"
snippet case "Cases" wA
\begin{case}
@ -381,16 +391,26 @@ endsnippet
priority 1000
context "math()"
snippet epsi "Epsilon" wA
snippet `(?<!\\)epsi` "Epsilon" rwA
\epsilon
endsnippet
priority 500
context "math()"
snippet '(?<!\\)(alpha|beta|gamma|Delta|delta|epsilon|zeta|eta|Theta|theta|iota|kappa|Lambda|lambda|mu|nu|Xi|xi|Pi|pi|varpi|Sigma|sigma|tau|Phi|phi|varphi|chi|Psi|psi|Omega|omega)' "Greek" rwA
snippet '(?<!\\)(alpha|beta|gamma|Delta|delta|epsilon|zeta|eta|Theta|theta|iota|kappa|Lambda|lambda|mu|nu|Xi|Pi|pi|varpi|Sigma|sigma|tau|Phi|phi|varphi|chi|Psi|psi|Omega|omega)' "Greek" rwA
\\`!p snip.rv = match.group(1)`
endsnippet
context "math()"
snippet '(?<!\\)xxi' "Xi" rwA
\xi
endsnippet
context "math()"
snippet '(?<!\\)rho' "Rho" rwA
\rho
endsnippet
context "math()"
snippet // "Fraction" iA
\\frac{${VISUAL}}{$1}$0
@ -622,7 +642,7 @@ endsnippet
context "math()"
snippet prod "Product" w
\prod{${1:n=${2:1}}}^{${3:\infty}} $4
\prod_{${1:n=${2:1}}}^{${3:\infty}} $4
endsnippet
context "math()"
@ -651,7 +671,7 @@ snippet part "Partial Derivative" w
endsnippet
context "math()"
snippet dd "Differential" wA
snippet `(?<!\\)dd` "Differential" rwA
\dd{$1}$0
endsnippet

View File

@ -190,6 +190,54 @@
\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

View File

@ -199,5 +199,55 @@
\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

View File

@ -22,7 +22,9 @@
\RequirePackage{geometry}
\RequirePackage{graphicx}
\RequirePackage[usenames,dvipsnames]{xcolor}
\RequirePackage{siunitx}
\RequirePackage{physics}
\let\qty\SI%
\RequirePackage{bm}
\RequirePackage{pgfplots}
\pgfplotsset{
@ -30,6 +32,8 @@
}
\usepgfplotslibrary{fillbetween}
\usetikzlibrary{patterns}
\RequirePackage[framemethod=TikZ]{mdframed}
\mdfsetup{skipabove=1em, skipbelow=0em, innertopmargin=5pt, innerbottommargin=6pt}
\let\sidesum\sum
@ -45,3 +49,53 @@
\newcommand\C{\ensuremath{\mathbb{C}}}
\geometry{top=20mm,bottom=20mm}
\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}
}

View File

@ -195,5 +195,54 @@
\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

View File

@ -154,7 +154,55 @@
\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

View File

@ -161,5 +161,55 @@
\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