Jonathan-LeRoux / IguanaTex

A PowerPoint add-in allowing you to insert LaTeX equations into PowerPoint presentations on Windows and Mac
http://www.jonathanleroux.org/software/iguanatex/
Other
851 stars 59 forks source link

编译代码时报错 #62

Closed haomes closed 3 months ago

haomes commented 5 months ago

当我直接运行: \documentclass{article} \usepackage{amsmath} \pagestyle{empty} \begin{document}

$ G=(\mathcal{V},\mathcal{E}) $

\end{document}

报错: '/Library/TeX/texbin/pdflatex' -output-format dvi -shell-escape -interaction=batchmode IguanaTex_tmp.tex

image
Jonathan-LeRoux commented 4 months ago

Please try to run with "Debug" checked, and also try to compile outside IguanaTex. On the Mac, you need to navigate to the temporary folder that's indicated in the edit window.

jd730 commented 4 months ago

Hi @Jonathan-LeRoux I am also facing this error. I used this program for several years and recently downlaoded again since I formatted the amcbook.

image
Jonathan-LeRoux commented 4 months ago

Are you sure you followed the installation instructions? Did you use homebrew or manual installation?

jd730 commented 4 months ago

I first tried manual installation since that is what I did several years ago but I was facing the error and I tried to use homebrew although it did not solve it. However, I haven't checked the path yet since I've never done this before and I am using TeXShop for using latex on my machine. I will check it.

Jonathan-LeRoux commented 4 months ago

I'm not familiar with TeXShop and typically use MacTeX. You should check that the command above (/Library/TeX/texbin/pdflatex) does exist. If so, try navigating to the temp folder indicated in the IguanaTex edit window, and running that command.

Jonathan-LeRoux commented 4 months ago

Can one of you check what you have under /Library/TeX/texbin/?

jd730 commented 4 months ago

In my case, pdflatex is stored on $USER/Library/TeXShop/bin along with other files

image
Jonathan-LeRoux commented 4 months ago

I assume /Library/TeX/texbin/ doesn't exist. Could you create a symlink from /Library/TeX/texbin/ to $USER/Library/TeXShop/bin?

Jonathan-LeRoux commented 4 months ago

What's surprising to me is that TeXShop says you're supposed to install a TeX installation such as MacTeX or TeX Live, so I'm not sure how you ended up with your distribution being under $USER/Library/TeXShop/. Can you confirm these aren't symlinks to somewhere else?

Jonathan-LeRoux commented 3 months ago

I just realized that you can probably solve this by simply specifying the path to your LaTeX executables folder in IguanaTex's Main Settings...

jd730 commented 3 months ago

I think that is the first thing I tried before but I will try it again right now. Thanks for helping me!

jd730 commented 3 months ago

It worked! The problem was $USER/Library/TeXShop/bin only has pdfeuptex and pdfeptex not pdflatex. I really apologize for my mistake and I really appreciate your help. The correct path for me was /usr/local/texlive/2023/bin/universal-darwin/

Jonathan-LeRoux commented 3 months ago

Thanks for confirming! I'll clarify the README. @haomes , did you have a similar issue?