From 19bda1c361f9254aa5d7e9397a9cceca07bfd617 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Thu, 29 Jan 2009 14:12:51 +0100 Subject: [PATCH] Export: LaTeX fragment images are inlined again. --- lisp/ChangeLog | 2 ++ lisp/org-exp.el | 22 ++++++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3aaabf678..2c1e7b5fc 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2,6 +2,8 @@ * org-exp.el (org-export-remove-or-extract-drawers): Only remove drawers that are unprotected. + (org-export-html-format-image): Make sure inlined LaTeX fragment + images remain inlined. * org.el (org-toggle-ordered-property): New function. (org-mode-map): Add a key for `org-toggle-ordered-property'. diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 71b0b3641..d098bc6db 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -4036,18 +4036,20 @@ lang=\"%s\" xml:lang=\"%s\"> (defun org-export-html-format-image (src) "Create image tag with source and attributes." (save-match-data - (let* ((caption (org-find-text-property-in-string 'org-caption src)) - (attr (org-find-text-property-in-string 'org-attributes src)) - (label (org-find-text-property-in-string 'org-label src))) - (format "
+ (if (string-match "^ltxpng/" src) + (format "" src) + (let* ((caption (org-find-text-property-in-string 'org-caption src)) + (attr (org-find-text-property-in-string 'org-attributes src)) + (label (org-find-text-property-in-string 'org-label src))) + (format "

%s
" - (if label (format "id=\"%s\" " label) "") - src - (if (string-match "\\" caption "

") ""))))) + (if label (format "id=\"%s\" " label) "") + src + (if (string-match "\\" caption "

") "")))))) (defvar org-table-colgroup-info nil) (defun org-format-table-ascii (lines)