Modern-CPP-Programming
Modern-CPP-Programming copied to clipboard
[FEAT REQ] epub version
Hi, could it be possible to generate an epub version of each pdf ()or combined) so they can be sent to ebook readers (like Kindle) and take advantages of the extra features of those over plain PDFs, like change font size, etc?
I know there are pdf to epub converters but they arent very good and it would be better to convert from whatever your original source material is.
Thanks.
this seems a common request. Need to figure out how to generate epub from latex
Hi, congratulations for the project! I have the same issue in this project and I am thinking about trying out pandoc in some near future... Have you considered using it?
thanks for the suggestion @jorgepz. I tried with pandoc, but the result is pretty bad. I'm considering tex4ebook
this seems a common request. Need to figure out how to generate epub from latex
Is there a plan to also make the latex files public?
Is there a plan to also make the latex files public?
Not for now
I tried tex4ebook but I got many compile errors. I will see if there are simple alternatives
Just to throw some ideas into this, iCloud Pages Online.
~Not sure in which format your source is but~ (Latex, I overlooked it 😅) with an Apple account you can upload and format it with the online version of pages and export it as ePUB. Limited LaTeX support in pages.
fyi epub is just some glorified html put in a zip archive. Maybe some tooling to compile latex to HTML could be used?
fyi epub is just some glorified html put in a zip archive. Maybe some tooling to compile latex to HTML could be used?
Could be achived with the Calibre Commandline tools
You can possibly generate HTML using htlatex
. Once you have HTML, you can use pandoc
to convert to EPUB. Or you can convert to DOCX using pandoc
and then use Amazon Kindle Create to generate EPUB. Calibre also has good HTML to EPUB conversion.
I already tried to use make4ht because it is an improved version of htlatex
, but I got errors related to unsupported fonts. I could try to remove them one by one until the build passes. Not sure if it is the best solution
Created pull request containing html's for all chapters. These seem to have been generated correctly. https://github.com/federico-busato/Modern-CPP-Programming/pull/60
@freakynit that's amazing!! 🤯 Could you please tell me how you did this so I can automate the process for future updates?
@federico-busato All thanks to https://cloudconvert.com/pdf-to-html
I also found the tool pdf2htmlEX that is open source and can be automated.
Epub conversion is still problematic. I tried both pandoc
and calibre
but the result is too bad to publish.