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
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 ...
6
votes
1answer
183 views

Using imakeidx in tex4ebook with Polyglossia for Devanagari

I am trying to create a Marathi ebook using the packages Polyglossia an tex4ebook. Following is the MWE I prepared following the instructions from @michal.h21 (which were given to produce the MWE that ...
6
votes
1answer
353 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 ...
6
votes
1answer
440 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 ...
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 ...
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 ...
4
votes
1answer
247 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 ...
4
votes
1answer
164 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/...
3
votes
1answer
764 views

Book template for tex4ebook

I am trying to set up a book template for tex4ebook using memoir and Texlive. The MWE that has everything I want is: \documentclass[ebook,12pt,oneside,openany]{memoir} \begin{filecontents}{test.bib}...
3
votes
1answer
86 views

Error using hyperref and tex4ebook

\documentclass[ebook,12pt,oneside,openany]{memoir} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{xurl} \usepackage[hyperindex=true]{hyperref} \hypersetup{ colorlinks = true, %...
3
votes
1answer
129 views

Problems with ligature and libertine font -

I cannot post a comment under my previous question so (i fixed some files because i misunderstood somethings, but there is a problème with tt => fl in sffamily not smallcaps and it seems it cannot do ...
3
votes
1answer
180 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 ...
3
votes
1answer
66 views

Using subfigure with tex4ht

i've read this question and the subfigure environment works fine, except captions aren't centered below the images. Instead, it looks like this: is there a way to fix this? my config.cfg looks like ...
3
votes
1answer
167 views

Faulty section header with latest Tex4ebook running on Texlive 2018

This is a followup of my question here and uses the same MWE and the config file provided by michal.h21. MWE: \documentclass[ebook,12pt,oneside,openany]{memoir} \usepackage{lipsum} \...
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 ...
3
votes
1answer
193 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 ...
2
votes
1answer
98 views

tex4ht (or tex4ebook) is not compatible with ^\mathbb, _\mathfrak, etc

To export many mathematical articles and surveys to Kindle from the LaTeX source code, I am trying to use tex4ebook. It seems to me that I still need to hack many LaTeX codes to finish the compilation,...
2
votes
1answer
111 views

tex4ebook (or htlatex) doesn't treat (mathematical) accents properly?

I tried some codes like \documentclass{amsart} \begin{document} Let's see $\widehat{\mathcal F}=\hat F=\bar F=\tilde F=\overline F$. \end{document} with default compilation. Only \overline is ...
2
votes
1answer
176 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
734 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)? ...
2
votes
1answer
58 views

How does tex4ebook work with images (png, jpg)?

After finish writing a book in LaTeX, I learned the many online books are published in the ePub format. Then I decided to learn a little bit of how to convert .tex (or .pdf) into .epub. The book has ...
2
votes
1answer
67 views

Make tex4ebook support memoir's \book

Running tex4ebook on the following example \documentclass{memoir} \begin{document} Some dedication text \book{Hello} \part{World} \chapter{How are you} \end{document} produces an .epub where ...
2
votes
1answer
31 views

tex4ebook (or tex4ht) doesn't treat newcommand and sub/supscript well in math mode

I found that tex4ebook (or tex4ht) doesn't treat well with subscripts or superscripts in \newcommand. For example, \documentclass{amsart} \newcommand\dotimes{{\otimes}^{\mathbb L}} \newcommand\...
2
votes
1answer
91 views

tex4ebook: stack not empty at end of page?

I tried to compile an article, the source code of which is downloadable, to an ebook with tex4ebook. After some trivial modifications: --- ../formal.orig.tex 2018-11-23 17:05:07.032134691 +0100 +++ ...
2
votes
1answer
309 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 ...
2
votes
1answer
126 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: ...
2
votes
1answer
36 views

tex4ht: conflict between `wrapfig` and `caption` packages

MWE: \documentclass[12pt]{book} \usepackage{caption} \usepackage{wrapfig} \begin{document} \begin{wrapfigure}{o}{1.25in} \end{wrapfigure} \end{document} If I compile it with tex4ebook, or htlatex, ...
2
votes
1answer
51 views

tex4ebook or tex4ht: confliction of amsart, hyperref and `\part`?

The test code: \documentclass{amsart} \usepackage{hyperref} \begin{document} \part{Part1} \section{Sec1} \section{Sec2} \part{Part2} \end{document} Compiled with tex4ebook, it returns with ! ...
2
votes
1answer
79 views

Faulty chapter header with latest Tex4ebook running on Texlive 2018

This is a followup of my question here and uses the same MWE and the config file provided by michal.h21. MWE: \documentclass[ebook,12pt,oneside,openany]{memoir} \usepackage{lipsum} \...
2
votes
1answer
224 views

Using storebox with tex4ebook

Is there any way to get the storebox package to work with tex4ebook? A MWE based on the storebox document is: \documentclass{article} \usepackage{storebox} \newstorebox{\mybox} \begin{document} \...
2
votes
2answers
48 views

tex4ht: conflict between `\[` `\]` environment and label, ref?

I try to compile the following very simple code by tex4eboot: \documentclass{amsart} \begin{document} \[ x=y\label{t1}\tag{Test} \] Look at equation \ref{t1}. \end{document} It gives me errors: [...
2
votes
1answer
87 views

tex4ebook: unable to include picture using \includegraphics and package \usepackage

The preamble of the tex file: %% LyX 2.3.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[letterpaper,oneside,...
2
votes
1answer
69 views

tex4ebook or tex4ht: optional arguments for \title not supported

Sample code: \documentclass{amsart} \begin{document} \title[Short]{Long} \maketitle Hello \end{document} compiled with tex4ebook, the optional argument of \title is mistakenly proceeded (the ...
2
votes
1answer
75 views

Smallcaps disappearing in tex4ebook compilation

I am using smallcaps to mark certain direct speech (essentially uttered by non-human entities). I use it almost exclusively through the following macro: \usepackage{quotmark} \newcommand{\gqt}[1]{\...
2
votes
1answer
77 views

tex4ht, including graphics in a table with pic-tabular option

i'm trying to convert a Latex document into an ebook using tex4ht. The document contains many tables, which are way too large and complex for an ebook. After some research i found the "pic-tabular" ...
2
votes
1answer
160 views

Some further issues with index generation and tex4ebook

This is a follow-up of my previous question here. It uses the files provided by @Michal.h21. I have modified the input file as below: \documentclass[ebook,12pt,oneside,openany]{memoir} \begin{...
2
votes
1answer
368 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 ...
2
votes
0answers
24 views

tex4ht: conflict between `\[`..`\]` and `split` environment [duplicate]

MWE: \documentclass{amsart} \begin{document} split, also from amsmath, similar alignment to align, but the whole construct fits within equation (or other display math) and is numbered as a unit. \[ ...
2
votes
0answers
106 views

tex4ht/tex4ebook: resetting footnote counter, allowing for multiple footnotes with same number

I've got a book containing multiple articles. Since each article is a text on its own, I reset the footnote counter to 0, whenever a new article starts, so that the numbering of the footnotes starts ...
1
vote
3answers
300 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 ...
1
vote
1answer
69 views

Ligatures generated by tex4ebook inconsistently supported

As a followup to htlatex, garamond fonts, and nulled "ff" and "fi" strings on getting ligatures working correctly with tex4ebook, I've managed to get ligatures to not be replaces ...
1
vote
1answer
309 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
599 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 ...
1
vote
1answer
74 views

Images disappearing when compiling with tex4ebook

I am trying to convert an existing book from plain PDF output to ebook format for online publishing (and doing some reformatting in the process, but that's another question). I have images in the \...
1
vote
1answer
163 views

tex4ebook: nodes vanishes for TikZ?

The test code: \documentclass{amsart} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{fadings} \DeclareMathOperator\Spec{Spec} \newcommand\Z{\mathbb Z} \newcommand\OO{\mathcal O} \begin{...
1
vote
1answer
266 views

Error with latest tex4ebook and biblatex using Texlive 2017 (Windows)

I am using the test setup from this question. I updated my Texlive 2017 packages and now the file will not process and gives an error: Package biblatex Info: Trying to load bibliographic data... ...
1
vote
1answer
297 views

Strange page numbers with mobi format and tex4ebook

Tex4ebook is producing strange page numbers in the toc on a kindle. MWE: \documentclass[ebook,12pt,oneside,openany]{memoir} \begin{filecontents}{\jobname.bib} @book{Hiemenz, author={Hiemenz}, ...
1
vote
1answer
397 views

Errors when generating epub and mobi formats with tex4ebook

This is a follow-up of my questions from here and here. The setup files have been provided by @Michal.h21. I am getting errors when using tex4ebook and generating epub and mobi outputs. The input ...
1
vote
1answer
322 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 ...
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} \...