Created
December 2, 2023 13:33
-
-
Save mistivia/87ae02c62ccf9b180160f5d3e924ecc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Usage: ./showtex.sh 'E=mc^2' | |
| tmp=/tmp/$(head -c 5 /dev/urandom | base32) | |
| tex2svg $@ > $tmp.svg && \ | |
| convert -resize 150% $tmp.svg $tmp.png && \ | |
| img2sixel $tmp.png | |
| rm $tmp.svg 2>/dev/null 1>/dev/null | |
| rm $tmp.png 2>/dev/null 1>/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment