Questions tagged [make4ht]

The tag has no usage guidance.

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

Convert CV template from tex to html using make4ht

I am trying to get a proper html version of my cv from the tex file. I like to do the conversion as perfectly as possible so that the structure of the html can match with the pdf properly. cv.tex \...
3
votes
1answer
28 views

Using \textquotedbl with make4ht

I help maintain a document which is built, among other ways, with make4ht --utf8 --lua document.tex for HTML output. In order to typeset command line excerpts, the document sometimes uses \...
1
vote
1answer
25 views

Can I output arbitrary HTML code while converting LaTeX to HTML using make4ht?

My code: \documentclass{article} \newcommand{\world}{world} \begin{document} hello \world{} \end{document} I compile this with make4ht like this: $ make4ht foo.tex [STATUS] make4ht: ...
2
votes
1answer
32 views

Linking to \phantomsection with \ref does not work in make4ht

My code: \documentclass{article} \usepackage{hyperref} \begin{document} Top of document \section{Section heading} Top of section . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ ...
2
votes
1answer
46 views

Can I make cross-references between multiple HTML pages using make4ht/tex4ht?

Here is how my project looks. foo.tex: \documentclass{article} \usepackage{amsmath} \usepackage{hyperref} \begin{document} \begin{equation} \label{truth} 1 + 1 = 2 \end{equation} \( \eqref{truth} \) ...
1
vote
0answers
13 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: ...
1
vote
1answer
42 views

How to configure tex4ht to accept macros in TeX path?

I am using the configuration suggested in this answer to import a file Macros.tex containing a bunch of \newcommand macros to be processed using MathJax. It works as long as the main LaTeX file and ...
1
vote
1answer
33 views

Caption package breaks tex4ht automatic sectioning pagination

The caption package seems to break automatic sectioning pagination in tex4ht. The document test.tex \documentclass{article} \usepackage{graphicx, caption, blindtext} \begin{document} \part{Part ...
3
votes
1answer
40 views

Why does make4ht mathjax convert AMS gather environment to html code?

With the mathjax option, make4ht fails to render the following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather} E=mc^2\\ e^{i\pi}+1=0 \end{gather} These ...
1
vote
2answers
57 views

htlatex: method to set fraction of textwidth as minipage width not compatible with TikZ

I am using the make4ht configuration from this answer to extract width as a fraction of textwidth from LaTeX code and add it to the CSS file. The configuration works as expected until I add a TikZ ...
2
votes
1answer
56 views

Configuring htlatex for nested minipages or minipages outside floating environments

I am trying to do something similar to this post on configuring minipages with htlatex. However, my minipages are not inside a figure environment, so the strategy to apply a float: right css to div....
1
vote
1answer
113 views

Tikz patterns library and dvisvgm4ht

