Many changes
This commit is contained in:
parent
104ae1ec42
commit
7c61e64fa8
14 changed files with 139 additions and 92 deletions
dotfiles/vscode-snippets
|
@ -32,6 +32,12 @@
|
|||
],
|
||||
"path": "./snippets/latex/core.json"
|
||||
},
|
||||
{
|
||||
"language": [
|
||||
"tex"
|
||||
],
|
||||
"path": "./snippets/latex/explain.json"
|
||||
},
|
||||
{
|
||||
"language": [
|
||||
"lua"
|
||||
|
|
|
@ -12,10 +12,7 @@
|
|||
"Absolute value": {
|
||||
"prefix": "abs",
|
||||
"description": "Absolute values",
|
||||
"body": "|$1|$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "|$1|$0"
|
||||
},
|
||||
"Lemma": {
|
||||
"prefix": "lemma",
|
||||
|
@ -59,26 +56,27 @@
|
|||
"Subscript": {
|
||||
"prefix": "ss",
|
||||
"description": "Subscript",
|
||||
"body": "_{$1}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "_{$1}$0"
|
||||
},
|
||||
"Exponent": {
|
||||
"prefix": "ee",
|
||||
"description": "Exponent",
|
||||
"body": "^{$1}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "^{$1}$0"
|
||||
},
|
||||
"Nth derivative": {
|
||||
"prefix": "dd",
|
||||
"description": "Nth derivative",
|
||||
"body": "^{($1)}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "^{($1)}$0"
|
||||
},
|
||||
"Overline": {
|
||||
"prefix": "ol",
|
||||
"description": "Overline",
|
||||
"body": "\\overline{$1}$0"
|
||||
},
|
||||
"Z Mod": {
|
||||
"prefix": "zmod",
|
||||
"description": "The set of Z/nZ",
|
||||
"body": "\\mathbb{Z}/$1\\mathbb{Z}$0"
|
||||
},
|
||||
"Section": {
|
||||
"prefix": "section",
|
||||
|
@ -133,74 +131,47 @@
|
|||
"Sigma sum": {
|
||||
"prefix": "bsum",
|
||||
"description": "Create a sum using sigma notation",
|
||||
"body": "\\sum_{$1 = $2}^{$3}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "\\sum_{$1 = $2}^{$3}$0"
|
||||
},
|
||||
"Pi product": {
|
||||
"prefix": "bproduct",
|
||||
"description": "Create a produt using pi notation",
|
||||
"body": "\\prod_{$1 = $2}^{$3}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "\\prod_{$1 = $2}^{$3}$0"
|
||||
},
|
||||
"Fraction": {
|
||||
"prefix": "frac",
|
||||
"description": "Create a fraction",
|
||||
"body": "\\frac{$1}{$2}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "\\frac{$1}{$2}$0"
|
||||
},
|
||||
"Choose": {
|
||||
"prefix": "binom",
|
||||
"description": "Create a (n choose k) thingy",
|
||||
"body": "\\binom{$1}{$2}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "\\binom{$1}{$2}$0"
|
||||
},
|
||||
"Limit": {
|
||||
"prefix": "lim",
|
||||
"description": "Create a limit",
|
||||
"body": "\\lim _{$1 \\to $2}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "\\lim _{$1 \\to $2}$0"
|
||||
},
|
||||
"Limit to infinity": {
|
||||
"prefix": "ilim",
|
||||
"description": "Create a limit as a variable goes to infinity",
|
||||
"body": "\\lim _{$1 \\to \\infty}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "\\lim _{$1 \\to \\infty}$0"
|
||||
},
|
||||
"Limit to negative infinity": {
|
||||
"prefix": "nlim",
|
||||
"description": "Create a limit as a variable goes to negative infinity",
|
||||
"body": "\\lim _{$1 \\to -\\infty}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "\\lim _{$1 \\to -\\infty}$0"
|
||||
},
|
||||
"Limit to zero": {
|
||||
"prefix": "zlim",
|
||||
"description": "Create a limit as a variable goes to 0",
|
||||
"body": "\\lim _{$1 \\to 0}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "\\lim _{$1 \\to 0}$0"
|
||||
},
|
||||
"Sqrt": {
|
||||
"prefix": "sqrt",
|
||||
"description": "Create a sqrt",
|
||||
"body": "\\sqrt[$1]{$2}$0",
|
||||
"luasnip": {
|
||||
"autotrigger": true
|
||||
}
|
||||
"body": "\\sqrt[$1]{$2}$0"
|
||||
},
|
||||
"Sin": {
|
||||
"prefix": "sin",
|
||||
|
|
77
dotfiles/vscode-snippets/snippets/latex/explain.json
Normal file
77
dotfiles/vscode-snippets/snippets/latex/explain.json
Normal file
|
@ -0,0 +1,77 @@
|
|||
{
|
||||
"Text explanation in math mode": {
|
||||
"prefix": "texpl",
|
||||
"description": "Explain a step using text in math mode",
|
||||
"body": "&& \\text{($1)}$0"
|
||||
},
|
||||
"Explanation in math mode": {
|
||||
"prefix": "expl",
|
||||
"description": "Explain a step in math mode",
|
||||
"body": "&& ($1) $0"
|
||||
},
|
||||
"Explain division": {
|
||||
"prefix": "exdiv",
|
||||
"description": "Explain a division inside an equation",
|
||||
"body": "&& \\left(\\frac{\\square}{$1}\\right)$0"
|
||||
},
|
||||
"Explain fraction": {
|
||||
"prefix": "exfract",
|
||||
"description": "Explain a step which wraps both sides of an equation by a fraction",
|
||||
"body": "&& \\left(\\frac{$1}{$2} \\right)$0"
|
||||
},
|
||||
"Explain right multiplication": {
|
||||
"prefix": "exmul",
|
||||
"description": "Explain a right multiplication inside an equation",
|
||||
"body": "&& \\left(\\square \\cdot $1 \\right)$0"
|
||||
},
|
||||
"Explain left multiplication": {
|
||||
"prefix": "exlmul",
|
||||
"description": "Explain a left multiplication inside an equation",
|
||||
"body": "&& \\left($1 \\cdot \\square\\right)$0"
|
||||
},
|
||||
"Explain differentiation": {
|
||||
"prefix": "exdiff",
|
||||
"description": "Explain a step which differentiates both sides of an equation",
|
||||
"body": "&& \\left( \\frac{d \\square} {d $1} \\right)$0"
|
||||
},
|
||||
"Explain integration": {
|
||||
"prefix": "exint",
|
||||
"description": "Explain a step which integrates both sides of an equation",
|
||||
"body": "&& \\left(\\int \\square d$1 \\right)$0"
|
||||
},
|
||||
"Explain definite integration": {
|
||||
"prefix": "exdint",
|
||||
"description": "Explain a step which applies a definite integral to both sides of an equation",
|
||||
"body": "&& \\left(\\int _{$1} ^{$2} \\square d$3 \\right)$0"
|
||||
},
|
||||
"Explain addition": {
|
||||
"prefix": "exadd",
|
||||
"description": "Explain a step which adds to both sides of an equation",
|
||||
"body": "&& \\left( \\square + $1 \\right)$0"
|
||||
},
|
||||
"Explain subtraction": {
|
||||
"prefix": "exsub",
|
||||
"description": "Explain a step which subtracts from both sides of an equation",
|
||||
"body": "&& \\left( \\square - $1 \\right)$0"
|
||||
},
|
||||
"Explain negation": {
|
||||
"prefix": "exneg",
|
||||
"description": "Explain a step which negates both sides of an equation",
|
||||
"body": "&& (- \\square )$0"
|
||||
},
|
||||
"Explain power": {
|
||||
"prefix": "expow",
|
||||
"description": "Explain a step which raises both sides of an equation to a given power",
|
||||
"body": "&& \\left( \\square ^{$1} \\right)$0"
|
||||
},
|
||||
"Explain exponentiation": {
|
||||
"prefix": "exexp",
|
||||
"description": "Explain a step which raises a given value to both sides of an equation",
|
||||
"body": "&& \\left( $1 ^{\\square} \\right)$0"
|
||||
},
|
||||
"Explain natural logarithm": {
|
||||
"prefix": "exln",
|
||||
"description": "Explain a step which applies the ln function to both sides of an equation",
|
||||
"body": "&& \\left( \\ln $1 \\right)$0"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue