Hi, Here is a patch. Sorry for the bug!
Abdó. Eric Schulte <eric.schu...@gmx.com> writes: >> Seems to be caused by 149cc04782651e74764eb3188f6a6f178fe25f64, which is >> unfortunate since that fixes (at least I *think* it fixes) some problems >> when no default fore/background is defined (e.g. when emacs is run in >> batch mode). It would be nice if this could be fixed without reverting >> that commit completely. > > I'm CC'ing Abdó (the author of that commit). Hopefully he can take a > shot at solving this. > > -- > Eric Schulte > http://cs.unm.edu/~eschulte
>From a48efe084848aa1de8ad4abc5780d49b424a3980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abd=C3=B3=20Roig-Maranges?= <abdo.r...@gmail.com> Date: Thu, 13 Sep 2012 20:13:37 +0200 Subject: [PATCH] fix dvipng latex export with Transparent background * org.el (org-create-formula-image-with-dvipng): Fixes a bug introduced in 149cc04782651e74764eb3188f6a6f178fe25f64 that made it fail with no :foreground and :background attributes set, due to bad handling of "Transparent" color. --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 881dbd5..1c18d70 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -17612,9 +17612,9 @@ share a good deal of logic." (bg (or (plist-get options (if buffer :background :html-background)) "Transparent"))) (if (eq fg 'default) (setq fg (org-dvipng-color :foreground)) - (setq fg (org-dvipng-color-format fg))) + (unless (string= fg "Transparent") (setq fg (org-dvipng-color-format fg)))) (if (eq bg 'default) (setq bg (org-dvipng-color :background)) - (setq bg (org-dvipng-color-format bg))) + (unless (string= bg "Transparent") (setq bg (org-dvipng-color-format bg)))) (with-temp-file texfile (insert (org-splice-latex-header org-format-latex-header -- 1.7.12