소스 검색

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 년 전
부모
커밋
b698fc2b57
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)