branch: elpa/org-mime
commit 64a3f56651369b2a8b0a601abea1cf1216db2ded
Author: Chen Bin <[email protected]>
Commit: Chen Bin <[email protected]>
(setq org-html-with-latex nil) sometimes useful #16
---
org-mime.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/org-mime.el b/org-mime.el
index 059ea3e309..8140b79c3b 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -139,6 +139,11 @@ And ensure first line isn't assumed to be a title line."
:group 'org-mime
:type 'sexp)
+(defcustom org-mime-org-html-with-latex-default 'dvipng
+ "Default value of `org-html-with-latex'."
+ :group 'org-mime
+ :type 'sexp)
+
(defvar org-mime-export-options nil
"Default export options which may overrides org buffer/subtree options.
You avoid exporting section-number/author/toc with below setup,
@@ -158,7 +163,6 @@ buffer holding\nthe text to be exported.")
(defvar org-mime-debug nil
"Enable debug logger.")
-
(defvar org-mime-up-subtree-heading 'org-up-heading-safe
"Funtion to call before exporting subtree.
You could use either `org-up-heading-safe' or `org-back-to-heading'.")
@@ -376,7 +380,9 @@ If ARG is not nil, use `org-mime-fixedwith-wrap' to wrap
the exported text."
;; makes the replies with ">"s look nicer
(org-export-preserve-breaks org-mime-preserve-breaks)
;; dvipng for inline latex because MathJax doesn't work in mail
- (org-html-with-latex 'dvipng)
+ ;; Also @see https://github.com/org-mime/org-mime/issues/16
+ ;; (setq org-html-with-latex nil) sometimes useful
+ (org-html-with-latex org-mime-org-html-with-latex-default)
;; to hold attachments for inline html images
(html-and-images
(org-mime-replace-images