yatex

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 diff
     1.1 --- a/yatexprc.el	Wed Sep 11 09:27:10 2019 +0900
     1.2 +++ b/yatexprc.el	Sat Oct 05 12:46:17 2019 +0900
     1.3 @@ -1,7 +1,7 @@
     1.4  ;;; yatexprc.el --- YaTeX process handler -*- coding: sjis -*-
     1.5  ;;; 
     1.6  ;;; (c)1993-2018 by HIROSE Yuuji.[yuuji@yatex.org]
     1.7 -;;; Last modified Wed May 30 08:32:30 2018 on firestorm
     1.8 +;;; Last modified Sat Oct  5 12:44:16 2019 on firestorm
     1.9  ;;; $Id$
    1.10  
    1.11  ;;; Code:
    1.12 @@ -1341,6 +1341,8 @@
    1.13         (setq fname (substring fname 0 (rindex fname ?.))))
    1.14       ext)))
    1.15  
    1.16 +(defvar YaTeX-proc-feed-relative t
    1.17 +  "Non-nil means feed process relative path name of target file.")
    1.18  (defun YaTeX-get-latex-command (&optional switch)
    1.19    "Specify the latex-command name and its argument.
    1.20  If there is a line which begins with string: \"%#!\", the following
    1.21 @@ -1360,7 +1362,9 @@
    1.22  	  (cond
    1.23  	   (YaTeX-parent-file
    1.24  	    (if YaTeX-dos (expand-file-name YaTeX-parent-file)
    1.25 -	      YaTeX-parent-file))
    1.26 +	      (if YaTeX-proc-feed-relative
    1.27 +		  (file-relative-name YaTeX-parent-file)
    1.28 +		YaTeX-parent-file)))
    1.29  	   (t (save-excursion
    1.30  		(YaTeX-visit-main t)
    1.31  		(file-name-nondirectory (buffer-file-name)))))