Add binomial coefficient snippet

This commit is contained in:
Oystein Kristoffer Tveit 2021-05-17 00:31:46 +02:00
parent a39f5919a3
commit f440e3cb4c
1 changed files with 24 additions and 17 deletions

View File

@ -1,5 +1,5 @@
{ {
"exc": { "Exc": {
"scope": "latex", "scope": "latex",
"prefix": ["\\exc"], "prefix": ["\\exc"],
"body": "body":
@ -13,7 +13,7 @@
"description": "Adds new exc with subexcs", "description": "Adds new exc with subexcs",
}, },
"subexc": { "Subexc": {
"scope": "latex", "scope": "latex",
"prefix": ["\\subexc"], "prefix": ["\\subexc"],
"body": "body":
@ -27,7 +27,14 @@
"description": "Adds new subexc with ssubexcs", "description": "Adds new subexc with ssubexcs",
}, },
"graph-table": { "Diagram": {
"scope": "latex",
"prefix": ["dia"],
"body": "\\includeDiagram[caption={}, width=1\\linewidth]{graphics/$0.tex}",
"description": "Include a diagram",
},
"Graph Table": {
"scope": "latex", "scope": "latex",
"prefix": ["graph-table"], "prefix": ["graph-table"],
"body": "body":
@ -48,7 +55,7 @@
"description": "Adds graph-table", "description": "Adds graph-table",
}, },
"graph-table-double": { "Graph Table Double": {
"scope": "latex", "scope": "latex",
"prefix": ["graph-dtable"], "prefix": ["graph-dtable"],
"body": "body":
@ -69,21 +76,21 @@
"description": "Adds graph-table", "description": "Adds graph-table",
}, },
"graph-table-line": { "Graph Table Line": {
"scope": "latex", "scope": "latex",
"prefix": ["gtl"], "prefix": ["gtl"],
"body": " $s_$ & $s_$ & $s_$ \\\\", "body": " $s_$ & $s_$ & $s_$ \\\\",
"description": "Adds line inside graph-table", "description": "Adds line inside graph-table",
}, },
"graph-table-double-line": { "Graph Table Double Line": {
"scope": "latex", "scope": "latex",
"prefix": ["gtdl"], "prefix": ["gtdl"],
"body": " $s_$ & $s_$ & $s_$ & $s_$ & $s_$ \\\\", "body": " $s_$ & $s_$ & $s_$ & $s_$ & $s_$ \\\\",
"description": "Adds line inside a double graph-table", "description": "Adds line inside a double graph-table",
}, },
"induction-proof": { "Induction Proof": {
"scope": "latex", "scope": "latex",
"prefix": ["prove-induction"], "prefix": ["prove-induction"],
"body": [ "body": [
@ -109,7 +116,7 @@
"description": "Template for induction proof", "description": "Template for induction proof",
}, },
"injective-proof": { "Injective Proof": {
"scope": "latex", "scope": "latex",
"prefix": ["prove-injective"], "prefix": ["prove-injective"],
"body": [ "body": [
@ -127,7 +134,7 @@
"description": "Template for injective proof", "description": "Template for injective proof",
}, },
"surjective-proof": { "Surjective Proof": {
"scope": "latex", "scope": "latex",
"prefix": ["prove-surjective"], "prefix": ["prove-surjective"],
"body": [ "body": [
@ -153,7 +160,7 @@
"description": "Template for surjective proof", "description": "Template for surjective proof",
}, },
"bijective-proof": { "Bijective Function Proof": {
"scope": "latex", "scope": "latex",
"prefix": ["prove-bijective"], "prefix": ["prove-bijective"],
"body": [ "body": [
@ -202,7 +209,7 @@
"description": "Template for bijective proof", "description": "Template for bijective proof",
}, },
"equivalence-relation-proof": { "Equivalence Relation Proof": {
"scope": "latex", "scope": "latex",
"prefix": ["prove-eq-rel"], "prefix": ["prove-eq-rel"],
"body": [ "body": [
@ -225,7 +232,7 @@
"description": "Template for equivalence relation proof", "description": "Template for equivalence relation proof",
}, },
"partial order-proof": { "Partial Order Proof": {
"scope": "latex", "scope": "latex",
"prefix": ["prove-poset"], "prefix": ["prove-poset"],
"body": [ "body": [
@ -248,7 +255,7 @@
"description": "Template for poset proof", "description": "Template for poset proof",
}, },
"poset minmax": { "Poset MinMax": {
"scope": "latex", "scope": "latex",
"prefix": ["minmax-poset"], "prefix": ["minmax-poset"],
"body": [ "body": [
@ -260,11 +267,11 @@
"description": "Minimal maximal elements for poset", "description": "Minimal maximal elements for poset",
}, },
"Diagram": { "Binomial Coefficient": {
"scope": "latex", "scope": "latex",
"prefix": ["dia"], "prefix": ["binom-co"],
"body": "\\includeDiagram[caption={}, width=1\\linewidth]{graphics/$0.tex}", "body": "\\[ \nCr{$0}{$1}x^{$2}y^{$1} = $3 x^{$2}y^{$1}\\]",
"description": "Include a diagram", "description": "Formula for a binomial coefficient",
}, },
} }