LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-02-2016, 04:11 PM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
Make an EPUB with pdflatex, imagemagick, pdftohtml and pkzip/zip ?


Hello,

I would like to use sthg lighter than pandoc to create epubs.

Would you know possible methods to create an EPUB with using pdflatex, imagemagick, pdftohtml and pkzip/zip ?

thank you and best regards, and best reading,
Pat'

--
get a pocketbook, it's really Linux! (not Android)
 
Old 07-03-2016, 10:42 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
 
Old 07-03-2016, 01:48 PM   #3
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by business_kid View Post
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.

Here all infos about epub content:
http://www.jedisaber.com/eBooks/Tutorial.shtml
 
Old 07-03-2016, 02:29 PM   #4
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Your workflow seems over-complex.

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

Once you have all that, zip your project up with 0 compression applied to the mimetype header:

Code:
zip -0Xq book.epub mimetype
zip -Xr9D book.epub META-INF/ OEBPS/

Done.

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.
 
Old 07-03-2016, 04:17 PM   #5
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by notKlaatu View Post
Your workflow seems over-complex.
Done.

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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Associate Calibre epub-viewer with epub and mobi extensions? PastTense Linux - Software 7 02-17-2015 12:19 AM
zip 3.0-13.4.1 on Suse 13.1 and PKZIP 2.5 student1 SUSE / openSUSE 3 07-17-2014 01:43 PM
[SOLVED] How to use PKZIP v2.50 to extract zip multi-volume archive data on ubuntu 12.04 chinabenjamin66 Linux - Software 4 11-27-2013 01:08 AM
[SOLVED] PKZIP vs zip nishanthp82 Linux - Newbie 2 03-08-2012 12:10 PM
how to make 'pdflatex' work in my emacs 'auctex-mode' HoreC Linux - Software 2 12-19-2004 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration