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.

TeX4ebook is a collection of lua scripts and LaTeX packages for converting LaTeX files to ebook formats, including epub, epub3, and mobi. It uses tex4ht as its conversion engine.

Code and more information can be downloaded from GitHub at https://github.com/michal-h21/tex4ebook.

188 questions
6
votes
0 answers

tex4ebook for dummies

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 test \end{document} when I run tex4ebook…
skey
  • 203
5
votes
1 answer

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 preceding the first chapter. Is this a known issue? Is…
4
votes
1 answer

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 cover page. (Section 3.2.3 of the Kindle Publishing…
Nat Kuhn
  • 676
3
votes
1 answer

How to include subsections in tex4ebook TOC?

This MWE properly displays subsections in the TOC but when I create an epub with tex4ebook -l main.tex the TOC only goes as deep as the sections. How can I make it include…
2
votes
1 answer

tex4ebook put auxilary files in directory

I am using tex4ebook to convert a .tex project into an .epub I use a command like the following: tex4ebook -d output -f epub3+latexmk_build -x book My problem is that the leaves my directory littered with a host of temporary and auxiliary files.…
2
votes
1 answer

How to retain paragraph indenting when using tex4ebook?

My MWE renders a PDF with two paragraphs with indents and no spacing between paragraphs, which is what I want \documentclass{memoir} \usepackage{blindtext} \begin{document} \blindtext \blindtext \end{document} However, when I generate an epub…
2
votes
0 answers

tex4ebook generating `width=289` instead of `width="100%"` for \includegraphics[width=\textwidth]{}

In my MWE I specify the image rendering to be width=\textwidth. I generate the epub/html with tex4ebook main.tex. The generated html for the image sets width=289 and height=289 (even tho I didn't specify a height) which doesn't render well on some…
2
votes
1 answer

undefined control sequence \titlefont

I want to compile my document with tex4ebook texlive. But it found a few errors, first of them is "!Undefined control sequence. \cw:TITLE+ ->\titlefont Title 1.104 \begin{document}" In my document I have that…
Vladimir
  • 91
  • 7
2
votes
1 answer

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…
Nat Kuhn
  • 676
1
vote
1 answer

Can't change \title font size when using tex4ebook

In my mwe I change the font size for \title and \author to HUGH. I can see the change in my generated PDF but when I convert the tex to epub using tex4ebook -l main.tex only the size of \author changes. The size of \title is much smaller and seems…
1
vote
1 answer

Convert to ePUB using tex4ebook

I am trying to convert my document into ePUB using tex4ebook. In this bilingual writing, the free font Kalpurush is used. Here's the MWE file.tex: % !TEX program = xelatex % !BIB program = biblatex \documentclass[12pt, twoside]{book} % For a…
raf
  • 633
1
vote
3 answers

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 the OPF file or a landmarks nav element. It is…
Nat Kuhn
  • 676
1
vote
1 answer

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 an easy way at the command line to re-zip the…
Nat Kuhn
  • 676
1
vote
1 answer

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 the figs folder (which contains the cover…
Nat Kuhn
  • 676
0
votes
1 answer

tabular not showing with tex4ebook

I have this LaTex code: \documentclass{book} \begin{document} Hello \begin{tabular}{ c c c } cell1 & cell2 & cell3 \\ cell4 & cell5 & cell6 \\ cell7 & cell8 & cell9 \end{tabular} Goodbye \end{document} It produces this when I…
Joe
  • 479
1
2