Browse Source

Fix incorrect funtion call

* lisp/ob-latex.el (org-babel-execute:latex): Call `file-name-sans-extension'
instead of `file-base-name'.
Carsten Dominik 11 years ago
parent
commit
b698fc2b57
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ob-latex.el

+ 2 - 1
lisp/ob-latex.el

@@ -169,7 +169,8 @@ This function is called by `org-babel-execute-src-block'."
 	   ((file-exists-p (concat (file-name-sans-extension tex-file) ".html"))
 	    (if (string-match "\\.html$" out-file)
 		(shell-command "mv %s %s"
-			       (concat (file-name-base tex-file) ".html")
+			       (concat (file-name-sans-extension tex-file)
+				       ".html")
 			       out-file)
 	      (error "HTML file produced but SVG file requested.")))))
          ((string-match "\\.\\([^\\.]+\\)$" out-file)