-t,--tidy clean-up output HTML les using the HTML tidy command
4
.
-x,--xetex Use xelatex for document compilation
-v,--version Print the version number.
4 Conguration
TeX4ebook
uses
TeX4ht
5
for conversion from LaTeX to html.
TeX4ht
is highly
congurable using cong les. Basic cong le structure is
\Preamble{xhtml, comma separated list of options}
...
\begin{document}
...
\EndPreamble
Basic info about command congurations can be found in a work-in-
progres TeX4ht tutorial
6
, TeX4ht documentation
7
, and in series of blogposts
on CV Radhakrishnan’s blog: Congure part 1
8
, Congure part 2
9
, Low level
commands
10
. Available options for
\Preamble
command are listed in the
article TeX4ht: options
11
. Comparison of tex4ebook and Pandoc output
12
A great source of tips for
TeX4ht
conguration is tex4ht tag on TeX.sx
13
.
There is also a tag for tex4ebook
14
.
Examples of interesting questions are including images and fonts in
ebooks
15
or setting image size in em units instead of pt
16
.
4.1 Provided congurations
tex4ebook provides some congurations for your usage:
\Configure{UniqueIdentifier}{identifier}
Every EPUB le should have unique identier, like ISBN, DOI, URI etc.
Default identier is URI, with value http://example.com/\jobname.
4
if it is available on your system
5
http://www.tug.org/tex4ht/
6
https://github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial
7
http://www.tug.org/applications/tex4ht/mn11.html
8
https://web.archive.org/web/20180908234227/http://www.cvr.cc/?p=323
9
https://web.archive.org/web/20180908201057/http://www.cvr.cc/?p=362
10
https://web.archive.org/web/20180909101325/http://cvr.cc/?p=482
11
https://web.archive.org/web/20180813043722/http://cvr.cc/?p=504
12
https://github.com/richelbilderbeek/travis_tex_to_epub_example_1
13
http://tex.stackexchange.com/questions/tagged/tex4ht
14
http://tex.stackexchange.com/questions/tagged/tex4ebook
15
http://tex.stackexchange.com/a/213165/2891
16
http://tex.stackexchange.com/a/195718/2891
4