05-22-2014, 09:28 PM | #16 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I recently just completed another book with 50 formulas using this method.
Here are a few samples: I attached a ZIP file with the ODF + PDF + PNG (325dpi if I recall correctly, the client wanted images at a max width of 1000px) versions of the formulas. The book was called "The Critics of Keynesian Economics" by Henry Hazlitt: Original PDF: http://library.mises.org/books/Henry...0Economics.pdf The final size on 50 of the optimized PNG formulas is 126 KB. Last edited by Tex2002ans; 05-22-2014 at 09:30 PM. |
08-15-2014, 02:01 PM | #17 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I recently typed an in-depth discussion on Formulas in EPUB + more sample images:
https://www.mobileread.com/forums/sho...2&postcount=20 This showed off an alternate LaTeX method of generating formulas (thanks Toxaris!). I will most likely iron out the steps and add an "Advanced" section to this tutorial some time in the future. |
Advert | |
|
08-22-2014, 03:41 AM | #18 |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Although I haven't tried it with formulas, you should also be able to use LaTeX to create SVG content. That's how I create my title pages for my EPUB books, for example (to preserve strict formatting in a device-independent way, while retaining text searching). The basic process is as follows:
Last edited by dgatwood; 08-22-2014 at 03:46 AM. |
08-27-2014, 08:41 PM | #19 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Code:
FOR /F %%k IN ('dir /b .\*.pdf') DO ( convert -density 350 %%k ^ -background white -flatten -trim ^ -depth 8 -colors 17 ^ %%k.png )
I assume Inkscape also has similar commands... although I am not too familiar with using Inkscape via commandline. I haven't fiddled around with Imagemagick to make PDF->SVG. Might be nice to just generate the SVG+PNG of the formula at the same exact time. Also, just having it in a nice command allows you to just convert entire folders, saving a bunch of time. Hmmm... have any sample EPUB of these SVG Title Pages? Do these EPUBs include ONLY SVG Title Pages? Or do you have the PNG or HTML fallback as well for devices that can't handle SVG? Last edited by Tex2002ans; 08-27-2014 at 08:47 PM. |
|
08-29-2014, 07:10 PM | #20 |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
I use a fallback on the Kindle side (because older Kindle readers don't support SVG), but not on the EPUB side. SVG support is required for full EPUB spec compliance (even in EPUB 2), so as far as I'm concerned, if a reader doesn't handle SVG, the reader is hopelessly broken.
Experimentally, all mainstream EPUB readers handle SVG. I think I encountered a couple of old, semi-defunct readers that didn't handle SVG, but they mostly still rendered the text as block-level elements, which worked well enough for my purposes. Either way, they're lost in the noise. Note, however, that there are a fair number bugs in various readers' SVG support. I've documented the various fix-ups that I perform on the SVG content over in the CSS and HTML tips section of the EPUB wiki page. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
eBook with formulas | aodor | Workshop | 13 | 11-18-2011 05:29 AM |
Math formulas conversion help | Sciamano | Conversion | 10 | 06-22-2011 06:33 AM |
conversion of formulas | paola | Writer2ePub | 5 | 01-03-2011 03:07 PM |
What were the formulas for determining TOC | lunixer | Calibre | 2 | 08-16-2010 11:14 AM |
where to get autorun.xml, icon.png, key.png, lut.bin for PRS-505 | obender | Sony Reader Dev Corner | 2 | 01-25-2009 03:20 PM |