This commit is contained in:
EvilMuffinHa 2022-12-12 12:31:40 -05:00
commit beb82491cb
7 changed files with 324 additions and 7 deletions

View File

@ -146,17 +146,21 @@ snippet iff "Iff" Ai
endsnippet endsnippet
context "math()" context "math()"
snippet bm "Bm" Ai snippet `(?<!\\)bm` "Bm" rwAi
\bm{$1}$0 \bm{$1}$0
endsnippet endsnippet
snippet `(?<!\\)emph` "Emphasize" rwAi
\emph{$1}$0
endsnippet
context "math()" context "math()"
snippet sqrt "Square root" Ai snippet `(?<!\\)sqrt` "Square root" rwAi
\sqrt{$1}$0 \sqrt{$1}$0
endsnippet endsnippet
context "math()" context "math()"
snippet box "Boxed" Ai snippet `(?<!\\)box` "Boxed" rwAi
\boxed{$1}$0 \boxed{$1}$0
endsnippet endsnippet
@ -330,6 +334,12 @@ snippet rowvec "Row Vector" iA
\mqty[$1]$0 \mqty[$1]$0
endsnippet 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()" context "math()"
snippet case "Cases" wA snippet case "Cases" wA
\begin{case} \begin{case}
@ -381,16 +391,26 @@ endsnippet
priority 1000 priority 1000
context "math()" context "math()"
snippet epsi "Epsilon" wA snippet `(?<!\\)epsi` "Epsilon" rwA
\epsilon \epsilon
endsnippet endsnippet
priority 500 priority 500
context "math()" 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)` \\`!p snip.rv = match.group(1)`
endsnippet endsnippet
context "math()"
snippet '(?<!\\)xxi' "Xi" rwA
\xi
endsnippet
context "math()"
snippet '(?<!\\)rho' "Rho" rwA
\rho
endsnippet
context "math()" context "math()"
snippet // "Fraction" iA snippet // "Fraction" iA
\\frac{${VISUAL}}{$1}$0 \\frac{${VISUAL}}{$1}$0
@ -622,7 +642,7 @@ endsnippet
context "math()" context "math()"
snippet prod "Product" w snippet prod "Product" w
\prod{${1:n=${2:1}}}^{${3:\infty}} $4 \prod_{${1:n=${2:1}}}^{${3:\infty}} $4
endsnippet endsnippet
context "math()" context "math()"
@ -651,7 +671,7 @@ snippet part "Partial Derivative" w
endsnippet endsnippet
context "math()" context "math()"
snippet dd "Differential" wA snippet `(?<!\\)dd` "Differential" rwA
\dd{$1}$0 \dd{$1}$0
endsnippet endsnippet

View File

@ -190,6 +190,54 @@
\DeclareMathOperator{\Hom}{Hom} \DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol} \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 \makeatother

View File

@ -199,5 +199,55 @@
\fancyhead[L]{\@title} \fancyhead[L]{\@title}
\fancyhead[R]{\@section} \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 \makeatother

View File

@ -32,6 +32,8 @@
} }
\usepgfplotslibrary{fillbetween} \usepgfplotslibrary{fillbetween}
\usetikzlibrary{patterns} \usetikzlibrary{patterns}
\RequirePackage[framemethod=TikZ]{mdframed}
\mdfsetup{skipabove=1em, skipbelow=0em, innertopmargin=5pt, innerbottommargin=6pt}
\let\sidesum\sum \let\sidesum\sum
@ -47,3 +49,53 @@
\newcommand\C{\ensuremath{\mathbb{C}}} \newcommand\C{\ensuremath{\mathbb{C}}}
\geometry{top=20mm,bottom=20mm} \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{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol} \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 \makeatother

View File

@ -154,7 +154,55 @@
\DeclareMathOperator{\Aut}{Aut} \DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\Hom}{Hom} \DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol} \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 \makeatother

View File

@ -161,5 +161,55 @@
\DeclareMathOperator{\Hom}{Hom} \DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\Hol}{Hol} \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 \makeatother