Add some quicktex shortcuts

master
Jonathan Hodgson 8 years ago
parent 42dd3ce731
commit 203796cd40
  1. 12
      .vimrc

@ -82,6 +82,7 @@ let g:airline_theme='dark'
" Quick tex options {{{2 " Quick tex options {{{2
" HTML {{{3
let g:quicktex_html = { let g:quicktex_html = {
\' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>", \' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>",
\';b' : "<b><+++></b> <++>", \';b' : "<b><+++></b> <++>",
@ -96,11 +97,14 @@ let g:quicktex_html = {
\';li' : "<li><++></li>", \';li' : "<li><++></li>",
\} \}
" Latex Normal {{{3
let g:quicktex_tex = { let g:quicktex_tex = {
\' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>", \' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>",
\';b' : "\\textbf{<+++>} <++>", \';b' : "\\textbf{<+++>} <++>",
\';e' : "\\emph{<+++>} <++>", \';e' : "\\emph{<+++>} <++>",
\'prf' : "\\begin{proof}\<CR><+++>\<CR>\\end{proof}", \'prf' : "\\begin{proof}\<CR><+++>\<CR>\\end{proof}",
\';m' : "$<+++>$ <++>",
\';M' : "\\[ <+++> \\] <++>",
\';ma' : "$a$ ", \';ma' : "$a$ ",
\';mb' : "$b$ ", \';mb' : "$b$ ",
\';mc' : "$c$ ", \';mc' : "$c$ ",
@ -155,31 +159,31 @@ let g:quicktex_tex = {
\';mZ' : "$Z$ ", \';mZ' : "$Z$ ",
\} \}
" Latex Maths {{{3
let g:quicktex_math = { let g:quicktex_math = {
\' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>", \' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>",
\';b' : "\\mathbf{<+++>} <++>", \';b' : "\\mathbf{<+++>} <++>",
\';B' : "\\mathbb{<+++>} <++>",
\'fr' : '\mathcal{R} ', \'fr' : '\mathcal{R} ',
\'eq' : '= ', \'eq' : '= ',
\'set' : '\{ <+++> \} <++>', \'set' : '\{ <+++> \} <++>',
\'frac' : '\frac{<+++>}{<++>} <++>', \'frac' : '\frac{<+++>}{<++>} <++>',
\'one' : '1 ',
\'st' : ': ',
\'in' : '\in ', \'in' : '\in ',
\'bn' : '\mathbb{N} ', \'bn' : '\mathbb{N} ',
\} \}
" Markdown {{{3
let g:quicktex_markdown = { let g:quicktex_markdown = {
\' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>", \' ' : "\<ESC>/<+.*+>\<CR>\"_c/+>/e\<CR>",
\';b' : "**<+++>** <++>", \';b' : "**<+++>** <++>",
\';i' : "*<+++>* <++>", \';i' : "*<+++>* <++>",
\';a' : "[<+++>](<+url+>) <++>", \';a' : "[<+++>](<+url+>) <++>",
\} \}
let g:quicktex_pandoc = g:quicktex_markdown let g:quicktex_pandoc = g:quicktex_markdown
"}}} "}}}
"}}}
" Functions {{{1 " Functions {{{1

Loading…
Cancel
Save