# HG changeset patch # User HIROSE Yuuji # Date 1667439796 -32373 # Node ID cd375a3d7a290fe3f7328abaaf2013b22e90742c # Parent 6061dd3a6decca53dd2ededb625424b428b258e5 PNG bb should be taken via extractbb diff -r 6061dd3a6dec -r cd375a3d7a29 yatexadd.el --- 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'.")