New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
equation preview in windows texlive 2017? #1148
Comments
Does it work with simpler equations? What's the content of the report (Show Report)? |
If you click on (Show Report) it should open a file, which contains a bug report. |
You may try to restart Sublime Text. Do you have any output in the ST console |
ST3 console output:
Is the gswin32c.EXE wrong? |
It should work with your ghostscript version. I don't know what the issue is. |
ok, I give up, maybe something is wrong. |
I am seeing the same issue after switching from TeX Live 2016 to 2017. I also have MacTex 2017 which has the same program versions according to the LaTeXTools System Check and there a no problems with the equation preview. |
It may be worth to add that we aren't using ImageMagick for the preview anymore. It is only used to convert images in the preview, which aren't png, jp(e)g, (gif), pdf, ps, or eps. So we may also remove it from the system check, because other image formats aren't common in latex documents. The conversation from pdf to png is done via ghostscript, which usually ships with the tex distro. I don't know what the problem is or how to debug the best. You can see the executed commands in the ST console |
In my Can I somehow disable that instant cleanup of these temp files? This way I could run the failing commands with the same input manually and watch for any errors. |
Yes you can juste delete for loop and restart Sublime Text afterwards to reload the plugin. |
Is this any helpful? Do I need to set up a proper environment for Ghostscript first? I ran it with PowerShell in the \internal\preview_math\ folder.
|
I also don't know much about ghostscript, but it should automatically create a sane environment when you install ist. |
That "Can't find initialization file..." error message sounds like a messed up GS install. I'm not sure what we can do to alleviate the issue. |
I installed the latest version of Ghostscript via Chocolatey, manually added The equation previews are working again. 😀 |
thank you!, It works @hsiktas |
FYI, I set environment variable |
I had the same problem too. But I installed Ghostscript and my problem has been solved !!! |
@taroxd 's fix works for the version of GS in texlive 2017 for Windows. The install just seems to not set the relevant paths / registry entries for GS (that is, I can confirm I had no registry entry for ghostscript upon searching). |
There also seems to be a problem with the bundled ghostscript in MacTex2016 on MacOS. I had the same issue and it was solved by installing ghostscript via homebrew. |
Thank you! It works @hsiktas |
Thanks @taroxd . This solution works perfectly. |
Thanks @taroxd . This solution is really helpful. |
Thanks @taroxd |
Thanks @hsiktas . This solution works perfectly. |
Thanks @taroxd |
@taroxd Thanks. The solution works perfectly. |
Thank @taroxd I had the same problem. |
Installed Chocolatey via PowerShell (admin), as instructed on the page Added path = "C:\Program Files\gs\gs9.24\bin" to environment variable On Windows 10 (Version 1809: OS build 17763.55) Also I've changed before: |
works great! |
Yes it works, but crashes were frequent
…On Mon, Apr 1, 2019, 12:22 PM Brightchu ***@***.***> wrote:
Resource\Init
works great!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1148 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACi4oRnLgfSQcLbmszWOxBAfRbw4E0g-ks5vcayrgaJpZM4Nyi7U>
.
|
@taroxd Thanks. This problem waste me too time!!! |
I encountered this problem too. All the methods above did not work. But it finally worded after I added path = "C:\Program Files\gs\gs9.50\bin" to user's environment variable. I used to add that path to system's environment variable. |
Thank you! @hsiktas It really helps me a lot! |
Recently had this issue too. Choclatey was not necessary to fix it. I just installed the latest 32-bit GhostScript from ghostscript.com and put its \bin directory near the top of the Windows path (see https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/). I restarted Sublime Text and preview now works! Even though the texlive version of ghostscript shows up green in the configuration report, I guess it doesn't actually work. |
If you encounter the following error:
Here's how I found the solution. After encounter the error, I installed Ghostscript myself at the beginning and added it to the top of the environment variable. However, after checking the system, LaTeXTools prompts me that the path of Ghostscript is still
I got |
@taroxd Thanks, It does work. |
Hello, I am a new user of your amazing working, LaTexTools
I just meet some strange problems.
Can you help me?
those are my sublime text 3 reports:
I don't know why I can't preview the equation with everything OK?
shouldn't I use texlive 2017?
The text was updated successfully, but these errors were encountered: