Sublime Forum

LaTeX: Sublime opens several files

#1

Hello,

I am using Sublime Text with SumatraPDF for my LaTeX documents (distribution is TexLive).

Since two days I have got this problem: When I compile a file with “STRG + B” then SumatraPDF opens as it should. But Sublime Text also opens a new file?! If I compile three times then I have got three Sublime documents.

What is here the problem?

Kind regards

Chris

0 Likes

#2

I have found this solution and have to try it!

0 Likes

#3

Hmm, this code does not work for me:

“windows”: {
// Command to invoke Sublime Text. Used if the keep_focus toggle is true.
// If blank, “subl.exe” or “sublime_text.exe” will be used.
“sublime_executable”: “”,
},

0 Likes

#4

Is the Sublime install folder on the path?

0 Likes

#5

I have tried it with

"sublime_executable": “C:\Program Files\Sublime Text 3\sublime_text.exe”,

and with

"sublime_executable": “”,

0 Likes

#6

It needs to be subl.exe, not sublime_text.exe. As stated in the linked post.

0 Likes

#7

Hello bschaaf,

I have tried both, but both options do not work:

	"windows": {
// Command to invoke Sublime Text. Used if the keep_focus toggle is true.
// If blank, "subl.exe" or "sublime_text.exe" will be used.
"sublime_executable": "C:\\Program Files\\Sublime Text 3\\subl.exe",
},

	"windows": {
// Command to invoke Sublime Text. Used if the keep_focus toggle is true.
// If blank, "subl.exe" or "sublime_text.exe" will be used.
"sublime_executable": "C:\\Program Files\\Sublime Text 3\\sublime_text.exe",
},

The directory is the right one.

Kind regards

Chris

0 Likes

#8

Hello!

I could solve the problem. I have inserted the code

     *"keep_focus": true,

	"windows": {*
// Command to invoke Sublime Text. Used if the keep_focus toggle is true.*
// If blank, "subl.exe" or "sublime_text.exe" will be used.*
"sublime_executable": "C:\\Program Files\\Sublime Text 3\\subl.exe",*
},*

not only in

“Preferences | Package Settings | LaTeXTools | Settings - User”

but also in

“Preferences | Settings”.

Now things work!

Edit: The code is only needed in “Preferences | Settings”.

0 Likes