changeset 601:cd375a3d7a29 draft dev

PNG bb should be taken via extractbb
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 03 Nov 2022 10:42:49 +0859
parents 6061dd3a6dec
children a7ad9158e3ce
files yatexadd.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/yatexadd.el	Thu Nov 03 10:38:02 2022 +0859
+++ b/yatexadd.el	Thu Nov 03 10:42:49 2022 +0859
@@ -1,6 +1,6 @@
 ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*-
 ;;; (c)1991-2019 by HIROSE Yuuji.[yuuji@yatex.org]
-;;; Last modified Thu Nov  3 10:36:55 2022 on firestorm
+;;; Last modified Thu Nov  3 10:42:43 2022 on firestorm
 ;;; $Id$
 
 ;;; Code:
@@ -2098,7 +2098,8 @@
     (if (string= "" str) ""
       (concat "[" str "]"))))
 
-(defvar YaTeX::get-boundingbox-cmd YaTeX-cmd-gs
+(defvar YaTeX::get-boundingbox-cmd
+  (or (YaTeX-executable-find "extractbb") YaTeX-cmd-gs)
   "Command to get bounding box from PDF files.
 Possible values are `gs' and `extractbb'.")
 

yatex.org