LaTeXTools icon indicating copy to clipboard operation
LaTeXTools copied to clipboard

previewmath does not work

Open fewww opened this issue 7 years ago • 7 comments
trafficstars

After updating Miktex 2.9, preview_math does not work. It works only in simple cases.

fewww avatar Nov 02 '18 18:11 fewww

preview_math does not work. It works only in simple cases.

Same problem on TeXLive2018, openSUSE TW. I believe this is related to the Ghostscript that was recently updated to v. 9.25. As far as I can tell, GS fails to convert the temporary .pdf to the .png. The latter appears to be of zero length. The simplest formulas are converted nonetheless. Same problem with image previews, by the way.

JackGin avatar Nov 03 '18 18:11 JackGin

I just solved the problem. I have set the "preview_math_hires" to false in the settings of latextools: "preview_math_hires": false, It works.

JackGin [email protected] ezt írta (időpont: 2018. nov. 3., Szo, 19:18):

preview_math does not work. It works only in simple cases. Same problem on TeXLive2018, openSUSE TW. I believe this is related to the Ghostscript that was recently updated to v. 9.25. As far as I can tell, GS fails to convert the temporary .pdf to the .png. The latter appears to be of zero length. The simplest formulas are converted nonetheless. Same problem with image preview, by the way.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SublimeText/LaTeXTools/issues/1380#issuecomment-435609691, or mute the thread https://github.com/notifications/unsubscribe-auth/AiNktD2vPyG-NEhQcdJ4hVFvckU80Y0Gks5urd4GgaJpZM4YMH8p .

fewww avatar Nov 03 '18 19:11 fewww

"preview_math_hires": false, It works.

I confirm this fixes the issue with math previews. The figure previews still give errors for me, like 'failed to create preview thumbnail'.

JackGin avatar Nov 03 '18 20:11 JackGin

"preview_math_hires": false, It works.

Worked for me too. Thanks!

charlesbaynham avatar Jan 11 '19 16:01 charlesbaynham

After a recent system update, "preview_math_hires": true again works for me. However, a similar problem with figures preview still persists. A hover on a figure results in an Error: failed to create a preview thumbnail. Ghostscript is 9.26a-1.2.x86_64 on openSUSE TW.

Btw, may I ask if the development of the package is stalled, or is it just the work is being done behind the scenes? Thank you anyway.

JackGin avatar Feb 11 '19 14:02 JackGin

@JackGin I can only speak for myself: We started to create "version 4" on a separate branch, which removes ST2 compatibility, includes a lot refactoring, and adds nice features. However unfortunately the development slowed down/stalled due to a lack of time/motivation/other priorities and it wasn't released yet (I still want to release it). You can use the prerelease to install that version.

r-stein avatar Feb 11 '19 21:02 r-stein

This is still an issue, and just started happening to me recently.

"preview_math_hires": false fixes the issue. Unlike others, I do not have an issue with the figures.

Info:

latexmk      /usr/bin/latexmk                available  Latexmk, John Collins, 18 June 2019. Version 4.65
pdflatex     /usr/bin/pdflatex               available  pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)
xelatex                                      missing    unavailable
lualatex     /usr/bin/lualatex               available  This is LuaTeX, Version 1.10.0 (TeX Live 2019/Debian)
biber                                        missing    unavailable
bibtex       /usr/bin/bibtex                 available  BibTeX 0.99d (TeX Live 2019/Debian)
bibtex8      /usr/bin/bibtex8                available  This is 8-bit Big BibTeX version 0.99d
kpsewhich    /usr/bin/kpsewhich              available  kpathsea version 6.3.1
convert      /usr/bin/convert                available  ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
ghostscript  /usr/bin/gs                     available  GPL Ghostscript RELEASE CANDIDATE 2 9.28 (2019-09-05)

mihaelacr avatar Dec 09 '19 21:12 mihaelacr