xqms / graphicscache

Caching & DPI control for the LaTeX graphicx package
BSD 3-Clause "New" or "Revised" License
10 stars 5 forks source link

mgs shouldn't be assumed on windows #17

Closed u-fischer closed 2 years ago

u-fischer commented 3 years ago

mgs is a miktex specific variant of ghostscript. It doesn't exist if texlive is used.

xqms commented 3 years ago

Hey, thanks for the feedback! I have had no Windows users so far, so I'm very glad you tested this ;)

Do you know if a usual texlive windows distribution includes ghostscript? Is it just called gs?

We probably need to detect that during import of the package. I'll try to come up with a way to do that.

u-fischer commented 3 years ago

There is a ghostscript in texlive, the binary itself is not in the path but you can call it with the wrapper rungs.

And a side remark: \immediate\write18 doesn't work in a native luatex. It does work in your package because you load the shellesc package which overloads \write. But it would be cleaner to use \ShellEscape instead of \immediate\write18.

xqms commented 2 years ago

Should be fixed in #20.