Update pandoc snippets
parent
bfe331dfb9
commit
8c555f9572
|
@ -24,21 +24,39 @@
|
||||||
#
|
#
|
||||||
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
|
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
|
||||||
|
|
||||||
|
extends html
|
||||||
|
|
||||||
# Zettelkasten templating
|
# Zettelkasten templating
|
||||||
|
|
||||||
snippet nl
|
snippet nl
|
||||||
(*Ned.*: $1)
|
*Ned.*: $1
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet eng
|
snippet eng
|
||||||
(*Eng.*: $1)
|
*Eng.*: $1
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet fr
|
snippet fr
|
||||||
|
*Fr.*: $1
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet (de
|
||||||
|
*De.*: $1
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet (nl
|
||||||
|
(*Ned.*: $1)
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet (eng
|
||||||
|
(*Eng.*: $1)
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet (fr
|
||||||
(*Fr.*: $1)
|
(*Fr.*: $1)
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet de
|
snippet (de
|
||||||
(*De.*: $1)
|
(*De.*: $1)
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
@ -50,27 +68,38 @@ snippet ref "References"
|
||||||
<!--references-->
|
<!--references-->
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet sort "Sort"
|
||||||
|
<!--sort-->
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet foot "Footnotes"
|
snippet foot "Footnotes"
|
||||||
<!--footnotes-->
|
<!--footnotes-->
|
||||||
[^0]:
|
[^0]:
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet def "Definition"
|
snippet def "Definition"
|
||||||
**Definition $1** [@$2]
|
**Definition${1:: $2}**${3: [${4:citation}${5:, ${6:pointer}}]}
|
||||||
|
|
||||||
$3
|
$7
|
||||||
|
|
||||||
___
|
___
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet theo "Theorem"
|
snippet theo "Theorem"
|
||||||
**Theorem $1** [@]
|
**Theorem${1:: $2}**${3: [${4:citation}${5:, ${6:pointer}}]}
|
||||||
|
|
||||||
$2
|
$7
|
||||||
|
|
||||||
|
${8/(\w+).*/**Theorem** \n\n.../}
|
||||||
|
|
||||||
___
|
___
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet q
|
||||||
|
Your age: ${1|<18,18~60,>60|}
|
||||||
|
Your height: ${2|<120cm,120cm~180cm,>180cm|}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet prop "Property"
|
snippet prop "Property"
|
||||||
**Property $1** [@]
|
**Property $1** [@]
|
||||||
|
|
||||||
|
@ -101,12 +130,22 @@ snippet td "TARGET DECK: <Deck name>"
|
||||||
TARGET DECK: $1::$2
|
TARGET DECK: $1::$2
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet cloze
|
snippet cloze "Cloze"
|
||||||
|
START
|
||||||
|
Cloze
|
||||||
|
${0:${VISUAL}}$1
|
||||||
|
END
|
||||||
|
$2
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet clozes "Cloze start"
|
||||||
START
|
START
|
||||||
Cloze
|
Cloze
|
||||||
$1
|
$1
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet clozee "Cloze end"
|
||||||
END
|
END
|
||||||
$2
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet clozedef
|
snippet clozedef
|
||||||
|
@ -127,7 +166,7 @@ $2
|
||||||
END
|
END
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet clozetheorem
|
snippet clozetheo
|
||||||
START
|
START
|
||||||
Cloze
|
Cloze
|
||||||
**Theorem$1**
|
**Theorem$1**
|
||||||
|
@ -136,7 +175,7 @@ $2
|
||||||
END
|
END
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet clozelemma
|
snippet clozelemm
|
||||||
START
|
START
|
||||||
Cloze
|
Cloze
|
||||||
**Lemma$1**
|
**Lemma$1**
|
||||||
|
@ -145,57 +184,32 @@ $2
|
||||||
END
|
END
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet c1
|
snippet "c(\d+)" "Cloze <number>" br
|
||||||
{{c1::$1}}$2
|
{{c`!p snip.rv = int(match.group(1))`::${0:${VISUAL}}$1}}$2
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet c2
|
|
||||||
{{c2::$1}}$2
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet c3
|
|
||||||
{{c3::$1}}$2
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet c4
|
|
||||||
{{c4::$1}}$2
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet c5
|
|
||||||
{{c5::$1}}$2
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet c6
|
|
||||||
{{c6::$1}}$2
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet c7
|
|
||||||
{{c7::$1}}$2
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet c8
|
|
||||||
{{c8::$1}}$2
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet c9
|
|
||||||
{{c9::$1}}$2
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet c10
|
|
||||||
{{c10::$1}}$2
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
# MathJax environments
|
# MathJax environments
|
||||||
|
|
||||||
snippet asa "Als en slechts als" i
|
snippet asaw "Als en slechts als (woorden)" i
|
||||||
als en slechts als
|
als en slechts als
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet iffw "If and only if (words)" i
|
||||||
|
if and only if
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet asas "Als en slechts als (shorthand)" i
|
||||||
|
**asa**
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet iffs "If and only if (shorthand)" i
|
||||||
|
**iff**
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet align "" i
|
snippet align "" i
|
||||||
\begin{align}
|
\begin{align}
|
||||||
$1
|
$1
|
||||||
\end{align}
|
\end{align}
|
||||||
$2
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet cases "" i
|
snippet cases "" i
|
||||||
|
@ -325,10 +339,30 @@ snippet E "Expectation" i
|
||||||
\operatorname{E}
|
\operatorname{E}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet Cov "Covariance" i
|
||||||
|
\operatorname{Cov}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet mxn "Matrix" i
|
snippet mxn "Matrix" i
|
||||||
m \times n
|
m \times n
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet mxn- "Matrix" i
|
||||||
|
$m \times n$-matrix
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet nxn "Matrix" i
|
||||||
|
n \times n
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet det "Determinant" i
|
||||||
|
\operatorname{det}(${1:A})$2
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet det| "Determinant alternative notation" i
|
||||||
|
|${1:A}|$2
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet Span "Span" i
|
snippet Span "Span" i
|
||||||
\operatorname{Span}\\{$1\\}$2
|
\operatorname{Span}\\{$1\\}$2
|
||||||
endsnippet
|
endsnippet
|
||||||
|
@ -376,3 +410,7 @@ endsnippet
|
||||||
snippet eat "Evaluated at" i
|
snippet eat "Evaluated at" i
|
||||||
{\biggr\rvert}_{$1}$2
|
{\biggr\rvert}_{$1}$2
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet sketch "Link a sketch" i
|
||||||
|
[$1](file:///home/h/sketches/$2)
|
||||||
|
endsnippet
|
||||||
|
|
Loading…
Reference in New Issue