From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Jan_B=F6cker?= Subject: Re: MathJax is now the default for HTML math Date: Sun, 15 Aug 2010 15:24:41 +0200 Message-ID: <4C67EA99.7040505@jboecker.de> References: <63B79D2B-9483-481F-B7AB-88BEA753D5C8@gmail.com> <4C66F076.10505@jboecker.de> <4C6715D0.3060508@jboecker.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=60009 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkdCo-000840-Qg for emacs-orgmode@gnu.org; Sun, 15 Aug 2010 09:24:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkdCm-0007rB-4S for emacs-orgmode@gnu.org; Sun, 15 Aug 2010 09:24:54 -0400 Received: from smtp01.worldserver.net ([217.13.200.36]:34566) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkdCl-0007qv-UX for emacs-orgmode@gnu.org; Sun, 15 Aug 2010 09:24:52 -0400 In-Reply-To: <4C6715D0.3060508@jboecker.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: detlef.steuer@gmx.de, emacs-orgmode List 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)