From 71a45e45754e2fe2aeeb03ad60332d4646657140 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 28 Feb 2023 15:03:25 +0100 Subject: [PATCH] Few latex abbreviation / snippet tweaks --- dotfiles/neovim/ftplugin/tex.lua | 2 ++ dotfiles/vscode-snippets/snippets/latex/core.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dotfiles/neovim/ftplugin/tex.lua b/dotfiles/neovim/ftplugin/tex.lua index 08daa65..6415712 100644 --- a/dotfiles/neovim/ftplugin/tex.lua +++ b/dotfiles/neovim/ftplugin/tex.lua @@ -85,6 +85,8 @@ local abbreviations = { { "card", "\\#" }, { "div", "\\|" }, { "ndiv", "\\not\\|\\:" }, + { "perp", "\\perp" }, + { "iprod", "\\iprod" }, -- custom inner product command -- words { "rref", "reduced row echalon form" }, diff --git a/dotfiles/vscode-snippets/snippets/latex/core.json b/dotfiles/vscode-snippets/snippets/latex/core.json index b609911..d36d105 100644 --- a/dotfiles/vscode-snippets/snippets/latex/core.json +++ b/dotfiles/vscode-snippets/snippets/latex/core.json @@ -206,7 +206,7 @@ "Aligned display math": { "prefix": "maligned", "description": "Create an aligned display math environment", - "body": ["\\begin{align}", "\t$0", "\\end{align}"] + "body": ["\\begin{align*}", "\t$0", "\\end{align*}"] }, "System of equations": { "prefix": "eqsystem",