Ulteriori aggiunte a snippets per LaTeX.

This commit is contained in:
Emiliano Vavassori 2023-06-16 00:20:25 +02:00
parent e0bec091e2
commit 21bcb06555

View File

@ -1,15 +1,30 @@
# vim:sts=2:sw=2 # vim:sts=2:sw=2
snippet use "Usepackage" b
\usepackage{${1:${VISUAL:babel}}}$0
endsnippet
snippet env "Create environment from input" b snippet useo "Usepackage with option" b
\usepackage[${2:italian}]{${1:${VISUAL:babel}}}$0
endsnippet
snippet italian "Use italian hyphenations with polyglossia" b
\usepackage{polyglossia}
\setdefaultlanguage{italian}
$0
endsnippet
snippet othlang "Insert an environment with another language" b
\begin{lang}{${1:english}}
$0
\end{lang}
endsnippet
snippet env "Environment from input" b
\begin{${1:${VISUAL:center}}} \begin{${1:${VISUAL:center}}}
$0 $0
\end{$1} \end{$1}
endsnippet endsnippet
snippet use "Usepackage" b
\usepackage[${2:italian}]{${1:${VISUAL:babel}}}$0
endsnippet
snippet it "Italics (LaTeX macro)" snippet it "Italics (LaTeX macro)"
\textit{${1:${VISUAL}}}$0 \textit{${1:${VISUAL}}}$0
endsnippet endsnippet