![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
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?
|
![]() |
![]() |
![]() |
#2 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
cacoethes scribendi
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,818
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
|
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? |
![]() |
![]() |
![]() |
#4 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 750010
Join Date: Jan 2013
Device: kindle touch
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#5 |
cacoethes scribendi
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,818
Karma: 137770742
Join Date: Nov 2010
Location: Australia
Device: Kobo Aura One & H2Ov2, Sony PRS-650
|
"just type "make pdf" or "make epub"" - I do that from LibreOffice.
![]() If you've got everything else in LaTeX then I can understand the desire to keep with it. Good luck. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
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. |
![]() |
![]() |
![]() |
#7 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 750010
Join Date: Jan 2013
Device: kindle touch
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21
Karma: 493474
Join Date: Mar 2011
Location: Northern California
Device: Acer A500
|
Quote:
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. |
|
![]() |
![]() |
![]() |
Tags |
epub, latex, pandoc, pdf, vector |
|
![]() |
||||
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 | 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 |