-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EPUB format #62
Comments
FWIW, pandoc just totally choked on the TeX:
Apparently pandoc doesn't agree that |
You could run it through Calibre and then clean up the resulting ePub. I just did a preliminary test and it seemed to handle the TeX without any issues. The formatting (headers, spacing, etc.) is not very good, but that's only because converting from PDF to almost anything else is a massive pain. If you have any kind of skill with HTML and CSS, you could fix it yourself in a few hours. I've done this with tons of books before, so if you have any questions feel free to ask. |
Right; I'd expect LaTeX to EPUB to work better since it's not typeset to a
|
Calibre can be used in the command line. Here's a page that lays out the specifics of how to use it: http://manual.calibre-ebook.com/cli/ebook-convert.html. No, it's not completely automated, but I don't know of any PDF conversion tools that are. From what I understand, PDF is structured as a series of images, and pulling text and formatting data from images is very difficult. You can tweak the conversion process to provide better conversions, but no matter what tool you use, you'll need to do some manual work. Whether or not such an effort is worth it is entirely up to you. |
Isn't that quite an old version of pandoc? Either that or https://groups.google.com/forum/m/#!topic/pandoc-discuss/VVOdG5Sg13I thinks you may need braces around maketitle |
Is there any chance you could remove Crypto101.tex from gitignore? I noticed that when I do an org-export emacs creates an auto directory this is not in the .gitignore. This made me wonder if there is anything unique in your emacs setup that affects org's export process. I ask because I would like to help out with the latex and pandoc parts of the project and it would be easier if I knew that we were both starting with the same input. |
Indeed, my version of pandoc is ancient. I forgot that pandoc is a cabal package, not one managed by my package manager... I've updated pandoc:
And then it does build an epub, but with two remaining issues: images and math. Here's a screenshot of the resulting epub in iBooks: So I read the fine manual. The MathJax page appears to suggest MathJax is the de facto standard for EPUB math, which is nice because I already use Mathjax regularly :) However, rendering with |
I think pandoc needs one or more of the +tex_math_extensions turned on to deal with the math correctly. My math skills are as useful as configuring #lvhlvh as a hex color so I do not use the math extensions enough to remember when to use what option. That being said I can track this down (aka brute force it) if you would like to focus on the content of the book. |
I just enabled a pandoc extension called Seriously though, same issue with:
It does appear that pandoc is perfectly aware of the math there (looking at the escapes) but just isn't doing a good job convincing mathjax to render it. Interestingly, neither the output of that or the output of this:
actually has a reference to a Mathjax |
So, the output of org-mode compiling to HTML looks pretty decent, just that Mathjax can't figure out what |
One of the big hurdles in this so far appears to be the PDF images, some browsers just don't render them or render links instead (I imagine most EPUB readers are in that category). Fortunately there is machinery in place for rendering both Metapost illustrations and hand-drawn PBM illustrations to SVG; it just has to be hooked up :) |
It looks like pandoc's org-mode reader is progressing. I am going to see how it handles the org source. |
Awesome! Thanks for working on this, @dfc! |
Yea, cheers @dfc! |
Any updates? |
Nope. pandoc has evolved a lot (particularly its org ingester), so feel free to try if EPUB is something you care about. |
Smooth out a sentence.
I tried
|
Right now the only high-quality format we have is PDF. People don't like PDFs on e-book readers. They want EPUB instead. Turns out that producing a good EPUB file is hard.
The text was updated successfully, but these errors were encountered: