-
Notifications
You must be signed in to change notification settings - Fork 1
/
LaTeXTools.sublime-settings
495 lines (425 loc) · 19 KB
/
LaTeXTools.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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
// LaTeXTools Preferences
//
// Keep in the User directory. Personalize as needed
{
// ------------------------------------------------------------------
// General settings
// ------------------------------------------------------------------
// Cite/ref autocompletion by default is triggered after e.g. \ref{. If you don't like this,
// set to false. You can also use toggles: C-l,t,a,c and C-l,t,a,r.
"cite_auto_trigger": true,
"ref_auto_trigger": true,
// Fill-helper autocompletion triggered for a wide range of references to external
// files. You can also use toggle: C-l,t,a,f
"fill_auto_trigger": true,
// Fill-helper autocompletion trigger for environment names after \begin{ and \end{
// this requires the LaTeX-cwl package and might not have a complete list of all environments.
// You can also use toggle: C-l,t,a,e
"env_auto_trigger": false,
// Fill-helper autocompletion trigger for tex directive values after TEX directive=
// You can also use toggle: C-l,t,a,d
"tex_directive_auto_trigger": true,
// Controls whether the various fill-helpers should try to insert a
// completing }, ], or ) when inserted and either the C-l,C-f or C-l,x
// keybindings were used to trigger the completion. This attempts to be smart
// about where to place the bracket, but may not work for all cases, particularly
// when a command is spread across mutliple lines.
// You can also use the toggle C-l,t,a,b
"smart_bracket_auto_trigger": true,
// Keep focus on Sublime Text after building (true) or switch to PDF viewer (false)
// If you are on Windows or Linux and using ST2, you may need to set the
// "sublime_executable" setting for this to work in your platform settings.
"keep_focus": true,
// Sync PDF to current editor position after building (true) or not
"forward_sync": true,
// Set this to false to disable the overwriting of the goto overlay for the hotkey `C-r`
// You can still access the "table of content quickpanel" via `C-l, C-r`
"overwrite_goto_overlay": true,
// When to trigger cwl-command completion (requires the LaTeX-cwl package)
// possible values are:
// "always" (always show command completions)
// "prefixed" (default, show command completions if the current word is prefixed with '\')
// "never" (never show command completions)
"command_completion": "prefixed",
// valid texfile extensions
"tex_file_exts": [".tex"],
// controls whether or not syntax is automatically set to LaTeX for
// files that match one of the configured `tex_file_exts`
"latextools_set_syntax": true,
// set to true to use BibLaTeX instead of BibTex for bibliography completions
// can also be set on a per-project basis
"use_biblatex": false,
// the mapping from the locales to the dictionaries for the
// `%!TEX spellcheck` directive, where the locales must be all lowercase
// and separated by a minus sign (-). The dictionaries must be valid path
// and compatible with the ST integrated spellcheck
// e.g.
// { "en-en": "Packages/Language - English/en_GB.dic" }
"tex_spellcheck_paths": {},
// sublevel to show counts for
// passed to texcount via the -sub= paramater
// valid values: "none", "part", "chapter", "section"
"word_count_sub_level": "none",
// ------------------------------------------------------------------
// Temporary file settings
// ------------------------------------------------------------------
// Ends of the names of temporary files to be deleted
"temp_files_exts": [
".blg",".bbl",".aux",".log",".brf",".nlo",".out",".dvi",".ps",
".lof",".toc",".fls",".fdb_latexmk",".pdfsync",".synctex.gz",
".ind",".ilg",".idx"
],
// Folders that are not traversed when deleting temp files
"temp_files_ignored_folders": [
".git", ".svn", ".hg"
],
// ------------------------------------------------------------------
// Platform settings: adapt as needed for your machine
// ------------------------------------------------------------------
"osx": {
// Path used when invoking tex & friends; MUST include $PATH
"texpath" : "$PATH:/Library/TeX/texbin:/usr/texbin:/usr/local/bin:/opt/local/bin"
// Path to PDF viewer, if needed
// TODO think about it. Also, maybe configure it here!
},
"windows": {
// Path used when invoking tex & friends; "" is fine for MiKTeX
// For TeXlive 2011 (or other years) use
// "texpath" : "C:\\texlive\\2011\\bin\\win32;$PATH",
"texpath" : "",
// TeX distro: "miktex" or "texlive"
"distro" : "miktex",
// Command to invoke Sumatra. If blank, "SumatraPDF.exe" is used (it has to be on your PATH)
"sumatra": "",
// Command to invoke Sublime Text. Used if the keep_focus toggle is true.
// If blank, "subl.exe" or "sublime_text.exe" will be used.
"sublime_executable": "",
// how long (in seconds) to wait after the jump_to_pdf command completes
// before switching focus back to Sublime Text. This may need to be
// adjusted depending on your machine and configuration.
"keep_focus_delay": 0.5
},
"linux" : {
// Path used when invoking tex & friends; MUST include $PATH
"texpath" : "$PATH:/usr/texbin",
// Command to invoke Python. Useful if you have Python installed in a
// non-standard location or want to use a particular version of python.
// Both Python2 and Python3 are supported, but must have the DBus bindings
// installed.
"python": "",
// The name of the ST2 or ST3 executable. On Ubuntu, both subl and sublime-text are
// available for ST2; adjust as needed for other platforms, and for ST3
"sublime": "subl",
// How long to wait after evince or okular has launched before sending a sync message
// in seconds, floating point; choose 2.0 or 3.0 on a slower machine, 0.5 on a fast one
// Note: only tweak this if sync after launching the PDF viewer does not seem to work,
// or if the PDF viewer opens instantly and you don't want to wait.
// Default: 1.5 (works on my MBP4,1...)
"sync_wait": 1.5,
// Command to invoke Sublime Text. Used if the keep_focus toggle is true.
// If blank, "subl" or "sublime_text" will be used.
"sublime_executable": "",
// how long (in ms) to wait after the jump_to_pdf command completes
// before switching focus back to Sublime Text. This may need to be
// adjusted depending on your machine and configuration.
"keep_focus_delay": 0.5
},
// ------------------------------------------------------------------
// Output Directory settings settings
// ------------------------------------------------------------------
// OPTION: "aux_directory"
// Specifies the auxiliary directory
// Possible values:
//
// "" the default; does not use any auxiliary directory
//
// path the path to the auxiliary directory; if this is
// not an absolute path it is interpreted as a
// path relative to the main tex file
//
// "<<temp>>" the auxiliary directory will be a temporary
// directory generated in as secure a manner as
// possible; note that this temporary directory
// is only valid until ST is restarted and will
// be deleted on the next start-up
//
// "<<project>>" this creates an auxiliary directory in the same
// folder as the main tex file; the name is the
// MD5 hash of the absolute path of the main file;
// unlike <<temp>> this directory will persist
//
// "<<cache>>" this creates an auxiliary directory in the ST
// cache directory on ST3 or a suitable directory
// on ST2; unlike <<temp>> this directory will
// persist; unlike <<project>>, it will not be
// in the same directory as the main tex file
//
// NOTE: This setting will be overridden by the corresponding
// %!TEX directive if any; also, while it is possible to define
// a global value here, it may make more sense to define this
// value in your project settings if you use STs project feature
// if you do so, however, note that the path will be interpreted
// relative to the location of your project file
"aux_directory": "",
// OPTION: "output_directory"
// Specifies the output directory
// Possible values:
//
// "" the default; does not use any output directory
//
// path the path to the output directory; if this is
// not an absolute path it is interpreted as a
// path relative to the main tex file
//
// "<<temp>>" the output directory will be a temporary
// directory generated in as secure a manner as
// possible; note that this temporary directory
// is only valid until ST is restarted and will
// be deleted on the next start-up
//
// "<<project>>" this creates an output directory in the same
// folder as the main tex file; the name is the
// MD5 hash of the absolute path of the main file;
// unlike <<temp>> this directory will persist
//
// "<<cache>>" this creates an output directory in the ST
// cache directory on ST3 or a suitable directory
// on ST2; unlike <<temp>> this directory will
// persist; unlike <<project>>, it will not be
// in the same directory as the main tex file
//
// NOTE: This setting will be overridden by the corresponding
// %!TEX directive if any; also, while it is possible to define
// a global value here, it may make more sense to define this
// value in your project settings if you use STs project feature
// if you do so, however, note that the path will be interpreted
// relative to the location of your project file
"output_directory": "",
// OPTION: "jobname"
// Specifies the jobname to use when building the document
"jobname": "",
// OPTION: "copy_output_on_build"
// Specifies whether to copy the final PDF file to the same folder
// as the main tex file; if it is neither true nor false it must be
// as list of extensions of the files to copy into the same folder as
// the main tex file; this only applies if an output directory is
// set via a setting or a `%!TEX` directive
"copy_output_on_build": true,
// ------------------------------------------------------------------
// Build engine settings
// ------------------------------------------------------------------
// OPTION: "builder"
// Specifies a build engine
// Possible values:
//
// "default" or "" the default built-in build engine; currently
// this is the same as "traditional"
//
// "basic" invokes pdflatex / xelatex / lualates as
// needed, then biber / bibtex and pdflatex /
// xelatex / lualatex again if needed. Unlike
// the "simple" builder this supports most of
// LaTeXTools builder features.
//
// "script" external script: invokes the set of commands
// specified in the "script_commands" setting
// in the platform-specific part of the
// "builder_settings"
//
// "simple" invokes pdflatex 1x or 2x as needed, then
// bibtex and pdflatex again if needed;
// intended mainly as a simple example for
// people writing their own build engines.
//
// "traditional" replicates the 'old' system based on
// latexmk (TeXLive) / texify (MiKTeX)
//
// custom name you can also use third-party build engines;
// if so, set the "builder_path" option below
//
// NOTE: custom builders CANNOT have the same name as an existing
// built-in build engine (including "default")
"builder": "traditional",
// OPTION: "builder_path"
// If non-empty, specifies a path to a custom builder, relative to the
// Sublime Text Packages directory.
// For instance, "User/builders" (on Windows: "User\builders") is a good
// choice if you roll your own.
// (Note: if you choose "User", you may get a Python import error in the
// console, but things will still work).
// Leave empty ("") for a built-in builder.
"builder_path": "",
// OPTION: "builder_settings"
// Specify builder-dependent settings and preferences
// Possible values: see README or documentation provided with
// third-party build engine.
// Builder setting can be general or OS-dependent
"builder_settings" : {
// General settings:
// See README or third-party documentation
// (built-ins): true shows the log of each command in the output panel
"display_log" : false,
// Platform-specific settings:
"osx" : {
// See README or third-party documentation
},
"windows" : {
// See README or third-party documentation
},
"linux" : {
// See README or third-party documentation
}
},
// ------------------------------------------------------------------
// Build panel and phantoms settings
// ------------------------------------------------------------------
// OPTION: "highlight_build_panel"
// adds syntax highlighting to the build panel so that errors, warnings, etc.
// show up in different colors; if set to false, the panel will be left as-is.
"highlight_build_panel": true,
// OPTION: "hide_build_panel"
// level to hide the build panel after the build is finished
// Possible values are:
// "always" (hide the panel even if the build failed),
// "no_errors" (only hide the panel if the build was successful even with warnings),
// "no_warnings" (only hide the panel if no warnings occur)
// "no_badboxes" (only hide the panel if no badbox messages occur when badboxes are enabled) and
// "never" (default, never hide the build panel)
"hide_build_panel": "no_badboxes",
// OPTION: "display_bad_boxes"
// controls whether or not to display any bad boxes in the build output
// if this is not set to true, the setting "no_badboxes" for
// "hide_build_panel" is equivalent to "no_warnings"
"display_bad_boxes": false,
// OPTION: "show_error_phantoms"
// (ST3, Build 3118+ only)
// level to show error phantoms in the file
// Possible values are:
// "none" (don't show any phantoms at all)
// "errors" (only show errors, which breaks the compilation)
// "warnings" (default, show errors and warnings)
// "badboxes" (show errors, warnings, and badboxes)
"show_error_phantoms": "warnings",
// number of seconds to display the "build succeeded" or "build failed"
// message
"build_finished_message_length": 2.0,
// ------------------------------------------------------------------
// Viewer settings
// ------------------------------------------------------------------
// OPTION: "viewer"
// Specifies which viewer to use
// Possible values:
//
// "default" or "" the default viewer for your platform, which
// is sumatra on Windows, skim on OS X and
// evince on linux
//
// "command" invokes a viewer based on commands configured
// in viewer settings below; see the README
// for details
//
// "evince" uses Evince; this is the default on linux
//
// "okular" uses Okular to open the pdf
//
// "preview" uses Preview.app to open the pdf
//
// "skim" uses Skim to open the pdf; this is the
// default on OSX
//
// "sumatra" uses SumatraPDF; this is the default on
// Windows
//
// "zathura" uses Zathura to open the pdf
"viewer": "",
// OPTION: "viewer_settings"
// Specify viewer-dependent settings and preferences
// Possible values: see README or documentation provided with
// third-party viewer.
// Viewer settings can be general or OS-dependent
"viewer_settings": {
// Platform-specific settings:
"osx" : {
// See README or third-party documentation
},
"windows" : {
// See README or third-party documentation
},
"linux" : {
// See README or third-party documentation
}
},
// OPTION: "open_pdf_on_build"
// specifies whether LaTeXTools should open the PDF file on a
// successful build. If set to false, the PDF file won't be opened
// unless explicitly launched using C-l,v or C-l,j
"open_pdf_on_build": true,
// ------------------------------------------------------------------
// Opening files included into the tex source code
// ------------------------------------------------------------------
// image types you use in latex
// these types will be used for autocompletion and
// opening of included images, when no extension is written
"image_types": ["png", "pdf", "jpg", "jpeg", "eps"],
// ------------------------------------------------------------------
// Bibliographic references
// ------------------------------------------------------------------
// OPTION: "bibliography"
// Either a single bibliography plugin to use or a list of plugins
// which will be executed in order, stopping after the first result
// found
//
// Possible values:
//
// "traditional" the default, regex-based bibliography
// parsing
//
// "new" a newer parser which supports UTF-8 and
// additional fields, but may be slower and
// less well tested.
"bibliography": "traditional",
/* This preference sets the format of the quick panel to select citations using wildcards.
The setting is a list with one or two string using wildcards for author, title, keyword etc.
Default setting: the traditional display, `["{title} ({keyword})","{author}"]`
Format:
Can quantum-mechanical description of physical reality be considered complete? This is an non-existing subtitle to illustrate (einstein1935quantum)
Albert Einstein and B Podolsky and N Rosen
Richer alternative: ["{author_short} {year} - {title_short} ({keyword})","{title}"]
Format:
Einstein et al. 1935 - Can quantum-mechanical description of physical reality be considered complete (einstein1935quantum)
Can quantum-mechanical description of physical reality be considered complete? This is an non-existing subtitle to illustrate
Another alternative: ["({keyword}) {author_short} - {year}","{title} - {journal}"]
Format:
(einstein1935quantum) Einstein et al. - 1935
Can quantum-mechanical description of physical reality be considered complete? - Physical Review
No-title alternative: ["{author_short} {year} ({keyword})"]
Format:
Einstein et al. 1935 (einstein1935quantum)
Valid wildcards: keyword, title, author, year, author_short, title_short, journal
*/
// Uncomment or modify at will
"cite_panel_format": ["{author_short} {year} - {title_short} ({keyword})","{title}"],
//"cite_panel_format": ["({keyword}) {author_short} - {year}","{title} - {journal}"],
//"cite_panel_format": ["{author_short} {year} ({keyword})"],
// Similarly, the formatting for the autocomplete panel:
"cite_autocomplete_format": "{keyword}: {title}",
// ------------------------------------------------------------------
// Cache options
// ------------------------------------------------------------------
// whether the local cache should be hidden in the sublime cache path (true)
// or in the same directory as the root file (false)
"hide_local_cache": true,
/* The life-span of the local cache.
After this life-span the local cache will automatically be invalidated and refreshed.
You can invalidate the cache manually by removing all temporary files `C-l,backspace`.
If the value is smaller then the functionalities are more up-to-date,
but more recalculations might decrease the performance.
The format is "X d X h X m X s", where X is a natural number
"s" stands for seconds, "m" for minutes, "h" for hours, and "d" for days.
Missing fields will be treated as 0 and white-spaces are optional.
Hence you can write "1 h 30 m" to refresh the cached data every one and a half hours.
If the string is invalid the default value (30 minutes) will be used.
If you use `infinite` the cache will not invalidated automatically.
*/
"local_cache_life_span": "30 m"
}