Correzione UltiSnips definiti per LaTeX. Aggiunta env.
This commit is contained in:
parent
ff94169c66
commit
e0bec091e2
2 changed files with 27 additions and 14 deletions
|
@ -1,7 +1,13 @@
|
|||
# vim:sts=2:sw=2
|
||||
|
||||
snippet env "Create environment from input" b
|
||||
\begin{${1:${VISUAL:center}}}
|
||||
$0
|
||||
\end{$1}
|
||||
endsnippet
|
||||
|
||||
snippet use "Usepackage" b
|
||||
\usepackage[${2:options}]{${1:${VISUAL}}}$0
|
||||
\usepackage[${2:italian}]{${1:${VISUAL:babel}}}$0
|
||||
endsnippet
|
||||
|
||||
snippet it "Italics (LaTeX macro)"
|
||||
|
@ -9,32 +15,33 @@ snippet it "Italics (LaTeX macro)"
|
|||
endsnippet
|
||||
|
||||
snippet +it "Insert an item in an environment" b
|
||||
\item ${VISUAL}$0
|
||||
\item ${1:${VISUAL}}
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet bf "Bold (LaTeX macro)"
|
||||
\textbf{${1:${VISUAL}}}$0
|
||||
\textbf{${1:${VISUAL}}} $0
|
||||
endsnippet
|
||||
|
||||
snippet sl "Slanted (LaTeX macro)"
|
||||
\textsl{${1:${VISUAL}}}$0
|
||||
\textsl{${1:${VISUAL}}} $0
|
||||
endsnippet
|
||||
|
||||
snippet sc "Small Caps (LaTeX macro)"
|
||||
\textsc{${1:${VISUAL}}}$0
|
||||
\textsc{${1:${VISUAL}}} $0
|
||||
endsnippet
|
||||
|
||||
snippet em "Emphasize (LaTeX macro)"
|
||||
\emph{${1:${VISUAL}}}$0
|
||||
\emph{${1:${VISUAL}}} $0
|
||||
endsnippet
|
||||
|
||||
snippet al "Alert text"
|
||||
\alert{${1:${VISUAL}}}<${2:overlay}>$0
|
||||
\alert{${1:${VISUAL}}}<${2:overlay}> $0
|
||||
endsnippet
|
||||
|
||||
snippet ebl "Beamer Block Environment" b
|
||||
\begin{block}{${2:titolo}}<$3>
|
||||
${VISUAL}$1
|
||||
${1:${VISUAL}}
|
||||
\end{block}
|
||||
$0
|
||||
endsnippet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue