Fixed up some tex shortcuts, and added shell escape to tex

This commit is contained in:
Nicholas Novak
2022-09-19 12:40:25 -07:00
parent 4115accbc2
commit 1b8a534f5e
2 changed files with 17 additions and 2 deletions
+6 -2
View File
@@ -104,11 +104,11 @@ snippet vector "Graph Vector" w
endsnippet endsnippet
snippet xaxis "X Axis" w 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 endsnippet
snippet yaxis "Y Axis" w 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 endsnippet
snippet axes "Graph between two axes" snippet axes "Graph between two axes"
@@ -131,3 +131,7 @@ endsnippet
snippet brace "Curly brace between points" w snippet brace "Curly brace between points" w
\draw[decorate,decoration={brace}] ($1) -- ($2) node[]{$3};$0 \draw[decorate,decoration={brace}] ($1) -- ($2) node[]{$3};$0
endsnippet endsnippet
snippet link "Hyperlink" w
\href{$1}{$2}$0
endsnippet
+11
View File
@@ -94,6 +94,17 @@ let g:mkdp_preview_options = {
\ 'disable_sync_scroll': 1, \ '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 " Run the Java formatter on save
augroup autoformat_settings augroup autoformat_settings
autocmd FileType java AutoFormatBuffer google-java-format autocmd FileType java AutoFormatBuffer google-java-format