changeset 348:3478a327ae41 dev

DnD *.ind and *.big file
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 20 Dec 2014 12:30:39 +0900
parents 85737ee595a2
children b5bf68206bd1
files yatex23.el
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/yatex23.el	Fri Dec 19 07:48:47 2014 +0900
+++ b/yatex23.el	Sat Dec 20 12:30:39 2014 +0900
@@ -1,6 +1,6 @@
 ;;; yatex23.el --- YaTeX facilities for Emacs 23 or later -*- coding: sjis -*-
 ;;; (c)2014 by HIROSE Yuuji.[yuuji@yatex.org]
-;;; Last modified Thu Dec 18 22:59:02 2014 on firestorm
+;;; Last modified Fri Dec 19 21:43:54 2014 on firestorm
 ;;; $Id:$
 
 ;;; Code:
@@ -69,12 +69,15 @@
 			       (key-description
 				(car (where-is-internal 'undo)))))
 		      (put 'YaTeX-dnd-auto-figure 'guide t)))))
-	      (YaTeX-help "includegraphics")
-	      )
+	      (YaTeX-help "includegraphics"))
 	  (set-marker envstart nil) ;;sure to reset marker
 	  action))
        ((string-match "\\(.*\\)\\.tex$" path)
-	(insert "\\include{" (match-string 1 path) "}"))))
+	(insert "\\include{" (match-string 1 path) "}"))
+       ((string-match "\\(.*\\)\\.bib$" path)
+	(insert "\\bibliography{" (match-string 1 path) "}"))
+       ((string-match "\\.ind$" path)
+	(insert "\\input{" path "}"))))
      (t (message "%s" action)))))
 
 (provide 'yatex23)

yatex.org