emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] MathJax is now the default for HTML math


From: Carsten Dominik
Subject: Re: [Orgmode] MathJax is now the default for HTML math
Date: Mon, 16 Aug 2010 10:59:05 +0200


On Aug 15, 2010, at 3:24 PM, Jan Böcker wrote:

I have now published the code used to create the static version:
http://www.jboecker.de/2010/08/15/staticmathjax.html

Below is a first stab at HTML export integration fresh out of my
*scratch* buffer (which lacks the possibility to configure this for each
file).

-- Jan


(defun jb/static-mathjax-hook-installer ()
 "adds jb/static-mathjax-process to the local after-save hook"
 (add-hook 'after-save-hook 'jb/static-mathjax-process nil t))

(defun jb/static-mathjax-process ()
 (let ((app-ini-path "/home/jan/work/staticmathjax/application.ini")
(output-file-name (concat (file-name-sans-extension buffer-file- name)
                                                                  
"-static.html")))
 (call-process "xulrunner" nil nil nil app-ini-path buffer-file-name
output-file-name "--embed-fonts")))

(add-hook 'org-export-html-final-hook 'jb/static-mathjax-hook- installer)



Hi,

should something like this go into org itself, or would it be enough to
put this up on worg, in org-hacks or so?

- Carsten






reply via email to

[Prev in Thread] Current Thread [Next in Thread]