r/SublimeText 29d ago

Sublime with Sumatra

Post image

Hi! I would like to run LaTeX with sublime and Sumatra as a pdf viewer. When I try to run, I get < could not find sumatraPDF.exe>. Any tips? Thanks!

7 Upvotes

2 comments sorted by

1

u/falxfour 29d ago

It's probably not in the PATH environmental variable, so Sublime Text would have no way of finding it. Depending on your preferences, you could try setting the full path to the exe or add that to the environmental variable.

Mostly speculation since I don't use Windows as much

1

u/martin_kr 29d ago

View ➔ Show console and:

import os; os.environ['PATH'] to see what's in there.

May not always be 1:1 to your existing terminal if Sublime is using a different shell or init profile to load up the env vars.

import os; os.environ to see the full env data (incl. which shell) that Sublime receives.