52

I'm the developer of LaTeXTools. To set the master file, you need to add the following line at the very top (i.e. as the first line) of any included files: %!TEX root = yourmasterfile.tex The README has further details. Right now there is no support for setting a compilation directory other than the one where the master file resides. It's something a few ...


38

I'm the developer of the LaTeXTools plugin. Ctrl-B (⌘-B on OS X) launches a specially modified build system that: collects errors and warnings, and displays them in Sublime Text's output panel; you can then click on the errors to jump to the corresponding line in your source text file; sets up forward and inverse search upon completion, invokes forward ...


35

It's not easy to work with ST2 the first time . You need to install some tools. Firstly, you can read this readme Readme LaTeXTools then you can download the archive .zip here LaTeXTools. The readme explains how to install the package. You get something like TextMate after that (Personally I prefer TextMate on OS X) but this editor is really fine tool. ...


33

Background There is a bug (or possibly multiple related bugs) in Yosemite with respect to environment variables. When a program is launched in Finder by double-clicking, it will inherit a default set of environment variables from its parent process (I believe this is launchd currently, but that's not relevant). GUI programs do not inherit variables from ~/....


32

There is no default functionality for that, but you can easily create your own. in ST2 you can add build systems in Tools -> Build System -> New Build System... and if you want to run your file with PDFTeX, your build system definition file would look like: { "cmd": ["pdflatex","$file_name"], "selector": "text.tex.latex" } Another way is to ...


19

tldr: In Sublime Text, open the command palette from the Tools menu, search for "LaTeXTools: Reconfigure and migrate settings," and hit Return. There was an update to the package LaTeXTools as of 3-12-2014. The preferences were restructured in the package, and likely you installed it via the Command Palette Install Package, which auto updates packages. ...


18

The point of LaTeXing not being FLOSS is truly important and betting for small-scale closed-source is always risky. If the software author pulls the plug, forking by others is often not an option. ... And as it happens, look what is now WAS figuring prominently on the LaTeXing home page: 2014-06-27 16:48 by Chris The purchase of a license for ...


14

I have used both plug-ins and I am currently using LaTeXing. I will continue to do so because I find that LaTeXing has some really nifty features such as as cmd+l,cmd+l when including graphics or .tex files. Both plug-ins do support ST3, both plug-ins support root directives (with some difference in the syntax, the picture above illustrates the LaTeXing ...


13

What worked for me was adding "options": ["--shell-escape"], to builder_settings. The whole block looks like this for me: "builder_settings" : { // General settings: // See README or third-party documentation // (built-ins): true shows the log of each command in the output panel "display_log" : false, "options": ["--shell-escape"], ...


11

You're using the simple builder, which is fine for some situations, but its important to understand that the simple builder really is just that, a simple builder: it builds LaTeX documents using pdflatex and, if necessary, runs bibtex to generate a bibliography. That's it. Its actually intended as an example of how to write a builder than a fully featured ...


10

Heads up: there is now a branch of the "official" LaTeXTools package that supports ST3. See http://tekonomist.wordpress.com for details. The code is based on phyllisstein's port but incorporates all recent fixes to the master branch. Let me know how it works for you, and please report any issues on GitHub (there is an issue specifically for ST3 problems). ...


8

I have had the same problem. In my case there was an error in my TikZ code (forgotten semicolon), which made the compiler run indefinitely. When you hit "ESC" in sublime, the compiling process does NOT get stopped, Sublime only hides the little window on the bottom. To actually cancel the compilation progress out of sublime you have to hit CMB+B again. The ...


8

I had similar problems, but these builder-settings eventually worked for me: "builder": "default", "builder_settings" : { // General settings: // See README or third-party documentation // (built-ins): true shows the log of each command in the output panel "display_log" : false, "program": "pdflatex", "command": ["latexmk",...


8

Supposing that you are using the LaTeXTools: TeX engine selection is supported. If the first line of the current file consists of the text %!TEX program = <program>, where program is pdflatex, lualatex or xelatex, the corresponding engine is selected. If no such directive is specified, pdflatex is the default. Multi-file documents are ...


8

When you see this error, you should be able to see a link/button called "show report", so: Click this link, which will open a new page with detailed log. In this page you will find a copy of the mini LaTeX document used for compilation. This should include some head definitions, and the main content is nothing but your equation. Shown below: Copy this mini ...


7

I was struggling with the exact same problem, and this was one of the few Google-hits on your error message. As far as I understand, what is happening is that the original LaTeXTools uses ST2's Python 2.7, while ST3 uses Python 3. So here's a solution. I had to start with a Sublime Text 3 (ST3) installation completely free of any LaTeXTools installation. ...


7

I'm the author of LaTeXTools. I pushed an update a couple of days ago that should have fixed the El Capitan issue. However, as they say on Facebook, it's complicated :) El Capitan no longer allows apps access to /usr. MacTeX 2015 addresses this by creating a link to the TeX binaries in /Library/TeX/texbin. The LaTeXTool update adds this to the texpath ...


6

subfigure is an obsolete package which shouldn't be used anymore; you can use subfig or subcaption instead. An example with subcaption: \documentclass{asme2e} \usepackage{caption} \usepackage{subcaption} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering \begin{subfigure}{\columnwidth} \includegraphics[width=\columnwidth,...


6

Hi all (I'm the author of LaTeXTools), a quick way to find the User directory is to select Browse Packages from the Preferences menu (on Windows---don't have a Mac handy to check). You will see one directory for each installed package, plus the User directory.


6

What you're asking for is SyncTeX, a editor/viewer agnostic technology that allows the synchronization of views between source files and the compiled about. Copied from the LaTeXTools README: You now need to set up inverse search in Sumatra PDF. However, the GUI for doing this is hidden in Sumatra until you open a PDF file that has actual ...


6

There are a few different ways this could be approached. The traditional builder that LaTeXTools uses launches latexmk, so you can solve the issue the same way you would for latexmk, i.e., add a .latexmkrc file to the directory containing your main tex document with the following contents: add_cus_dep('glo', 'gls', 0, 'makeglossaries'); add_cus_dep('acn', '...


5

I used to have the same problem, but I solved using the capital letters in \bibliographystyle{IEEEtran} (I had previously \bibliographystyle{ieeetran} ), Remember that linux is sensible to capital letters.


5

Ok. I think I figured it out. Right now it works but I haven't really tried to find cases where it behaves the wrong way. Perhaps someone can verify. For the example I gave above, the following Key Binding works. But I am not sure if I understand it all. [ { "keys": ["_"], "command": "insert_snippet", "args": {"contents": "_{$1}$0"}, "context": ...


5

Type begin (without the \), then push TAB. This will complete the environment so you will see \begin{env} \end{env} and the cursor will be highlighting both envs. You can then type enumerate, which will fill enumerate into both env spots, and add an item in the middle: \begin{enumerate} item \end{enumerate} Unfortunately, it seems there is a bug ...


5

Depending on which LaTeX plug-in you're using, you can have a similar behaviour as you're requesting. For instance, LaTeX-cwl in combination with the LaTeXing plug-in, you'll get a behaviour like shown below. Note that if I'd written \doc I'd get another set of alternatives (obviously - doteq doesn't contain a c)


5

Thanks! From looking around, it appears that ST3 doesn't automatically inherit (or at least my installation didn't) the $PATH variable properly. IT's a simple fix. Change the package settings to include the path to latexmk (/Library/TeX/texbin), "osx": { // Path used when invoking tex & friends; MUST include $PATH "texpath" : "$...


5

In my case the issue was the use of backslashes in the doc title or anywhere in the folder structure of the path. e.g. a folder titled maybe / maybe not broke the inverse-search functionality. Removing them was sufficient to restore the functionality. If you have just set up Skim, NB you will have to go to preferences > sync and select the appropriate ...


4

I've personally found the following to work just fine for me: { "cmd": ["pdflatex", "$file"] } Here's an explanation as requested. This is the build file code that I use in Sublime Text 3 (this works fine in ST2 as well) to compile my LaTeX (I use MikTex). If you go to Tools -> Build System -> New Build System you can use what I have to build your .tex ...


4

Not sure this is the best solution or if it'll cause me any problems in the future. Using LaTeXing, I modified LaTeX.sublime-build. Replaced "cmd": [ "latexmk", "-f", "-quiet", "-pdf", "-synctex={synctex}", "-jobname={pdfname}", "-outdir={outdir}", "{file}" ], with "cmd": [ "arara", "{file}" ], If someone more experienced ...


Only top voted, non community-wiki answers of a minimum length are eligible