Aggiustamenti cambiando da latexsuite a vimtex + UltiSnips + varie.
This commit is contained in:
parent
1d9abd1c11
commit
37a6b4cbe5
14 changed files with 276 additions and 388 deletions
50
vim/UltiSnips/tex/global.snippets
Normal file
50
vim/UltiSnips/tex/global.snippets
Normal file
|
@ -0,0 +1,50 @@
|
|||
# vim:sts=2:sw=2
|
||||
|
||||
snippet use "Usepackage" b
|
||||
\usepackage[${2:options}]{${1:${VISUAL}}}$0
|
||||
endsnippet
|
||||
|
||||
snippet it "Italics (LaTeX macro)"
|
||||
\textit{${1:${VISUAL}}}$0
|
||||
endsnippet
|
||||
|
||||
snippet +it "Insert an item in an environment" b
|
||||
\item ${VISUAL}$0
|
||||
endsnippet
|
||||
|
||||
snippet bf "Bold (LaTeX macro)"
|
||||
\textbf{${1:${VISUAL}}}$0
|
||||
endsnippet
|
||||
|
||||
snippet sl "Slanted (LaTeX macro)"
|
||||
\textsl{${1:${VISUAL}}}$0
|
||||
endsnippet
|
||||
|
||||
snippet sc "Small Caps (LaTeX macro)"
|
||||
\textsc{${1:${VISUAL}}}$0
|
||||
endsnippet
|
||||
|
||||
snippet em "Emphasize (LaTeX macro)"
|
||||
\emph{${1:${VISUAL}}}$0
|
||||
endsnippet
|
||||
|
||||
snippet al "Alert text"
|
||||
\alert{${1:${VISUAL}}}<${2:overlay}>$0
|
||||
endsnippet
|
||||
|
||||
snippet ebl "Beamer Block Environment" b
|
||||
\begin{block}{${2:titolo}}<$3>
|
||||
${VISUAL}$1
|
||||
\end{block}
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
global !p
|
||||
def math():
|
||||
return vim.eval('vimtex#syntax#in_mathzone()') == '1'
|
||||
endglobal
|
||||
|
||||
context "math()"
|
||||
snippet ff "\frac macro."
|
||||
\frac{$1}{$2}$0
|
||||
endsnippet
|
Loading…
Add table
Add a link
Reference in a new issue