forked from ma-anwar/mathfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatex.talon
38 lines (36 loc) · 1.03 KB
/
latex.talon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
title: /\.tex/
-
# FIXME: Need to add capture rules for some if ever going to use these
document class <user.tex_document_classes>:
insert("\\documentclass{{{tex_document_classes}}}")
use package <user.tex_packages>:
insert("\\usepackage{{{tex_packages}}}")
use package bib latex:
insert("\\usepackage[style=authoryear]{{biblatex}}")
begin <user.tex_environments>:
insert("\\begin{{{tex_environments}}}")
key(enter:2)
insert("\\end{{{tex_environments}}}")
key(up)
insert <user.tex_commands>:
insert("\\tex_commands{{}}")
key(left)
insert <user.tex_commands_noarg>:
insert("\\tex_commands_noarg")
#tick {tikz_commands}:
# insert('\\{tikz_commands} ')
greek <user.tex_greek_letters>:
insert("\\{tex_greek_letters} ")
symbol <user.tex_symbols>:
insert("\\{tex_symbols} ")
state to: "-- "
template <user.tex_templates>:
insert(tex_templates)
final <user.symbol>:
edit.line_end()
insert("{symbol}")
key(enter)
append <user.symbol>:
edit.line_end()
insert('{symbol}')
kick: ", "