This displays the current selector in the Sublime Text status bar at the bottom. The selector name of a document can be found by opening a document of that type and pressing shift-ctrl-P. We want our build system to be automatically used for LaTeX documents. The selector is used if you set “Build System” to “Automatic”. The "selector": This was the most tricky but also the most useful part to figure out. This is useful for only showing errors and warnings that we actually need to see at build time. "file_regex" lets you set a regular expression to filter the command output. If you get a “command not found” error, then you need to put the paths to these tools here (separated by “ :”). This is necessary if you need to run external programs in your script (as we do with latexmk). "path" let’s you set your $PATH variable. Setting "shell": true makes sure that, if your "cmd" works in the Terminal, it will work in your build system as well. This is usually a good idea because then the build system can access your environmental variables and other goodies. The "shell" variable tells Sublime Text to run the build script in a virtual terminal.
0 Comments
Leave a Reply. |