Make an EPUB with pdflatex, imagemagick, pdftohtml and pkzip/zip ?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sounds like too much work, & too many conversions. I am even unclear about the intended process: Latex --> PDF --> HTML --> EPUB?
From experience, if you want epub, stay away from pdf. Very few things handle the tricky side of epubs (e.g. internal links) and many can't get the basics right. I have linux, and want good epubs, but results were poor with current software, and particularly pdf.
Last edited by business_kid; 07-03-2016 at 10:44 AM.
Sounds like too much work, & too many conversions. I am even unclear about the intended process: Latex --> PDF --> HTML --> EPUB?
From experience, if you want epub, stay away from pdf. Very few things handle the tricky side of epubs (e.g. internal links) and many can't get the basics right. I have linux, and want good epubs, but results were poor with current software, and particularly pdf.
Dont worry, I will code it in C to make it myself.
I have never bothered writing the XML myself (I have Docbook do that for me, or lately pandoc) but the tutorial you link to looks pretty spot on.
You can make an epub with a text editor (nearly any good editor will do) and an archiver (like zip or p7zip):
1. make your html files (the content)
2. make your XML (the table of contents and meta data)
3. make a mimetype definition
so far, I did as you mentioned with notepad to try. It works.
I got the IeX to PDF, then did htmltopdf and got an html. It works on a book just made with a lot lot of text.
My latex has:
Code:
ii texlive-base 2016.20160523-1 all TeX Live: Essential programs and files
ii texlive-binaries 2016.20160513.41080-4 i386 Binaries for TeX Live
ii texlive-extra-utils 2016.20160520-1 all TeX Live: TeX auxiliary programs
ii texlive-font-utils 2016.20160520-1 all TeX Live: Graphics and font utilities
ii texlive-fonts-extra 2016.20160520-1 all TeX Live: Additional fonts
ii texlive-fonts-extra-doc 2016.20160520-1 all TeX Live: Documentation files for texlive-fonts-extra
ii texlive-fonts-recommended 2016.20160523-1 all TeX Live: Recommended fonts
ii texlive-fonts-recommended-doc 2016.20160523-1 all TeX Live: Documentation files for texlive-fonts-recommended
ii texlive-generic-extra 2016.20160520-1 all TeX Live: Generic additional packages
ii texlive-generic-recommended 2016.20160523-1 all TeX Live: Generic recommended packages
ii texlive-latex-base 2016.20160523-1 all TeX Live: LaTeX fundamental packages
ii texlive-latex-base-doc 2016.20160523-1 all TeX Live: Documentation files for texlive-latex-base
ii texlive-latex-extra 2016.20160520-1 all TeX Live: LaTeX additional packages
ii texlive-latex-extra-doc 2016.20160520-1 all TeX Live: Documentation files for texlive-latex-extra
ii texlive-latex-recommended 2016.20160523-1 all TeX Live: LaTeX recommended packages
ii texlive-latex-recommended-doc 2016.20160523-1 all TeX Live: Documentation files for texlive-latex-recommended
ii texlive-metapost 2016.20160523-1 all TeX Live: MetaPost and Metafont packages
ii texlive-metapost-doc 2016.20160523-1 all TeX Live: Documentation files for texlive-metapost
ii texlive-pictures 2016.20160523-1 all TeX Live: Graphics, pictures, diagrams
ii texlive-pictures-doc 2016.20160523-1 all TeX Live: Documentation files for texlive-pictures
ii texlive-pstricks 2016.20160520-1 all TeX Live: PSTricks
ii texlive-pstricks-doc 2016.20160520-1 all TeX Live: Documentation files for texlive-pstricks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.