diff --git a/yatexprc.el b/yatexprc.el index a3ae3b4..1dcebc1 100644 --- a/yatexprc.el +++ b/yatexprc.el @@ -1,7 +1,7 @@ ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*- ;;; ;;; (c)1993-2018 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Wed May 30 08:32:30 2018 on firestorm +;;; Last modified Sat Oct 5 12:44:16 2019 on firestorm ;;; $Id$ ;;; Code: @@ -1341,6 +1341,8 @@ (setq fname (substring fname 0 (rindex fname ?.)))) ext))) +(defvar YaTeX-proc-feed-relative t + "Non-nil means feed process relative path name of target file.") (defun YaTeX-get-latex-command (&optional switch) "Specify the latex-command name and its argument. If there is a line which begins with string: \"%#!\", the following @@ -1360,7 +1362,9 @@ (cond (YaTeX-parent-file (if YaTeX-dos (expand-file-name YaTeX-parent-file) - YaTeX-parent-file)) + (if YaTeX-proc-feed-relative + (file-relative-name YaTeX-parent-file) + YaTeX-parent-file))) (t (save-excursion (YaTeX-visit-main t) (file-name-nondirectory (buffer-file-name)))))