|
From: | Jan Böcker |
Subject: | Re: [Orgmode] MathJax is now the default for HTML math |
Date: | Sun, 15 Aug 2010 15:24:41 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 |
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)
[Prev in Thread] | Current Thread | [Next in Thread] |