changeset 331:d9c547265e6e dev

Insertion of includegraphics and args should be done separately
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 16 Dec 2014 11:31:45 +0900
parents 9cef5d10a0f1
children 111e7a3094e8
files yatex23.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/yatex23.el	Tue Dec 16 11:12:38 2014 +0900
+++ b/yatex23.el	Tue Dec 16 11:31:45 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 Tue Dec 16 11:08:10 2014 on firestorm
+;;; Last modified Tue Dec 16 11:29:14 2014 on firestorm
 ;;; $Id:$
 
 ;;; Code:
@@ -18,8 +18,8 @@
        ((memq action '(copy link move private))
 	(cond
 	 ((string-match "\\.\\(jpe?g\\|png\\|gif\\|bmp\\|tiff?\\|e?ps\\|pdf\\)$" path)
-	  (insert "\\includegraphics"
-		  "{" (YaTeX::includegraphics 1 path t) "}")
+	  (insert "\\includegraphics")
+	  (insert "{" (YaTeX::includegraphics 1 path t) "}")
 	  (YaTeX-package-auto-usepackage "includegraphics" 'section))
 	 ((string-match "\\.tex$" path)
 	  (insert "\\include{" path "}"))

yatex.org