comparison yatexadd.el @ 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
comparison
equal deleted inserted replaced
600:6061dd3a6dec 601:cd375a3d7a29
1 ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*- 1 ;;; yatexadd.el --- YaTeX add-in functions -*- coding: sjis -*-
2 ;;; (c)1991-2019 by HIROSE Yuuji.[yuuji@yatex.org] 2 ;;; (c)1991-2019 by HIROSE Yuuji.[yuuji@yatex.org]
3 ;;; Last modified Thu Nov 3 10:36:55 2022 on firestorm 3 ;;; Last modified Thu Nov 3 10:42:43 2022 on firestorm
4 ;;; $Id$ 4 ;;; $Id$
5 5
6 ;;; Code: 6 ;;; Code:
7 ;;; 7 ;;;
8 ;;Sample functions for LaTeX environment. 8 ;;Sample functions for LaTeX environment.
2096 '(width height scale angle))) 2096 '(width height scale angle)))
2097 ",")) 2097 ","))
2098 (if (string= "" str) "" 2098 (if (string= "" str) ""
2099 (concat "[" str "]")))) 2099 (concat "[" str "]"))))
2100 2100
2101 (defvar YaTeX::get-boundingbox-cmd YaTeX-cmd-gs 2101 (defvar YaTeX::get-boundingbox-cmd
2102 (or (YaTeX-executable-find "extractbb") YaTeX-cmd-gs)
2102 "Command to get bounding box from PDF files. 2103 "Command to get bounding box from PDF files.
2103 Possible values are `gs' and `extractbb'.") 2104 Possible values are `gs' and `extractbb'.")
2104 2105
2105 (defun YaTeX::get-boundingbox (file) 2106 (defun YaTeX::get-boundingbox (file)
2106 "Return the bound box as a string 2107 "Return the bound box as a string

yatex.org