MathJax for epub3

395 views
Skip to first unread message

xipetotec

unread,
Mar 13, 2014, 1:59:48 AM3/13/14
to mathja...@googlegroups.com
Hi all,

I've been trying to display fractions in my epub for publications at Google Play Bookstore. I downloaded version 2.2 from mathjax site and inserted it into my ebook with structure as follow:

I added MathJax.js to my <manifest> in the opx file as follows:

<item id="mathjax" href="mathjax/MathJax.js" media-type="text/javascript"></item>


I then tried to test the output by adding sample syntax for fractions in my preface.html:

<tr>

<td>$\frac{1}{2}$</td>

</tr>

<tr>

<td>$$x+1\over\sqrt{1-x^2}\label{ref1}$$ with a reference to ref1:

\ref{ref1}</td>

</tr>


When i 'run' the epub on firefox, i saw the small grey box on the lower left corner of the browser stating that it is loading but nothing happens. The fraction does not parse. What could i be doing wrong?


Thank in advance.


Raniere Silva

unread,
Mar 13, 2014, 7:46:51 AM3/13/14
to mathja...@googlegroups.com
Hi xipetotec,

I don't know if this is the problem but most of the EPUB readers don't support
Javascript.

Raniere

Peter Krautzberger

unread,
Mar 17, 2014, 6:29:32 PM3/17/14
to mathja...@googlegroups.com
Hi,

Raniera is correct. Google Play Books does not currently support JavaScript.

If you are producing epub3 files, you should consider converting mathematical content to MathML, which is part of the epub3 standard. That being said, Google Play Books also does not (yet) support MathML.

For some information on epub3 readers and MathML support, see http://www.mathjax.org/resources/epub-readers/

Regards,
Peter.





--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joe Shamuraq

unread,
Mar 17, 2014, 10:25:01 PM3/17/14
to mathja...@googlegroups.com

Thanx for the insight guys... I wish there's a better way to publish my math content other than pdfs...

You received this message because you are subscribed to a topic in the Google Groups "MathJax Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mathjax-users/DJNN92r2oO0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mathjax-user...@googlegroups.com.

Raniere Silva

unread,
Mar 18, 2014, 6:20:52 AM3/18/14
to mathja...@googlegroups.com
Hi Joe,

> I wish there's a better way to publish my math content other than pdfs...

I share your wish. If you really want to publish in EPUB you can add a warning
to users that they use one of the compatible readers.

Raniere

William F Hammond

unread,
Mar 18, 2014, 4:25:54 PM3/18/14
to mathja...@googlegroups.com
On Mon, Mar 17, 2014 at 7:25 PM, Joe Shamuraq <members....@gmail.com> wrote:

Thanx for the insight guys... I wish there's a better way to publish my math content other than pdfs...

...

What type of content?  Are some of your PDFs online for all to see?

      -- Bill

Joe Shamuraq

unread,
Mar 20, 2014, 7:09:58 AM3/20/14
to mathja...@googlegroups.com

Actually they're just simple fractions for primary school students. They're currently in Google Book Store:

Published:

Primary 6 Untangled: Heuristics: Tabulating Quantity of Items x Value of Items

https://play.google.com/store/books/details?id=uiPXAgAAQBAJ

Currently being reviewed by Google:

Primary 5 Untangled: Heuristics: Tabulating Quantity of Items x Value of Items

Primary 4 Untangled: Heuristics: Tabulating Quantity of Items x Value of Items

Primary 3 Untangled: Heuristics: Tabulating Quantity of Items x Value of Items

There's only very little fraction at the moment but based on the publishing program, more will need to be published. As you can see from the Primary 6 Untangled: Heuristics: Tabulating Quantity of Items x Value of Items, we play very heavily on typeface. I was hoping to use epub3 for fonts (.otf format) support as well as javascript to implement animations for the upcoming SOLUTIONS Series, as well as parsing of fractions.

I cannot afford for users to download the copy as well since many 'pirates' are known to copy off contents and distribute hardcopies.

So yeah i guess i'll just have to stick to PDF for now :(

net-buoy

unread,
Dec 10, 2018, 2:01:50 PM12/10/18
to MathJax Users


Old thread, but is there anything new, Peter, on techniques to add mathjax to epub3s since the piece using ibooks author in 2013?
There are two aspects of the question: (1) what to add and where to add it when composing the epub3 (the instructions from 2013 - https://www.peterkrautzberger.org/0129/ - are way out of date), and (2)  epub3 readers that will work (there is a nice listing at http://docs.mathjax.org/en/latest/misc/epub.html and as I use calibre and ibooks that is not a problem for me)


On Monday, March 17, 2014 at 2:29:32 PM UTC-8, Peter Krautzberger wrote:
* * *

For some information on epub3 readers and MathML support, see http://www.mathjax.org/resources/epub-readers/

* * *
Reply all
Reply to author
Forward
0 new messages