Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book General > Writers' Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-03-2013, 08:20 PM   #1
Frotz
Member
Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.
 
Posts: 12
Karma: 750010
Join Date: Jan 2013
Device: kindle touch
LaTeX, vector graphics, PDF, and EPUB

I found that Pandoc is a very nice solution for building LaTeX typeset works into epub format, but I'm having a problem with vector graphics. Using pdflatex to build a I can easily get vector graphics embedded by converting them to PDF. If I tell Pandoc to create an EPUB, I get a blank area. I guess EPUB doesn't do PDF. Can someone suggest a way I can automatically get Pandoc to substitute an SVG instead of a PDF?
Frotz is offline   Reply With Quote
Old 02-15-2013, 02:58 AM   #2
Frotz
Member
Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.
 
Posts: 12
Karma: 750010
Join Date: Jan 2013
Device: kindle touch
I've been posting to the Pandoc discussion group at https://groups.google.com/forum/?fro...pandoc-discuss lately. The project owner added a --default-image-extension command line option when I framed the request generically.
Frotz is offline   Reply With Quote
Old 02-15-2013, 05:45 AM   #3
gmw
cacoethes scribendi
gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.
 
gmw's Avatar
 
Posts: 2,177
Karma: 68536835
Join Date: Nov 2010
Location: Australia
Device: Sony650
Glad you found a solution. I'm guessing from the overwhelming response to your original response there's not a lot of Pandoc users on here.

Just curious, what sort of project has prompted you to go down this path?
gmw is offline   Reply With Quote
Old 02-15-2013, 06:42 PM   #4
Frotz
Member
Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.
 
Posts: 12
Karma: 750010
Join Date: Jan 2013
Device: kindle touch
Quote:
Originally Posted by gmw View Post
Glad you found a solution. I'm guessing from the overwhelming response to your original response there's not a lot of Pandoc users on here.

Just curious, what sort of project has prompted you to go down this path?
I'm experimenting with book typesetting. Since I use LaTeX for all my papers, I decided to use it for doing book stuff. My objective is to create a single set of files that compiles to both PDF and EPUB without any changes -- just type "make pdf" or "make epub" in the project directory and the LaTeX source is compiled to the desired format. For this most part this works. There are a few pieces of functionality missing from Pandoc: centered text, manual pagebreaks, and sensible chapter numbering among others. I think I've managed to cajole the writer of Pandoc to adopt them.

There is another package that does this, but has a more narrow scope: it's tex4ebook. It's much less mature than Pandoc, but appears to have to potential to more fully support LaTeX. See https://github.com/michal-h21/tex4ebook if you're interested.
Frotz is offline   Reply With Quote
Old 02-15-2013, 07:05 PM   #5
gmw
cacoethes scribendi
gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.gmw ought to be getting tired of karma fortunes by now.
 
gmw's Avatar
 
Posts: 2,177
Karma: 68536835
Join Date: Nov 2010
Location: Australia
Device: Sony650
"just type "make pdf" or "make epub"" - I do that from LibreOffice. Well, almost.

If you've got everything else in LaTeX then I can understand the desire to keep with it. Good luck.
gmw is offline   Reply With Quote
Old 02-23-2013, 11:23 PM   #6
rplantz
Member
rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.
 
Posts: 18
Karma: 493474
Join Date: Mar 2011
Location: Northern California
Device: Acer A500
I spent several months last year researching how to produce an epub version of my textbook that I wrote with LaTeX. It's a book on programming in assembly language so has lots of math, code listings, and vector graphics. I came to the conclusion that I would have to "dumb down" the look of the equations, listings, and graphics to such a point that it meant essentially re-writing the book. I gave up and finally published it in pdf and paperback. I will say that LaTeX made it very easy for me to tailor the pdf version to ereaders by making small, uniform margins (no gutter), hyperlinked cross-references, and syntax coloring for code listings.

If I write another book, I will not use LaTeX. I love it, but there is no good path to epub. Since I have Office, I will probably just use Word.
rplantz is offline   Reply With Quote
Old 02-24-2013, 03:45 PM   #7
Frotz
Member
Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.Frotz ought to be getting tired of karma fortunes by now.
 
Posts: 12
Karma: 750010
Join Date: Jan 2013
Device: kindle touch
Quote:
Originally Posted by rplantz View Post
I spent several months last year researching how to produce an epub version of my textbook that I wrote with LaTeX. It's a book on programming in assembly language so has lots of math, code listings, and vector graphics. I came to the conclusion that I would have to "dumb down" the look of the equations, listings, and graphics to such a point that it meant essentially re-writing the book. I gave up and finally published it in pdf and paperback. I will say that LaTeX made it very easy for me to tailor the pdf version to ereaders by making small, uniform margins (no gutter), hyperlinked cross-references, and syntax coloring for code listings.

If I write another book, I will not use LaTeX. I love it, but there is no good path to epub. Since I have Office, I will probably just use Word.
In general, the EPUB format isn't very conducive at all to math, code listings, and figures. EPUB3 somewhat remedies these problems by using math markup from HTML5. The big problem is that there are very few devices and programs available to read EPUB3.
Frotz is offline   Reply With Quote
Old 02-24-2013, 05:59 PM   #8
rplantz
Member
rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.rplantz ought to be getting tired of karma fortunes by now.
 
Posts: 18
Karma: 493474
Join Date: Mar 2011
Location: Northern California
Device: Acer A500
Quote:
Originally Posted by Frotz View Post
In general, the EPUB format isn't very conducive at all to math, code listings, and figures. EPUB3 somewhat remedies these problems by using math markup from HTML5. The big problem is that there are very few devices and programs available to read EPUB3.
Yeah, that's what I finally figured out. I think the basic rule when wanting to publish in the EPUB format is to think "HTML" (as you point out, not HTML5 yet).

There is some irony here. When I first started writing my book (1999) I did it in HTML, thinking that students (especially computer science students) would like to read online. However, they printed the pages, using up lots of paper and toner in our labs. That's when I converted to LaTeX and sold print copies through the campus bookstore (at cost - no royalty to me). Now that I've published it through Lulu, the pdf version accounts for 90% of the sales. Students much prefer the electronic version so they can read it on their mobile devices. If I had stayed with my original plan (HTML, online) the conversion to EPUB would have been trivial. Oh well, I learned a lot about LaTeX.
rplantz is offline   Reply With Quote
Reply

Tags
epub, latex, pandoc, pdf, vector

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB, MOBI, PDF... LaTeX! Katsunami Workshop 8 02-07-2012 02:28 PM
Vector graphics and math equations rplantz ePub 2 07-23-2011 01:50 PM
Which is the best way to add SVG (vector graphics) to PDF files ? DSpider PDF 0 04-01-2011 07:27 PM
when will calibre support vector graphics in pdf to epub conversion smith9 Calibre 5 11-13-2010 05:03 AM
Bug rendering PDF vector graphics on Kindle DX DeReader Amazon Kindle 3 07-12-2010 02:50 PM


All times are GMT -4. The time now is 08:34 PM.


MobileRead.com is a privately owned, operated and funded community.