yatex

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 diff
     1.1 --- a/yatexadd.el	Tue Dec 16 21:19:07 2014 +0900
     1.2 +++ b/yatexadd.el	Thu Dec 18 11:56:34 2014 +0900
     1.3 @@ -1,7 +1,7 @@
     1.4  ;;; yatexadd.el --- YaTeX add-in functions
     1.5 -;;; yatexadd.el rev.20
     1.6 +;;; yatexadd.el rev.21
     1.7  ;;; (c)1991-2014 by HIROSE Yuuji.[yuuji@yatex.org]
     1.8 -;;; Last modified Tue Dec 16 12:54:54 2014 on firestorm
     1.9 +;;; Last modified Thu Dec 18 11:52:36 2014 on firestorm
    1.10  ;;; $Id$
    1.11  
    1.12  ;;; Code:
    1.13 @@ -1933,7 +1933,8 @@
    1.14    "Return the bound box as a string
    1.15  This function relies on gs(ghostscript) command installed."
    1.16    (let ((str (YaTeX-command-to-string
    1.17 -	      (format "gs -sDEVICE=bbox -dBATCH -dNOPAUSE %s" file))))
    1.18 +	      (format "%s -sDEVICE=bbox -dBATCH -dNOPAUSE %s"
    1.19 +		      YaTeX-cmd-gs file))))
    1.20      (if (string-match
    1.21  	 "%%BoundingBox:\\s \\([0-9]+\\s [0-9]+\\s [0-9]+\\s [0-9]+\\)"
    1.22  	 str)