MA0301/exam_template/.vscode/latex.code-snippets

277 lines
6.3 KiB
Plaintext
Raw Normal View History

2021-05-10 17:41:58 +02:00
{
2021-05-17 00:31:46 +02:00
"Exc": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["\\exc"],
"body":
[
"\\exc{}",
"\\begin{subexcs}",
" \\subexc{}",
" $0",
"\\end{subexcs}"
],
"description": "Adds new exc with subexcs",
},
2021-05-17 00:31:46 +02:00
"Subexc": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["\\subexc"],
"body":
[
"\\subexc{}",
"\\begin{ssubexcs}",
" \\ssubexc{}",
" $0",
"\\end{ssubexcs}"
],
"description": "Adds new subexc with ssubexcs",
},
2021-05-17 00:31:46 +02:00
"Diagram": {
"scope": "latex",
"prefix": ["dia"],
"body": "\\includeDiagram[caption={}, width=1\\linewidth]{graphics/$0.tex}",
"description": "Include a diagram",
},
"Graph Table": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["graph-table"],
"body":
[
"\\begin{figure}[H]",
" \\center",
" \\begin{tabular}{c|cc}",
" $A$ & \\multicolumn{2}{c}{$v$} \\\\",
" \\hline",
" & $a$ & $b$ \\\\",
" \\hline",
" $s_0$ & $s_$ & $s_$ \\\\",
" $s_1$ & $s_$ & $s_$ \\\\",
" $s_2$ & $s_$ & $s_$ \\\\",
" \\end{tabular}",
"\\end{figure}"
],
"description": "Adds graph-table",
},
2021-05-17 00:31:46 +02:00
"Graph Table Double": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["graph-dtable"],
"body":
[
"\\begin{figure}[H]",
" \\center",
" \\begin{tabular}{c|cc}",
" $A$ & \\multicolumn{2}{c}{$v$} \\\\",
" \\hline",
" & $a$ & $b$ \\\\",
" \\hline",
" $s_0$ & $s_$ & $s_$ \\\\",
" $s_1$ & $s_$ & $s_$ \\\\",
" $s_2$ & $s_$ & $s_$ \\\\",
" \\end{tabular}",
"\\end{figure}"
],
"description": "Adds graph-table",
},
2021-05-17 00:31:46 +02:00
"Graph Table Line": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["gtl"],
"body": " $s_$ & $s_$ & $s_$ \\\\",
"description": "Adds line inside graph-table",
},
2021-05-17 00:31:46 +02:00
"Graph Table Double Line": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["gtdl"],
"body": " $s_$ & $s_$ & $s_$ & $s_$ & $s_$ \\\\",
"description": "Adds line inside a double graph-table",
},
2021-05-17 00:31:46 +02:00
"Induction Proof": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["prove-induction"],
"body": [
"Base case:",
"",
"\\begin{align*}",
"",
"\\end{align*}",
"",
"Assume that",
"",
"\\[ $1 \\]",
"",
"Then",
"",
"\begin{align*}",
" &= $1 + \\\\",
" &=",
"\\end{align*}",
"",
"\\qed"
],
"description": "Template for induction proof",
},
2021-05-17 00:31:46 +02:00
"Injective Proof": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["prove-injective"],
"body": [
"In order for $f(x)$ to be injective, it has to hold that",
"",
"\\[ f(a) = f(b) \\Rightarrow a = b \\]",
"",
"\\begin{align*}",
" f(a) &= f(b) \\\\",
" $0",
"\\end{align*}",
"",
"Hence $f(x)$ is injective."
],
"description": "Template for injective proof",
},
2021-05-17 00:31:46 +02:00
"Surjective Proof": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["prove-surjective"],
"body": [
"In order for $f(x)$ to be surjective, it has to hold that",
"",
"\\[ \\forall x \\in SET \\exists y \\in SET [f(x) = y] \\]",
"",
"\\begin{align*}",
" y &= $1 \\\\",
"",
" x &= \\\\" ,
"\\end{align*}",
"",
"$ $ makes up all the elements in SET",
"",
"\\begin{align*}",
" f(y) &= \\\\",
"",
"\\end{align*}",
"",
"Hence $f(x)$ is surjective"
],
"description": "Template for surjective proof",
},
2021-05-17 00:31:46 +02:00
"Bijective Function Proof": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["prove-bijective"],
"body": [
"\\textbf{Injective:}",
"",
"In order for $f(x)$ to be injective, it has to hold that",
"",
"\\[ f(a) = f(b) \\Rightarrow a = b \\]",
"",
"\\begin{align*}",
" f(a) &= f(b) \\\\",
" $0",
"\\end{align*}",
"",
"Hence $f(x)$ is injective.",
"",
"",
"\\textbf{Surjective:}",
"",
"In order for $f(x)$ to be surjective, it has to hold that",
"",
"\\[ \\forall x \\in SET \\exists y \\in SET [f(x) = y] \\]",
"",
"\\begin{align*}",
" y &= $1 \\\\",
"",
" x &= \\\\" ,
"\\end{align*}",
"",
"$ $ makes up all the elements in SET",
"",
"\\begin{align*}",
" f(y) &= \\\\",
"",
"\\end{align*}",
"",
"Hence $f(x)$ is surjective",
"",
"",
"\\textbf{Inverse:}",
"",
"The inverse is the same as the expression which makes up $x$ which we used to prove that $f(x)$ is surjective. Hence",
"",
"\\[ f^{-1}(x) = \\]",
],
"description": "Template for bijective proof",
},
2021-05-17 00:31:46 +02:00
"Equivalence Relation Proof": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["prove-eq-rel"],
"body": [
"In order for this relation to be an equivalence equation, it has to be reflexive, symmetric and transitive.",
"",
"\\textbf{Reflexive:}",
"",
"\\[ \\]",
"",
"\\textbf{Symmetric:}",
"",
"\\[ \\]",
"",
"\\textbf{Transitive:}",
"",
"\\[ \\]",
"",
"Hence the relation is an equivalence relation",
],
"description": "Template for equivalence relation proof",
},
2021-05-17 00:31:46 +02:00
"Partial Order Proof": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["prove-poset"],
"body": [
"In order for this relation to be a partial order, it has to be reflexive, antisymmetric and transitive.",
"",
"\\textbf{Reflexive:}",
"",
"\\[ \\]",
"",
"\\textbf{Antisymmetric:}",
"",
"\\[ \\]",
"",
"\\textbf{Transitive:}",
"",
"\\[ \\]",
"",
"Hence the relation is a partial order",
],
"description": "Template for poset proof",
},
2021-05-17 00:31:46 +02:00
"Poset MinMax": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
"prefix": ["minmax-poset"],
"body": [
"Minimal elements:",
" \\[ \\{ $0 \\} \\]",
"Maximal elements:",
" \\[ \\{ \\} \\]"
],
"description": "Minimal maximal elements for poset",
},
2021-05-17 00:31:46 +02:00
"Binomial Coefficient": {
2021-05-10 17:41:58 +02:00
"scope": "latex",
2021-05-17 00:31:46 +02:00
"prefix": ["binom-co"],
"body": "\\[ \nCr{$0}{$1}x^{$2}y^{$1} = $3 x^{$2}y^{$1}\\]",
"description": "Formula for a binomial coefficient",
2021-05-10 17:41:58 +02:00
},
}