-
Notifications
You must be signed in to change notification settings - Fork 367
/
LaTeXTools (Advanced).sublime-settings
300 lines (273 loc) · 10.4 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
{
// ------------------------------------------------------------------
// 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"
],
// This contains kbd-sequences to toggle settings. It is an array,
// which consists of 2/3-tuples.
// This first entry is the name of the settings and the second the
// key-sequence. The third is optional and contains a description
// of the setting. If the key-sequence consists of more than one
// character you need to add an extra keybinding with the prefix, e.g.:
// {
// "keys": ["ctrl+l","t", "a", "b", "<character>"],
// "command": "latextools_toggle_keys", "args": {"prefix": "ab"},
// "context":
// [
// {"key": "selector", "operator": "equal", "operand": "text.tex.latex"}
// ]
// },
"toggle_setting_keys": [
["open_pdf_on_build", "v", "Open the PDF in the PDF viewer"],
["forward_sync", "s", "Jump to the position in the PDF viewer"],
["keep_focus", "f", "focus editor: True, focus PDF viewer: False"],
["ref_auto_trigger", "ar"],
["cite_auto_trigger", "ac"],
["fill_auto_trigger", "af"],
["env_auto_trigger", "ae"],
["glossary_auto_trigger", "ag"],
["tex_directive_auto_trigger", "ad"],
["auto_label_auto_trigger", "aa"],
["smart_bracket_auto_trigger", "ab"],
],
// ------------------------------------------------------------------
// Smart-paste config
// ------------------------------------------------------------------
// This is the snippet, which will be used by smart paste.
// The strings in the array will be joined by a newline.
// You can change it as a usual Sublime Text snippet, but need to add
// <<image_name>> at the position where the path to the image should be
// inserted
"smart_paste_image_snippet": [
"\\begin{figure}",
"\\centering",
"\\includegraphics[$2]{<<image_name>>}",
"\\caption{$1}",
"\\label{fig:${1/([0-9a-zA-Z_])|([^0-9a-zA-Z_]+)/\\L\\1(?2:_:)/g}}",
"\\end{figure}",
],
// ------------------------------------------------------------------
// Auto-label config
// ------------------------------------------------------------------
// A mapping from the commands to their abbreviation, i.e. \label{abbrv:text}
"auto_label_command_mapping": {
"part": "part",
"chapter": "cha",
"section": "sec",
"subsection": "sub",
"subsubsection": "ssub",
"paragraph": "par",
},
// A mapping from the environments to their abbreviation, i.e. \label{abbrv:text}
// This will be used if the command is \caption{...}
"auto_label_env_mapping": {
"figure": "fig",
"table": "tab",
"listing": "lst",
"<math>": "eq",
},
// A char replacement in the auto-label generation. This should contain a mapping
// for all characters outside the range A-Z, a-z, 0-9 (and map into that range).
// All other characters will be substituted by an underscore (_).
"auto_label_char_replace": {
"ü": "ue",
"ä": "ae",
"ö": "oe",
"ß": "ss",
},
// ------------------------------------------------------------------
// 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,
// --- Settings for Ghostscript conversion to PNG ---
// The density of the preview image. The higher the density the larger the phantom.
"preview_math_density": 150,
// If the image is not sharp enough increase this scale to get a better resolution.
// However also change the density by the same factor to keep the size the
// same.
"preview_math_scale_quotient": 1,
// If this is true, the image will be rendered at a higher resolution and
// then scaled down. This generally results in a clearer image.
"preview_math_hires": true,
// These settings control the amount of memory used by Ghostscript
// when converting a PDF to PNG. You may want to adjust them if you
// use complex equations. The defaults for both of these values are the
// Ghostscript defaults.
//
// Controls the maximum size of the image stored in memory
"preview_math_max_bitmap": 1000000,
// Controls the maximum buffer space for images that do not fit
// in the `preview_math_max_bitmap` space
"preview_math_bufferspace": 4000000,
// ------------------------------------------------------------------
// 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
}