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
1 vote
1 answer
26 views

Pagenotes with multiple index and useage with tex4ebook - needs support

Please refer to \index in \pagenote with splitindex option (for multiple index) With the following MWE no epub could be made with tex4ebook. \documentclass{report} \usepackage{index} \usepackage[...
Thomkrates's user avatar
1 vote
1 answer
32 views

Problem with index when using tex4ebook and sanitize-umlaut

I used the package sanitize-umlaut for more convenient use of indexing in german. But producing an ebook the index lacks links to the index entries. Here is the MWE: \documentclass{report} \...
Thomkrates's user avatar
2 votes
1 answer
24 views

tex4ebook with error while using footnotemark in MWE.tex

With the following MWE an error is occuring while runnig tex4ebook: The "a" element cannot contain any nested "a" elements. How do footnotes work in E-Books? MWE: \documentclass{...
Thomkrates's user avatar
3 votes
1 answer
38 views

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 subsections? \documentclass{...
buttonsrtoys's user avatar
2 votes
1 answer
31 views

Why is a single line in this table of contents not a link (tex4ebook on Kindle)

It's not clear if the issue here is with tex or with Amazon; however I think it should be at least asked here in case anyone else finds it by Googling. I am writing an ebook using tex4ebook. I have ...
Joe's user avatar
  • 479
1 vote
1 answer
36 views

tex4ebook: \author is not setting epub dc:creator

Noticed that when using tex4ebook -f epub3 that the kindle previewer shows the generated epub as anonymous. Sure enough, its content.opf has <dc:creator>Anonymous</dc:creator> This was ...
ewedel's user avatar
  • 13
0 votes
1 answer
22 views

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 & ...
Joe's user avatar
  • 479
2 votes
1 answer
38 views

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 ...
Winston Ewert's user avatar
1 vote
1 answer
21 views

tex4ebook: How to align text justified

Normally, documents created with the book class have their text aligned justified. tex4ebook seems to ignore that. Is this on purpose, as the alignment will be set by the e-readers? Would some default ...
clel's user avatar
  • 325
0 votes
0 answers
42 views

`tex4ebook` error

When I run tex4ebook on a project, I get the following error: tex4ebook -f epub3 generated-latex.tex [STATUS] tex4ebook: Conversion started [STATUS] tex4ebook: Input file: generated-latex.tex This ...
clel's user avatar
  • 325
2 votes
1 answer
33 views

Strange tex4ht behaviour with Devanagari text

I'm currently writing some text citing a lot of international literature, which I like to quote genuinely i.e., without using latin approximations. This in general works well using polyglossia, but ...
Lars Hanke's user avatar
0 votes
0 answers
30 views

how to turn off the Image creation in TeX4ht

I don't want to reproduce the images as any format, like png, I need to turn off the options, For the equation, I am using the mathjax option I run the file through make4ht.exe -l -a debug -u -c mycfg....
sizr's user avatar
  • 55
1 vote
1 answer
35 views

\multirow in tex4ht -- in the next row extra <td> not removed and produced wrong HTML view

In tex4HT, \multirow produced the HTML output, but the extra <td> element not deleted when the previous row has more rows option (\multorow) I run the file through make4ht.exe -l -a debug -u <...
sizr's user avatar
  • 55
1 vote
1 answer
17 views

redefined section configuration \Configure{likesection} in TeX4HT shows error

I redefined the configuration of \section and \section* in cfg file for modifying the HTML output, I am getting the below error (see the screenshot below). I used amsart.cls, when changing class file ...
sizr's user avatar
  • 55
0 votes
1 answer
25 views

Long table showing error when running tex4ht

Long table showing below error when running tex4ht, but it is running in normal latex compilation. Please suggest how to rectify this error in TeX4HT? I am running through make4ht.exe -l -u -a debug ...
sizr's user avatar
  • 55
2 votes
1 answer
45 views

TeX4HT - How to add extra tag on theorem-like environments

I am using TeX4HT to convert LaTeX into HTML. I need the HTML structure of theorem-like environment to be like below: The <div> class attribute value should be the name of the type, such as ...
sizr's user avatar
  • 55
1 vote
1 answer
40 views

Re configuring theorem like environment in tex4ht

When configuring the theorem like environment, the para tags are wrongly inserting when inline equations before like below in the screenshot, I tried to correct, but unable to update, How to achieve ...
RCV's user avatar
  • 2,030
2 votes
1 answer
35 views

How to reconfigure maketitle, author and affiliation in tex4ht

I am trying to reconfigure the \title{}, \author{}, \affiliation{} in tex4ht. I am unable to reconfigure, i am facing the below issue. need to re-configure title as need to configure subtitle as , ...
RCV's user avatar
  • 2,030
0 votes
0 answers
89 views

Math mode seems to depend on tikz and looks awful on epub

I have the following mcve.tex \documentclass{article} \begin{document} Hello World! $Hello World!$ \[ Hello World \] \end{document} If I run it through pdflatex it does exactly what I expect - &...
Joe's user avatar
  • 479
1 vote
1 answer
31 views

Index not listed in TOC and no hyperlinks in Index after tex4ebook conversion

The MWE below creates and index with hyperlinks on pages in the generated PDF. The index also appears in the TOC. However, the epub generated with tex4ebook looks great and the index appears. However, ...
buttonsrtoys's user avatar
1 vote
1 answer
31 views

Again: Error: "Illegal storage address" with tex4ebook [closed]

In spring I got the same error and here we found that changing to another font would solve the problem. (See "Illegal storage address" with tex4ebook, tex4ht error) But now with three other ...
Thomkrates's user avatar
2 votes
1 answer
50 views

xltabular with tex4ebook

I can't get xltabular to work with tex4ebook. Other table environments work fine; unfortunately, I'm converting an existing project, which is quite large and uses xltabular a lot, and I'm supposed to ...
Sérgio Domingues's user avatar
3 votes
1 answer
190 views

Template for EPUB using Tex4ebook

I am creating a template to produce output in EPUB format. I have taken examples from various sources on the web. I finished with a config.cfg file that contains... \Preamble{xhtml} \...
Alberto Moyano's user avatar
2 votes
1 answer
40 views

tex4ebook: invalid attribute value error

The following MWE shows the error with tex4ebook named in the question, when running epubcheck. It gives (in the MWE) 3 identical error messages: \documentclass[a4paper]{report} \usepackage[...
Thomkrates's user avatar
2 votes
1 answer
55 views

Acorn font initials not supported by tex4ebook up to now

For a nice little poetry book I like to use the acorn initial fonts, which work with pdflatex fine, but in the epub with tex4ebook it does not come out. Also with the follow MWE the missing situation ...
Thomkrates's user avatar
1 vote
1 answer
40 views

Fontspec interfering with footnote sizing in tex4ebook

After playing around with tex4ebook, I've noticed that italic and bold in footnotes don't work correctly if fontspec package is loaded. It applies the bold/italic, but the text is no longer footnote ...
ArneHeiko612's user avatar
3 votes
1 answer
58 views

tex4ebook does not render Japanese text

I'm trying to use tex4ebook to generate an epub file from a project in LaTeX. The original project, targetting pdf, uses XeLaTeX and the package xeCJK, and works fine. With tex4ebook, I get the ...
Sérgio Domingues's user avatar
1 vote
1 answer
71 views

Introducing Arbitrary book cuts for Tex4Ebook

Whenever I try to introduce arbitrary cut points with tex4ebook, I'm getting the pages returned in a strange, incorrectly ordered way. Here's my MWE: \newcommand{\mycut}{} \begin{document} A \mycut{} ...
ArneHeiko612's user avatar
1 vote
1 answer
53 views

tex4ebook/tex4ht epub: tcolorbox How to center title and set title font

pdftex sets the box in the mwe below correctly with a centered, large, bold title. However with tex4ebook it is neither centered nor bold and large. Please help me set a centered, bold, larger font ...
David B's user avatar
  • 357
1 vote
1 answer
88 views

How can I convert a chess PDF to a HTML file to include diagrams using tex4ht?

I'm trying to convert a chess pdf to html file before converting to mobi and keeping it with the diagrams. I'm doing this through tex4ht on TeXStudio. I have the code: \documentclass{article} \...
Cauê's user avatar
  • 11
2 votes
1 answer
45 views

tex4ebook: file nameof image appears right next to the image in the ebook, etc

I am using tex4ebook to convert a memoir class document into epub. The document has several images included thru \includegraphics{}. The images are saved as .eps in the same folder as the .tex file. I ...
SPRIyer's user avatar
  • 23
0 votes
0 answers
83 views

How can I export my Tex document to fb2 format?

I haven't found any receipt of exporting or saving Tex files to fb2. I would like to preserve everything I see in PDF and make it looking the same way. UPD: I tried an online converter from TEX to fb2 ...
Nikolay Yasinskiy's user avatar
2 votes
1 answer
40 views

tex4ebook: How to get colored text in tables

Extending the question here, is there also a way to get a colored text in a tabularx environment? Here is an MWE: \documentclass[12pt]{book} \usepackage{tabularx} \usepackage{xcolor} \newenvironment{...
Jack's user avatar
  • 314
1 vote
1 answer
51 views

tex4ebook: Numbering in Table of Contents

tex4ebook adds an additional numbering in front of each part/chapter/section etc in the table of contents: 1. I First Part 1. 1 First Chapter of Part 1 1. 1.1 Header of Section 1 2. 1.2 ...
Jack's user avatar
  • 314
1 vote
1 answer
44 views

tex4ebook: How to get colored text in enumerations

I need a colored text in an enumeration list. While the colors work fine outside enumerations, they disappear within enumerations (when compiling a pdf instead of an epub, the colors are there). Is ...
Jack's user avatar
  • 314
1 vote
0 answers
63 views

tex4ebook: Issues with sections in ebooks

In an old version of tex4ebook (beginning of 2022), sections worked fine. With the current version, however, I run into issues and cannot compile the file anymore. I use the arguments -a debug -c ...
Jack's user avatar
  • 314
2 votes
1 answer
44 views

tex4ebook: References with cleveref

I use cleveref to create customized references to theorems, e.g. I have to reference to Theorems A1, A3 and A4. When using tex4ebook, the respective links to the theorems work technically fine, but ...
Jack's user avatar
  • 314
2 votes
1 answer
55 views

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 \...
buttonsrtoys's user avatar
2 votes
0 answers
55 views

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 ...
buttonsrtoys's user avatar
3 votes
1 answer
60 views

\includegraphics tex4ebook conversion working on ReadEra but not Mac Books.app?

Below is a MWE that renders text and an image of two circles and line: \documentclass[ebook]{memoir} \usepackage{graphicx} \graphicspath{ {./images/ebook} } \begin{document} Here's a png:\\ \...
buttonsrtoys's user avatar
4 votes
1 answer
77 views

How to add new lines to css file in tex4ebook config file

The following code in my tex4ebook config file \Css{ .newpage{page-break-before:always;} /* chapter heading */ h2.likechapterHead { font-family:"Montserrat", "Helvetica", ...
buttonsrtoys's user avatar
1 vote
2 answers
47 views

Errors with epubcheck after tex4ebook, concerning \pageref{somelabel}

I found a MWE which reproduces the error message with epubcheck 2 times when having run tex4ebook (in my source the error appears 20 times identically) with Fragmentbezeichner ist nicht angegeben (...
Thomkrates's user avatar
2 votes
0 answers
70 views

Sample LaTeX book repo for EPub with tex4ebook?

I'm writing a nonfiction book with the memoir class and the usual parts (cover art, colophon, dedication, foreword, parts, chapters, creations, etc.). I finished the print version. I'm amazed at how ...
buttonsrtoys's user avatar
1 vote
1 answer
37 views

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 ...
buttonsrtoys's user avatar
3 votes
1 answer
96 views

Converting LaTeX doc with extensive math to portable eBook

I posted the following question 10 years ago, and the answers at the time were basically that there wasn't yet any particular good/easy solution, in part because of the immaturity of ePub3. My only ...
Grant Petty's user avatar
  • 1,081
0 votes
0 answers
22 views

\cleardoublepage not working with tex4ebook

Below is my mwe that creates text on pages 1, 3, and 5 when I build a PDF from my main.text. When I run tex4ebook -l main.tex to build my epub, it puts all the text on a single page. Is there an ...
buttonsrtoys's user avatar
1 vote
2 answers
82 views

How to generate an epub with linked endnotes?

My MWE generates a PDF with links from the ref to the endnote and from the endnote to the ref. When I convert my TeX to epub using tex4ebook main.tex -o main.epub I lose the links. How can I generate ...
buttonsrtoys's user avatar
0 votes
1 answer
32 views

pagenote{} in section{} gives correct output in pdflatex, but not in tex4ebook output in epub

This MWE shows the problem: \documentclass[11pt,a4paper]{report} \usepackage{ebgaramond-maths} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{tex4ebook} \...
Thomkrates's user avatar
2 votes
1 answer
103 views

tex4ebook and \coverimage[someOptions]{AbsolutePath/someimage.jpg} does not work

I use tex4ebook with \coverimage[someOptions]{AbsolutePath/someimage.jpg} in the document, directly after \begin{document}. But the AbsolutePath is not respected and does not find someimage.jpg, ...
Thomkrates's user avatar
1 vote
1 answer
30 views

Spaces are missed in the resulting bibliography in the epub when running tex4ebook

When running tex4ebook' with the following MWE, there should be a space separation` between the bibitems viewed in the epub to get a better result. \documentclass[11pt,a4paper]{report} \usepackage{...
Thomkrates's user avatar