# HG changeset patch # User HIROSE Yuuji # Date 1667439509 -32373 # Node ID 6061dd3a6decca53dd2ededb625424b428b258e5 # Parent e73e4150912448d3f6933a3f97ff9469006a56f4 PNG bb should be taken via extractbb diff -r e73e41509124 -r 6061dd3a6dec yatexadd.el --- a/yatexadd.el Sun Oct 16 20:57:34 2022 +0859 +++ b/yatexadd.el Thu Nov 03 10:38:02 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 Sep 22 11:41:04 2022 on firestorm +;;; Last modified Thu Nov 3 10:36:55 2022 on firestorm ;;; $Id$ ;;; Code: @@ -2132,7 +2132,7 @@ (or (fboundp 'yahtml-get-image-info) (progn (load "yahtml" t) (featurep 'yahtml))) ;(require 'yahtml nil t) - (if (string-match "\\.pdf" imgfile) + (if (string-match "\\.\\(pdf\\|png\\)" imgfile) (and (setq info (YaTeX::get-boundingbox imgfilepath)) (stringp info)