Questions tagged [tex4ebook]

TeX4ebook is a collection of lua scripts and LaTeX packages for converting LaTeX files to ebook formats, including epub, epub3, and mobi.

Filter by
Sorted by
Tagged with
4
votes
1answer
162 views

tex4ebook paragraph spacing, centering, and newpages

I'm having trouble replicating the work of others in getting a LaTeX document properly rendering in the epub format. Specifically I'm having trouble with paragraph spacing, centering, and newpage/...
1
vote
1answer
164 views

Change the appearance of the section and subsection of the TOC of an epub tex4epub tex4ht

I hope that @michal.h21 can help me. I tried your solution which works well, but I did not mention that the section and subsections too are modified. I generalized the situation with the following ...
1
vote
1answer
317 views

Tex4ebook and bibliographies

What is the preferred way of using bibliographies with Tex4ebook? I have tried using bibtex and biblatex but cannot get the bibliography to show on the epub. I tried the method in In which order ...
2
votes
1answer
175 views

tex4ebook, use paragraph and subsubsubsection in TOC

@michal.h21 EDIT2: I updates all the repositories from https://github.com/michal-h21. It works . I edited the code which does not work this is what I do. I copy your cfg.cfg, I create the myfile.tex ...
2
votes
1answer
306 views

tex4ebook HTML TIDY, how to install

I see on the webpage for tex4ebook by @michal.h21, https://github.com/michal-h21/tex4ebook @michal.h21 that I can tidy my html code for the output as .html and .epub from the input of my .tex. I ...
6
votes
1answer
434 views

TeX to html (and from there, to .mobi) for

I am a complete beginner at TeX, but am trying to convert Euclid's Elements from Project Gutenberg's TeX format to html so that I can then use Calibre's command-line ebook-convert to go to .mobi for ...
1
vote
2answers
66 views

tex4ebook error: unable to convert to number

I tried to run tex4ebook on the same MWE of this question (actually I tried also with a much more complex source, getting the same problem) \documentclass{article} \usepackage[utf8]{inputenc} \...
1
vote
1answer
262 views

tex4ebook and 4ht files

I am using MiKTeX on windows and calling tex4ebook.lua as a parameter to lualatex to make epub3. Can somebody explain in simple terms what the .4ht files in the tex4ebook directory are used for ...
1
vote
1answer
156 views

Tex4ebook and page breaks

This is a follow-up of this question of mine and uses the same setup. How do I force tex4ebook to respect requests to go to a new page. Example: \documentclass{article} \usepackage{xskak} \...
1
vote
1answer
287 views

tex4ebook and chess symbols

This is a follow-up of this question of mine and uses the same setup. I am trying to typeset chess annotation symbols. The MWE is \documentclass{article} \usepackage{xskak} \newcommand\mychessboard[...
1
vote
1answer
322 views

Using xskak and tex4ebook

Does anyone know how to get these packages to work together. Minimal example (test.tex). \documentclass[12pt]{article} \usepackage{xskak} \begin{document} \newchessgame[id=main] \chessboard \end{...
3
votes
1answer
190 views

tex4ebook accents displays as wrong characters + only produces ePub 2.0 no 3.0

I've installed newest tex4ebook (didn't tried for about a year). Now I can't get ePub 3.0 - only ePub 2.0 (as says Sigil 0.9.5 when opening) and Sigil says it has to fix some characters in ePub. My ...
23
votes
1answer
3k views

Can LaTeX be used to create flexible ebook typesize and pagesize, like html?

I've overheard mention of LaTeX being used for the production of eBooks. I'm thinking that it's in reference to producing small pages of a fixed size, say 7", fixed type size, say 8pt, for reading ...
3
votes
1answer
215 views

Can't include diagram with tex4ebook

I would like to convert a scientific book with lots of formulas and tables to epub3. So far I have read all the posts that are tagged and related to tex4ebook, tex4ht etc. and I have managed to ...
2
votes
1answer
365 views

Tex4ebook not generating SVG files

I followed the instructions in this other question to generate an ePub from Latex with SVG images(I don't want to use ePub 3.0) with tex4ebook, but the generated epub has no images. I already found ...
4
votes
1answer
137 views

Tex4ebook - incorrect chapter/appendix order

Running Tex4ebook on this minimal example: \documentclass{book} \begin{document} \chapter{First chapter} \appendix \chapter{First appendix} \end{document} results in an Epub with the appendix ...
2
votes
1answer
730 views

The best way for math in epub - font or SVG? (tex4ebook)

with some math as HTML it doesn't display well on some readers. How can I include a specific font to epub for this badly displayed math? Or is there any option to convert all math to picture (SVG)? ...
1
vote
1answer
94 views

Equation shown as nonexistent picture with tex4ebook

I successfully compiled a tex source using tex4ebook, but none of the equations (\begin{equation}) are shown properly: In Calibre Viewer, I get a blue question mark, the one for "file not found". In ...
1
vote
1answer
207 views

Multiple source document with htlatex and tex4ebook

How should I compile a document with chapters on different tex files using tex4ebook? The output of 'tex4ebook main.tex' has valid title page, index, empty chapters and valid bibliography. Structure ...
1
vote
3answers
299 views

Two navigation issues for Kindle (and other) ebooks

First, the Kindle Publishing Guidelines strongly recommend an HTML table of contents (TOC) which is now possible in tex4ebook. They also say it should be available to users either via a guide item in ...
4
votes
1answer
246 views

Need to avoid duplication of cover image in Kindle book (tex4ebook)

tex4ebook includes the cover as the first page of the book. However, the Kindle automatically includes the cover as the first page, getting the cover from the OPF file. The result is a duplicate ...
1
vote
1answer
307 views

After hand-editing tex4ebook epub folder, how to repackage?

TeX4ebook makes an "epub" folder which it automatically zips to make a .epub file. Occasionally (doing my best to be nice here) tex4ht produces code which needs to be hand-corrected. There must be ...
1
vote
1answer
593 views

How to include figures and other files in TeX4ebook

My ebook has several figures, and I would also like to embed font files. I have dealt with the figures in an ad hoc way: after the first compilation, I go to the book-epub folder and drop the files in ...
3
votes
1answer
179 views

Kindle DX formatting problem with tex4ebook

MWEs don't get much more minimal than this: \documentclass[]{book} \begin{document} This is \emph{very} strange \end{document} You can compile it using tex4ebook, but htlatex example.tex xhtml has ...
2
votes
1answer
125 views

How can I get rid of chapter numbers in TeX4ebook ncx TOC?

My book does not have numbered chapters, and it is typeset correctly, but in the ncx table of contents TeX4ebook provides the chapter number 0 before chapters in the main matter only. Here is my MWE: ...
6
votes
0answers
1k views

tex4ebook for dummies [closed]

I'm not able to make tex4ebook to work with even the simplest document. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} \section{section 1} this is a ...
6
votes
1answer
345 views

Can I get TeX4ebook to include the html table of contents in an epub

For the Kindle book I'm producing, I would like to have the .ncx ebook table of contents and an html table of contents as part of the book. However, TeX4ebook doesn't include the html TOC (in this ...