108 lines
1.7 KiB
Plaintext
108 lines
1.7 KiB
Plaintext
snippet article "WriteArticle"
|
|
\documentclass{article}
|
|
|
|
\usepackage{amsmath}
|
|
\usepackage{amsfonts}
|
|
\usepackage[a4paper, total={6in, 8in}]{geometry}
|
|
|
|
\title{$1}
|
|
\date{$2}
|
|
\author{Nicholas Novak}
|
|
|
|
\begin{document}
|
|
\maketitle
|
|
|
|
$3
|
|
|
|
\end{document}
|
|
endsnippet
|
|
|
|
snippet box "Box"
|
|
`!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'`
|
|
│ $1 │
|
|
`!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'`
|
|
$0
|
|
endsnippet
|
|
|
|
snippet beg "Begin" b
|
|
\begin{$1}
|
|
$2
|
|
\end{$1}
|
|
endsnippet
|
|
|
|
snippet sec "Section" b
|
|
\section{$1}
|
|
endsnippet
|
|
|
|
snippet sub "Subsection" b
|
|
\subsection*{$1}$0
|
|
endsnippet
|
|
|
|
snippet span "Linear Span" w
|
|
\textrm{Span}\left\\{$1\right\\}
|
|
endsnippet
|
|
|
|
snippet left "Large Groupings" i
|
|
\left$1\right$1
|
|
endsnippet
|
|
|
|
snippet lb "Large Brackets" w
|
|
\left\\{$1\right\\}
|
|
endsnippet
|
|
|
|
snippet norm "Mathematical Norm" w
|
|
\left\Vert$1\right\Vert
|
|
endsnippet
|
|
|
|
snippet mk "InlineMath" wA
|
|
$${1}$`!p
|
|
if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']:
|
|
snip.rv = ' '
|
|
else:
|
|
snip.rv = ''
|
|
`$2
|
|
endsnippet
|
|
|
|
snippet dm "BlockMath" wA
|
|
\[
|
|
$1
|
|
\]$0
|
|
endsnippet
|
|
|
|
snippet check "CheckMark"
|
|
\textcolor{ForestGreen}{\checkmark}
|
|
endsnippet
|
|
|
|
snippet corr "Correct"
|
|
\textcolor{red}{$1}
|
|
endsnippet
|
|
|
|
snippet pm "Parenthesied matrix" i
|
|
\begin{pmatrix}$1\end{pmatrix}
|
|
endsnippet
|
|
|
|
# Graphing utilities
|
|
snippet graph "Start Graph" b
|
|
\begin{center}
|
|
\begin{tikzpicture}
|
|
$1
|
|
\end{tikzpicture}
|
|
\end{center}$0
|
|
endsnippet
|
|
|
|
snippet line "Graph Line" w
|
|
\draw[<->] ($1)--($2) node[]{$3};
|
|
endsnippet
|
|
|
|
snippet vector "Graph Vector" w
|
|
\draw[line width=2pt,blue,-stealth] ($1)--($2) node[]{$3};
|
|
endsnippet
|
|
|
|
snippet xaxis "X Axis" w
|
|
\draw[<->] (-$1,0)--($1,0) node[anchor=west]{$x$};$0
|
|
endsnippet
|
|
|
|
snippet yaxis "Y Axis" w
|
|
\draw[<->] (0,-$1)--(0,$1) node[anchor=west]{$y$};$0
|
|
endsnippet
|