/
LaTeX.sublime-build
64 lines (57 loc) · 1.91 KB
/
LaTeX.sublime-build
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
// Compilation settings
// ====================
//
// The actual magic happens in the make_pdf command
// I stick to the format of standard ST2 sublime-build files
// with minor variations.
// As of 5/24/11, latexmk (and texify on Windows) need to be on your $PATH
// and, on OSX, you need to add /usr/texbin or similar to your .MacOSX/environment.plist
// I will replace this with an explicit "binpaths" parameter
//
// NOTE: the viewer is NOT configured from here!
// As of 5/24/11, it cannot be changed, but I will introduce a setting later
{
// General settings; DO NOT MODIFY!!!
"target": "make_pdf",
"selector": "text.tex.latex",
// Mac-specific settings
// ---------------------
"osx":
{
// Mac texification settings
// -------------------------
// Personalize this, IF you know what you are doing!
// e.g. change 'pdflatex...' to 'xelatex...'
// Refer to the documentation for latexmk
//
// Note: do NOT include $file or similar!!!
// Only configure the compilation parameters you need, MINUS the
// actual file to be compiled
//
// By default, latexmk is told to use pdflatex, with synctex on for
// backward/forward search, forcing compilation (e.g. even if no bib file is found)
// and producing pdf rather than dvi output
"cmd": ["latexmk",
"-e", "\\$pdflatex = 'pdflatex %O -synctex=1 %S'",
"-f", "-pdf"],
// DO NOT MESS WITH THE FOLLOWING!!!
"file_regex": "^(...*?):([0-9]+): ([0-9]*)([^\\.]+)"
},
// Windows-specific settings
// -------------------------
"windows":
{
// Texification command
// -----------------------------
// See above comments on Mac parameters
// Refer to the documentation for texify (miktex)
//
// Again, do NOT include $file or similar!!!
"cmd": ["texify",
"-b", "-p",
"--tex-option=\"--synctex=1\""
],
// DO NOT MESS WITH THE FOLLOWING!!!
"file-regex": "^((?:.:)?[^:\n\r]*):([0-9]+):?([0-9]+)?:? (.*)$"
}
}