forked from SublimeText/LaTeXTools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
LaTeX.sublime-build
131 lines (111 loc) · 4.13 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
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
// 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.
// 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", "-cd",
"-e", "\\$pdflatex = 'pdflatex %O -interaction=nonstopmode -synctex=1 %S'",
//"-silent",
"-f", "-pdf"],
// Paths to TeX binaries; needed as GUI apps do not inherit
// the profile. MUST EXPLICITLY PRE/APPEND $PATH!
// This is preconfigured for MacTeX (2009 and up I guess)
"path": "$PATH:/usr/texbin:/usr/local/bin",
// 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
//
// Again, do NOT include $file or similar!!!
//
// Uncomment ONLY ONE of the "cmd"s given here,
// depending on your tex distro (miktex or texlive)
// MikTeX 2009 configuration
// You can also set the MikTeX binaries path here, if you have them
// in a non-standard location that is NOT on your %PATH%
// Useful also if you have both MikTeX and TeXlive installed, and want
// to use MikTeX.
// If you don't need this, leave it blank, i.e. ""
// ADD $PATH EXPLICITLY AT THE END
// *** BEGIN MikTeX 2009 ***
"cmd": ["texify",
"-b", "-p",
"--tex-option=\"--synctex=1\""
],
"path": "",
// *** END MikTeX 2009 ***
// TeXlive 2011 configuration
// You can als set the TeXlive binaries path here, if you have them
// in a non-standard location that is NOT on your %PATH%
// Useful also if you have both MikTeX and TeXlive installed, and want
// to use TeXlive.
// If you don't need this, leave it blank, i.e. ""
// ADD $PATH EXPLICITLY AT THE END
// *** BEGIN TeXLive 2011 ***
// "cmd": ["latexmk", "-cd",
// "-e", "\\$pdflatex = 'pdflatex %O -interaction=nonstopmode -synctex=1 %S'",
// //"-silent",
// "-f", "-pdf"],
// "path": "C:\\texlive\\2011\\bin\\win32;$PATH",
// *** END TeXLive 2011 ***
// END OF USER-CONFIGURABLE STUFF!!!
// DO NOT MESS WITH THE FOLLOWING!!!
"file_regex": "^((?:.:)?[^:\n\r]*):([0-9]+):?([0-9]+)?:? (.*)$"
},
"linux":
{
// Linux 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", "-cd",
"-e", "\\$pdflatex = 'pdflatex %O -interaction=nonstopmode -synctex=1 %S'",
"-f", "-pdf"],
// Paths to TeX binaries; needed as GUI apps do not inherit
// the profile. MUST EXPLICITLY PRE/APPEND $PATH!
// This is preconfigured for MacTeX (2009 and up I guess)
"path": "$PATH:/usr/texbin",
// DO NOT MESS WITH THE FOLLOWING!!!
"file_regex": "^(...*?):([0-9]+): ([0-9]*)([^\\.]+)"
}
}