emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Bastien <bastien.guerry@wikimedia.fr>
Cc: Dan Davison <davison@stats.ox.ac.uk>, emacs-orgmode@gnu.org
Subject: Re: Re: MathJax - use Tex/LaTeX/MathML in HTML pages
Date: Sat, 7 Aug 2010 09:18:43 +0200	[thread overview]
Message-ID: <3C8B8208-E116-462E-B8FA-54DB961D706F@gmail.com> (raw)
In-Reply-To: <87d3tzxawh.fsf@gnu.org>


On Aug 4, 2010, at 6:24 AM, Bastien wrote:

> Hi Dan,
>
> Dan Davison <davison@stats.ox.ac.uk> writes:
>
>> It's quite convenient already (see below), so what exactly would the
>> option involve?  Can the javascript and fonts be located remotely?
>
> From what I understand, no, the javascript and fonts have to be on the
> server.
>
> I just installed an instance on orgmode.org:
>
>  http://orgmode.org/mathjax/test/
>
>> - Darlan Cavalcante has written a Worg article[1] on using jsMath  
>> with
>>  org
>> - Basically, to use jsMath all you need is
>>
>>  #+options: latex:verbatim
>>  #+style: <script src="/path/to/jsMath/easy/load.js"></script>
>
> Great!  So to use mathjax on orgmode.org (Worg etc.) :
>
>  #+options: latex:verbatim
>  #+style: <script type="text/javascript" src="/mathjax/MathJax.js"></ 
> script>

I just tried this:

  #+options: latex:verbatim
  #+style: <script type="text/javascript" src="http://orgmode.org/mathjax/MathJax.js 
"></script>

and it just worked, also with a remote server.....

Now, this is really really cool!  Wow.

Thanks to all for digging up this cool way of doing math in HTML.

- Carsten

>
>> - Mathjax was considerably slower to render the maths. (I think that
>>  under the hood it converts to mathML which jsMath does not do (?))
>
> I'm not sure.  Maybe MathJax is faster once reasonably tweaked.
>
>> As I said the other day[2], one reason I am excited about these
>> technologies is that we can produce a pdf with pretty source code
>> fontification via htmlize (rather than ugly[3] latex listings output)
>> and genuine mathematical fonts rather than ugly dvipng images. I do  
>> this
>> via CUPS print to file under linux, which allows the web browser to
>> produce a .ps or .pdf. I'd be interested to know how we can make  
>> this a
>> more "genuine" org export path.
>
> You mean org -> HTML -> ps?
>
> Is it not possible to call firefox (or Xulrunner) in batch mode to
> convert an HTML page into .ps?
>
> If so, we can have two ways of producing org->pdf, one through LaTeX,
> one through HTML...
>
> -- 
> Bastien
>
> _______________________________________________
> 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

- Carsten

      parent reply	other threads:[~2010-08-08 17:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-02  8:52 MathJax - use Tex/LaTeX/MathML in HTML pages Bastien
2010-08-02 15:57 ` Dan Davison
2010-08-04  4:24   ` Bastien
2010-08-04  8:31     ` Christopher Witte
2010-08-07  7:18     ` Carsten Dominik [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C8B8208-E116-462E-B8FA-54DB961D706F@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=bastien.guerry@wikimedia.fr \
    --cc=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).