SublimeText / LaTeXTools

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

msg.exe has stop working-preview_math #1469

Closed phatsp closed 4 years ago

phatsp commented 4 years ago

Hi, I'm learning LaTeX on SublimeText3. I have LaTeX Tools and LaTeXYZ installed. The auto pdf preview of LaTeXYZ works fine under the math/ equation environment. Then I want some customization for my math (text-align in equation) which I found here . But the pdf-preview threw an error like this. Does anyone know how to solve this problem?

*I know it would be more appropriate to post this question on LaTeXYZ, but their git somehow doesn't have many people visiting. image

r-stein commented 4 years ago

It seems that there is an issue with the ghostscript conversation of the pdf (step 3 below).

The process of the math preview is the following:

  1. generate a tex file based on the current math equation
  2. create a pdf for the tex file with pdflatex (or the configured program)
  3. use ghostscript to convert the pdf to a png
  4. show the png in Sublime Text

It does not seem to be a general problem, because it works for me:

image

Does the preview work in general and fails on this specific equation or doesn't it work at all?

phatsp commented 4 years ago

Yes, It works normally for the usual math environment $ $, but fails with this specific case, when put under{flalign*} environment.

phatsp commented 4 years ago

I looked into other issues and found the latest answer: setting "preview_math_hires"= false in #1430 helps . Thank you @r-stein. Closing the topic.