Mathjax uses javascript while (the current version of) kcite doesn't. I
haven't looked at either Martin's epub or the pdf generators to see how
they work, or handle this situation. The obvious solution is to fall back
to tex -> image. Personally, I'm not so interested in legacy formats like
PDF or epub, but I am happy to add support into mathjax-latex if someone
knows how.
Phil
To add to what Peter said: Javascript in ePub is possible but still experimental. My ePub Export plugin doesn't include Javascript yet, but I'm certainly interested in exploring this. The ePub 3 specification has been released a few months ago, so I expect that more ePub readers will support Javascript (and therefore Mathjax) over time.
Best,
Martin
-----Ursprüngliche Nachricht-----
Von: wordpress-fo...@googlegroups.com [mailto:wordpress-fo...@googlegroups.com] Im Auftrag von Peter Krautzberger
Gesendet: Sonntag, 25. September 2011 19:00
An: Wordpress for Scientists
Betreff: Re: mathjax and epub/pdf options
So, wordpress supports image rendering with wp-latex. I've noticed,
though, that this plugin is now part of Jetpack, so if it goes the way
of WP-stats, you may be forced to install a load of other junk that you
have no interest in, if you want to get it.
Our own mathjax plugin, though, is essentially a fork of wp-latex; if
memory serves me well, it supports exactly the same syntax as wp-latex
(including all the $latex $ stuff).
It should be possible to add image rendering as a fall back option using
the Wordpress server. This should work as well (or as badly) as wp-latex
does.
A more generic solution would be nice; I have the same problem with
kcite, the development version of which renders with javascript. I still
have the server-side rendering code which generates HTML directly, which
I can use as a fall-back. But maintaining two rendering mechanisms is
not exactly high on my list.
Phil
Well, I can only report my own experience. I currently know two people
who bought ebook readers. One of them bricked his within two months, and
the other also owns an animatronic, touch sensitive dinosaur. On the
other hand, at most meetings I go to, shiny fondle slabs are more
popular than deodorant. Can't say I understand why, a keyboard was the
reason I ditched pen and paper in the first place, but there you have
it.
So, my question would be, does any one really care about epub?
Phil
--
Phillip Lord, Phone: +44 (0) 191 222 7827
Lecturer in Bioinformatics, Email: philli...@newcastle.ac.uk
School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord
Room 914 Claremont Tower, skype: russet_apples
Newcastle University, msn: m...@russet.org.uk
NE1 7RU twitter: phillord
Peter Krautzberger <p.kraut...@googlemail.com> writes:
> I care for epub not because of ipads and kindles but because it is a
> convenient html-based platform to produce self-contained copies --
But, then, everything that we are discovering is that it isn't
convenient, because lots of things don't work. In terms of being
self-contained, incidentally, using data URIs it's very possible to make
HTML self-contained.
> what's the point of using creative commons if people have trouble to
> copy and build on my work?
Good point. Although, do you actually write your work in epub in the
first place? Most people here are talking about generating it. So having
the epub (or even the HTML) is not going to let people build on your
work. For this, then need the source format, whatever this is.
> Speaking as a mathematician, I really need mathjax when it comes to
> epub. Decent mathml would be a good start, but given the ability of
> html, I really expect more from epub. A lot will hopefully be solved
> in epub3.
Okay. I understand why you need mathjax (or decent maths), just less
convinced about epub.
> I have also heard from various sources that the publishing industry is
> *very* interested in epub (for digital textbooks and simply as a
> modern alternative to pdf). I think that's at least worth keeping in
> mind.
True, but I don't think it makes it worth jumping through hoops to
support. If I can support epub cheaply, then fine.
Phil