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
790 stars 57 forks source link

"pdflatex" is run instead of pdflatex #48

Closed vivienlonde closed 1 year ago

vivienlonde commented 1 year ago

I have the following error:

Could not start process: ' "pdflatex" -output-format dvi -shell-escape -interaction=batchmode IguanaTex_tmp.tex '. GetLastError returned 0.

Running the command from a shell without the quotes around "pdflatex" works: pdflatex -output-format dvi -shell-escape -interaction=batchmode IguanaTex_tmp.tex

Jonathan-LeRoux commented 1 year ago

Do you mean that it only works without quotes in the shell? Are you on Mac or Windows?

vivienlonde commented 1 year ago

Hi ! Yes exactly: it only works without quotes. I am on Windows, using powershell.

This is the error that I get with quotes: ParserError: Line | 1 | "pdflatex" -output-format dvi -shell-escape -interaction=batchmode Ig … | ~~~ | Unexpected token '-output' in expression or statement.

Note that IguanaTex used to work well. I have this error since I installed a mandatory update on my machine.

Thank you for the quick answer above btw :)

Jonathan-LeRoux commented 1 year ago

Do you use PS as your default shell? I would recommend trying to compile an IguanaTeX display with the Debug box checked. This will show you exactly what is run, and what the error is.

vivienlonde commented 1 year ago

Oh you're right: command prompt is my default shell. And in command prompt the command runs with quotes.

I now understand that the problem comes from a rule set by the administrator of my organization to “Block all Office applications from creating child processes”. I'll contact my administrator.

Thank you for the help. I'm closing this issue.

Jonathan-LeRoux commented 1 year ago

If your admin needs a self-signed version of the add-in, please let me know.

MoWaelHamdy commented 1 year ago

@vivienlonde , Hi there, I am facing the same issue, may I know how did you solve it?

Thanks in advance, Mohamed

vivienlonde commented 1 year ago

I haven't manage to solve the issue. Please let me know if you do. Thanks

Jonathan-LeRoux commented 1 year ago

Have you asked your admin if they could set some exclusions for specific processes?

vivienlonde commented 1 year ago

Yes I've asked but it didn't work :(

MoWaelHamdy commented 1 year ago

@Jonathan-LeRoux @vivienlonde , Thanks for you both for taking from your time to offer help. As a work around I write the equation I want in the tmp tex file then on the shell terminal I run the command pdflatex without the quotes then take a snippet from the DVI file.

Jonathan-LeRoux commented 1 year ago

@vivienlonde by "it didn't work", do you mean they tried to put an exception in place and failed, or they refused to do it? If they tried, any detail is appreciated.

vivienlonde commented 1 year ago

Hello @Jonathan-LeRoux , they refused to do it.

Jonathan-LeRoux commented 1 year ago

That's unfortunate, because the list of processes that they would need to allow is somewhat limited (various flavors of LaTeX, ImageMagick's magick.exe, etc). I can't see a workaround to that.