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. 28
      UltiSnips/texmath.snippets

3
.vimrc

@ -62,6 +62,7 @@ map <S-Enter> O<ESC>
let mapleader="\<Space>" let mapleader="\<Space>"
nnoremap <leader>e o<ESC> 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>p :LLPStartPreview<CR>
nnoremap <leader>s :set syn=sh<CR> nnoremap <leader>s :set syn=sh<CR>

28
UltiSnips/texmath.snippets

@ -1,6 +1,6 @@
snippet al "Align (math)" b snippet al "Align (math)" b
\begin{align*} \begin{align*}
$0
$0 \\\\
\end{align*} \end{align*}
endsnippet endsnippet
@ -18,6 +18,30 @@ snippet int "Integral" i
\int_{${1:lower}}^{${2:upper}} \, \mathrm{d}${3:x} \int_{${1:lower}}^{${2:upper}} \, \mathrm{d}${3:x}
endsnippet endsnippet
snippet ie "In-line equation" i
snippet ie "I-L equation" i
$$1$ $2 $$1$ $2
endsnippet 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