Fixed up some tex shortcuts, and added shell escape to tex
This commit is contained in:
@@ -104,11 +104,11 @@ snippet vector "Graph Vector" w
|
||||
endsnippet
|
||||
|
||||
snippet xaxis "X Axis" w
|
||||
\draw[<->] (-$1,0)--($1,0) node[anchor=west]{$x$};$0
|
||||
\draw[->] (0,0)--($1,0) node[anchor=west]{$x$};$0
|
||||
endsnippet
|
||||
|
||||
snippet yaxis "Y Axis" w
|
||||
\draw[<->] (0,-$1)--(0,$1) node[anchor=west]{$y$};$0
|
||||
\draw[->] (0,0)--(0,$1) node[anchor=west]{$y$};$0
|
||||
endsnippet
|
||||
|
||||
snippet axes "Graph between two axes"
|
||||
@@ -131,3 +131,7 @@ endsnippet
|
||||
snippet brace "Curly brace between points" w
|
||||
\draw[decorate,decoration={brace}] ($1) -- ($2) node[]{$3};$0
|
||||
endsnippet
|
||||
|
||||
snippet link "Hyperlink" w
|
||||
\href{$1}{$2}$0
|
||||
endsnippet
|
||||
|
||||
@@ -94,6 +94,17 @@ let g:mkdp_preview_options = {
|
||||
\ 'disable_sync_scroll': 1,
|
||||
\ }
|
||||
|
||||
" LaTeX shell escape
|
||||
let g:vimtex_compiler_latexmk = {
|
||||
\ 'options' : [
|
||||
\ '-shell-escape',
|
||||
\ '-verbose',
|
||||
\ '-file-line-error',
|
||||
\ '-synctex=1',
|
||||
\ '-interaction=nonstopmode',
|
||||
\ ],
|
||||
\ }
|
||||
|
||||
" Run the Java formatter on save
|
||||
augroup autoformat_settings
|
||||
autocmd FileType java AutoFormatBuffer google-java-format
|
||||
|
||||
Reference in New Issue
Block a user