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