forked from iplab-wave/all-in-one-latex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.latexindent.yaml
51 lines (46 loc) · 1.02 KB
/
.latexindent.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
# latexindentの設定ファイル
onlyOneBackUp: 1
defaultIndent: " "
indentAfterHeadings:
part:
indentAfterThisHeading: 2
chapter:
indentAfterThisHeading: 2
section:
indentAfterThisHeading: 2
subsection:
indentAfterThisHeading: 2
subsection*:
indentAfterThisHeading: 2
subsubsection:
indentAfterThisHeading: 2
paragraph:
indentAfterThisHeading: 2
subparagraph:
indentAfterThisHeading: 2
indentAfterItems:
itemize: 2
enumerate: 2
description: 2
list: 2
indentRules:
myenvironment: " "
anotherenvironment: " "
chapter: " "
section: " "
replacements:
-
amalgamate: 1
-
# Insert 1 hlf-width space before and after "="
substitution: s/(?<!\+|\-)\h{0,}\=\h{0,}(?!\+|\-)/ \= /g
lookForThis: 1
-
# Insert half-width space before the "\" in any command
substitution: s/\h{0,}\\(?!=\{)(\S)/ \\$2/g
lookForThis: 0
-
# Combine 2 or more "half-width spaces" into 1
substitution: s/\h+/ /g
lookForThis: 1
when: before