Skip to content

Commit

Permalink
Add snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Anquetin committed Feb 1, 2020
1 parent 7e7c189 commit aa63520
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ The full list of supported snippets can be found [here](https://github.com/thoma

# How to write math with Markdown

There are several VS Code extensions available from the Marketplace, for example [Markdown+Math
](https://marketplace.visualstudio.com/items?itemName=goessner.mdmath). It is thus possible to use the built-in Markdown preview pane within VS Code.
There are several VS Code extensions available from the Marketplace, for example [Markdown+Math](https://marketplace.visualstudio.com/items?itemName=goessner.mdmath). It is thus possible to use the built-in Markdown preview pane within VS Code.

Another way is to use [KaTeX](https://katex.org/) directly by placing the [starter template code](https://github.com/KaTeX/KaTeX#starter-template) on top of your Markdown file.

Expand Down
12 changes: 11 additions & 1 deletion snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,12 @@
"LaTeX - cases (alias)": {
"scope": "",
"prefix": "cases",
"body": ["\\begin{cases}","$1 &\\text{$2}\\\\\\","$3 &\\text{$4}\\\\\\","\\end{cases} $0"]
"body": ["\\begin{cases}","\t$1 &\\text{$2}\\\\\\\\","\t$3 &\\text{$4}\\\\\\\\$5","\\end{cases} $0"]
},
"LaTeX - align (alias)": {
"scope": "",
"prefix": "align",
"body": ["\\begin{${1|align,align*,aligned|}}","\t$2\\\\\\\\","\t$3\\\\\\\\$4","\\end{$1} $0"]
},


Expand Down Expand Up @@ -1736,6 +1741,11 @@



"LaTeX - begin": {
"scope": "",
"prefix": "begin",
"body": ["\\begin{$1}","\t$2","\\end{$1}", "$0"]
},
"LaTeX - text": {
"scope": "",
"prefix": "text",
Expand Down

0 comments on commit aa63520

Please sign in to comment.