# Tag Info

56

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 ...

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 ~/....

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. ...

19

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

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"], ...

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 ...

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). ...

9

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 ...

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 ...

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 ...

7

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', '...

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 ...

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

A bit late, but LaTeXTools just added this feature in the last two weeks. Basically as soon as you press \, start typing, it will pop up a list of suggestions. The (brief) docs on this feature can be found here.

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 Mine is fine(OSx 10.8.5). I am using latexmk and Cmd+shift+click work fine. I have this$pdflatex = 'xelatex -recorder --shell-escape -interaction=nonstopmode -halt-on-error -synctex=1' in my .latexmkrc . It might not be important. For more information , please take a look here under the section Forward and Inverse Search.

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 ...

4

Save the script you pasted in your question to a file, say for example at the file /Users/yourusername/bin/run-gregorio and give it execution permission (chmod +x /Users/yourusername/bin/run-gregorio). In Sublime Text 2, go to Tools -> Build System -> New Build System, this will create a buffer containing: { "cmd": ["make"] } Edit it and change it to: ...

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 ...

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