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.
192
questions
2
votes
0
answers
55
views
TeX4ht doesn't work with bigfoot
I've been translating a book that contains regular footnotes (1, 2, 3, ...) and I'd like to include another set of footnotes for the translator (*, **, ***, would reset per page) — in other words I ...
0
votes
0
answers
19
views
WARNING: location-reference "x" did match multiple location-classes! (taking first one) - What is meant?
In a bigger project with multiple indexes, pagenotes and sectionwise bibliography I got that WARNING in the title of this question. Since I have a problem with the index in the epub (via tex4ebook) I ...
2
votes
1
answer
31
views
Index in caption (of figure) and multiple index (splitindex) and tex4ebook yield to problem
The following MWE shows the error in the resulting epub: In the figure captions the index entry within the figure caption is not correctly set in the epub.
\documentclass{report}
\usepackage[T1]{...
3
votes
1
answer
41
views
Package lettrine and tex4ebook with error
When using the package lettrine and tex4ebook with the following MWE, it leads to an error message:
Package xkeyval Error: `slope' undefined in families `L'.
[ERROR] htlatex: ./Testdocument_lettrine-...
1
vote
1
answer
105
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[...
1
vote
1
answer
38
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}
\...
2
votes
1
answer
25
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{...
3
votes
1
answer
41
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{...
2
votes
1
answer
34
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 ...
1
vote
1
answer
52
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 ...
0
votes
1
answer
26
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 & ...
2
votes
1
answer
62
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 ...
1
vote
1
answer
28
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 ...
0
votes
0
answers
58
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 ...
2
votes
1
answer
37
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 ...
0
votes
0
answers
33
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....
1
vote
1
answer
40
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 <...
1
vote
1
answer
21
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 ...
0
votes
1
answer
28
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 ...
2
votes
1
answer
49
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 ...
2
votes
1
answer
47
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 ...
2
votes
1
answer
50
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 , ...
0
votes
0
answers
96
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 - &...
1
vote
1
answer
39
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, ...
1
vote
1
answer
32
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 ...
2
votes
1
answer
57
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 ...
3
votes
1
answer
283
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}
\...
2
votes
1
answer
46
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[...
2
votes
1
answer
78
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 ...
1
vote
1
answer
54
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 ...
3
votes
1
answer
65
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 ...
1
vote
1
answer
91
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{}
...
1
vote
1
answer
65
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 ...
1
vote
1
answer
94
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}
\...
2
votes
1
answer
51
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 ...
0
votes
0
answers
124
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 ...
2
votes
1
answer
47
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{...
1
vote
1
answer
53
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 ...
1
vote
1
answer
47
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 ...
1
vote
0
answers
73
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 ...
2
votes
1
answer
53
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 ...
2
votes
1
answer
72
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
\...
2
votes
0
answers
63
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 ...
3
votes
1
answer
61
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:\\
\...
4
votes
1
answer
94
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", ...
1
vote
2
answers
55
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 (...
2
votes
0
answers
84
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 ...
1
vote
1
answer
39
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 ...
3
votes
1
answer
111
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 ...
0
votes
0
answers
27
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 ...