Update
This commit is contained in:
5
snippets/emacs-lisp-mode/github
Normal file
5
snippets/emacs-lisp-mode/github
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: github
|
||||
# key: github
|
||||
# --
|
||||
($1 :type git :host github :repo "$2/${1:repo}")$0
|
||||
@@ -1,4 +1,4 @@
|
||||
# key: template
|
||||
# key: templatee
|
||||
# name: Basic template
|
||||
# group: skeleton
|
||||
# --
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
# condition: (and (not (texmathp)) (quote auto))
|
||||
# group: math
|
||||
# --
|
||||
\[ `(save-excursion (previous-line)(make-string (current-indentation) ?\s))`$0 \]
|
||||
|
||||
\[ $0 \]
|
||||
|
||||
7
snippets/latex-mode/begin
Normal file
7
snippets/latex-mode/begin
Normal 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
7
snippets/latex-mode/cdot
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: cdot
|
||||
# key: c.
|
||||
# group: math
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# --
|
||||
\\cdot
|
||||
7
snippets/latex-mode/cdots
Normal file
7
snippets/latex-mode/cdots
Normal 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
7
snippets/latex-mode/cong
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: cong
|
||||
# key: ~=
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# group: math
|
||||
# --
|
||||
\\cong
|
||||
7
snippets/latex-mode/defined as
Normal file
7
snippets/latex-mode/defined as
Normal 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
7
snippets/latex-mode/deg
Normal 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
6
snippets/latex-mode/iff
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: iff
|
||||
# key: iff
|
||||
# group: text
|
||||
# --
|
||||
if and only if
|
||||
7
snippets/latex-mode/infinity
Normal file
7
snippets/latex-mode/infinity
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: infinity
|
||||
# key: oo
|
||||
# group: math
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# --
|
||||
\infty
|
||||
@@ -1,5 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: arctan
|
||||
# name: ker
|
||||
# key: ker
|
||||
# group: math
|
||||
# condition: (and (texmathp) 'auto)
|
||||
|
||||
7
snippets/latex-mode/lrangle
Normal file
7
snippets/latex-mode/lrangle
Normal 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
|
||||
7
snippets/latex-mode/mapsto
Normal file
7
snippets/latex-mode/mapsto
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: mapsto
|
||||
# key: mto
|
||||
# group: math
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# --
|
||||
\\mapsto
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: not equal
|
||||
# key: neq
|
||||
# key: !=
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# group: math
|
||||
# --
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: set
|
||||
# key: set
|
||||
# key: sett
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# group: math
|
||||
# --
|
||||
|
||||
7
snippets/latex-mode/setminus
Normal file
7
snippets/latex-mode/setminus
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: setminus
|
||||
# key: set-
|
||||
# group: math
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# --
|
||||
\setminus
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: star
|
||||
# key: star
|
||||
# key: **
|
||||
# group: math
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# --
|
||||
|
||||
7
snippets/latex-mode/subseteq
Normal file
7
snippets/latex-mode/subseteq
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: subseteq
|
||||
# key: \subset=
|
||||
# group: math
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# --
|
||||
\subseteq
|
||||
@@ -3,5 +3,6 @@
|
||||
# key: sum
|
||||
# group: math
|
||||
# name: \sum_{n}^{}
|
||||
# condition: (and (texmathp) 'auto)
|
||||
# --
|
||||
\sum_{$1}^{$2}$0
|
||||
24
snippets/latex-mode/template
Normal file
24
snippets/latex-mode/template
Normal 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}
|
||||
Reference in New Issue
Block a user