From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: MathJax is now the default for HTML math Date: Mon, 16 Aug 2010 10:59:05 +0200 Message-ID: References: <63B79D2B-9483-481F-B7AB-88BEA753D5C8@gmail.com> <4C66F076.10505@jboecker.de> <4C6715D0.3060508@jboecker.de> <4C67EA99.7040505@jboecker.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=43504 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkvXJ-0005dz-Kl for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 04:59:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkvXD-0000q1-SL for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 04:59:17 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:33725) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkvXD-0000pw-O4 for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 04:59:11 -0400 Received: by eyg7 with SMTP id 7so1314655eyg.0 for ; Mon, 16 Aug 2010 01:59:10 -0700 (PDT) In-Reply-To: <4C67EA99.7040505@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: =?ISO-8859-1?Q?Jan_B=F6cker?= Cc: detlef.steuer@gmx.de, emacs-orgmode List On Aug 15, 2010, at 3:24 PM, Jan B=F6cker 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 =20= > 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-=20 > 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-=20 > 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