Add helpers functions

This commit is contained in:
Jeff Lance 2020-08-12 18:26:27 +02:00
parent 46b8c521c1
commit 10d1fcd0e7
2 changed files with 13 additions and 0 deletions

10
helpers/functions/asy2png Normal file
View File

@ -0,0 +1,10 @@
#
# Create an image file from an asymptote file and convert it to svg and png
#
asy "$1"
filename=$(basename -s .asy "$1")
convert -density 300 "${filename}.pdf" -quality 100 $(echo "${filename}.pdf" | sed -e 's/pdf$/svg/')
convert -density 300 "${filename}.pdf" -quality 100 $(echo "${filename}.pdf" | sed -e 's/pdf$/png/')

3
helpers/init.zsh Normal file
View File

@ -0,0 +1,3 @@
#
# Helpers aliases
#