SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2.01k stars 365 forks source link

Having trouble with magick #1350

Open Sevro6174A opened 6 years ago

Sevro6174A commented 6 years ago

Hi, I've been trying to find a new LaTeX editor and I like the feel of sublime but I'm having trouble getting magick to work. Can anyone help? I have everything installed fine and I added the path, but it still can't find magick. I tried both the magick.exe and the folder it was installed to. Thanks in advance! :) image image

r-stein commented 6 years ago

Hello,

Magick is optional and has less relevance than when we introduced it. In my knowledge it is only used to preview svg images at the moment.

Apart from that you need to add the folder and may need to restart your computer or can add it to the texpath in the latextools settings.

Sevro6174A commented 6 years ago

I thought the texpath was for texlive? I'm not quite sure how I should add magick as well. image

Sorry I'm a newb at this sort of thing.

Just an update-- I switched from texlive to miktex and it worked perfectly fine. I'd still like to get this solved to use texlive if I could.

Update 2-- I uninstalled magick because I was going to try out a different version and noticed it was still working in miktex. Even though it was working I switched back to texlive since I didn't wanna go through and download all the packages in miktex (for some reason it wasn't downloading them as it needs them like it normally would)... after I swapped back to texlive the previews were still generating. I can't explain it but somehow its working now, even without magick installed- I even restarted my computer just to be sure and its all good. image

I don't understand, but I'm not going to look a gift horse in the mouth! :) Thanks r-stein for replying!

Update 3-- Scratch that. I changed the math_scale_quotient and math_density to try and get some better resolution and I get the same error again. I guess it saves the images generated in a folder somewhere and since I didn't change the equation it kept using the same image. image image

r-stein commented 6 years ago
  1. The converted images are cached for performance reasons, because the conversation takes some time and the chance is high that you want to preview the same equation again. You can clear the cache via the LaTeXTools: Clear Cache command (ctrl+shift+p)
  2. I may not have been clear enough, but magick is not used to generate the images. You don't need it at all, unless your include svg images. We used it to convert pdf and eps images, but we now only use ghostscript for that and just kept it, because why would you remove a feature (svg image preview) that works =).
  3. There is an issue with ghostscript on windows, see https://github.com/SublimeText/LaTeXTools/issues/1148#issuecomment-308126813 for a solution.
Sevro6174A commented 6 years ago

It worked! Thank you!! 👍