From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Witte Subject: Re: Re: MathJax - use Tex/LaTeX/MathML in HTML pages Date: Wed, 4 Aug 2010 10:31:29 +0200 Message-ID: References: <87ocdltmzo.fsf@gnu.org> <87hbjdj9cc.fsf@stats.ox.ac.uk> <87d3tzxawh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0465963184==" Return-path: Received: from [140.186.70.92] (port=50805 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgZNu-00037k-Tz for emacs-orgmode@gnu.org; Wed, 04 Aug 2010 04:31:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgZNt-0000Hf-Dr for emacs-orgmode@gnu.org; Wed, 04 Aug 2010 04:31:34 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:53910) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgZNt-0000HF-1f for emacs-orgmode@gnu.org; Wed, 04 Aug 2010 04:31:33 -0400 Received: by bwz9 with SMTP id 9so3183536bwz.0 for ; Wed, 04 Aug 2010 01:31:30 -0700 (PDT) In-Reply-To: <87d3tzxawh.fsf@gnu.org> 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 --===============0465963184== Content-Type: multipart/alternative; boundary=0016368e2bcbab7e20048cfb42d2 --0016368e2bcbab7e20048cfb42d2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ASCIIMathML http://www1.chapman.edu/~jipsen/mathml/asciimath.html might als= o be an alternative, for that you need fonts on the client (Firefox, I don't think IE supports MathML out of the box), and it uses MathML so it is standard compliant. Regards Chris. On 4 August 2010 06:24, Bastien wrote: > Hi Dan, > > Dan Davison 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: > > Great! So to use mathjax on orgmode.org (Worg etc.) : > > #+options: latex:verbatim > #+style: > > > - 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 thi= s > > 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 > --=20 Postdoctoral Research Fellow Molecular Imaging Group Leibniz-Institut f=FCr Molekulare Pharmakologie (FMP) Campus Berlin-Buch Robert-Roessle-Str. 10 13125 Berlin, Germany Phone: 00493094793-279 --0016368e2bcbab7e20048cfb42d2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ASCIIMathML http://www1.chapman.edu/~jipsen/mathml/asciimath.html might=20 also be an alternative, for that you need fonts on the client=20 (Firefox, I don't think IE supports MathML out of the box), and it uses= =20 MathML so it is standard compliant.

Regards
Chris.


On 4 August 2010 06:24, Bastie= n <bast= ien.guerry@wikimedia.fr> wrote:
Hi Dan,

Dan Davison <davison@stats.ox.= ac.uk> writes:

> It's quite convenient already (see below), so what exactly would t= he
> option involve? =A0Can 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:

=A0http://o= rgmode.org/mathjax/test/

> - Darlan Cavalcante has written a Worg article[1] on using jsMath with=
> =A0 org
> - Basically, to use jsMath all you need is
>
> =A0 #+options: latex:verbatim
> =A0 #+style: <script src=3D"/path/to/jsMath/easy/load.js"= ></script>

Great! =A0So to use mathjax on orgmode.org (Worg etc.) :

=A0#+options: latex:verbatim
=A0#+style: <script type=3D"text/javascript" src=3D"/mat= hjax/MathJax.js"></script>

> - Mathjax was considerably slower to render the maths. (I think that > =A0 under the hood it converts to mathML which jsMath does not do (?))=

I'm not sure. =A0Maybe 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)<= br> > and genuine mathematical fonts rather than ugly dvipng images. I do th= is
> 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 t= his 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...

--
=A0Bastien

_______________________________________________
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



--
Postdoctoral Researc= h Fellow
Molecular Imaging Group
Leibniz-Ins= titut f=FCr Molekulare Pharmakologie (FMP)
Campus Berlin-Buch
Robert-Roessle-Str. 1013125 Berlin, Germany
= Phone: 00493094793-279

--0016368e2bcbab7e20048cfb42d2-- --===============0465963184== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0465963184==--