Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The original question (which has since been edited numerous times) was the beginning of my ongoing quest to deal with the LaTeX auxiliary files using TexLive (MacTeX) on OSX (Snow Leopard and Mountain Lion) with Sublime Text 2.

Jan Hlavacek was kind enough to provide a Bash script-based solution:

Possible to have a shell script containing the whole LaTeX document?

I have since written my own plugin with the assistance John Collins, Ph.D. (author of latexmk.pl), who gave me a Bash command line example latexmk file.tex && latexmk -c file.tex; and, with the assistance of Xymostech, who helped me convert the && into Python format.

Because this is an ongoing journey, there are bits and pieces of the solution in various threads throughout the internet. The best way to keep track of everything appears to be with a github account, which allows me to update the code as my knowledge grows:

Here is my own plugin:

https://github.com/lawlist/ST2-plugin-latexmk-save-build-clean

Here is my unofficial modification of the LaTexTools plugin:

https://github.com/lawlist/LaTexTools-Unofficial-Modification

share|improve this question
    
Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button ({}) or select your code and hit Ctrl+K. –  Claudio Fiandrino Mar 5 '13 at 18:40
    
How do you use it with windows and miktex? If you add answers about how these plugins can be installed it will be useful. –  Harish Kumar May 7 '13 at 16:41
    
Here is the link regarding how to install packages with Sublime Text through Package Control. My modifications and my own creation would require some advanced knowledge once you've got a feel for the package installation process and where the packages are stored and how they are accessed. I'm sorry, but I don't use Sublime Text with Windows or miktex. Both plugins use latexmk.pl as a default. wbond.net/sublime_packages/package_control/installation –  lawlist May 7 '13 at 21:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.