SublimeText/LaTeXTools — pull request #88 by williamledoux (2012-10-11 10:25:22+00:00)
Title: Portable setup of Sumatra and additional env variables

I needed to have a portable folder that include ST2, MikTex and Sumatra, compiles with xelatex, and that will work anywhere without having anything on the path, any specific environment variable, or any default PDF viewer.

* I added the windows specific 'sumatra' parameter in the preference file, so that you can setup globally the location of the viewer

* I added the 'env' parameter to the build system so that you can customize compilation, for instance, changing the pdflatex engine or set up the latex input paths. I did not put this in the preference file because one may want to have multiple build systems with different latex engine or latex inputs.

Here is an example of how to use this to customize a miktex build system on windows:

"env": {
"PDFLATEX":"xelatex",
"TEXINPUTS":"Q:/@Administration/@Include;Q:/@Documents/@Include;./@Include;.",
"BIBINPUTS":"Q:/@Documents/@Bibs"
},