Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [make4ht]

{make4ht} is a build system for TEX4ht, TEX to XML converter. It provides a command line tool that drives the conversion process. It also provides a library that can be used to create customized conversion tools. An example of such a tool is tex4ebook, a tool for conversion from TEX to ePub and other e-book formats.

Filter by
Sorted by
Tagged with
1 vote
1 answer
39 views

Color not coming in Make4ht

My codes are: \documentclass[]{article} \usepackage{array,booktabs,makecell} \usepackage{relsize} \usepackage{collcell} \usepackage[table]{xcolor} \usepackage{pgf} % \usepackage[flushleft]{...
MadyYuvi's user avatar
  • 13.9k
1 vote
0 answers
70 views

make4ht unable to compile with TikZ pictures

I am having troubles making make4ht working with Tikz pictures. My computer is a Mac M1 Sonoma 14.2.1, I have TeX Live 2024 and Ghostscript 10.03.0 on my computer: lualatex --version This is LuaHBTeX, ...
mistral's user avatar
  • 45
1 vote
1 answer
44 views

How to use alternative make for parallelizing dvisvgm in make4ht on windows

On linux, make4ht is able to parallelize the build of SVGs in dvisvgm. It looks like dvisvgm_hashes.lua expects to run exactly "make -j". I'm stuck with jom (https://wiki.qt.io/Jom) for ...
Allen's user avatar
  • 25
1 vote
1 answer
33 views

Increase SVG size in make4ht

I would like to increase the default scale of dvisvgm as invoked from the make4ht scripts. Is there a way to pass the "scale" option to dvisvgm_hashes from the command line? Thanks, Allen
Allen's user avatar
  • 25
1 vote
1 answer
25 views

Add translate="no" attribute in the elements generated from code listings

I'm using make4ht to convert .tex files to HTML, and I added google translate API to the generated website, but some elements shouldn't be translated and adding translate="no" attribute to ...
Valdinei Rodrigues's user avatar
1 vote
1 answer
15 views

make4ht place footnotes container inside "main-content" container

My MWE is: \documentclass{article} \begin{document} Test \footnote{This is a test!} \end{document} When I compile using this configuration file (.cfg): \Preamble{xhtml,html5,fn-in} \Configure{...
Valdinei Rodrigues's user avatar
3 votes
1 answer
44 views

make4ht \boxed rendering wrong when using MathML

My MWE is: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \boxed{A} \boxed{B} \] \end{document} When I compile using pdflatex I got the two boxes side by side, but when compiling ...
Valdinei Rodrigues's user avatar
1 vote
1 answer
57 views

Combination of \cline and p-type column in table seems to break make4ht

I am trying to convert a .tex file into .odt using make4ht. This is the MWE that is able to generate the error that I face: \documentclass[a4paper,12pt]{article} \usepackage{multirow} \usepackage{...
Miloop's user avatar
  • 900
1 vote
2 answers
55 views

make4ht and dvisvgm generates a '.svg' file that contains text regarding using option '-dNEWPDF'

I'm generating .svg files with mahe4ht and dvisvgm. The .svg is generated but contains text at the beginning regarding the use of option -dNEWPDF: The old, written in PostScript, PDF interpreter has ...
flpo's user avatar
  • 41
2 votes
1 answer
35 views

make4ht breaks with text formatting in section headers when trying to convert to odt

I have a test file that I wish to convert to .odt. Here is a MWE: \documentclass[a4paper,12pt]{article} \title{Special media for rapid germination of \textit{Persea americana} seeds using vitamin B\...
Miloop's user avatar
  • 900
1 vote
1 answer
102 views

How to use make4ht for threeparttable with siunitx to make an odt

I am trying to work off my previous request here: htlatex breaks down when using siunitx For context, I am trying to convert a manuscript written in .tex into a .odt file using make4ht. I am using ...
Miloop's user avatar
  • 900
2 votes
1 answer
89 views

Change font of tikz diagrams in html produced by make4ht

I'm building an html document from latex file using make4ht. I've successfully set the font of document body to Libertinus Serif using CSS. But I can't set the font that's used by make4ht to build ...
Ivan's user avatar
  • 33
2 votes
1 answer
77 views

make4ht compiled HTML math doesn't justify with text

My test.tex MWE is: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{mathtools} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam a ...
Valdinei Rodrigues's user avatar
2 votes
1 answer
97 views

make4ht math input error when using amsmath

My MWE is the file test.tex here: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{equation} y[n] = \begin{cases}...
Valdinei Rodrigues's user avatar
0 votes
1 answer
155 views

Parsing 1994 TeX

I have these 1994 TeX documents which I would like to produce html and pdf files from. Here's an example of one of them: https://github.com/lisp-docs/cl-standard/blob/master/new-spec/spec-source/chap-...
Daniel's user avatar
  • 103
2 votes
1 answer
240 views

make4ht fails in TeXLive2023 but works in TexLive2022; pdflatex works in both (\pdfstringdef)

This is question is different than the Tikz package, etc. I am compiling this document: https://github.com/NAG-DevOps/speed-hpc/tree/master/doc like so in the corresponding Makefile # Building ...
Serguei's user avatar
  • 325
0 votes
0 answers
32 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
36 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
26 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
46 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 ...
pdy-ind's user avatar
  • 2,102
2 votes
1 answer
54 views

htlatex with tcolorbox ignoriing left whitespace inside box

I am using the tcolorbox package and I need to produce html output together with pdf output. When I use tcolorbox with pdflatex it works fine and produces a nice box with space on either side. Wnen I ...
user12833's user avatar
2 votes
1 answer
38 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 , ...
pdy-ind's user avatar
  • 2,102
1 vote
1 answer
153 views

Make4HT - HTML with LaTeX equation and MathML output

I am trying to convert the HTML output with MathML and TeX equations based on the brilliant Solution given by michal.h21 in the below Thread Make4HT with \begin{align} (MathML and LaTeX Output) ...
pdy-ind's user avatar
  • 2,102
3 votes
1 answer
104 views

Using -a warning in make4ht does not stop at first error

sometimes I like to use -a warning with make4ht to reduce the amount of information printed. The big problem is that it does not stop at first error. It keeps running. When I change to -a debug it ...
Nasser's user avatar
  • 20.3k
2 votes
1 answer
44 views

Bad output with make4ht array and mathml

I am compiling the following latex file: \documentclass{article} \begin{document} $\begin{array}{c} 1\\ 2 \end{array}$ \end{document} Compiling the above via TeXlive 2023 up to date (14/06/2023) ...
Manuel Cart's user avatar
1 vote
0 answers
65 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
77 views

Error "Missing \endcsname inserted" with make4ht

I get some strange errors that I can't explain when I use mak4ht with my miktex distribution. Does anyone have an idea? First there are two warnings: [WARNING] tocid: char-def module not found [...
ChristianB's user avatar
1 vote
1 answer
49 views

make4ht multiple files hyperref issues with labels at the top of the file

The following compiles with make4ht but htlatex throws some errors. I'm trying to use make4ht to handle multiple files and link between them using xr-hyper and hyperref. In some cases I want to link ...
holmes's user avatar
  • 65
1 vote
1 answer
47 views

make4ht xr-hyper and hyperref unable to compile

Similar to xr-hyper and cleveref unable to compile with make4ht, the following example compiles with pdflatex but fails to compile with make4ht main.tex: \documentclass{article} \usepackage{hyperref} ...
holmes's user avatar
  • 65
0 votes
0 answers
58 views

make4ht and hyphens and apostrophes

make4ht incorrectly outputs en-dash, em-dash and apostrophes. \documentclass{article} \begin{document} -- --- ' \end{document} Compiling this with make4ht test.tex outputs garbage – — ’. Note ...
David Wood's user avatar
3 votes
1 answer
159 views

xr-hyper and cleveref unable to compile with make4ht

I'm trying to use cleveref to cross reference between documents and compile them with make4ht. The following example compiles with pdflatex but not with make4ht or htlatex. main.tex: \documentclass{...
holmes's user avatar
  • 65
1 vote
1 answer
91 views

How make tex4ht include navigation link on book title page to table of contents?

To the source file doc.tex below, I'm applying the command make4ht doc.tex "3" to produce an html version that has a separate page for each section. When the resulting doc.html file is ...
murray's user avatar
  • 8,314
4 votes
1 answer
97 views

All math in chapter or section titles is messed up after updating to latest TL 2022

I found a problem in math generated after updated to latest TL. All math in chapter and/or section titles is messed up now. This used to show up OK before I updated to TL. I've used this for years ...
Nasser's user avatar
  • 20.3k
2 votes
1 answer
95 views

tex4ht no longer shows table of content when using split level after updating to latest TL 2022

I found two big problems so far after I just updated to latest TL 2022 2 hrs ago. So I will post two separate questions on these. If I find more, will add separate questions. I found that table of ...
Nasser's user avatar
  • 20.3k
1 vote
1 answer
52 views

Make4ht and bclogo package compatibility

The following code produce a error : \documentclass{article} \usepackage[tikz]{bclogo} \begin{document} \begin{bclogo}{My title} Test \end{bclogo} \end{document} I compile with make4ht file.tex, i ...
Manuel Cart's user avatar
3 votes
1 answer
50 views

make4ht error with mathml mathjax and packages tasks, amsmath?

The following code produce a error : \documentclass{article} \usepackage{amsmath} \usepackage{tasks} \begin{document} \begin{tasks}(2) \task one \par New par \task two \end{tasks} $\dfrac{3}{2}$ \end{...
Manuel Cart's user avatar
1 vote
1 answer
88 views

make4ht diplaystyle \dfrac command

Is it possible to make the \dfrac command work in inline mode? Or is it possible to force all the math in diplaystyle mode ? I use make4ht with mathml. \documentclass{article} \usepackage{amsmath} \...
Manuel Cart's user avatar
1 vote
1 answer
115 views

Make4ht and enumerate

The enumerate package causes problems with make4ht, there are extra spaces and strange alignment. \documentclass{article} \usepackage{enumerate} \begin{document} \begin{enumerate} \item text \...
Manuel Cart's user avatar
2 votes
1 answer
66 views

table of content problem in tex4ht. missing numbering at level subsubsection and alignment is not correct

I am not sure what I am doing wrong here. I need to produce this toc in book class But in html it looks like this The following is the MWE and the commands used to compile it. I think I added all ...
Nasser's user avatar
  • 20.3k
1 vote
1 answer
75 views

tex4ht/make4ht: configure the section title so it is jekyll toc compatable

Currently a section title \section{Connection} will create HTML <h3 class='sectionHead'><span class='titlemark'>1 </span> <a id='x1-10001'></a>Connection</h3> I ...
macton's user avatar
  • 113
1 vote
1 answer
121 views

custom tagging for authors and affiliations when converting to HTML using htlatex

I am trying to convert to HTML using tex4ht without luck. The following is what I have got so far: sample.tex % https://elife-cdn.s3.amazonaws.com/author-guide/elife-latex-template.zip \documentclass[...
Parivalavan's user avatar
1 vote
1 answer
185 views

`make4ht`: Generating HTML output, but leaving the styling to the user (i.e. don't make CSS?)

A nice feature of make4ht is that it converts the latex document to HTML, but the awesome feature of make4ht is that it generates all the right images and inserts them in the right places for math. ...
bzm3r's user avatar
  • 3,196
1 vote
1 answer
52 views

make4ht mathml array strange output

I am compiling the following latex file: \documentclass{article} \usepackage[british]{babel} \begin{document} \begin{equation} \begin{array}{|r|rrrr|} \hline & x_1 & x_2 & x_3 &...
qarabala's user avatar
  • 202
1 vote
1 answer
173 views

make4ht to use inline-SVG produced via TiKZ instead of an external file

By default, make4ht translates TiKZ into a separate SVG file and puts it separately into the active folder. Is there a way to override this behaviour and force make4ht to put SVG inline into the ...
qarabala's user avatar
  • 202
1 vote
1 answer
156 views

How do I force `make4ht`/`tex4ht` to output all my mathematics as dvi/svg?

I found that make4ht/tex4ht uses a combination of unicode + dvi/svg images to represent my document in HTML. I think it would be much more useful to me if I could choose to have all my mathematics (i....
bzm3r's user avatar
  • 3,196
1 vote
0 answers
48 views

Make4ht: Anything inside equation with \ce rending to mathjax adds extra \protect

Here is a very simple mwe that does not render on any machines without giving an extra \protect. Without the % sign after the \begin{equation} this renders fine for both pdf (using lualatex) and ...
Justin Shorb's user avatar
1 vote
1 answer
78 views

make4ht creates images for double-dollar formulas despite mathjax option

I want to convert the following (minimized) TeX file to HTML: \documentclass{article} \begin{document} We have $a = a$, \(a = a\) and also \[c = c\] and even \begin{equation*} E = mc^2. \end{...
qarabala's user avatar
  • 202
1 vote
1 answer
188 views

make4ht generic css

Is it possible to get a complete CSS file for make4ht which would account for any output? I am saving HTML outputs created by make4ht to a databank; saving an accompanying CSS file separately for each ...
qarabala's user avatar
  • 202

1
2 3 4 5