MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Including MathJax (https://www.mobileread.com/forums/showthread.php?t=206501)

net-buoy 02-22-2013 01:55 PM

Including MathJax
 
While I understand that Sigil is not diving in to epub3, I was wondering if there was a way to use Sigil to manage, well, proximations. Peter Krautzberger has produced a nice little package for the inclusion of MathJax (epub itself is available via the link at the bottom of this page: http://boolesrings.org/krautzberger/...ssibly-others/ ) so that Math can be displayed in epub using a light version of MathJax included in the epub (as contrasted with calibre, for example, where MathJax is sourced through the reader.)

Sigil opens the epub without any problem, but when one saves Sigil creates a new ncx file and reassembles all files and directories before zipping to ensure compliance with epub2 I believe.

I guess I am wondering if there is a dumb switch that can tell Sigil to just rebuild it as it found it so that a user could use Peter's files as a Sigil template and be able to just manipulate the html for text.

I realize that this might be invoking a RTFM, and if so a pointer to where to start would be helpful :-)

DaleDe 02-22-2013 04:03 PM

Sigil has always rearranged the ePub, not for compliance to ePub 2 because it doesn't require it, but just to make it easier for the code.

Dale

net-buoy 02-22-2013 04:30 PM

Thank you for correction, Dale.
But the underlying question is whether there is some way to dumb Sigil down so that it doesn't force a toc or do any rearranging....
Or I suppose one could ask it another way, given the desire to incorporate two js files (Mathjax and jsxgraph) so that apps such as iBook will use the js to parse tokenized content in the epub, is there a way to do it in Sigil....

DaleDe 02-22-2013 05:44 PM

Quote:

Originally Posted by net-buoy (Post 2433419)
Thank you for correction, Dale.
But the underlying question is whether there is some way to dumb Sigil down so that it doesn't force a toc or do any rearranging....
Or I suppose one could ask it another way, given the desire to incorporate two js files (Mathjax and jsxgraph) so that apps such as iBook will use the js to parse tokenized content in the epub, is there a way to do it in Sigil....

The short answer is no. It always rearranges the file structure. The best thing, if you want to use Sigil, is to conform to the structure of Sigil in the first place for the files it understands. To my knowledge it will not restructure files that is does not understand although it may show them in the misc area.

the latest version is iBook friendly I believe.

Dale


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.