Skip to content

Instantly share code, notes, and snippets.

@rriemann
Created January 30, 2012 12:57
Show Gist options
  • Select an option

  • Save rriemann/1704262 to your computer and use it in GitHub Desktop.

Select an option

Save rriemann/1704262 to your computer and use it in GitHub Desktop.
convert Xfig Images to pdf using a bash/zsh script
fig2pdf() {
for file in "$@"; do
fig2dev -L pstex -s10 $file > ${file%.*}.eps
epstopdf ${file%.*}.eps
rm ${file%.*}.eps
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment