feat(emacs): some org & latex snippets

This commit is contained in:
2025-11-22 03:11:50 -07:00
parent 822d857ba9
commit 9e9693f82b
12 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Rasmus Borgsmidt <rasmus@borgsmidt.dk>
# key : align
# group: environments
# name : \begin{align} ... \end{align}
# --
\begin{align}
$0
\end{align}

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor : Rasmus Borgsmidt <rasmus@borgsmidt.dk>
# key : aligns
# group: environments
# name : \begin{align*} ... \end{align*}
# --
\begin{align*}
$0
\end{align*}

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: dm
# name: Display Math
# condition: (and (not (texmathp)) (quote auto))
# group: math
# --
\[ `(save-excursion (previous-line)(make-string (current-indentation) ?\s))`$0 \]

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: eq
# group: math
# name: \begin{equation} ... \end{equation}
# --
\begin{equation}
$0
\end{equation}

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# key: eqs
# group: math
# name: \begin{equation*} ... \end{equation*}
# --
\begin{equation*}
$0
\end{equation*}

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# contributor: Song Qiang <tsiangsung@gmail.com>
# key: frac
# group: math
# name: \frac{numerator}{denominator}
# --
\frac{${1:numerator}}{${2:denominator}}$0

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: mk
# name: Inline Math
# condition: (and (not (texmathp)) (quote auto))
# group: math
# --
\\( $0 \\)

View File

@@ -0,0 +1 @@
latex-mode

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor: Madeleine Sydney Slaga <msyds@deertopia.net>
# key: ft
# name: #+filetags: …
# --
#+filetags: $1

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# contributor: Madeleine Sydney Slaga <msyds@deertopia.net>
# key: lh
# name: #+latex_header: …
# --
#+latex_header: $1