commit 03ce2be149868433c137e3c7f9a807fab3081005 parent f41e332b52f156e086dd86bccfa492c18c5cdd60 Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Fri, 17 Feb 2023 16:04:52 -0500 Updated tex snippets Diffstat:
| M | UltiSnips/tex.snippets | | | 3 | ++- |
| M | UltiSnips/tex/greek.snippets | | | 15 | +++++++++++++++ |
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/UltiSnips/tex.snippets b/UltiSnips/tex.snippets @@ -521,9 +521,10 @@ endsnippet # --------------------------------------------- # +priority 1 snippet def "begin{definition}" b \begin{definition}[${1}] - $2 \emph{${3:`!p snip.rv = t[1].lower() `}} $0 + $2 `!p snip.rv = " ".join(f'\\emph{{{s.strip().lower()}}}' for s in t[1].split(','))` $0 \end{definition} endsnippet diff --git a/UltiSnips/tex/greek.snippets b/UltiSnips/tex/greek.snippets @@ -87,3 +87,18 @@ context "math()" snippet ;c "\chi" iA \chi endsnippet + +context "math()" +snippet ;W "\Omega" iA +\Omega +endsnippet + +context "math()" +snippet ;w "\omega" iA +\omega +endsnippet + +context "math()" +snippet ;D "\Delta" iA +\Delta +endsnippet