From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Jan Böcker" <jan.boecker@jboecker.de>
Cc: detlef.steuer@gmx.de, emacs-orgmode List <emacs-orgmode@gnu.org>
Subject: Re: MathJax is now the default for HTML math
Date: Sun, 15 Aug 2010 09:25:16 +0200 [thread overview]
Message-ID: <8CA8E0A8-FCC7-4749-AA4E-BF9782A8348C@gmail.com> (raw)
In-Reply-To: <4C6715D0.3060508@jboecker.de>
On Aug 15, 2010, at 12:16 AM, Jan Böcker wrote:
> On 08/14/2010 10:59 PM, Carsten Dominik wrote:
>> Hi Jan,
>>
>> can you expand a bit on why this is interesting to do? What are the
>> advantages?
>>
>> Thanks!
>>
>> - Carsten
>
> Advantages are:
> - The user is not required to have JavaScript enabled
> - In some cases, there is a speed advantage, because
> there is no rendering stage. This is especially
> noticeable on high-latency connections when the MathJax files
> are not already cached.
> - Fonts can be embedded into the HTML file itself, so it feels
> more 'document-like' (no need to move additional files around)
> - The approach might be interesting for HTML email, because it
> would require neither JavaScript nor attachments
>
> Of course, there are disadvantages too:
> - No interactive MathJax features (zoom, view source, switch rendering
> backend)
> - no fallback to image fonts (although AFAIK, all current versions
> of major browsers support CSS3 custom fonts)
> - slightly different spacing and font sizes in non-Firefox browsers
> - if fonts are embedded within the HTML file:
> * IE will not show the correct font (but in my test the
> formatting was still correct and readable)
> * The HTML file will be larger (my small example grew by 436 KB).
> Bandwidth is wasted because the fonts are base64-encoded.
Hi Jan,
thanks for these explanations.
- Carsten
>
> I would not recommend this for regular publishing on the web. As
> long as
> JavaScript is enabled (as it is in most cases), the disadvantages
> outweigh the advantages. It might come in handy if you want to send
> someone a single file (although you can always use PDF for that) or if
> you want to provide an alternative for users who have JavaScript
> disabled.
>
> Ideally, there would be some sort of graceful degradation, so that
> users
> without JavaScript see the non-JS version, but if JavaScript is
> enabled,
> the math gets re-rendered and all MathJax features are available. I
> have
> not explored the feasibility of that.
>
>
> On 08/14/2010 10:39 PM, Detlef Steuer wrote:
>> Could you post the org file to give dummies like me a head start?
>> Especially the serializing back to HTML? How is it done?
>
> I have attached the (very simple) example org file to this email. The
> first example is the result of exporting this file with C-c C-e h
> (like
> Carsten said, it Just Works). The second example is the result of
> processing the first one with a xulrunner application I hacked
> together
> (which is independent of emacs). I'll try to get that application
> into a
> publishable form tomorrow (remove hard-coded values, make embedding
> fonts into the HTML file optional, etc).
>
> My aim is to provide an elisp function to be called from an export
> hook
> which makes the appropriate call to create the non-JS version.
>
> -- Jan
> <mathjaxtest.org>
- Carsten
next prev parent reply other threads:[~2010-08-15 7:25 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-14 6:09 MathJax is now the default for HTML math Carsten Dominik
2010-08-14 19:37 ` Jan Böcker
2010-08-14 20:39 ` Detlef Steuer
2010-08-14 20:59 ` Carsten Dominik
2010-08-14 22:16 ` Jan Böcker
2010-08-15 7:25 ` Carsten Dominik [this message]
2010-08-15 13:24 ` Jan Böcker
2010-08-16 8:59 ` Carsten Dominik
2010-08-16 10:05 ` Detlef Steuer
2010-08-16 17:55 ` Bastien
2010-08-16 10:09 ` Jan Böcker
2010-08-16 10:33 ` Carsten Dominik
2010-08-17 10:44 ` Jan Böcker
2010-08-17 11:01 ` Carsten Dominik
2010-08-17 15:17 ` Jan Böcker
2010-08-20 16:14 ` Carsten Dominik
2010-09-03 3:07 ` sand
2010-09-03 15:53 ` Embedding images as data: URIs in the HTML exporter (was: MathJax is now the default for HTML math) Jan Böcker
2010-09-26 18:51 ` David Maus
2010-08-16 17:50 ` MathJax is now the default for HTML math Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8CA8E0A8-FCC7-4749-AA4E-BF9782A8348C@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=detlef.steuer@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=jan.boecker@jboecker.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.