changeset 335:35a0e8065925 dev

Call gs via variable
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 18 Dec 2014 11:56:34 +0900
parents 914b56a1386a
children d1f5893b6a2c
files yatexadd.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)

yatex.org