isteinbrecher / latex2ai

LaTeX Plugin for Adobe Illustrator
MIT License
147 stars 5 forks source link

Toolmousedown error caught and notify error caught. #116

Closed wzmumu closed 1 year ago

wzmumu commented 1 year ago

hello, when i want to insert an equation, there comes an "Toolmousedown error caught " with message W ZE2H2GD{0(_1E$%SQR$K6

and when i modify an exsiting equation, there comes "notify error caught" W ZE2H2GD{0(_1E$%SQR$K6

isteinbrecher commented 1 year ago

My first guess is, that there is an issue with postscript. Can you post your postscript version and the LaTeX code that you try to compile?

wzmumu commented 1 year ago

Any latex can lead to error actually. I do not know what you need. I upload gswin32. gswin32c.zip

isteinbrecher commented 1 year ago

Can you post your full ghostscript path (it is listed in the options panel, options). Also can you go to the folder mentioned in the error message (c:\Users\wzmumu\AppData\Local\Temp\LaTeX2AI\) and post the contents? There should be the following PDF file LaTeX2AI_item.pdf which contains the compiled LaTeX code - ist this the case?

wzmumu commented 1 year ago

The full path of gswin is C:\Program Files\texlive\2021\tlpkg\tlgs\bin The full path of ps viewer is "C:\Program Files\texlive\2021\bin\win32\psviewer.exe" "?am.ps" dvi "C:\Program Files\texlive\2021\bin\win32\dviout.exe" "?am.dvi" I snap the option of my texstudio 图片

Log is here.

LaTeX2AI_item.log

In fact, the LaTeX2AI_item.tex seems do the right thing, but it is not shown in AI.

LaTeX2AI_item.zip

isteinbrecher commented 1 year ago

The problem is, that you are using the ghostscript version shipped with TeXLive. This version has some problems in combination with LaTeX2AI. Please install an independent version of ghostscript (currently LaTeX2AI is tested with ghostscript 9.50 but it should work with any newer version as well) and make sure that you set the correct path in the LaTeX2AI options. Then everything should work fine.

wzmumu commented 1 year ago

It works. Thanks.