forked from SublimeText/LaTeXTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LaTeXTools (Advanced).sublime-settings
195 lines (181 loc) · 6.67 KB
/
LaTeXTools (Advanced).sublime-settings
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
// ------------------------------------------------------------------
// Configuring the table of content quickpanel (C-r)
// ------------------------------------------------------------------
// the commands, which will be treated as sections,
// i.e. the commands, which will be inserted into the quickpanel
"toc_section_commands": [
"part",
"chapter",
"section",
"subsection",
"subsubsection",
"paragraph",
"addpart",
"addchap",
"addsec",
"minisec"
],
// a mapping from each section command to its indent
"toc_indentations": {
"part": 0,
"chapter": 1,
"section": 2,
"subsection": 3,
"subsubsection": 4,
"paragraph": 5,
"addpart": 0,
"addchap": 1,
"addsec": 2,
"minisec": 2,
"label": 0
},
// the label commands, i.e. the commands,
// which will be shown/hidden using "Show Label" and "Hide Label"
"toc_labels": [
"label"
],
// ------------------------------------------------------------------
// Opening files included into the tex source code
// ------------------------------------------------------------------
// the commands to open image files. The extensions will be matched from top to bottom.
// If no extension is given, all extensions will be matched.
// If there is no match the image will be opened with Sublime Text.
// the extension:
// can either be a string for one extension
// or an array of string to match more than one extensions.
// the command:
// can be the name to start the programm. The image file will be passed
// as the argument.
// can be a string as a command with args:
// e.g. "open -a PixelMator", in this case the file will be appended
// if the position is relevant use "$file" in the string
// e.g. "open -a PixelMator $file"
// this will be substituted by the path to the file
"open_image_command": {
"osx" : [
{
// open pdf and eps documents with skim
"extension": ["pdf", "eps"],
"command": "open -a Skim.app"
}
// uncomment these lines to open all other images with the default programm
// ,
// {
// "command": "open"
// }
],
// You might want to use "start" for the default programm used by Windows.
"windows": [
{
// open pdf and eps documents with sumatra (it has to be on your PATH)
"extension": ["pdf", "eps"],
"command": "SumatraPDF"
}
// uncomment these lines to open all other images with the default program
// ,
// {
// "command": "start"
// }
],
"linux": [
{
// open pdf documents with evince
"extension": "pdf",
"command": "evince"
}
// uncomment these lines to open all other images with the default programm
// ,
// {
// "command": "xdg-open"
// }
]
},
// ------------------------------------------------------------------
// Math Preview
// ------------------------------------------------------------------
// It is recommended to use the "preview_math_template_packages" and
// "preview_math_template_preamble" setting to define your template file.
// However if you don't like this you can also also set the absolute path to
// your own compile template in this setting.
// INSTEAD of using the default template and inject the packages and preamble
// you can also define a path to your own template. This must be an absolute
// path and the template MUST NOT INCLUDE OTHER FILES.
// The file should should contain a field <<content>>, which will be substituted
// by the compilation content.
// If you want to have colorful equations you should use the package xcolor and
// add the field <<set_color>> at the begin of the document (above <<content>>).
"preview_math_template_file": null,
// The maximal number of thread used to convert images for the math live preview
// and the image preview (which requires this to convert pdf files to png thumbnails).
// Decrease this number if you are running in performance issues while editing math
// or viewing images.
// This must be greater than 0.
"preview_max_convert_threads": 2,
// Setting for the temporary folder, which hold the preview images.
// For performance reasons the images are cached and not directly deleted.
// The max size of the image and math preview folders in MB. If the folders
// exceed the size images will be deleted until the folders are 10% of that size.
"preview_math_temp_size": 50,
"preview_image_temp_size": 30,
// The duration in which this exceeding will be checked in hours.
// Use -1 to not automatically delete the files.
"preview_temp_delete_period": 24,
// ------------------------------------------------------------------
// Additional fill all helper settings (for experts)
// ------------------------------------------------------------------
// entries for the fill all helper
// each entry can have the following keys:
// regex: the regex before the opening bracket in reversed order,
// i.e. `tupni\\` instead of `\input`
// extensions: a list of the possible file extensions,
// the completion will search for files with this extension
// strip_extensions (optional, []): a list of the part of extensions, which
// should be stripped of.
// comma_separated (optional, false): whether the command can contain several
// comma separated entries. If it is true, it will be triggered and complete
// after commas (,)
"fillall_helper_entries": [
{
// subfile
"regex": "elifbus\\\\",
"extensions": ["tex"],
"strip_extensions": [".tex"]
},
{
// includesvg
"regex": "(?:\\][^{}\\[\\]]*\\[)?gvsedulcni\\\\",
"extensions": ["svg"],
"strip_extensions": [".svg"]
},
{
// lstinput
"regex": "(?:\\][^{}\\[\\]]*\\[)?tupnitsl\\\\",
"extensions": ["c", "cpp", "hs", "html", "php", "pl", "py", "sh", "xml"]
},
{
// inputminted for python files
"regex": "\\}yp\\{detnimtupni\\\\",
"extensions": ["py"]
},
{
// inputminted for general files
"regex": "\\}\\w+\\{detnimtupni\\\\",
"extensions": ["c", "cpp", "hs", "html", "php", "pl", "py", "sh", "xml"]
}
],
// these entries should only be used for project settings or
// while you want to test new entries
"dynamic_fillall_helper_entries": [],
// this determines whether or not the smart bracket autotriggering
// will scan the full document or only a pre-configured number of lines
// enabling full document scan will likely be more accurate for straight-
// forward LaTeX documents, since it counts the number of open and closed
// brackets, but in some circumstances, will yield undesirable results
"smart_bracket_scan_full_document": false,
// this setting determines the number of lines that smart bracket
// auto triggering will look around each selection. by default, smart
// bracket auto triggering looks 5 lines before the selection and 5 lines
// after
"smart_bracket_look_around": 5
}