Fish plugin to convert a latex formula into a png.
By default, prints the image to screen using kitty.
To install, just run
./INSTALL.fishFor usage in other shells, you can add a wrapper script to your PATH like this
#!/bin/sh
fish -c "pngtex $@"pngtex a^2 + b^2 = c^2
pngtex -c "echo" c^2 + b^2 = c^2
# save the generated image at ~/Desktop/Images
pngtex --save "~/Desktop/Images/" --cmd "echo 'file is saved here: '" a^2 + b^2 = c^2
env PNGTEX_SAVEDIR="~/Desktop/Images/" pngtex --cmd "echo 'file is saved here: '" a^2 + b^2 = c^2
pngtex -c "mv _ ~/Desktop/Images/" -I_ a^2 + b^2 = c^2