This commit is contained in:
Zelong Kuang
2026-03-11 21:08:31 +11:00
parent 4e569a2831
commit 2bfe738a6a
41 changed files with 385 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
# key: template
# key: templatee
# name: Basic template
# group: skeleton
# --

View File

@@ -3,4 +3,5 @@
# condition: (and (not (texmathp)) (quote auto))
# group: math
# --
\[ `(save-excursion (previous-line)(make-string (current-indentation) ?\s))`$0 \]
\[ $0 \]

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key : beg
# name : \begin{} ... \end{}
# --
\begin{${1:$$(yas-choose-value (mapcar 'car LaTeX-environment-list))}}
$0
\end{$1}

7
snippets/latex-mode/cdot Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: cdot
# key: c.
# group: math
# condition: (and (texmathp) 'auto)
# --
\\cdot

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: cdots
# key: \cdot.
# group: math
# condition: (and (texmathp) 'auto)
# --
\\cdots

7
snippets/latex-mode/cong Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: cong
# key: ~=
# condition: (and (texmathp) 'auto)
# group: math
# --
\\cong

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: defined as
# key: :=
# group: math
# condition: (and (texmathp) 'auto)
# --
\coloneqq

7
snippets/latex-mode/deg Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: deg
# key: deg
# group: math
# condition: (and (texmathp) 'auto)
# --
\\deg

6
snippets/latex-mode/iff Normal file
View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: iff
# key: iff
# group: text
# --
if and only if

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: infinity
# key: oo
# group: math
# condition: (and (texmathp) 'auto)
# --
\infty

View File

@@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# name: arctan
# name: ker
# key: ker
# group: math
# condition: (and (texmathp) 'auto)

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: \left\langle ... \right\rangle
# key: lra
# condition: (and (texmathp) 'auto)
# group: math
# --
\\left\\langle $1 \\right\\rangle$0

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: mapsto
# key: mto
# group: math
# condition: (and (texmathp) 'auto)
# --
\\mapsto

View File

@@ -1,6 +1,6 @@
# -*- mode: snippet -*-
# name: not equal
# key: neq
# key: !=
# condition: (and (texmathp) 'auto)
# group: math
# --

View File

@@ -1,6 +1,6 @@
# -*- mode: snippet -*-
# name: set
# key: set
# key: sett
# condition: (and (texmathp) 'auto)
# group: math
# --

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: setminus
# key: set-
# group: math
# condition: (and (texmathp) 'auto)
# --
\setminus

View File

@@ -1,6 +1,6 @@
# -*- mode: snippet -*-
# name: star
# key: star
# key: **
# group: math
# condition: (and (texmathp) 'auto)
# --

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: subseteq
# key: \subset=
# group: math
# condition: (and (texmathp) 'auto)
# --
\subseteq

View File

@@ -3,5 +3,6 @@
# key: sum
# group: math
# name: \sum_{n}^{}
# condition: (and (texmathp) 'auto)
# --
\sum_{$1}^{$2}$0

View File

@@ -0,0 +1,24 @@
# -*- mode: snippet -*-
# name: template
# key: template
# --
\documentclass[12pt]{/Users/zelongk/Documents/latex/elegantbook}
\title{$1}
\author{`user-full-name`}
\institute{Whichever-you-like university}
\date{\today}
\begin{document}
\maketitle
% logo
% \centerline{\includegraphics[width=0.2\textwidth]{logo-blue}}
\newpage
\tableofcontents
$0
\end{document}