changeset 574:80692d8b8828 dev

New switch YaTeX-proc-feed-relative suppress absolute path name. Because bibtex fails to write output blg files when absolute path given.
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 05 Oct 2019 12:46:17 +0900
parents 9e07513fc2ef
children 777d17c07759
files yatexprc.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)))))

yatex.org