forked from SublimeText/LaTeXTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LaTeX.sublime-build.OLD
27 lines (25 loc) · 1.09 KB
/
LaTeX.sublime-build.OLD
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
/* Let's not preview for now. This should be OK on Win/MikTeX, too (?) */
/* Make sure latexmk is on the $PATH, AND add it to .MacOSX/environment.plist */
{
"cmd": ["latexmk",
"-e", "\\$pdflatex = 'pdflatex %O -file-line-error --max-print-line=200 -synctex=1 %S'",
"-e", "\\$pdf_previewer = qq{if [ -n \"`ps axww | grep Skim | grep -v grep`\" ] ; then osascript -e 'tell app \"Skim\" to revert front document' ; else open -a Skim %O %S ; fi}",
//"-e", "\\$pdf_previewer = qq{/Applications/Skim.app/Contents/SharedSupport/displayline -g -r 0 %S}",
"-pv", "-pdf", "$file"],
"working_dir": "$file_path", /* crucial or latexmk will spew stuff in /!!! */
"file_regex": "^(...*?):([0-9]+): ([0-9]*)([^\\.]+)",
"selector": "text.tex.latex",
// Windows-specific command
// ASSUMES sumatrapdf is default viewer
// Only problem is that it comes to the foreground
"windows":
{
"cmd": ["texify", "-b", "-p",
"--tex-option=\"--synctex=1\"",
"--tex-option=\"--max-print-line=200\"",
"--tex-option=\"-file-line-error\"",
"--run-viewer",
"--viewer-option=\"-reuse-instance\"",
"$file"]
}
}