Skip to content

Instantly share code, notes, and snippets.

@hadisfr
Created August 21, 2018 15:11
Show Gist options
  • Save hadisfr/1219182c358fbb0db2b793dd496155ba to your computer and use it in GitHub Desktop.
Save hadisfr/1219182c358fbb0db2b793dd496155ba to your computer and use it in GitHub Desktop.
convert svg files to LaTeX-compatible pdf
function svg2tex {
_addr=$(readlink -f $1)
inkscape -D -z --file=$_addr --export-pdf=${_addr/.svg/.pdf} --export-latex
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment