05312017, 01:32 PM  #1 
Junior Member
Posts: 1
Karma: 10
Join Date: May 2017
Device: mobile

Inline Math equation editing
Hello every, I am a IT staff of a tutorial centre. I wish to know are the any ways to type math equation and symbols without editing html. Thank you very much.

Advert  

05312017, 01:40 PM  #2 
Wizard
Posts: 2,865
Karma: 1333908
Join Date: Nov 2009
Device: many

Most equation editors (see LibreOffice, MSOffice,etc), allow someone to save an equation as mathml markup which can be cut and pasted as text into an xhtml page. I use the equation editor in LibreOffice. It works nicely.
You can also use Latex to generate equations and save them as mathml. Last edited by KevinH; 05312017 at 08:56 PM. 
05312017, 08:41 PM  #3 
Guru
Posts: 629
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura

Most epub readers won't support mathml (at least for epub2). That said, if the goal is to let people not familiar with html write texts with math, maybe simple markdown with latexmath support would work. Take a look at pandoc. Pandocs markdown allows math equations and can be converted to html, epub, latex and pdf.

06012017, 02:08 AM  #4 
Wizard
Posts: 4,433
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS300, PRST1

As mentioned before, support for MathML is scarce. I usually convert the equation to SVG. That way it scales quite well. You can create the equation directly on the codecogs site. If the equations are in Word, you can use my addin to convert them to SVG or PNG.

06012017, 10:15 AM  #5 
Wizard
Posts: 2,865
Karma: 1333908
Join Date: Nov 2009
Device: many

Toxaris,
How do you convert MS math to an SVG or PNG? Can it be done on the fly? I have looked at a number of projects that try to convert mathml to svg but these are typically MathJax based javascript routines that are not easy to integrate into Sigil. Thanks, Kevin 
Advert  

06012017, 12:35 PM  #6  
Wizard
Posts: 4,433
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS300, PRST1

Quote:
The MathML to SVG code is based on SVGMath I believe it was, which is written in Python. I have converted it to C# for easier integration. However, the current version of my addin uses a compiled version of SVGMath, but that is going away in the new version. Then I will use my library. 

06012017, 02:11 PM  #7 
Wizard
Posts: 2,865
Karma: 1333908
Join Date: Nov 2009
Device: many

I'll have to dig up svgmath and see what its capabilities are.
Thanks! 
06012017, 03:07 PM  #8 
Wizard
Posts: 4,433
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS300, PRST1


06012017, 03:45 PM  #9 
Wizard
Posts: 2,865
Karma: 1333908
Join Date: Nov 2009
Device: many

I was more thinking of a Preview mode fast inline mathml to svg conversion. Using MathJax can be quite slow (even with MathJax stripped down and condensed to one file as we use it). Since Preview gets constantly updated and reloaded with every change, speed to convert mathml to svg is important when previewing an epub with mathml.
So if a Cversion (or python) of the routines in svgmath can be used, it would help prevent lag when using Sigil in Preview to see mathml. 
06012017, 04:32 PM  #10 
Wizard
Posts: 4,433
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS300, PRST1

The python program is not particularly fast, but perhaps faster than MathJax.

Thread Tools  Search this Thread 

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Editing content.opf with clips; Editing visibility  varlog  Sigil  45  04242016 07:55 AM 
Free Book  The Henderson Equation (DF)  koland  Deals, Freebies, and Resources (No SelfPromotion)  0  07232012 10:37 AM 
Asus Eee Slate has pretty impressive HWR + Equation Editor  grumpy3b  General Discussions  4  04232011 08:55 AM 
Science Fiction Godwin, Tom: The Nothing Equation. v1. 29 Jan 09  Dr. Drib  Kindle Books (offline)  0  01292009 01:55 PM 
Science Fiction Godwin, Tom: The Nothing Equation. v1. 29 Jan 09  Dr. Drib  BBeB/LRF Books (offline)  0  01292009 01:50 PM 