Add helpers functions
This commit is contained in:
parent
46b8c521c1
commit
10d1fcd0e7
10
helpers/functions/asy2png
Normal file
10
helpers/functions/asy2png
Normal 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
3
helpers/init.zsh
Normal file
@ -0,0 +1,3 @@
|
||||
#
|
||||
# Helpers aliases
|
||||
#
|
Loading…
Reference in New Issue
Block a user