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
Problem of Math Preview #920
Comments
I have the same issue |
|
@r-stein I have miktex on my path (as well as gs and magick) The console only prints: |
I got one way to solve the problem! The problem is happenning when the related packages are not installed.
And build the tex in the folder, and console will show u what packages are needed! |
And I'm curious about whether these cache will be deleted autoly. |
@dkjust Thanks for the tip. I couldn't find the files that LatexTools was generating. I'm assuming that they're deleted automatically. I searched for them in the AppData directory, but couldn't find them. That appeared to be the correct place, but I couldn't find the For those that can't find the generated files, this is what worked for me. Looking at the code in
I tried compiling this and MikTek installed what it needed. It turns out that in my particular case, I was missing |
Thanks for that investigation, I will improve the system check and the error logging. |
Installed all the missing package: standalone, preview and mathtools, still don't work. ERROR: Failed to run"pdflatex" to creat pdf to preview. |
@zzf-technion you can compile the document provied by @jmbejara via the terminal with pdflatex? |
@r-stein After I downloaded the four documents: mathtools.sty; mhsetup.sty; preview.py and standalone.cls, then put these four documents in the same fold with .tex file, I can compile the .tex and get pdf file. |
but there is still a problem with preview when editing the tex code |
@dkjust The cache has an upper limit @zzf-technion You need to install that packages for the whole system. Which tex distro are you using? |
@r-stein Struggling for two days, finally the preview works well, thanks for your amazing work, it is really awesome. |
@zzf-technion I agree, we are still at handling and narrowing down typical error cases. There is already an PR #924 to check the availability of the required packages in the system check. |
The solution suggested by @dkjust WORKS:) but before that I have reinstalled MikTex, GS and imgmagic. |
Dear developers, Do you mind to add gs win 64bit support? I have gs installed but a 64bit version and I do not want to reinstall a 32bit one. |
@TLCFEM We don't use ghostscript directly. We use ImageMagick (to convert pdfs to preview pngs), which uses ghostscript as dependency. So we cannot do anything about this. You may verify, that you have a 64bit ImageMagick installation and investigate into that direction. If you can convert a pdf to a png via the |
Thanks now problem fixed |
Also encountering this. Compiling the template once made the pdflatex-related error disappear, since I was missing Now that it can't convert the pdf to an image, the error message should definitely mention that you need to install ImageMagick and ghostscript (on Windows), since the feature is auto-enabled and doesn't require you do read any documentation. Linking to the readme would be enough, imo. |
@FichteFoll I agree, that the troubleshooting still needs to improve. We could create a wiki page for it and add a (Help) button, which opens that page in the browser. |
I have checked the system and below is my result:
However, I am still not able to preview the math. The error still says:
|
Same issue above, but here is the quick solution: |
Thanks @hyrious, I was missing the specific |
OS: win10 @r-stein I have already read your reply to the ask of add GS, but when I use
After I searched from the Internet, I find out that I have to install GS. Is it the deference between MikTex and TeXLive? Do you have any idea to skip this step? |
Latex beginner here. I am trying to get the preview of math equations and symbols within the document (not in a separate file or pane). I think this is called phantoms? It is not working (unless I'm missing a special button I'm supposed to press to get that). I tried compiling the following file per some instructions above
To compile it, I went into Windows 10 power shell terminal into the directory where that file is stored . I called that file file_from_internet.tex . I typed in |
Assuming you’re using MiKTeX, from the PowerShell console type |
Thank you for your reply. Yes I believe I am using MiKTeX. When I run the command
Looking at the log file mentioned in that message, the last two lines say
I tried going to that URL but my browser would not load it.
Here's the full output of the log after executing both of these commands (I'm pretty sure that only last few lines are interesting and I already reproduced those above). |
@alexboche I would just change the remote. Run |
I changed the remote by typing |
@alexboche That is a feature not a bug ;). The equation preview is controlled by a scope selector. You can just open your LaTeXTools settings Preferences > Package Settings > LaTeXTools > Settings (User) and then change preview_math_scope from |
I installed the gs and magick, added them to $Path. I can build my pdf, and the picture preview works well, but the Math Preview breaks down.
This is the system check.
And there are my code and the feedback.
My OS is Windows 10(64bit)
My Sublime Text 3 is 3126
Magick is 7.0.3-Q16(64bit)
gs is 9.2(32bit)
The text was updated successfully, but these errors were encountered: