Browse Source

Added TeXmath snippets to help with PAR 2

- (in-)line equation
- square root
- therefore
- cdot
red-hat-laptop
Kevin Mok 7 years ago
parent
commit
7adfcb7948
  1. 3
      .vimrc
  2. 30
      UltiSnips/texmath.snippets

3
.vimrc

@ -62,6 +62,7 @@ map <S-Enter> O<ESC>
let mapleader="\<Space>"
nnoremap <leader>e o<ESC>
nnoremap <leader>f :set foldmethod=marker<CR>
nnoremap <leader>ff :set foldmethod=marker<CR>
nnoremap <leader>f za
nnoremap <leader>p :LLPStartPreview<CR>
nnoremap <leader>s :set syn=sh<CR>

30
UltiSnips/texmath.snippets

@ -1,6 +1,6 @@
snippet al "Align (math)" b
\begin{align*}
$0
$0 \\\\
\end{align*}
endsnippet
@ -18,6 +18,30 @@ snippet int "Integral" i
\int_{${1:lower}}^{${2:upper}} \, \mathrm{d}${3:x}
endsnippet
snippet ie "In-line equation" i
$$1$$2
snippet ie "I-L equation" i
$$1$ $2
endsnippet
snippet le "Lined equation" b
$$$1$$
endsnippet
snippet sqrt "Square root" i
\sqrt{$1}$2
endsnippet
snippet ex "cdot" i
\cdot
endsnippet
snippet et "I-L var T" i
$T$
endsnippet
snippet dlty "I-L Delta y" i
$\Delta y$
endsnippet
snippet thus "Therefore" b
$\therefore$
endsnippet
Loading…
Cancel
Save