From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlef Steuer Subject: Re: MathJax is now the default for HTML math Date: Sat, 14 Aug 2010 22:39:57 +0200 Message-ID: <20100814223957.0047c17a@linux.site> References: <63B79D2B-9483-481F-B7AB-88BEA753D5C8@gmail.com> <4C66F076.10505@jboecker.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=59295 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkNWc-0002eC-1r for emacs-orgmode@gnu.org; Sat, 14 Aug 2010 16:40:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkNWW-0000Qf-OQ for emacs-orgmode@gnu.org; Sat, 14 Aug 2010 16:40:17 -0400 Received: from lo.gmane.org ([80.91.229.12]:48174) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkNWW-0000QN-Bn for emacs-orgmode@gnu.org; Sat, 14 Aug 2010 16:40:12 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OkNWR-0006rF-TW for emacs-orgmode@gnu.org; Sat, 14 Aug 2010 22:40:07 +0200 Received: from e176086121.adsl.alicedsl.de ([85.176.86.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Aug 2010 22:40:07 +0200 Received: from detlef.steuer by e176086121.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Aug 2010 22:40:07 +0200 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: emacs-orgmode@gnu.org The results look just GREAT.=20 Could you post the org file to give dummies like me a head start? Especially the serializing back to HTML? How is it done?=20 Thank you in advance! Detlef On Sat, 14 Aug 2010 21:37:26 +0200 Jan B=C3=B6cker wrote: > On 08/14/2010 08:09 AM, Carsten Dominik wrote: > > From now on, the default settings will > > use the incredible MathJax library to display math in > > exported HTML. If you had never turned on LaTeX snipped > > math publishing, this will now magically work all by itself. >=20 > Yes, indeed it does! >=20 > Since I read the announcement this morning, I have been playing with > MathJax. I found that when an HTML file on the local hard disk uses > MathJax from the web, MathJax reverts to image fonts in Firefox (this is > caused by a security feature of Firefox and mentioned in the MathJax > FAQ). Using a local MathJax installation in a subdirectory fixes this. >=20 > Most of my time was spent messing around with XULRunner to load the > exported HTML page, wait until MathJax has done its magic, then > serialize the result back to XHTML. >=20 > And replace the file:// URLs pointing to the fonts of my local MathJax > installation with data: URIs, thus embedding the fonts within the HTML > file itself, just because I can. >=20 > The result is a single HTML file which does not require JavaScript to be > viewed (and incurs no delay while the math is being rendered). However, > as no MathJax code is present, the zoom and view source functions of > MathJax are not available. >=20 > I have put an example online. >=20 > Normal org-mode export using MathJax from orgmode.org: > http://www.jboecker.de/2010/08/14/mathjax-example.html >=20 > Single-file no-javascript version: > http://www.jboecker.de/2010/08/14/mathjax-example-nojs.html >=20 > Internet Explorer will not use the correct font, AFAIK because it only > supports the EOT fonts (MathJax uses OTF for other browsers), and in > this case also because I embedded the fonts using data: URIs and IE > limits the size of data: URIs to 32 KB. >=20 > In browsers other than Firefox (I tested with Firefox and Opera), the > font size and spacing will differ slightly between the two versions. >=20 > If people are interested, I can try to make the program take the name of > a file to operate on as a command line argument, so this could be run as > part of an org-mode export process or something. Of course, the > embedding of fonts in data: URIs would be optional. >=20 > > I am really, really excited about this change. Using MathJax makes > > Org-mode > > a tool without peer for scientific note taking, I believe. It will > > also drastically improve the quality of printed web pages, because > > the web pages will not use fixed-resolution images, but scaleable fonts. >=20 > And don't forget that on modern high resolution displays, it is common > to zoom in just to be able to decipher math in images, especially if you > want sub- and superscripts to be legible. >=20 > -- Jan >=20 > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >=20