dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: f7c6802c9c5ce11233acd37c7b59be56af0f80af
Parent: 83a9597765cbfb7fd66c803ace790f1212a9c1e1
Author: Randy Palamar
Date:   Thu, 12 Oct 2023 09:17:35 -0600

vis: macros: add latex minipage macros

Diffstat:
M.config/vis/macros.lua | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/.config/vis/macros.lua b/.config/vis/macros.lua @@ -56,6 +56,7 @@ local function macros(win) { m.NORMAL, "\\eq", fc({ lenv("equation*"), fk("O") }) }, { m.NORMAL, "\\fi", fc({ lenv("figure", "\\includegraphics[width=\\textwidth]{}"), fk("k$hi") }) }, { m.NORMAL, "\\it", fc({ lenv("itemize", "\n\\item \n"), fk("kkA") }) }, + { m.NORMAL, "\\mi", fc({ ins("\\begin{minipage}[c]{0.49\\textwidth}\n\\end{minipage}\\hfill"), fk("O") }) }, { m.NORMAL, "\\ne", fc({ lenv("equation"), fk("O") }) }, { m.NORMAL, "\\se", fc({ ins("\\section{}"), fk("hi") }) }, { m.NORMAL, "\\su", fc({ ins("\\subsection{}"), fk("hi") }) }, @@ -64,6 +65,7 @@ local function macros(win) { m.VISUAL, "\\ce", sur("\\begin{center}\n", "\\end{center}\n") }, { m.VISUAL, "\\em", sur("\\emph{", "}") }, { m.VISUAL, "\\hl", sur("\\hl{", "}") }, + { m.VISUAL, "\\mi", sur("\\begin{minipage}[c]{0.49\\textwidth}\n", "\\end{minipage}\\hfill\n") }, } lang["haskell"] = { { m.NORMAL, "gq", fk("vip:|hindent<Enter><Escape>") },