Does the dvisvgm4ht driver with make4ht support the TikZ Patterns library? The following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{patterns} \def\pgfsysdriver{pgfsys-dvisvgm4ht....
2
votes
1answer
34 views

Typesetting issues with make4ht and tex4ht--kerning of math characters seems too close

I am really loving make4ht and tex4ht, as they finally allow me to keep all of my tooling while generating web pages. One minor issue I am running into has to do with the kerning of some characters ...
3
votes
1answer
47 views

make4ht - broken cross references

I am using make4ht on the file Test.tex containing: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} Testing cross references for equations. \begin{equation} e^{\...
1
vote
1answer
29 views

Specifying macro definitions via command line arguments to make4ht

I want to learn if there is a way to make make4ht pass some macro definitions to the LaTeX engine during compilation time. Let me explain what I am talking about with pdflatex as an example first. I ...
1
vote
1answer
29 views

Where is make4ht “mathjax” argument documented?

I am able to convert a LaTeX file foo.tex to foo.html using make4ht like this, make4ht foo mathjax Where is this argument mathjax documented? I searched the documentation at http://mirrors.ctan.org/...
2
votes
1answer
58 views

make4ht fails with “LaTeX Error: Missing \begin{document} in `'”

I am using BasicTeX on macOS Catalina. Here are my LaTeX version details. $ tex --version TeX 3.14159265 (TeX Live 2020) kpathsea version 6.3.2 Copyright 2020 D.E. Knuth. There is NO warranty. ...
0
votes
0answers
19 views

make4ht fails on valid tex file but pdflatex works

I am trying to convert a tex file into HTML using make4ht. pdflatex successfully outputs a PDF, but make4ht fails. I have a test file as below \documentclass{book} \usepackage{tikz} \usepackage{tkz-...
0
votes
0answers
22 views

Dealing with sections when converting tex to html using make4ht

I am trying to convert a math book from tex to html. Here is my sample code \documentclass[ebook,oneside,openany,ngerman]{memoir} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
1
vote
2answers
37 views

Converting TeX with emoji in HTML using make4ht

I have a TeX document with emojis and I want to convert it into HTML using make4ht. Most of the emojis are not present in the final HTML. The problem might be reproduced using the example provided ...
3
votes
1answer
35 views

How to prevent make4ht from creating unnecessary span sibling tags in abstract?

make4ht is creating unnecessary span sibling tags in abstract. The following example shows this behavior: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{lipsum} \begin{document} \...
1
vote
1answer
34 views

Error when using polyglossia, french and make4ht

A memory error occurs when using the package polyglossia, setting french as default language and compiling with make4ht. Here is a simple code to reproduce the error: \documentclass{article} \...
1
vote
1answer
54 views

Handling subequations with make4ht

When compiling with make4ht and using svg parameter, the equation, drawn from subequation using align environment, is not converted into SVG. If I change to mathjax, the HTML displays the warning: ...
1
vote
1answer
36 views

Image for equation is not generated when compiling with make4ht and XeLaTeX

When compiling with make4ht and XeLaTeX engine, the images for equations are not created. Here is a sample code to illustrate it: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
2
votes
1answer
39 views

problem when using abnTEX2 class and make4ht

When creating HTML using make4ht for a document using the class abnTEX2, the generated document has a new paragraph for each diacritical marks in the abstract (only). An example file follows: \...
2
votes
1answer
29 views

htlatex ignores value in brackets in item statement when using itemize

In Latex I have the following statements: \begin{itemize} \item[P)] Lorem ipsum dolor sit amet \item[E)] Pellentesque interdum eros in erat \item[Q)] Vestibulum ante ipsum primis \end{itemize} ...
3
votes
1answer
66 views

tex4ht place maintext and footnote in the same file

I'm using tex4ht, or more specifically htxelatex, to convert a rather large xelatex file to HTML but I noticed that all my footnotes are turned into separate HTML files. Is there a way to tell the ...
1
vote
1answer
44 views

latex to html conversion with make4ht - pictures' width and height

I'm approaching the issue of converting TeX documents to html. After some googling and reading, I ended up with make4ht. As a starting point, I'm trying to convert a simple tex document to html (+css) ...
2
votes
1answer
97 views

How should I work with multiple make4ht filters?

As I use tex4ht/make4ht more, I find I'm building up a collection of my own customisations. To help organise this, is there a recommended way to manage including (multiple) custom filters/domfilters ...
3
votes
0answers
128 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\...
1
vote
1answer
44 views

Heading hierarchy in tex4ht

It looks like tex4ht headings start at <h2> for the title. The following tex: \documentclass{article} \title{Testing headings} \author{Alex Watson} \date{\today} \begin{document} \maketitle \...
3
votes
1answer
155 views

Graphics scaling in tex4ht

When I introduce graphics with \includegraphics[width=0.5\textwidth]{fig}, tex4ht processes this into some number of pixels (I'm not sure how - presumably there's a ppi setting I've not encountered?) ...
3
votes
1answer
126 views

make4ht: can it generate framed html output?

I am using make4ht to generate HTML output for an article that I am writing and posting it online. So far, so good. I would like to know if it would be possible to generate framed HTML output so that ...
2
votes
1answer
27 views

inconsistent links coming out of make4ht

I am working on a handbook and I am using latex to write it. I am able to produce PDFs and I also produce HTML content using make4ht (on an uptodate debian testing box). handbook is here: https://...
4
votes
1answer
126 views

How to use my own HTML template with make4ht?

Here is my LaTeX file foo.tex: \documentclass{article} \usepackage{amsmath} \title{Demo} \begin{document} \begin{align} 1 + 0 & = 1, \label{eq1} \\ 1 + 1 & = 2, \label{eq2} \\ e^{i \pi} = -1. ...
2
votes
1answer
33 views

make4ht is removing blank lines from verbatim environment

My LaTeX code file foo.tex: \documentclass{article} \usepackage{amsmath} \title{Demo} \begin{document} \begin{verbatim} Foo Bar Baz \end{verbatim} \end{document} Here is how I convert it to HTML ...
0
votes
1answer
357 views

make4ht complains about “module 'luaxml-domobject' not found”

I have installed make4ht using the command tlmgr install make4ht. Now when I enter the command make4ht foo.tex, I get this error: [STATUS] make4ht: Conversion started [STATUS] make4ht: Input file: ...
1
vote
0answers
223 views

Running make4ht + polyglossia under MiKTeX

I'm running a document which compiles to HTML using make4ht + LuaLaTeX. When testing both on Ubuntu, it works flawlessly, but when the same document is ran on Windows 10 with MiKTeX, I get a bunch of &...
2
votes
1answer
107 views

make4ht configuration file format

I need to HTMLize several largeish, complex LaTeX documents. Looking around, I see praise for make4ht. But there are several snags, that the documentation states can be sidestepped by a .mk4 ...
2
votes
1answer
59 views

Customizing existing single line classes in ODT output from mk4ht oolatex

As an extension to this question: Creating new single line classes in ODT output from mk4ht oolatex I've been attempting to use this approach to reassign the style assigned in existing commands that ...
1
vote
0answers
58 views

Babel Arabic + bidi crashes Make4ht + PdfLaTex in TexStudio

I'm trying to convert a multi-language document (Arabic, Russian, English) into an HTML or an ODT. I call make4ht dummy.tex, either from the command line or a TexStudio custom command. dummy.tex ...
1
vote
2answers
168 views

Problem with display of LaTeX-Webquiz

As I am new to the WebQuiz package I am struggling with the correct display of a quiz. I would be super glad about any help as I would like to use WebQuiz for maths university and high school teaching....
0
votes
0answers
193 views

How do you actually use LaTeX conversion systems like make4ht and tex4ht?

I have acquainted myself with the export methods of LaTeX but I am utterly confounded by how I am supposed to actually utilize conversion software created by others out in the web. I understand the ...
2
votes
1answer
75 views

htlatex for multilingual text and output to odt format

I have an elaborate workflow for producing academic articles that produced latex wit references processed using Biblatex-chicago. The text is mainly in English, but occasionally I need to include ...
3
votes
1answer
132 views

make4ht: allowing the build process to continue when parsing fails

I use make4ht to produce html; part of the process is a custom build file that parses the HTML and does some checking/operations: mwe.tex \documentclass{article} \begin{document} test: $2^3$ ...
2
votes
1answer
61 views

Creating new single line classes in ODT output from mk4ht oolatex

I've been trying to follow a tutorial here: github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial My MWE files below produce a valid output with the text from the command, but I was expecting the ...
1
vote
1answer
161 views

make4ht cannot render newcommand in mathjax mode

I use file here, and then I run a command make4ht -uf html5 maths.tex "mathjax" but the result is not what I want. I find some solution says I have to add something to cfg file, but I do not ...
1
vote
1answer
74 views

A still unexpected result when using make4ht+mathjax-node-page

I have asked a question here old question, and I exactly follow the answer, now accent problem has been solved, but there are still some bugs. Here is my html, I have converted it to pictures. I ...
1
vote
1answer
179 views

An unexpected result when using make4ht+mathjax-node-page

I exactly follow the instruction from latex mathjax node but getting some unexpected result, first in section 6 accents, the math symbols are not corrected, second, in HTML some information is ...
2
votes
1answer
255 views

Convert xelatex to html

I take this minimal example for document. I need 'polyglossia'. \documentclass{article} \usepackage{polyglossia} %\usepackage[utf8]{inputenc} \setdefaultlanguage{arabic} \newfontfamily\arabicfont[...