MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Editor (https://www.mobileread.com/forums/forumdisplay.php?f=262)
-   -   MathJax.epub (https://www.mobileread.com/forums/showthread.php?t=262784)

phossler 07-11-2015 11:25 PM

MathJax.epub
 
1 Attachment(s)
http://manual.calibre-ebook.com/typesetting_math.html

Just experimenting, but the mathjax.epub looks fine in calibre's viewer, but not in ADE (and probably others)

Is there an 'epub way' to use the math language? I have some pretty simple equations that would look better as text instead of a scanned image

Toxaris 07-12-2015 04:57 AM

MathML is only supported in ePUB3, so that is the first issue. The second is that only the latest version of ADE seems to support parts of ePUB3 and I do not know if MathML is part of that.

That is the reason that I still use SVG equations in my ePUB2 books.

phossler 07-12-2015 10:36 AM

Bummer

No Joy

Thanks

I have some CSS from the forum, but it's very tedious to make even simple text equations using it

phossler 07-24-2015 07:05 PM

I did find an online LaTeX equation editor that makes svg files.

http://www.codecogs.com/latex/eqneditor.php

In a quick test I found that the resulting SVG file did look very nice in an epub (Thanks for the tip!!!) Only problem I had was the editor I found was IMHO not very user friendly - steep learning curve (old dog, new tricks)

Do you have any other techniques or maybe a 'friendlier editor' ??

Toxaris 07-25-2015 11:54 AM

I always use the codecogs editor I am afraid. I have given the site numerous times already. I do not know a better one.

phossler 07-26-2015 05:52 PM

2 Attachment(s)
I made a few simple equations in Codecogs and saved as SVG

I loaded them into a test epub just like any image and put them inline with a paragraph

Looks good in the editor, but they don't scale when I change the reader font

I suspect I'm missing something :rofl:

Can I ask for a pointer in the right direction???

:thanks:

Toxaris 07-27-2015 03:47 AM

I usually just use an image tag with height set to 1-2 em. Exact value can be found after some experimenting.

Phssthpok 08-23-2015 11:47 AM

The trouble with images is that they don't generally resize if you bump up the font size, and even if you can get them to do so, they start looking blurry. Another way is to use tables, like this example:
Code:

<table>
<tr><td rowspan="2">sin <i>θ'</i> – sin <i>θ</i> =</td><td><i>mh</i></td></tr>
<tr><td style="border-top:1px solid black"><i>pd</i></td></tr>
</table>

which shows up as a prettier version of "sin θ' - sin θ = mh/pd".

However, I don't know of any tool that can do transform MathML into this sort of thing automatically.

Toxaris 08-23-2015 01:28 PM

If you use SVG, it can scale with the font-size. That is why the height to em.


All times are GMT -4. The time now is 10:54 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.