Skip to content

Math snippets Visual Studio Code extension for LaTeX and Markdown

Notifications You must be signed in to change notification settings

thomanq/math-snippets

Repository files navigation

Math snippets for LaTeX and Markdown

A set of math snippets for Visual Studio Code.

Available snippets

Provides autocomplete for most LaTeX math symbols including:

  • Common constructs (\frac, \sqrt, ...)
  • Greek letters (\alpha, \beta, \gamma, ...)
  • Variable-sized operators (\sum, \prod, \int, ...)
  • Arrows (\mapsto, \Rightarrow, \Leftrightarrow, ...)
  • Roman names (\lim, \log, \sin, \cos, ...)
  • Decorations (\vec, \overline, \hat, ...)
  • Logic and sets (\exists, \forall, \emptyset, \in, ...)
  • Fences and delimiters (\langle, \lfloor, \lceil, ...)

These snippets are accessible without the leading backslash character \.

In addition to the standard LaTeX names, the following aliases and shortcuts are provided :

Alias Resolves to Description
ii $...$ Creates inline math formula with dollar delimiters
id $\displaystyle ...$ Creates inline displaystyle math formula with dollar delimiters
dd $$ ... $$ Creates display math formula with dollar delimiters
II \(...\) Creates inline math formula with bracket delimiters
DD \[\] Creates inline display math formula with bracket delimiters
abs \leftǀ... \rightǀ Absolute value
norm \left\ǀ ... \right\ǀ Vector norm
lrparentheses \left( ... \right) Matching parentheses
lrbrackets \left[ ... \right] Matching brackets
bb \\mathbb{...} Math BB font
bf \mathbf{...} Math BF font

The full list of supported snippets can be found here.

How to write math with Markdown

There are several VS Code extensions available from the Marketplace, for example Markdown+Math. It is thus possible to use the built-in Markdown preview pane within VS Code.

Another way is to use KaTeX directly by placing the starter template code on top of your Markdown file.

Licence

MIT

About

Math snippets Visual Studio Code extension for LaTeX and Markdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •