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
3 votes
1 answer
145 views

How can I convert LaTeX code into minimal HTML?

I'm using Texmaker from the MikTex distribution. What I would like to do, is to create Latex code run Texmaker to do all the substituitons, e.g. from \newcommand build it as pure ASCII-code rather ...
user avatar
  • 1,405
1 vote
1 answer
51 views

tex4ebook does not accept config file

I installed today March 27 2022 new version of texlive. I made MWE which works well with pdfLatex. It works well with "tex4ebook -l myfile.tex". But, if I include minimal config file (from ...
user avatar
0 votes
0 answers
17 views

tex4ebook texlive installation failure on cygwin on windows

I am trying to give tex4ebook or make4ht a try, but I get the following messages on my console. $ tex4ebook lsdas15f /usr/bin/tex4ebook:6: module 'lapp-mk4' not found: no field package.preload[...
user avatar
  • 3,993
1 vote
1 answer
77 views

tex4ebook: Challenges with enumerate, identation and page breaks

I am new to tex4ebooks (which I totally like after my first experiences) and I have some troubles with correct formatting: Forcing a page break does not work for me, even when using the configuration ...
user avatar
  • 218
1 vote
0 answers
130 views

tex4ebook: Fatal error - Command tex4ht returned exit code 1

I try to use tex4ebook with MikTex and TeXnicCenter, but it always leads to a fatal error. My simple MWE: \documentclass{article} \begin{document} Text \end{document} I tried a lot of different ...
user avatar
  • 218
0 votes
0 answers
41 views

What are the best tools to create epub from latex?

I have a math-light memoir book, with tables, figures, etc., and tons of convenience macros, which I would like to convert into a document suitable for kindle redistribution, too --- the key one will ...
user avatar
  • 3,271
2 votes
1 answer
37 views

tex4ht and tex4ebook: problems when tikzcd is put in the inline math

MWE: \documentclass[oneside]{amsart} \usepackage{amsmath,amssymb,amsfonts, accents} % Include the following code before \usepackage{tikz} \ifdefined\HCode \def\pgfsysdriver{pgfsys-dvisvgm4ht.def} \...
user avatar
  • 669
2 votes
1 answer
56 views

Latex to html : keep white space between colored cells in booktabs tables

I use a colored Table to illustrate a concept called 5-fold cross-validation. (Code is below). In latex, it looks as follows: When I convert this to html using tex4ebook cv_table.tex I get this: ...
user avatar
3 votes
0 answers
60 views

Align unnumbered equations when converting latex to html

I am trying to create an ebook from a tex file using the tex4ebook command. I have numbered and unnumbered equations using align. I am able to align equations using pic-align in the .cfg file, but ...
user avatar
1 vote
1 answer
63 views

Interrupted toprule/midrule/bottomrule lines in booktabs-table when converting to html with tex4ebooks

I am converting latex to html/ebook using the command tex4ebook filename.tex . When using the booktabs package, the line generated by \toprule, \midrule, \bottomrule are interrupted (have extra space) ...
user avatar
1 vote
1 answer
50 views

TeX4ebook: weird ToC numbering

MSE: \documentclass{amsart} \begin{document} \title{Test} \author{Anonymous} \date{} \maketitle \setcounter{tocdepth}{1} \tableofcontents \section{Test A} \section{Test B} \subsection{Test Ba} \...
user avatar
  • 669
2 votes
1 answer
28 views

Problem with item list and tex4ebook

I'm writing a book and I create a new environement dialog in my .cls as following : \RequirePackage{enumitem} \newlist{dialog}{itemize}{1} \setlist[dialog]{label=---,left = 0pt} When I try to ...
user avatar
1 vote
1 answer
49 views

TeX4ht / tex4ebook: labeling unnumbered equations

I am trying to understand whether it is possible to allow labels in equation*-environments as long as they are not referred. This is allowed in pdflatex, but when compiling with tex4ebook (with ...
user avatar
  • 669
1 vote
1 answer
37 views

where is the tex4ebook configuration file in debian

Debian appears to load tex4ebook and tex4ht as part of TeXLive. I can run the packages, but they are not found by Synaptic. tex4ebook creates an EPUB document, but the SHOW METADATA function of ...
user avatar
  • 57
1 vote
0 answers
91 views

tex4ebook: module char-def not found

I'm trying to typeset a multi-chapter book for use with Kindle. Hence, I'm looking to use tex4ebook. I got this error: tex4ebook book.tex [STATUS] tex4ebook: Conversion started [STATUS] tex4ebook: ...
user avatar
2 votes
1 answer
53 views

tex4ebook, spanish babel and OpfMetadata configuration

Given a latex file named tst.tex \documentclass{book} \usepackage[spanish,es-noquoting]{babel} % https://tex.stackexchange.com/questions/157095/spanish-babel-and-chemformula-package % \usepackage[...
user avatar
2 votes
1 answer
72 views

tex4ebook: math symbols in footnote labels

Inspired by other answer I found here, I decided to use endnotes to have all my footnotes and the end of my ebook. The solution works and epubchecker does not complain. Unfortunately, uploading to ...
user avatar
  • 23
1 vote
1 answer
97 views

tex4ebook html file too large

This is my first ever question. I use TeXLive: tex4ebook -c config -l filename.tex One of my LaTeX sources contain the text of a whole printed book (several hundred pages) without any parts, chapters ...
user avatar
1 vote
0 answers
57 views

tex4ebook: \bookmarksetup{startatroot} does not reset bookmark level

I'm compiling a .tex document to .epub with tex4ebook and I would like the back matter of the book (additional chapters, glossary, index, references) to appear in the bookmarks at the top level (same ...
user avatar
  • 123
1 vote
1 answer
67 views

tex4ebook: html parsing errors when content contains tables

I'm generating an .epub with tex4ebook. There are two sets of errors that come up during compilation, both related to parsing of html files that contain tables (unbalanced or unexpected tags). Any ...
user avatar
  • 123
1 vote
1 answer
41 views

tex4ebook: bookmarks are duplicated when titlesec package is imported

I'm generating an .epub with tex4ebook and I need to use titlesec. When I compiled the document, I noticed that if I import titlesec and compile more than once, the bookmarks for sections and ...
user avatar
  • 123
2 votes
1 answer
68 views

tex4ebook: issues with xifthen functions if biblatex is imported

I'm trying to generate an .epub with tex4ebook. One of the commands I've defined uses \ifelsethen and \isempty to check for empty parameters and produce different output depending on which parameters ...
user avatar
  • 123
2 votes
1 answer
59 views

tex4ebook subfigures: (1) side-by-side subfigures (2) styling changes when .tex inserted with \include

I'm using tex4ebook to generate an epub. I want subfigures to be placed side-by-side with subcaptions below the subfigures. I came across a couple of issues and I'd appreciate any hints for how to ...
user avatar
  • 123
1 vote
1 answer
194 views

tex4ebook: .svg images are correctly resized with \includegraphics but not with \includesvg

I'm generating an .epub with tex4ebook. Most of the graphics I want to include are svg. If I include them with \includesvg, and specify the graphics path with \svgpath, I can compile the document with ...
user avatar
  • 123
0 votes
0 answers
55 views

Renewcommand \[\] to include \par afterwards

I'd like to redefine the \[ \] command to have a \par afterwards, or rename it to be equation* The reason is that \[\] on its own for some reason causes formatting issues when converting to epub (...
user avatar
1 vote
1 answer
67 views

tex4ebook - Change encoding of output to latin1

My tex4ebook ebook is formated in utf8. However, in the Kindle preview, characters are not shown correctly. Indeed, Kindle publishing seems to require latin1 encoding ... ( https://kdp.amazon.com/...
user avatar
  • 31
1 vote
1 answer
99 views

Tex4ebook - reference within endnote / footnote reference

I use references to other endnotes within an endnote. Example: \usepackage{endnotes} \renewcommand{\footnote}{\endnote} ... \footnote{... siehe Fußnote \textsuperscript{\ref{org4b3dd1c}} (tex is ...
user avatar
  • 31
1 vote
1 answer
41 views

Tex4ebook - cellspacing and cellpadding

my ebook created with tex4ebook contains cellspacing and cellpadding in tables. These attributes are not tolerated anymore (according to the ebookcheck). How can I remove them in the build process? &...
user avatar
  • 31
2 votes
1 answer
70 views

tex4ebook displays accents as wrong characters [duplicate]

I'm trying to make an ebook, on windows 7 sp1, with both italian and cyrillic (and chinese in future). Minimum example with LuaTeX, Version 1.12.0 (MiKTeX 20.11): \documentclass[12pt,a4paper,openright,...
user avatar
6 votes
1 answer
152 views

TeX4ebook handles accented characters incorrectly

I'm trying TeX4ebook on the following minimal LaTeX file: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{csquotes} \title{Título} \author{Autor} \date{...
user avatar
  • 939
2 votes
1 answer
53 views

tex4ht: inline equations after subsubsection and theorem

MWE: \documentclass{amsart} \newtheorem{theorem}{Theorem} \begin{document} \section{SecTmp} \subsection{SubsecTmp} \subsubsection{SubsubsecTmp} \begin{theorem} \end{theorem} Here, \(H_n^i(X)\) \end{...
user avatar
  • 669
1 vote
1 answer
210 views

Double bibliography entries in table of contents with latest tex4ebook and texlive 2020

This is a followup of this question. sample.tex: \documentclass[ebook,12pt,oneside,openany]{memoir} \begin{filecontents}{test.bib} @book{Hiemenz, author={Hiemenz}, title={Polymer Chemistry} } \end{...
user avatar
  • 811
3 votes
1 answer
45 views

Problem with boldmath followed by super or subscript in tex4ebook

The latex file \documentclass{amsbook} \begin{document} $\mathbf{x}^y$ \end{document} when compiled with tex4ebook -f epub3 test "mathml" produces the following mathml: <math xmlns=&...
user avatar
1 vote
1 answer
29 views

Using `\widehat` in tex4ebook fails

In the generated epub file, the hat is invisible. The MWE is: \documentclass{amsbook} \begin{document} $\widehat{t_0}$ \end{document} This compiles under plain LaTeX, without any problems, and ...
user avatar
1 vote
1 answer
92 views

tex4ebook and minted

I'm evaluating the possibility to convert my latex book to epub3. This is the MWE: \documentclass[a4paper,11pt]{book} \usepackage[top=1in, bottom=1in, left=1.1in, right=1in]{geometry} \usepackage[T1]{...
user avatar
  • 113
3 votes
0 answers
133 views

tex4ebook can't change directory because of UNC paths [closed]

I had used tex4ebook to make an epub3 book about two years ago. After updating my MikTeX, and moving to the book directory, I tried to remake the epub file using the command: cd \Users\me\Documents\...
user avatar
0 votes
1 answer
87 views

How to remove the word "Chapter" from the heading in ebook: tex4ebook

I am compiling an ebook in Kannada and I would like to remove the word "Chapter" from the heading in the ebook. The output of ebook as shown in the first image . However, I would want it ...
user avatar
1 vote
2 answers
224 views

includegraphics does not clip pictures with ebook conversion

This is continuation of my efforts to create an eBook from LaTeX, the previous is here: tex4ht caption problem: undefind control sequences When converting my document to eBook, the command \...
user avatar
2 votes
1 answer
195 views

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{...
user avatar
3 votes
1 answer
353 views

Error with accent characters in index item with tex4ebook and xindy (Texlive 2020)

This is a follow-up of my previous question here. I'm using texlive 2020 and using the files provided by @Michal.h21. I have modified the input file sample.tex. \documentclass[ebook,12pt,oneside,...
user avatar
  • 811
1 vote
1 answer
60 views

tex4ht: Single quote will trigger `Double superscript` error in `align` environments

MWE: \documentclass{amsart} \begin{document} Now aligned \begin{align*} i_\lambda'^* &= a\\ &= b \end{align*} \end{document} Compile with tex4ebook, the error message ...
user avatar
  • 669
1 vote
1 answer
79 views

How to make the list of listings to work properly in tex4ebook?

How to make the list of listings to work properly in tex4ebook? Commands \tableofcontents and \listoffigureswork correctly. The pdf result The epub result I didn't found any suggestion to ...
user avatar
  • 2,887
1 vote
0 answers
79 views

tex4ebook: formatting equation, align and split

I realized tex4ebook does not format the align environment the same way it does to equation. I would like to know how to format/to config so that align has the correct symbols as equation without ...
user avatar
  • 2,887
2 votes
1 answer
595 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 ...
user avatar
  • 2,887
1 vote
2 answers
231 views

Rewriting makechapterhead to include stuff on previous page

I'm using the memoir class to typeset a book in which I want to start chapters with a picture on the left page and then on the right page "Chapter 1: Hello World" followed by text. So I'm playing ...
user avatar
  • 359
2 votes
0 answers
29 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. \[ ...
user avatar
  • 669
0 votes
0 answers
53 views

tex4ht: possible conflict between \emph and \xymatrix

MWE: \documentclass{amsart} \usepackage[all]{xy} \begin{document} \emph{ Test \[ \xymatrix@C-20pt{ {\mathbf R} f_*\big[{\mathbf L} f^*A\otimes^{\mathbf L} f^\times{\mathcal O}_Y^{}\...
user avatar
  • 669
1 vote
1 answer
46 views

tex4ebook: generating broken ebooks when there are footnotes for title or author

MWE: \documentclass{article} \begin{document} \title{Hello}%\footnote{Just a test}} \author{Somebody\footnote{Anonymous.}} \date{} \maketitle \end{document} It compiles with errors line 13 column ...
user avatar
  • 669
1 vote
1 answer
76 views

tex4ht: conflict between `symbol` option in `footmisc` and `hyperref`

MWE: \documentclass{book} \usepackage[symbol]{footmisc} \usepackage{hyperref} \begin{document} Maintext\footnote{Footnote \phantomsection \label{gtag:xxx} } Hyperref \hyperref[gtag:xxx]{abcd}...
user avatar
  • 669
2 votes
1 answer
169 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, ...
user avatar
  • 669