Export: Fix bug when exporting to temporary buffer

When exporting to a temporary buffer, images to replace LaTeX
fragments cannot be produced, because there is no useful location
where they can be put.  Therefore, these images are not produced in
this case.
This commit is contained in:
Carsten Dominik 2009-03-20 14:06:33 +01:00
parent d48a1e49e2
commit 5d958f13b3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-03-20 Carsten Dominik <carsten.dominik@gmail.com>
* org-exp.el (org-export-html-preprocess): Only create LaTeX
fragement images if there is an export file.
2009-03-19 Carsten Dominik <carsten.dominik@gmail.com>
* org-agenda.el (org-stuck-projects): Document that the subtree of

View File

@ -3237,7 +3237,8 @@ Does include HTML export options as well as TODO and CATEGORY stuff."
(defun org-export-html-preprocess (parameters)
;; Convert LaTeX fragments to images
(when (plist-get parameters :LaTeX-fragments)
(when (and org-current-export-file
(plist-get parameters :LaTeX-fragments))
(org-format-latex
(concat "ltxpng/" (file-name-sans-extension
(file-name-nondirectory