Closed mihaiconstantin closed 8 months ago
My current workaround is to create a symbolic link to pygmentize
in the /Library/TeX/texbin
folder as follows:
ln -s /opt/homebrew/bin/pygmentize pygmentize
Then, running the path.tex
in IguanaTex
produces:
The code is now properly formatted through minted.
However, I think it could still be handy to have an option to allow IguanaTex
to see non-standard user-specified paths.
Thanks for reporting this and for finding a workaround.
To answer question 2 first, --shell-escape
is already used in the LaTeX calls.
I don't know why @tsung-ju coded it this way, maybe to circumvent the Mac sandbox, but there is a path export in ShellWait.bas that is currently set to be the same path as that of the LaTeX executables. One solution would be to offer in the Main Settings yet another path that could be included in there as well. Do you think that would be enough? One way to check this would be for you to edit the .pptx to hard-code the path to pygmentize
and see if that works.
I've added the possibility to specify additional paths in the Main Settings on Mac. They're added to the PATH export when executing any command. Multiple paths can be specify by separating with ":".
If I add /opt/homebrew/bin
as additional path, then I get the correct behavior you describe, while it doesn't work if I don't add it.
Please give it a shot: IguanaTex_v1_61_beta4.zip
Thanks for making this change @Jonathan-LeRoux! Can you please include the .ppam
in the archive so I can try it out on my Mac?
Sure, here it is: IguanaTex_v1_61_beta4_ppam.zip
Note that you can easily get the .ppam
from the .pptm
by using "export" (on Mac, "save as" on Windows) and choose .ppam
as the file format.
It seems to work well—no need for creating symbolic links to external tools anymore! Thank you for adding this option.
Note that you can easily get the .ppam from the .pptm by using "export" (on Mac, "save as" on Windows) and choose .ppam as the file format.
Ah, I wasn't aware of this... useful to know!
Thanks for confirming! I'll close this issue when I make an official release in the next few days. In the meantime, if you see any bug, please let me know.
Closing this issue as it is now fixed in Release v1.61.
I am trying to use
IguanaTex
in conjunction withminted
that requirespygmentize
.Suppose I have the following
path.tex
document:Running this document from my editor (i.e., or the terminal as
pdftex --shell-escape path.tex
) produces:However, running the same code from within
IguanaTex
yields:My question for you is two-fold:
I would like to be able to add
/opt/homebrew/bin
or/usr/local/bin
to the pathsIguanaTex
can see, but I cannot see a way to do this via theMain Settings
tab. Is there currently a way to achieve this?Is there a way I can instruct
IguanaTex
on what flags to use? For example, can I use the--shell-escape
flag?P.S. Thanks a lot for this amazing piece of software!