# HG changeset patch # User HIROSE Yuuji # Date 1570247177 -32400 # Node ID 80692d8b8828a36ad44e8fe6b8d2c1d423898e05 # Parent 9e07513fc2efd1e60e00bff1832ca77ec644166c New switch YaTeX-proc-feed-relative suppress absolute path name. Because bibtex fails to write output blg files when absolute path given. diff -r 9e07513fc2ef -r 80692d8b8828 yatexprc.el --- a/yatexprc.el Wed Sep 11 09:27:10 2019 +0900 +++ b/yatexprc.el Sat Oct 05 12:46:17 2019 +0900 @@ -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)))))