From b698fc2b57d65d6311587f5a27e3d7e76328610f Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Thu, 19 Sep 2013 05:05:56 +0200 Subject: [PATCH] Fix incorrect funtion call * lisp/ob-latex.el (org-babel-execute:latex): Call `file-name-sans-extension' instead of `file-base-name'. --- lisp/ob-latex.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob-latex.el b/lisp/ob-latex.el index f9216e10c..edc9fe881 100644 --- a/lisp/ob-latex.el +++ b/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) -- 2.11.4.GIT