Questions tagged [tex4ht]
TeX4ht is a highly configurable TeX-based authoring system dedicated mainly to produce hypertext.
979 questions
1 vote
2 answers
84 views
algorithmicx.sty error TeX4ht
I tried with: \documentclass[english]{article} \usepackage{float} \floatstyle{ruled} \newfloat{algorithm}{tbp}{loa} \providecommand{\algorithmname}{Algorithm} \floatname{algorithm}{\protect\...
4 votes
1 answer
155 views
Why does this code fail to compile with tex4ht?
I am trying to compile very old code (a bit convoluted), but it compiles OK with lualatex, but it gives a compile error with tex4ht. \documentclass[10pt]{article}% \begin{document} \begin{tabular}{|l|...
4 votes
2 answers
107 views
Tex4ht fails to find font in multilingual lualatex document
I'm facing a problem with compiling multilingual lua LaTex document to HTML/ODT format, while it compiles without any problem to PDF. The problem seems to be related to incorrect font selection. Here ...
5 votes
2 answers
150 views
tex4ht/make4ht: what is the proper way to set the LaTeX configuration?
I'm having the greatest difficulty understanding how to configure make4ht or tex4ht. Example Running, for example, make4ht --lua test.tex on \documentclass{article} \usepackage{unicode-math} \...
3 votes
2 answers
157 views
tex4ht: xr package in texlive 2025
I'm using tex4ht to generate html with cross references between files using the xr package. The output has changed from texlive 2024 to texlive 2025. mwe1.tex \documentclass{article} \begin{document} \...
1 vote
1 answer
154 views
Tex4ht losses newlines in p{} columns in longtable when adding any one of these packages: array, colortbl, makecell
Something seems to have changed in tex4ht. I am using TL 2025, installed fresh one week ago on new Linux Found that Adding array package, causes tex4ht to clopper all content of table cell, ignoring ...
2 votes
2 answers
120 views
How to add the word “Chapter” before chapters in both table of contents using TeX4ht / TeX4ebook?
Currently, in the EPUB version of the book I’m writing using LaTeX + TeX4ebook, the table of contents looks odd – it just contains the number and then the title of the chapter; nothing before the ...
1 vote
1 answer
84 views
Problem using hyperref with label in tex4ht. It displays label different than pdf
Did something change in tex4ht? I am using TL 2025, installed fresh one week ago on new Linux. When doing \hyperref[1]{1} then later \subsection{Problem 1}\label{1} , I expected the link to point and ...
3 votes
0 answers
70 views
Why does TeX4ht / TeX4ebook ignore the start of the second paragraph of footnotes when using KOMA-Script’s “scrbook” class? [closed]
Consider the following MWE (compiled with tex4ebook -l -f epub3 test.tex p-indent,fn-in): test.tex \documentclass{scrbook} \setkomafont{footnote}{\normalsize} % Just to declutter the HTML a bit. \...
2 votes
0 answers
43 views
Is it possible to use / edit TeX4ht’s internal macros?
I find myself using \Configure a lot, and in order to figure out what to configure and how, I’ve had to look at the TeX4ht source code a good bit. It contains non-standard macros / variables in the ...
0 votes
1 answer
65 views
How to remove the empty page TeX4ebook produces at the start when no front matter is present?
Consider the following MWE (compiled using tex4ebook -l -f epub3 test.tex): \documentclass{book} \begin{document} \chapter{One} There is an empty page (an empty HTML file) before this. There shouldn’...
3 votes
1 answer
72 views
How to add EPUB XML namespace to TeX4ebook XHTML output?
I’m attempting to implement Amazon’s EPUB footnote guidelines with TeX4ebook in order to make my EPUBs as compatible as possible with e-readers (footnotes as pop-ups, etc.). I’ve gotten quite far by ...
1 vote
1 answer
45 views
Combining tex4ebook with noindentafter causes paragraphs to flow into each other
Try compiling the following MWE with tex4ebook -l -f epub test.tex fn-in: \documentclass{book} \usepackage{noindentafter} \NoIndentAfterEnv{figure} \begin{document} This will work fine. Paragraphs ...
1 vote
1 answer
55 views
Problem with TOC with tex4ht when using `accent` and `hyperref` with `\texorpdfstring`
I found I need to use \texorpdfstring in sections titles in order to work around a compile error with lualatex. see tex-capacity-exceeded. But now I find the table of content in HTML generated by ...
1 vote
1 answer
72 views
latest update of tex4ht gives DOM filter errors on thebibliography
I noticed after updating texlive about a week or so ago, I started seeing domfilter error which were not there before. After some debugging, it turns out they come when adding \begin{thebibliography}{...