Can I create with LaTeX documents in the EPUB-format?
Asked Answered
K

5

30

Is it possible to create a document for an ebook-reader in the EPUB-format with LaTeX/TeX? Which extension or program can be used?

Klotz answered 13/8, 2009 at 18:12 Comment(2)
This is an interesting topic due to the huge amount of scientific publications where LaTeX is used.Concordat
A similar question was later asked on tex.stackexchange.com. See tex.stackexchange.com/q/1551/1243.Chungchungking
S
19

You can convert LaTeX to XHTML and then convert XHTML to EPUB.

Score answered 15/8, 2009 at 21:37 Comment(1)
If only those Latex to XHTML converters were not 100-step install processes on windows...Kesler
O
10

Pandoc can do this directly -- http://johnmacfarlane.net/pandoc/ It's a great command-line tool.

pandoc -s example4.tex -o example4.epub

Ocher answered 22/5, 2011 at 14:10 Comment(2)
Pandoc can do this directly, if 9and only if) you have no \import or \include directives in your laTeX (unless something's changed in the last few months that is).Fairley
...and if there are no cross-references.Kesler
C
5

As noted by @Alexey Romanov a way is to convert from LaTeX to XHTML then to EPub. The ePub standard does not support MathML, but SVG 1.1 is supported and mathematical equations and graphs should be rendered just fine while preserving searchability and scaling.

http://wiki.mobileread.com/wiki/SVG#General_Notes_on_SVG_Usage_in_ePUB

(Please update if you find the ultimate tool-chain to deal with this easily.)

Concordat answered 13/8, 2009 at 18:12 Comment(1)
epub3 now supports MathML: idpf.org/epub/30/spec/epub30-contentdocs.html#sec-xhtml-mathmlShaikh
C
3

The answer looks to be Yes, via some converter, but latex probably isn't the best way.

From http://www.web-books.com/Publishing/epub.htm:

The EPUB format is a standard eBook format recommended by The International Digital Publishing Forum. It is essentially a ZIP format. If you change its extension ".epub" to ".zip", the EPUB file becomes a true ZIP file which can be unzipped.

The unzipped EPUB files may be divided into three categories: XHTML documents, packaging files and container files.

Conifer answered 13/8, 2009 at 23:52 Comment(0)
D
0

Here is a Link on how to covert tex to epub with tex4ebook under windows https://d800fotos.wordpress.com/2015/01/19/create-e-books-from-latex-tex-files-ebook-aus-latex-tex-dateien-erstellen/

Decimal answered 20/1, 2015 at 16:29 Comment(1)
Note that link-only answers are discouraged, SO answers should be the end-point of a search for a solution (vs. yet another stopover of references, which tend to get stale over time). Please consider adding a stand-alone synopsis here, keeping the link as a reference.Treadway

© 2022 - 2024 — McMap. All rights reserved.