# HG changeset patch # User HIROSE Yuuji # Date 1418871394 -32400 # Node ID 35a0e80659250e64c0f5bd52fa05ccdc9887f02d # Parent 914b56a1386a4be7b15ca9d3dfe3f02d3fae2a36 Call gs via variable diff -r 914b56a1386a -r 35a0e8065925 yatexadd.el --- a/yatexadd.el Tue Dec 16 21:19:07 2014 +0900 +++ b/yatexadd.el Thu Dec 18 11:56:34 2014 +0900 @@ -1,7 +1,7 @@ ;;; yatexadd.el --- YaTeX add-in functions -;;; yatexadd.el rev.20 +;;; yatexadd.el rev.21 ;;; (c)1991-2014 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Tue Dec 16 12:54:54 2014 on firestorm +;;; Last modified Thu Dec 18 11:52:36 2014 on firestorm ;;; $Id$ ;;; Code: @@ -1933,7 +1933,8 @@ "Return the bound box as a string This function relies on gs(ghostscript) command installed." (let ((str (YaTeX-command-to-string - (format "gs -sDEVICE=bbox -dBATCH -dNOPAUSE %s" file)))) + (format "%s -sDEVICE=bbox -dBATCH -dNOPAUSE %s" + YaTeX-cmd-gs file)))) (if (string-match "%%BoundingBox:\\s \\([0-9]+\\s [0-9]+\\s [0-9]+\\s [0-9]+\\)" str)