Sublime Forum

Two "latex" options in "Build system"

#1

there are two “latex” options in the menu of “Build system”. The two options both compile latex file, only second one compile the files (for editing Chinese) with
%!TEX program = xelatex
in the head line. But I am too lazy to change the options, only want to select “automatic”, but sublime will work with first “latex” default. When I want to edit Chinese, I have to shift it.

I try to investigate the corresponding sublime-build files, I only find one sublime-build file for latex under Packages. I am confused. Can you help me to fix the problem?

0 Likes

#2

you could execute the following in the ST console (View menu -> Show Console) to help find the second .sublime-build file:

sublime.find_resources('*.sublime-build')
2 Likes

#3

[‘Packages/Default/Syntax Tests.sublime-build’, ‘Packages/C++/C++ Single File.sublime-build’, ‘Packages/D/D.sublime-build’, ‘Packages/Erlang/Erlang.sublime-build’, ‘Packages/Haskell/Haskell.sublime-build’, ‘Packages/Java/Ant.sublime-build’, ‘Packages/Java/JavaC.sublime-build’, ‘Packages/Lua/Lua.sublime-build’, ‘Packages/Makefile/Make.sublime-build’, ‘Packages/Python/Python.sublime-build’, ‘Packages/R/R.sublime-build’, ‘Packages/Ruby/Ruby.sublime-build’, ‘Packages/Rust/Cargo.sublime-build’, ‘Packages/Rust/Rust.sublime-build’, ‘Packages/LaTeXing/LaTeX (TikZ).sublime-build’, ‘Packages/LaTeXing/LaTeX.sublime-build’, ‘Packages/LaTeXTools/LaTeX.sublime-build’, ‘Packages/SublimeREPL/sublimerepl_build_system_hack.sublime-build’, ‘Packages/User/Lisp.sublime-build’, ‘Packages/User/Python3.sublime-build’, ‘Packages/User/Asymptote/Asymptote.sublime-build’]

only one here under LaTeXTools, I think LaTeXing is nothing to do with compiling.

0 Likes

#4

Both LaTeXTools and LaTeXing have a build system. Actually both have a lot of similar features for LaTeX editing and they are competitors (together with the third LaTeX package: LaTeXBox). So I recommend to uninstall one of them.

2 Likes

#5

I replaced it with latexbox. Another problem appeared. When I select automatic, I have to press cmd+b twice to show the skim (it compiled successfully at first time). Sometimes, it just reports errors as before, if i edited sth.

There is another build file in latexbox.

0 Likes

#6

So you uninstalled both LaTeXTools and LaTeXing and installed LaTeXBox?
AFAIK LaTeXBox should also open the pdf after the compilation, so you may create an issue there if that does not work.

0 Likes

#7

I install latextools and latexbox and uninstalled latexing. latexbox has latex build file and can open a pdf. But it can not compile chinese, while latextools can. I want to delete the build file under latexbox.

0 Likes

#8

Just uninstall LaTeXBox. As I said these are competing packages and you should choose one of them. If you like the features and changes aof LaTeXBox you can install LaTeXYZ from same author.

1 Like