M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm. I’m asking here a question which bitcoin forum plestex asked on the italian TeX group forum.
XML for metadata, packed in a ZIP file. So one can settle with the existing tools for HTML conversion. Still something better could be done for Epub output. In the first place, Epub accepts only a subset of CSS. Finally, I’m not sure how it works, but Epub files allow for automatic hyphenation of words.
By this I mean that hyphenation can be specified in the Epub file itself, so that a reader will not need to know hyphenation rules. Note that since Epub files are resizable, all possible points of hyphenation must be specified. How would epub handle math ? Of course this would not be suitable for a math book. But it may be suitable for a novel.
1 doesn’t have any special support for representing mathematics: you are supposed to represent it using SVG images. 1 working group is considering including Mathml to support maths. I’m not sure how well ebook readers handle Mathml. Pandoc supports converting Latex to Epub.
I don’t think there’s any “black box” solution producing high-quality output, but the HTML that Pandoc generates is easy to work with. PDF, which also discusses some other useful technologies for dealing with Epub conversion. Pandoc doesn’t really convert Latex to epub – it leaves a lot of things like figure labels and references out. Might be more trouble “debugging” what pandoc generates, than it’s worth, especially if you are converting a 200 page book.
In the absence of a good “black-box” solution and you care about quality output, you are going to have to go through the resulting document line-by-line anyway. I’d usually value cleanliness of output over completeness of mapping, based on experience. Using Pandoc’s -R option should keep all the needed labels in the output. This works very well with lots of formulas. This is not perfect but it’s the best I’ve seen so far. 1 never checked that calibre comes with an ebook-converter as stand-alone tool before!
These binaries are not necessarily on the path. On Mac, install with brew cask install calibre to have the aliases created as part of the setup. I’ve never tried to automate this, but I would think that a script that generates HTML from the TeX source, and then passes that HTML to Calibre’s ebook-convert command line program would be sufficient. You could use TeX4t or similar for the first step. I’m using Calibre or the Firefox add-on Epub viewer, and both support hyphenation. I don’t own an ebook reader, so I can’t tell about the support for them.
Epub would lose both the metadata and the hyphenation information, which were the reason of my question. I linked to, ADE, which is what is used on the Nook and Sony Reader, will break the line but not insert a visible hyphen, which is very ugly. Indeed, Andrew Ford gave a talk on exactly this topic yesterday. I have only just found Plastex today, and so have had no time to research it very deeply, but I will return and update my post if I find it to be the solution to this question. The only problem is that it looks like a man-page. What I really want to do is turn it into something that looks like a Novel.
I followed up on your suggestion and was successful. Manpage problem solved creating a new theme and few more tricks. I have 2 MOBI on Amazon. With a small wrapper script, it should be possible to convert the output to epub. In a Usenet thread about this feature, comments. 68217, Hans talks of there being an article on this feature: do you have access to that? I could not get the Eurotex article.