unix - eLisp call-process dvisvgm -
i trying process latex fragment svg file, using dvisvgm. works fine command line fails when run within elisp:
(call-process "dvisvgm" nil nil nil "--libgs=/usr/local/bin/gs" svgfile dvifile) can tell me i've missed?
thanks! -adam
try use m-! dvisvgm --libgs=/usr/local/bin/gs <svgfile> <dvifile> instead, if works , still want write in elisp, can use simpler api: shell-command, example:
(shell-command (format "dvisvgm --libgs=/usr/local/bin/gs %s %s" (shell-quote-argument svgfile) (shell-quote-argument dvifile))) if dvisvgm takes time , don't want block emacs, add & shell command or use start-process etc create asynchronous process. example, use start-process:
(start-process "foo-dvisvgm" nil "dvisvgm" "--libgs=/usr/local/bin/gs" svgfile dvifile)
Comments
Post a Comment